regex: Use initializer shorthand syntax also with clang.
[gnulib.git] / ChangeLog
blob9bf0e78d483c67b6cb52d7c6fe6e5d8f35ee369e
1 2020-08-16  Bruno Haible  <bruno@clisp.org>
3         regex: Use initializer shorthand syntax also with clang.
4         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
5         with clang.
7 2020-08-16  Bruno Haible  <bruno@clisp.org>
9         regex: Use space optimization also with clang.
10         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
11         with clang.
13 2020-08-16  Bruno Haible  <bruno@clisp.org>
15         Use _Static_assert and static_assert primitives when present on clang.
16         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
17         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
18         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
20 2020-08-16  Bruno Haible  <bruno@clisp.org>
22         Use 'throw ()' for optimization in C++ mode also on clang.
23         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
24         * lib/getopt-cdefs.in.h (__THROW): Likewise.
25         * lib/md5.h (__THROW): Likewise.
27 2020-08-16  Bruno Haible  <bruno@clisp.org>
29         absolute-header: Add support for clang.
30         * modules/absolute-header (Makefile.am): Include '__clang__' in the
31         HAVE_INCLUDE_NEXT expression.
33 2020-08-16  Bruno Haible  <bruno@clisp.org>
35         Fix "warning: implicitly declaring library function 'strcasecmp'".
36         * lib/argp-help.c: Include <strings.h>.
38 2020-08-16  Bruno Haible  <bruno@clisp.org>
40         stdio: Don't break attribute 'scanf' on clang.
41         * lib/stdio.in.h (scanf): Treat clang like GCC.
43 2020-08-16  Bruno Haible  <bruno@clisp.org>
45         Use __restrict also on clang.
46         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
47         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
48         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
50 2020-08-16  Bruno Haible  <bruno@clisp.org>
52         pthread-spin: Use GCC built-ins also on clang.
53         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
54         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
55         also on clang.
57 2020-08-16  Bruno Haible  <bruno@clisp.org>
59         asyncsafe-spin tests: Update.
60         * tests/test-asyncsafe-spin2.c: Update to match the change in
61         lib/asyncsafe-spin.c from 2020-08-11.
63 2020-08-16  Bruno Haible  <bruno@clisp.org>
65         setenv: Use tree code also with clang.
66         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
68 2020-08-16  Bruno Haible  <bruno@clisp.org>
70         math: Optimize signbit also on clang.
71         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
72         on clang.
74 2020-08-16  Bruno Haible  <bruno@clisp.org>
76         avltreehash-list, rbtreehash-list: Optimize also on clang.
77         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
78         __builtin_expect also on clang.
80 2020-08-16  Bruno Haible  <bruno@clisp.org>
82         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
83         * lib/socket.c: Use WSASocketW, not WSASocketA.
85         Fix "warning: format specifies type 'unsigned long'".
86         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
87         argument to match the format directive.
89         Fix "warning: no case matching constant switch condition '0'".
90         * tests/test-fcntl.c (check_flags): Add a 'default' case.
92         Fix "warning: integer overflow in expression".
93         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
94         remove a 'long' overflow.
96         Fix "warning: "getpagesize" redefined".
97         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
98         macro.
100         Fix "warning: implicitly declaring library function 'strncasecmp'".
101         * lib/strptime.c: Include <strings.h>.
103         Fix "warning: 'snprintf' macro redefined".
104         * lib/strerror_r.c (snprintf): Undefine before redefining.
106         Fix "warning: address of array 'locale' will always evaluate to 'true'".
107         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
109         Fix "warning: '__stat64' macro redefined".
110         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
112         Fix "warning: 'format' attribute argument not supported: rpl_printf".
113         * lib/stdio.in.h (printf): Treat clang like GCC.
115         Fix "warning: attribute declaration must precede definition" with clang.
116         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
117         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
118         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
119         on non-glibc systems.
120         * lib/netdb.in.h (gai_strerror): Likewise.
121         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
122         * lib/sys_stat.in.h (fstat): Likewise.
123         * lib/utime.in.h (utime): Likewise.
125         Fix undesired warnings.
126         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
127         clang.
129 2020-08-16  Bruno Haible  <bruno@clisp.org>
131         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
132         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
133         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
134         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
135         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
137 2020-08-16  Bruno Haible  <bruno@clisp.org>
139         Don't use Autoconf quadrigraphs.
140         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
141         Autoconf quadrigraph.
142         * m4/free.m4 (gl_FUNC_FREE): Likewise.
143         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
144         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
145         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
146         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
147         * m4/math_h.m4 (gl_MATH_H): Likewise.
148         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
150 2020-08-16  Bruno Haible  <bruno@clisp.org>
152         Fix quoting of AC_LANG_PROGRAM arguments.
153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
154         arguments through [[...]].
155         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
156         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
157         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
158         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
159         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
160         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
161         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
162         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
163         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
164         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
165         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
166         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
167         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
169 2020-08-16  Bruno Haible  <bruno@clisp.org>
171         Assume autoconf >= 2.64.
172         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
173         * DEPENDENCIES: Require Autoconf 2.64 or newer.
174         * NEWS: Mention the changed requirement.
175         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
176         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
177         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
178         variables.
179         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
180         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
181         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
182         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
183         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
184         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
185         Likewise.
186         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
187         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
188         * m4/configmake.m4: Update comment.
190 2020-08-16  Bruno Haible  <bruno@clisp.org>
192         sys_ioctl: Simplify.
193         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
194         AC_INCLUDES_DEFAULT.
196 2020-08-16  Bruno Haible  <bruno@clisp.org>
198         Fix quoting of AC_LANG_SOURCE arguments.
199         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
200         GL_NOCRASH expansion.
201         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
202         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
203         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
204         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
205         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
207 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
209         nstrftime: be more predictable about errno
210         This aligns nstrftime better with draft POSIX 202x strftime.
211         * lib/nstrftime.c: Include errno.h.
212         (width_add, __strftime_internal): Set errno on failure,
213         and preserve it on success.  Check for mktime_z failure.
214         * modules/nstrftime (Depends-on): Add errno.
215         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
216         * tests/test-nstrftime.c: Include intprops.h, limits.h.
217         (errno_test): New test function.
218         (main): Call it.
220 2020-08-15  Bruno Haible  <bruno@clisp.org>
222         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
223         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
224         from dependency analysis first.
226 2020-08-15  Bruno Haible  <bruno@clisp.org>
228         Determine asm output option and filename suffix for MSVC/clang.
229         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
230         clang-cl.
232 2020-08-15  Bruno Haible  <bruno@clisp.org>
234         doc: Update for MSVC/clang.
235         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
236         that MSVC 14 does not have.
238 2020-08-15  Bruno Haible  <bruno@clisp.org>
240         Revert autoupdate's revert.
241         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
243 2020-08-15  Bruno Haible  <bruno@clisp.org>
245         frexpl: Fix configuration test result on MSVC.
246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
247         zero.
249 2020-08-15  Bruno Haible  <bruno@clisp.org>
251         Support compiling without -loldnames on native Windows.
252         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
253         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
254         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
255         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
256         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
258         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
259         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
260         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
261         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
262         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
263         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
264         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
265         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
266         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
267         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
268         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
270         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
271         Likewise.
272         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
273         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
274         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
275         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
277         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
278         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
279         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
281         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
282         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
283         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
284         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
285         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
286         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
287         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
288         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
289         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
290         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
291         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
292         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
293         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
294         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
295         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
296         * m4/utimens.m4 (gl_UTIMENS): Likewise.
297         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
298         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
299         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
300         test for getcwd.
301         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
302         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
303         with GL_MDA_DEFINES.
304         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
305         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
306         prefixed symbol.
307         * lib/search.in.h (lfind, lsearch): Likewise.
308         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
309         Likewise.
310         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
311         * lib/string.in.h (memccpy, strdup): Likewise.
312         * lib/sys_stat.in.h (chmod, umask): Likewise.
313         * lib/time.in.h (tzset): Likewise.
314         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
315         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
316         read, rmdir, swab, unlink, write): Likewise.
317         * lib/utime.in.h (utime): Likewise.
318         * lib/wchar.in.h (wcsdup): Likewise.
319         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
320         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
321         rpl_-prefixed macro.
322         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
323         * lib/close.c (close_nothrow): On native Windows, use _close.
324         * lib/creat.c (orig_creat): On native Windows, use _creat.
325         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
326         * lib/dup2.c (dup2_nothrow): Use _dup2.
327         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
328         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
329         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
330         * lib/open.c (orig_open): On native Windows, use _open.
331         * lib/read.c (read_nothrow): Use _read.
332         * lib/rmdir.c: On native Windows, use _rmdir.
333         * lib/unlink.c: On native Windows, use _unlink.
334         * lib/write.c (write_nothrow): Use _write.
335         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
336         undefined symbol.
337         * lib/sys_socket.in.h (close): Likewise.
338         * lib/sys_time.in.h (close): Likewise.
339         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
341 2020-08-15  Bruno Haible  <bruno@clisp.org>
343         Fix "unknown pragma ignored" warnings with clang on native Windows.
344         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
345         * lib/cbrtf.c: Likewise.
346         * lib/ceil.c: Likewise.
347         * lib/floor.c: Likewise.
348         * lib/fma.c: Likewise.
349         * lib/fmod.c: Likewise.
350         * lib/rint.c: Likewise.
351         * lib/round.c: Likewise.
352         * lib/trunc.c: Likewise.
353         * tests/test-ceil2.c: Likewise.
354         * tests/test-ceilf2.c: Likewise.
355         * tests/test-floor2.c: Likewise.
356         * tests/test-floorf2.c: Likewise.
357         * tests/test-trunc2.c: Likewise.
358         * tests/test-truncf2.c: Likewise.
359         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
360         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
362 2020-08-15  Bruno Haible  <bruno@clisp.org>
364         Fix compilation errors in C++ mode with clang on native Windows.
365         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
366         non-glibc systems.
367         * lib/sched.in.h (sched_yield): Likewise.
369 2020-08-14  Bruno Haible  <bruno@clisp.org>
371         stdnoreturn: Work around problem with MSVC/clang.
372         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
373         system header after <stdnoreturn.h>.
374         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
376 2020-08-14  Bruno Haible  <bruno@clisp.org>
378         utime-h: Generate an utime.h file always.
379         * modules/utime-h (Makefile.am): Generate utime.h always.
380         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
381         GL_GENERATE_UTIME_H.
383 2020-08-14  Bruno Haible  <bruno@clisp.org>
385         mktime, mktime-internal: Remove obsolete code.
386         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
388 2020-08-14  Bruno Haible  <bruno@clisp.org>
390         getcwd: Remove obsolete code.
391         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
392         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
394 2020-08-14  Bruno Haible  <bruno@clisp.org>
396         tzset: Assume the function exists.
397         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
398         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
399         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
400         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
401         HAVE_TZSET.
402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
403         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
405         nstrftime: Assume tzset exists.
406         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
407         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
408         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
410         mktime, mktime-internal: Assume tzset exists.
411         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
412         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
414 2020-08-14  Bruno Haible  <bruno@clisp.org>
416         strdup: Assume the function exists.
417         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
418         whether strdup exists.
419         * modules/strdup (Files): Remove lib/strdup.c.
420         (configure.ac): Don't compile strdup.c.
421         * modules/strdup-posix (Depends-on, configure.ac): Don't test
422         ac_cv_func_strdup.
423         * doc/posix-functions/strdup.texi: Update.
424         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
425         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
426         (Depends-on): Remove unistr/u8-strlen.
428 2020-08-13  Bruno Haible  <bruno@clisp.org>
430         sys_random: Work around an uClibc bug.
431         Reported by akater <nuclearspace@gmail.com>
432         via Stefan Kangas <stefan@marxist.se>
433         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
434         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
435         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
436         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
437         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
439 2020-08-12  Bruno Haible  <bruno@clisp.org>
441         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
442         Reported by Florian Weimer in
443         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
444         * lib/gen-uni-tables.c (output_predicate): Change the element type of
445         the level3 array to 'unsigned int'.
446         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
447         * lib/unictype/categ_*.h: Regenerated.
448         * lib/unictype/ctype_*.h: Regenerated.
449         * lib/unictype/pr_*.h: Regenerated.
450         * lib/unictype/sy_*.h: Regenerated.
451         * lib/unicase/cased.h: Regenerated.
452         * lib/unicase/ignorable.h: Regenerated.
454 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
456         stdint: port intptr_t to more-recent MinGW
457         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
458         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
459         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
460         Apparently those two macros were removed in mingwrt-3.22
461         dated 2016-07-14.
463 2020-08-12  Bruno Haible  <bruno@clisp.org>
465         thread-optim: Export function-like macros only.
466         Suggested by Paul Eggert.
467         * lib/thread-optim.h (gl_multithreaded): New macro.
468         (IF_MT_DECL, IF_MT): Remove macros.
469         * doc/multithread.texi (Multithreading Optimizations): Add a small
470         example.
471         * lib/fatal-signal.c: Update all uses.
472         * lib/clean-temp.c: Likewise.
473         * lib/localename.c: Likewise.
474         * modules/localename (Depends-on): Add stdbool.
476 2020-08-12  Bruno Haible  <bruno@clisp.org>
478         Revert autoupdate's revert.
479         * config/srclist.txt: Mark regex.h as needing sync with glibc.
481 2020-08-11  Bruno Haible  <bruno@clisp.org>
483         thread-optim: Fix a compiler warning.
484         * lib/thread-optim.h (IF_MT_DECL): Define differently.
486 2020-08-11  Bruno Haible  <bruno@clisp.org>
488         Use __restrict also on clang.
489         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
490         (__restrict_arr): On clang, define like on GCC.
491         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
492         (_Restrict_arr_): Use _Restrict_ also on clang.
493         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
494         (_Restrict_arr_): Use _Restrict_ also on clang.
496 2020-08-11  Bruno Haible  <bruno@clisp.org>
498         Use flexible array syntax also on clang.
499         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
500         define like for GCC 3.
502 2020-08-11  Bruno Haible  <bruno@clisp.org>
504         fcntl: On native Windows, use _setmode, not setmode.
505         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
506         * lib/binary-io.h: Update comment.
507         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
508         * tests/test-dup2.c: Likewise.
509         * tests/test-dup-safer.c: Likewise.
510         * tests/test-fcntl.c: Likewise.
512 2020-08-11  Bruno Haible  <bruno@clisp.org>
514         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
515         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
516         * lib/spawn-pipe.c (create_pipe): Likewise.
517         * tests/test-nonblocking-pipe-main.c (main): Likewise.
518         * tests/test-nonblocking-socket-main.c (main): Likewise.
519         * lib/wait-process.c: Update comment.
520         * doc/posix-functions/fork.texi: Update.
522 2020-08-11  Bruno Haible  <bruno@clisp.org>
524         asyncsafe-spin: Use GCC built-ins also on clang.
525         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
526         the newer GCC built-ins also on clang.
528 2020-08-11  Bruno Haible  <bruno@clisp.org>
530         Use expression statements also on clang.
531         * lib/cdefs.h (__extension__): Don't define to empty on clang.
532         * lib/obstack.h (__extension__): Likewise.
533         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
534         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
535         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
536         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
537         obstack_finish, obstack_free): Enable as optimized macros also on clang.
538         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
540 2020-08-10  Bruno Haible  <bruno@clisp.org>
542         Use many __attribute__s with clang.
543         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
544         on clang.
545         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
546         New macros.
547         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
548         on clang.
549         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
550         also on older clang versions.
551         (__attribute__): Don't define to empty on clang.
552         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
553         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
554         (__attribute_const__): Use __attribute__ __const__ also on clang.
555         (__attribute_used__): Use __attribute__ __used__ also on clang.
556         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
557         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
558         clang.
559         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
560         clang.
561         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
562         also on clang.
563         (__nonnull): Use __attribute__ __nonnull__ also on clang.
564         (__attribute_warn_unused_result__): Use __attribute__
565         __warn_unused_result__ also on clang.
566         (__always_inline): Use __attribute__ __always_inline__ also on clang.
567         (__attribute_artificial__): Use __attribute__ __artificial__ also on
568         clang >= 7.
569         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
570         clang versions.
571         (_Noreturn): Don't redefine on clang >= 3.5.
572         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
573         also on clang.
574         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
575         on clang.
576         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
577         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
578         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
579         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
580         also on clang.
581         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
582         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
583         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
584         also on clang.
585         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
586         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
587         __attribute__ __noreturn__ also on clang.
588         * lib/obstack.h (__attribute_noreturn__): Likewise.
589         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
590         clang.
591         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
592         always_inline also on clang.
593         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
594         clang.
596 2020-08-10  Bruno Haible  <bruno@clisp.org>
598         c-ldtoastr tests: Fix test failure.
599         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
600         is longer than 'double'.
602 2020-08-10  Bruno Haible  <bruno@clisp.org>
604         Revert autoupdate's revert.
605         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
607 2020-08-09  Bruno Haible  <bruno@clisp.org>
609         string: Fix build error in C++ mode with clang (regression from today).
610         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
611         parameters, one for GCC, one for clang.
612         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
613         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
614         as return type.
616 2020-08-09  Bruno Haible  <bruno@clisp.org>
618         ftruncate: Use _chsize, not chsize.
619         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
620         * lib/ftruncate.c: Test HAVE__CHSIZE.
621         (chsize_nothrow): Use _chsize, not chsize.
623 2020-08-09  Bruno Haible  <bruno@clisp.org>
625         Silence warnings from clang 10 with -Wimplicit-fallthrough.
626         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
627         clang >= 10.
628         * lib/fnmatch.c (FALLTHROUGH): Likewise.
629         * lib/fts.c (FALLTHROUGH): Likewise.
630         * tests/macros.h (FALLTHROUGH): Likewise.
631         * lib/regex_internal.h (FALLTHROUGH): Likewise.
632         * config/srclist.txt: Mark it as needing sync with glibc.
634 2020-08-09  Bruno Haible  <bruno@clisp.org>
636         stdbool tests: Enable the stricter tests also on clang.
637         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
638         (e): Enable the address-to-bool conversion test also on clang.
640 2020-08-09  Bruno Haible  <bruno@clisp.org>
642         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
643         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
645 2020-08-09  Bruno Haible  <bruno@clisp.org>
647         Use attribute __aligned__ with clang.
648         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
649         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
651 2020-08-09  Bruno Haible  <bruno@clisp.org>
653         Use __alignof__ with clang.
654         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
655         on clang.
656         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
657         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
658         clang.
659         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
660         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
661         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
662         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
664 2020-08-09  Bruno Haible  <bruno@clisp.org>
666         ignore-value: Simplify on clang.
667         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
668         workaround.
670 2020-08-09  Bruno Haible  <bruno@clisp.org>
672         Use __typeof__ with clang.
673         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
674         "clang -std=gnu99".
675         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
676         * tests/test-stdint.c (verify_same_types): Enable the check also on
677         clang.
679 2020-08-09  Bruno Haible  <bruno@clisp.org>
681         Add ability to emit user-defined warnings and errors with clang.
682         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
683         _GL_ATTRIBUTE_WARNING using an attribute for clang.
684         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
685         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
686         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
687         attribute for clang.
689 2020-08-09  Bruno Haible  <bruno@clisp.org>
691         intprops: Fix typo in comment.
692         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
694 2020-08-09  Bruno Haible  <bruno@clisp.org>
696         Use __builtin_signbit* with clang.
697         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
698         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
699         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
701         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
702         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
703         not REPLACE_SIGNBIT_USING_GCC.
705 2020-08-09  Bruno Haible  <bruno@clisp.org>
707         Use __builtin_isnan with clang.
708         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
709         not __builtin_isnanf. Also on clang.
710         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
711         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
712         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
713         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
714         built-in.
715         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
716         not __builtin_isnanl. Also on clang.
717         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
718         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
719         * lib/math.in.h (__has_builtin): Remove macro.
720         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
721         __builtin_isnanf. Also on clang.
722         (isnand, gl_isnan_d): With clang, use the GCC built-in.
723         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
724         __builtin_isnanl. Also on clang.
725         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
726         on clang.
728 2020-08-09  Bruno Haible  <bruno@clisp.org>
730         thread-optim: Fix logic error.
731         Reported by Paul Eggert.
732         * lib/thread-optim.h (IF_MT): Fix logic error.
734 2020-08-08  Bruno Haible  <bruno@clisp.org>
736         localename: Use module 'thread-optim'.
737         * lib/localename.c: Include thread-optim.h.
738         (struniq): Use IF_MT macro.
739         * modules/localename (Depends-on): Add thread-optim.
741         clean-temp: Use module 'thread-optim'.
742         * lib/clean-temp.c: Include thread-optim.h.
743         (register_temporary_file, unregister_temporary_file, create_temp_dir,
744         register_temp_file, unregister_temp_file, register_temp_subdir,
745         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
746         close_temp, fclose_variant_temp): Use IF_MT macro.
747         * modules/clean-temp (Depends-on): Add thread-optim.
749         fatal-signal: Use module 'thread-optim'.
750         * lib/fatal-signal.c: Include thread-optim.h.
751         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
752         macro.
753         * modules/fatal-signal (Depends-on): Add thread-optim.
755 2020-08-08  Bruno Haible  <bruno@clisp.org>
757         New module 'thread-optim'.
758         * lib/thread-optim.h: New file.
759         * modules/thread-optim: New file.
760         * doc/multithread.texi (Multithreading Optimizations): New section.
762 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
764         doc: more updates for glibc 2.32
765         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
766         * doc/posix-functions/fchmodat.texi: Update.
768 2020-08-07  Bruno Haible  <bruno@clisp.org>
770         doc: Update for glibc 2.32.
771         * doc/glibc-functions/__libc_single_threaded.texi: New file.
772         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
773         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
774         * doc/glibc-functions/sigabbrev_np.texi: New file.
775         * doc/glibc-functions/sigdescr_np.texi: New file.
776         * doc/glibc-functions/strerrordesc_np.texi: New file.
777         * doc/glibc-functions/strerrorname_np.texi: New file.
778         * doc/gnulib.texi: Include them.
779         (Glibc sys/single_threaded.h): New section.
780         * doc/pastposix-functions/h_errno.texi: Update.
781         * doc/posix-functions/*.texi: Likewise.
782         * doc/glibc-functions/*.texi: Likewise.
784 2020-08-07  Bruno Haible  <bruno@clisp.org>
786         alloca: No need to compile alloca.c with clang.
787         * lib/alloca.c: Skip all code with clang.
789         Use __builtin_alloca with clang.
790         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
792 2020-08-06  Bruno Haible  <bruno@clisp.org>
794         Use __builtin_assume with clang.
795         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
796         (assume): Use __builtin_assume when available.
798 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
800         libgmp: add <gmp/gmp.h> support
801         * m4/libgmp.m4 (gl_LIBGMP):
802         * modules/libgmp (configure.ac, Makefile.am):
803         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
804         ‘#include <gmp.h>’.
806 2020-08-06  Bruno Haible  <bruno@clisp.org>
808         Consider that clang defines __OPTIMIZE__ like GCC does.
809         * lib/streq.h: Define the inline functions also on clang.
810         * lib/c-strcaseeq.h: Likewise.
811         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
812         the GCC workaround to clang.
814 2020-08-06  Bruno Haible  <bruno@clisp.org>
816         safe-alloc: Remove unused code.
817         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
819 2020-08-06  Bruno Haible  <bruno@clisp.org>
821         Use __builtin_expect with clang everywhere.
822         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
823         also on clang.
825 2020-08-05  Bruno Haible  <bruno@clisp.org>
827         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
828         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
829         built-in also on clang.
830         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
831         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
833 2020-08-05  Bruno Haible  <bruno@clisp.org>
835         Use __builtin_clz{,l,ll} with clang, also on Windows.
836         * lib/integer_length.c: With clang, use the GCC built-in, not
837         <intrin.h>.
838         * lib/integer_length_l.c: Likewise.
839         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
840         also on clang.
841         * lib/vasnprintf.c (divide): Likewise.
843 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
845         Update srclist.txt as per recent glibc changes
846         * config/srclist.txt: Uncomment lines to reflect recent merges
847         from Gnulib to glibc.
849 2020-08-03  Bruno Haible  <bruno@clisp.org>
851         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
852         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
854 2020-08-03  Bruno Haible  <bruno@clisp.org>
856         integer_length_ll: Optimize for MSVC in 64-bit mode.
857         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
858         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
860 2020-08-03  Bruno Haible  <bruno@clisp.org>
862         integer_length_ll: Optimize for MSVC in 32-bit mode.
863         * lib/integer_length_l.c: Include <intrin.h>.
864         (integer_length): Define as inline function, like in
865         lib/integer_length.c.
867 2020-08-03  Bruno Haible  <bruno@clisp.org>
869         integer_length: Optimize for MSVC.
870         * lib/integer_length.c: Include <intrin.h>.
871         (integer_length): With MSVC, use the _BitScanReverse built-in.
873 2020-08-03  Bruno Haible  <bruno@clisp.org>
875         ffsll: Optimize for MSVC in 64-bit mode.
876         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
877         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
878         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
880 2020-08-03  Bruno Haible  <bruno@clisp.org>
882         ffsll: Optimize for MSVC in 32-bit mode.
883         * lib/ffsl.h: Include <intrin.h>.
884         (ffs): Define as inline function, like in lib/ffs.c.
886 2020-08-03  Bruno Haible  <bruno@clisp.org>
888         ffs: Optimize for MSVC.
889         * lib/ffs.c: Include <intrin.h>.
890         (ffs): With MSVC, use the _BitScanForward built-in.
892 2020-08-03  Bruno Haible  <bruno@clisp.org>
894         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
895         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
896         variable.
898 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
900         fopen: Avoid undesired interactions with glibc headers.
901         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
902         __need_FILE, as the latter does not work with glibc.
904 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
906         fcntl: document some F_SETLK errno variations
907         * doc/posix-functions/fcntl.texi (fcntl): Document
908         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
910 2020-08-02  Bruno Haible  <bruno@clisp.org>
912         oset: Add an 'iterator_atleast' operation.
913         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
914         extracted from gl_array_search_atleast.
915         (gl_array_search_atleast): Use it.
916         (gl_array_iterator_atleast): New function.
917         (gl_array_oset_implementation): Use it.
918         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
919         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
920         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
921         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
922         member.
923         (gl_oset_iterator_atleast): New function.
924         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
925         (gl_OSet::iterator): Add another auxiliary constructor.
926         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
927         New functions.
928         (main): Test also gl_oset_iterator_atleast.
929         * tests/test-avltree_oset.c (is_at_least): New function.
930         (main): Test also gl_oset_iterator_atleast.
931         * tests/test-rbtree_oset.c (is_at_least): New function.
932         (main): Test also gl_oset_iterator_atleast.
933         * tests/test-oset-c++.cc (is_at_most): New function.
934         (main): Test also gl_OSet::begin_atleast.
936 2020-08-02  Bruno Haible  <bruno@clisp.org>
938         oset-c++, omap-c++: Remove restriction for search_atleast method.
939         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
940         a different type than the element.
941         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
942         a different type than the key.
944 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
946         gnumakefile: say ‘$(MAKE)’ not ‘make’
947         * top/GNUmakefile (abort-due-to-no-makefile):
948         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
949         This change is backported from Autoconf.
951 2020-08-01  Bruno Haible  <bruno@clisp.org>
953         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
954         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
955         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
956         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
957         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
958         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
960 2020-08-01  Bruno Haible  <bruno@clisp.org>
962         libtextstyle-optional: Update tests.
963         * modules/libtextstyle-optional-tests (configure.ac): Invoke
964         gl_LIBTEXTSTYLE_OPTIONAL.
966 2020-08-01  Bruno Haible  <bruno@clisp.org>
968         parse-datetime: Fix wrong #line statements.
969         * modules/parse-datetime (Makefile.am): Correct #line statements also in
970         parse-datetime-gen.h.
972 2020-08-01  Bruno Haible  <bruno@clisp.org>
974         libtextstyle[-optional]: Allow requesting a minimum version.
975         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
976         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
977         gl_LIBTEXTSTYLE_SEARCH): New macros.
978         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
979         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
980         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
981         * modules/libtextstyle-optional (configure.ac): Don't invoke
982         gl_LIBTEXTSTYLE_OPTIONAL.
983         * NEWS: Mention the changes.
985 2020-07-31  Bruno Haible  <bruno@clisp.org>
987         _GL_CMP: Improve documentation.
988         Reported by Paul Eggert in
989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
991         passed.
993 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
995         largefile: sync with Autoconf master
996         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
997         Avoid undefined behavior on platforms where off_t is 32 bits.
998         See: https://bugs.debian.org/742780
1000         alloca: sync with Autoconf master
1001         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1002         Do not define if Autoconf 2.70 or later, since Autoconf master
1003         now matches us.
1005 2020-07-30  Bruno Haible  <bruno@clisp.org>
1007         unicodeio: Add comment.
1008         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1009         different iconv behaviours.
1011 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1013         Work around some Oracle Studio attribute bugs
1014         These were discovered when building bleeding-edge Emacs with
1015         Oracle Studio.
1016         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1017         Port to Oracle Studio 12.6, which mishandles __attribute__
1018         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1019         __has_attribute says they work.
1021 2020-07-29  Bruno Haible  <bruno@clisp.org>
1023         unicodeio: Fix wrong result on musl libc.
1024         Reported by A. Wilcox <awilfox@adelielinux.org> in
1025         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1026         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1027         on musl libc.
1028         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1029         * modules/unicodeio (Files): Add m4/musl.m4.
1031 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1033         fsusage, regex, stat-size: remove Cray support
1034         As near as I can make out this is actually support for UNICOS/mp,
1035         last released 2005, and Cray hasn’t supported that for years.
1036         * config/srclist.txt: Comment out regex.h for now.
1037         * lib/fsusage.c (get_fs_usage):
1038         * lib/regex.h (re_comp, re_exec):
1039         * lib/stat-size.h (ST_NBLOCKSIZE):
1040         Don’t worry about _CRAY.
1042 2020-07-29  Bruno Haible  <bruno@clisp.org>
1044         parse-datetime: Fix compilation error with bison 3.7.
1045         * modules/parse-datetime (Makefile.am): Create a generated header file
1046         parse-datetime-gen.h in the source directory. Correct #include and
1047         #line statements during preprocessing.
1049 2020-07-28  Bruno Haible  <bruno@clisp.org>
1051         fopen-gnu: Create files correctly (regression from 2020-05-24).
1052         * lib/fopen.c (rpl_open): Pass a third argument to open().
1054 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1056         xalloc-die: don’t depend on xalloc
1057         This removes a circular dependency, as xalloc depends on xalloc-die.
1058         * modules/xalloc-die (Files): Add lib/xalloc.h.
1059         (Depends-on): Remove xalloc.
1060         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1062         dfa-tests: port to MSVC
1063         Problem reported by Gisle Vanem in:
1064         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1065         Also, remove an unnecessary dependency on getprogname.
1066         * modules/dfa-tests (Depends-on): Remove getprogname.
1067         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1068         (exit_status): New static var.
1069         (dfawarn): Set it instead of exiting.
1070         Do not declare as _Noreturn, to pacify MSVC.
1071         (main): Return exit_status.
1073 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1075         argz: pacify MSVC
1076         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
1077         Problem reported by Gisle Vanem.
1079         libgmp: remove dependency on havelib
1080         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
1081         use the more-traditional AC_SEARCH_LIBS approach.
1082         This should work better with GNU Emacs configuration,
1083         which uses pkg-config instead of a havelib-style approach.
1084         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
1085         * modules/libgmp (Depends-on): Remove havelib.
1087         libgmp: remove HAVE_GMP, LIB_GMP
1088         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
1089         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
1091 2020-07-26  Bruno Haible  <bruno@clisp.org>
1093         inttypes: Remove support for AIX 4.
1094         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
1095         * m4/inttypes-pri.m4: Remove file.
1096         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
1097         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
1098         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1099         PRI_MACROS_BROKEN.
1100         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
1102 2020-07-26  Bruno Haible  <bruno@clisp.org>
1104         gettimeofday: Remove workaround for Mac OS X 10.0.
1105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
1106         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
1107         * lib/gettimeofday.c: Don't include localtime-buffer.h.
1108         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1109         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1110         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1111         * modules/localtime-buffer: Remove file.
1112         * lib/localtime-buffer.h: Remove file.
1113         * lib/localtime-buffer.c: Remove file.
1114         * m4/localtime-buffer.m4: Remove file.
1115         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1117 2020-07-26  Bruno Haible  <bruno@clisp.org>
1119         tzset: Remove workaround for Solaris 2.6.
1120         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1121         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1122         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1123         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1124         * lib/localtime-buffer.c: Likewise.
1125         * lib/localtime.c: Likewise.
1126         * lib/tzset.c: Don't include localtime-buffer.h.
1127         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1128         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1129         is 1.
1130         * modules/tzset (Depends-on): Remove localtime-buffer.
1132 2020-07-26  Bruno Haible  <bruno@clisp.org>
1134         expl: Simplify autoconf test.
1135         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1136         with small values..." test into the "checking whether expl works..."
1137         test.
1139 2020-07-26  Bruno Haible  <bruno@clisp.org>
1141         alloca: Remove Cray-2 and Cray Y-MP support.
1142         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1143         Enable also on Autoconf >= 2.69.
1144         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1145         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1146         i00afunc): Remove.
1148 2020-07-25  Bruno Haible  <bruno@clisp.org>
1150         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1151         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1153 2020-07-25  Bruno Haible  <bruno@clisp.org>
1155         sigprocmask: Small autoconf macro improvement.
1156         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1157         user to override the value of gl_cv_func_sigprocmask.
1158         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1160 2020-07-25  Bruno Haible  <bruno@clisp.org>
1162         Small autoconf macro improvements.
1163         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1164         override the value of gl_cv_func_working_mktime.
1165         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1166         compiler produces multi-arch binaries..." in the configure output.
1167         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1168         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1170 2020-07-25  Bruno Haible  <bruno@clisp.org>
1172         doc: Update for NetBSD 7.1, 8.0, 9.0.
1173         * doc/*/*.texi: Update.
1174         * m4/exp2l.m4: Update comments.
1175         * m4/expl.m4: Likewise.
1176         * m4/ilogb.m4: Likewise.
1177         * m4/ilogbf.m4: Likewise.
1178         * m4/log10l.m4: Likewise.
1179         * m4/logl.m4: Likewise.
1180         * m4/printf.m4: Likewise.
1181         * m4/rintl.m4: Likewise.
1182         * m4/wcwidth.m4: Likewise.
1184 2020-07-24  Bruno Haible  <bruno@clisp.org>
1186         doc: Update for Mac OS X 10.13.
1187         * doc/*/*.texi: Update.
1188         * m4/expm1l.m4: Update comments.
1189         * m4/getgroups.m4: Likewise.
1190         * m4/getlogin_r.m4: Likewise.
1191         * m4/linkat.m4: Likewise.
1192         * m4/printf.m4: Likewise.
1194 2020-07-24  Bruno Haible  <bruno@clisp.org>
1196         doc: Update for Cygwin 2.9.0.
1197         * doc/*/*.texi: Update.
1199 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1201         parse-datetime: modernize doc
1202         * doc/parse-datetime.texi: Use more-current examples.
1203         Don’t lead with 32-bit time_t, as it’s on its way out.
1204         Capitalize “Epoch” to be consistent with POSIX.
1206         timespec: remove dependence on ‘verify’
1207         * lib/timespec.h: Do not include verify.h; no longer needed.
1208         * modules/timespec (Depends-on): Remove ‘verify’.
1210         Optimize a few more three-valued comparisons
1211         * lib/timespec.h (timespec_cmp, timespec_sign):
1212         * lib/utimecmp.c (utimecmpat):
1213         Avoid conditional branches by using _GL_CMP.
1215         Fix _GL_CMP parenthesization typo
1216         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1218 2020-07-24  Bruno Haible  <bruno@clisp.org>
1220         dfa: Revert breaking gawk.
1221         Reported by Arnold Robbins <arnold@skeeve.com>.
1222         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1224 2020-07-23  Bruno Haible  <bruno@clisp.org>
1226         Optimize three-valued comparison between integers.
1227         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1228         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1229         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1230         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1231         * lib/dfa.c (compare): Likewise.
1232         * lib/fts.c (fts_compare_ino): Likewise.
1233         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1234         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1235         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1236         * lib/memcasecmp.c (memcasecmp): Likewise.
1237         * lib/memcmp2.c (memcmp2): Likewise.
1238         * lib/savedir.c (direntry_cmp_inode): Likewise.
1239         * lib/strcasecmp.c (strcasecmp): Likewise.
1240         * lib/strncasecmp.c (strncasecmp): Likewise.
1241         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1243 2020-07-23  Bruno Haible  <bruno@clisp.org>
1245         lchmod: Use /proc on Cygwin.
1246         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1248 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1250         fchmodat: Use /proc on Cygwin
1251         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1253 2020-07-21  Bruno Haible  <bruno@clisp.org>
1255         aligned-malloc: Optionally use aligned_alloc.
1256         * lib/aligned-malloc.h: Verify the alignment.
1257         (aligned_malloc): Use aligned_alloc as an alternative.
1258         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1259         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1260         'aligned-malloc' and 'pagealign_alloc'.
1262 2020-07-21  Bruno Haible  <bruno@clisp.org>
1264         aligned-malloc: Add tests.
1265         * tests/test-aligned-malloc.c: New file.
1266         * modules/aligned-malloc-tests: New file.
1268         aligned-malloc: New module.
1269         * lib/aligned-malloc.h: New file.
1270         * m4/malloc-align.m4: New file.
1271         * modules/aligned-malloc: New file.
1272         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1273         * doc/glibc-functions/memalign.texi: Likewise.
1275 2020-07-21  Bruno Haible  <bruno@clisp.org>
1277         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1278         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1279         sure PRIPTR_PREFIX is defined to "ll", not "l".
1281 2020-07-21  Bruno Haible  <bruno@clisp.org>
1283         printf-posix: Make an autoconf test more future-proof.
1284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1285         using uintptr_t.
1287 2020-07-20  Bruno Haible  <bruno@clisp.org>
1289         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1290         * modules/list (License): Change to LGPLv2+.
1291         * modules/array-list (License): Likewise.
1292         * modules/carray-list (License): Likewise.
1293         * modules/linked-list (License): Likewise.
1294         * modules/avltree-list (License): Likewise.
1295         * modules/rbtree-list (License): Likewise.
1296         * modules/oset (License): Likewise.
1297         * modules/array-oset (License): Likewise.
1298         * modules/avltree-oset (License): Likewise.
1299         * modules/rbtree-oset (License): Likewise.
1300         * modules/omap (License): Likewise.
1301         * modules/array-omap (License): Likewise.
1302         * modules/avltree-omap (License): Likewise.
1303         * modules/rbtree-omap (License): Likewise.
1305 2020-07-20  Bruno Haible  <bruno@clisp.org>
1307         oset: Add an 'update' operation.
1308         * lib/gl_array_oset.c (gl_array_update): New function.
1309         (gl_array_oset_implementation): Use it.
1310         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1311         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1312         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1313         extracted from gl_tree_nx_add_before.
1314         (gl_tree_nx_add_before): Invoke it.
1315         (gl_tree_add_node_after): New function, extracted from
1316         gl_tree_nx_add_after.
1317         (gl_tree_nx_add_after): Invoke it.
1318         (gl_tree_remove_node_no_free): New function, extracted from
1319         gl_tree_remove_node.
1320         (gl_tree_remove_node): Invoke it.
1321         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1322         extracted from gl_tree_nx_add_before.
1323         (gl_tree_nx_add_before): Invoke it.
1324         (gl_tree_add_node_after): New function, extracted from
1325         gl_tree_nx_add_after.
1326         (gl_tree_nx_add_after): Invoke it.
1327         (gl_tree_remove_node_no_free): New function, extracted from
1328         gl_tree_remove_node.
1329         (gl_tree_remove_node): Invoke it.
1330         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1331         from gl_tree_iterator_next.
1332         (gl_tree_iterator_next): Invoke it.
1333         (gl_tree_prev_node, gl_tree_update): New functions.
1334         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1335         (gl_avltree_oset_implementation): Use gl_tree_update.
1336         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1337         (gl_rbtree_oset_implementation): Use gl_tree_update.
1338         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1339         (gl_oset_update): New function.
1340         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1341         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1342         * modules/rbtree-oset (configure.ac): Likewise.
1343         * tests/test-oset-update.h: New file.
1344         * tests/test-array_oset.c: Include test-oset-update.h.
1345         (main): Invoke test_update.
1346         * tests/test-avltree_oset.c: Likewise.
1347         * tests/test-rbtree_oset.c: Likewise.
1348         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1349         * modules/avltree-oset-tests (Files): Likewise.
1350         * modules/rbtree-oset-tests (Files): Likewise.
1351         * tests/test-oset-c++.cc (action): New function.
1352         (main): Test the 'update' member function.
1354 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1356         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1357         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1358         shell if, so that the argument to AC_CHECK_HEADERS is
1359         a simple string that does not require shell evaluation.
1360         This fixes a warning generated by Autoconf 2.69b.
1362 2020-07-12  Bruno Haible  <bruno@clisp.org>
1364         libgmp: Avoid warning when --without-libgmp is used.
1365         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1366         GCC >= 8, not for GCC >= 4.6.
1368 2020-07-12  Bruno Haible  <bruno@clisp.org>
1370         libgmp: Link to the correct shared library.
1371         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1372         * modules/libgmp (Depends-on): Add havelib.
1373         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1374         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1376 2020-07-12  Bruno Haible  <bruno@clisp.org>
1378         libgmp tests: Add some safety checks.
1379         * modules/libgmp-tests (Depends-on): Add verify.
1380         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1381         (main): Verify that gmp.h and libgmp versions match.
1383 2020-07-10  Bruno Haible  <bruno@clisp.org>
1385         unicodeio: Fix wrong result on NetBSD.
1386         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1387         characters also on NetBSD.
1389 2020-07-09  Bruno Haible  <bruno@clisp.org>
1391         unicodeio: Fix wrong result on Solaris 11.
1392         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1393         via Akim Demaille <akim.demaille@gmail.com> in
1394         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1395         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1396         characters on Solaris.
1397         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1398         UTF-8 output or the specified fallback.
1400 2020-07-08  Bruno Haible  <bruno@clisp.org>
1402         unicodeio: Add tests.
1403         * tests/test-unicodeio.c: New file.
1404         * tests/test-unicodeio1.sh: New file.
1405         * tests/test-unicodeio2.sh: New file.
1406         * tests/test-unicodeio3.sh: New file.
1407         * modules/unicodeio-tests: New file.
1409 2020-07-08  Bruno Haible  <bruno@clisp.org>
1411         unicodeio: Document link requirements.
1412         * modules/unicodeio (Link): New section.
1414 2020-07-07  Bruno Haible  <bruno@clisp.org>
1416         doc: Remove support for some very old platforms.
1417         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1418         * doc/posix-functions/memcpy.texi: Likewise.
1419         * doc/posix-functions/memmove.texi: Likewise.
1420         * doc/posix-functions/memset.texi: Likewise.
1421         * doc/posix-functions/getcwd.texi: Likewise.
1423         memchr: Remove support for some very old platforms.
1424         * m4/memchr-obsolete.m4: Remove file.
1425         * modules/memchr-obsolete: Remove file.
1426         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1427         absent. Don't define HAVE_MEMCHR.
1428         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1429         * modules/memchr (Depends-on): Remove memchr-obsolete.
1430         (configure.ac): Assume HAVE_MEMCHR is 1.
1431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1432         HAVE_MEMCHR.
1433         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1434         * doc/posix-functions/memchr.texi: Don't mention module
1435         'memchr-obsolete'.
1436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1437         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1438         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1440         dup2: Remove support for some very old platforms.
1441         * m4/dup2-obsolete.m4: Remove file.
1442         * modules/dup2-obsolete: Remove file.
1443         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1444         Don't define HAVE_DUP2.
1445         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1446         * lib/dup2.c: Likewise.
1447         * modules/dup2 (Depends-on, configure.ac): Likewise.
1448         (Depends-on): Remove dup2-obsolete.
1449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1450         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1451         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1453 2020-07-07  Bruno Haible  <bruno@clisp.org>
1455         canonicalize: Trim module dependencies.
1456         * lib/hash-triple.h: Group declarations.
1457         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1458         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1459         (STREQ): Remove macro.
1460         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1461         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1462         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1463         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1464         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1465         hash-triple-simple.
1466         * modules/file-set (Depends-on): Likewise.
1468 2020-07-07  Bruno Haible  <bruno@clisp.org>
1470         Clarify dependencies to double-slash-root.
1471         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1472         (Depends-on): Add double-slash-root.
1473         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1474         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1476 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1478         libgmp: new module
1479         The idea is to let programs simply include <gmp.h>, and
1480         so long as they live within the mini-gmp subset they need
1481         not worry about whether the GMP libraries are installed.
1482         * MODULES.html.sh: Mention it.
1483         * config/srclist.txt: Mention files copied from GMP source.
1484         * config/srclistvars.sh (GMP): New var.
1485         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1486         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1487         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1489 2020-07-05  Bruno Haible  <bruno@clisp.org>
1491         mkancesdirs: Trim module dependencies.
1492         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1493         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1495 2020-07-05  Bruno Haible  <bruno@clisp.org>
1497         getprogname: Trim module dependencies.
1498         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1499         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1500         basename-lgpl.
1502 2020-07-05  Bruno Haible  <bruno@clisp.org>
1504         filenamecat-lgpl: Trim module dependencies.
1505         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1506         dirname.h.
1507         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1508         basename-lgpl, filename.
1510 2020-07-05  Bruno Haible  <bruno@clisp.org>
1512         backupfile, backup-rename: Trim module dependencies.
1513         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1514         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1515         basename-lgpl.
1516         * modules/backup-rename (Depends-on): Likewise.
1518 2020-07-05  Bruno Haible  <bruno@clisp.org>
1520         argp: Trim module dependencies.
1521         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1522         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1524 2020-07-05  Bruno Haible  <bruno@clisp.org>
1526         basename-lgpl: New module.
1527         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1528         lib/basename-lgpl.c.
1529         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1530         <stdbool.h>, filename.h.
1531         (last_component): Rename a local variable.
1532         * lib/dirname.h: Include basename-lgpl.h.
1533         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1534         (last_component, base_len): Remove declarations.
1535         * modules/basename-lgpl: New file.
1536         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1537         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1538         (Makefile.am): Don't compile basename-lgpl.c.
1539         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1540         not 'dirname'.
1542 2020-07-05  Bruno Haible  <bruno@clisp.org>
1544         dirname, dirname-lgpl: Simplify.
1545         * m4/dirname.m4: Remove file.
1546         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1547         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1548         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1550 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1552         tests: avoid shadowing warning
1553         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1555 2020-07-05  Bruno Haible  <bruno@clisp.org>
1557         supersede: Add tests.
1558         * tests/test-supersede.c: New file.
1559         * tests/test-supersede-open.h: New file.
1560         * tests/test-supersede-fopen.h: New file.
1561         * modules/supersede-tests: New file.
1563         supersede: New module.
1564         * lib/supersede.h: New file.
1565         * lib/supersede.c: New file.
1566         * m4/supersede.m4: New file.
1567         * modules/supersede: New file.
1569 2020-07-05  Bruno Haible  <bruno@clisp.org>
1571         Add some copyright headers.
1572         * lib/dev-ino.h: Add copyright header.
1573         * lib/di-set.h: Likewise.
1574         * lib/fchown-stub.c: Likewise.
1575         * lib/file-set.h: Likewise.
1576         * lib/hash-triple.h: Likewise.
1577         * lib/idcache.h: Likewise.
1578         * lib/ino-map.h: Likewise.
1579         * lib/mkancesdirs.h: Likewise.
1580         * lib/scratch_buffer.h: Likewise.
1581         * lib/se-context.in.h: Likewise.
1582         * lib/stdopen.h: Likewise.
1583         * lib/userspec.h: Likewise.
1585 2020-07-04  Bruno Haible  <bruno@clisp.org>
1587         getrandom: Relicense under LGPLv2+.
1588         Paul Eggert's approval is in
1589         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1590         * modules/getrandom (License): Change to LGPLv2+.
1592 2020-07-04  Bruno Haible  <bruno@clisp.org>
1594         getumask: Add tests.
1595         * tests/test-getumask.c: New file.
1596         * modules/getumask-tests: New file.
1598         getumask: New module.
1599         * lib/sys_stat.in.h (getumask): New declaration.
1600         * lib/getumask.c: New file.
1601         * m4/getumask.m4: New file.
1602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1603         declared.
1604         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1605         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1606         HAVE_GETUMASK.
1607         * modules/getumask: New file.
1608         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1609         * doc/glibc-functions/getumask.texi: New file.
1610         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1612 2020-07-04  Bruno Haible  <bruno@clisp.org>
1614         clean-temp: Add support for temporary files with given mode.
1615         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1616         * lib/clean-temp.c (struct try_create_file_params): New type.
1617         (try_create_file): New function.
1618         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1619         gen_tempname.
1621 2020-07-04  Bruno Haible  <bruno@clisp.org>
1623         clean-temp: Document limitations.
1624         * lib/clean-temp.h: Document limitations.
1626 2020-07-04  Bruno Haible  <bruno@clisp.org>
1628         clean-temp: Add support for temporary files with unpredictable names.
1629         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1630         * lib/clean-temp.c: Include tempname.h.
1631         (gen_register_open_temp): New function.
1632         * modules/tempname (configure.ac): Define a module indicator.
1634 2020-07-04  Bruno Haible  <bruno@clisp.org>
1636         clean-temp: Add support for temporary files anywhere in the file system.
1637         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1638         cleanup_temporary_file): New declarations.
1639         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1640         variables.
1641         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1642         (dir_cleanup_list): Renamed from cleanup_list.
1643         (cleanup_action): Process the file_cleanup_list as well.
1644         (do_init_clean_temp): New function.
1645         (clean_temp_once): New variable.
1646         (init_clean_temp): New function.
1647         (create_temp_dir): Invoke it.
1648         (register_temporary_file, unregister_temporary_file,
1649         cleanup_temporary_file): New functions.
1650         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1651         argument.
1653 2020-07-04  Bruno Haible  <bruno@clisp.org>
1655         clean-temp: Improve comments.
1656         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1657         fwriteerror_temp, close_stream_temp): Clarify intended use.
1658         * lib/clean-temp.c: Likewise.
1660 2020-07-04  Bruno Haible  <bruno@clisp.org>
1662         clean-temp: Make multithread-safe, part 2.
1663         * lib/fatal-signal.h: Include <signal.h>.
1664         (get_fatal_signal_set): New declaration.
1665         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1666         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1667         (struct closeable_fd): New type.
1668         (fatal_signal_set): New variable.
1669         (init_fatal_signal_set): New function.
1670         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1671         (cleanup_action): Invoke asyncsafe_close instead of close.
1672         (create_temp_dir): Invoke init_fatal_signal_set.
1673         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1674         element.
1675         (unregister_fd): Remove function.
1676         (close_temp): Cleanup descriptors list on the fly. Invoke
1677         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1678         (fclose_variant_temp): New function.
1679         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1680         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1682 2020-07-04  Bruno Haible  <bruno@clisp.org>
1684         clean-temp: Make multithread-safe, part 1.
1685         * lib/clean-temp.c: Include glthread/lock.h.
1686         (cleanup_list_lock): New variable.
1687         (register_temp_file, unregister_temp_file, register_temp_subdir,
1688         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1689         (create_temp_dir): Likewise. Don't free the old array.
1690         (descriptors_lock): New variable.
1691         (register_fd, unregister_fd): Use it.
1692         * modules/clean-temp (Depends-on): Add lock.
1694 2020-07-04  Bruno Haible  <bruno@clisp.org>
1696         fatal-signal: Make multithread-safe.
1697         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1698         (do_init_fatal_signal_set): New function, extracted from
1699         init_fatal_signal_set.
1700         (fatal_signal_set_once): New variable.
1701         (init_fatal_signal_set): Use gl_once.
1703 2020-07-03  Bruno Haible  <bruno@clisp.org>
1705         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1706         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1707         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1708         <bcrypt.h>.
1710 2020-07-03  Bruno Haible  <bruno@clisp.org>
1712         dfa tests: Follow common file naming conventions.
1713         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1714         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1715         * tests/test-dfa-invalid-char-class.sh: Renamed from
1716         tests/dfa-invalid-char-class.sh. Update.
1717         * modules/dfa-tests (Files, Makefile.am): Update.
1719 2020-07-03  Bruno Haible  <bruno@clisp.org>
1721         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1722         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1723         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1725 2020-07-03  Bruno Haible  <bruno@clisp.org>
1727         asyncsafe-spin: Reduce code duplication.
1728         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1729         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1730         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1732 2020-07-03  Bruno Haible  <bruno@clisp.org>
1734         lchmod: Simplify after 2020-02-22 change.
1735         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1737 2020-07-03  Bruno Haible  <bruno@clisp.org>
1739         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1740         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1742 2020-07-03  Bruno Haible  <bruno@clisp.org>
1744         dfa: Make sure the compiler does not barf on 'inline'.
1745         * modules/dfa (configure.ac): Require AC_C_INLINE.
1747 2020-07-03  Bruno Haible  <bruno@clisp.org>
1749         bitset: Make sure the compiler does not barf on 'inline'.
1750         * modules/bitset (configure.ac): New section.
1752 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1754         manywarnings: improve port to GCC 10.1
1755         * build-aux/gcc-warning.spec: Also list warnings that are default
1756         or are enabled by already-given flags.  This lets us speed up
1757         checking for attributes, and makes the generated compilation
1758         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1759         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1760         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1761         to shell variables that may have long values.
1762         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1763         consequences of other flags, to speed up checking and
1764         shorten commands.
1766         tests: pacify gcc -fanalyzer on zerosize_ptr
1767         * tests/test-memcasecmp.c (main):
1768         * tests/test-memchr.c (main):
1769         * tests/test-memchr2.c (main):
1770         * tests/test-memcmp.c (main):
1771         * tests/test-memmem.c (main):
1772         * tests/test-memrchr.c (main):
1773         * tests/unistr/test-chr.h (main):
1774         * tests/unistr/test-cmp.h (test_cmp):
1775         Check whether zerosize_ptr returns NULL before using it.
1776         This pacifies GCC 10.1’s new fanalyzer option, and matches
1777         other uses of zerosize_ptr.
1779 2020-07-01  Bruno Haible  <bruno@clisp.org>
1781         asyncsafe-spin: Add tests.
1782         * tests/test-asyncsafe-spin1.c: New file.
1783         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1784         tests/test-pthread-spin.c.
1785         * modules/asyncsafe-spin-tests: New file.
1787 2020-07-01  Bruno Haible  <bruno@clisp.org>
1789         asyncsafe-spin: New module.
1790         * lib/asyncsafe-spin.h: New file.
1791         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1792         * modules/asyncsafe-spin: New file.
1794 2020-07-01  Bruno Haible  <bruno@clisp.org>
1796         windows-spin: Fix race condition on multiprocessor systems.
1797         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1799 2020-07-01  Bruno Haible  <bruno@clisp.org>
1801         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1802         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1803         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1804         an implementation based on other GCC built-ins.
1806 2020-07-01  Bruno Haible  <bruno@clisp.org>
1808         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1809         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1810         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1811         lock byte.
1813 2020-07-01  Bruno Haible  <bruno@clisp.org>
1815         pthread-spin: Add error checking.
1816         * lib/pthread-spin.c: Include <stdbool.h>.
1817         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1818         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1819         the unlocks.
1820         * modules/pthread-spin (Depends-on): Add stdbool.
1822 2020-07-01  Bruno Haible  <bruno@clisp.org>
1824         pthread-spin: Add tests.
1825         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1826         * modules/pthread-spin-tests: New file.
1828 2020-07-01  Bruno Haible  <bruno@clisp.org>
1830         tests: Reduce code duplication.
1831         * tests/atomic-int-posix.h: New file, extracted from
1832         tests/test-pthread-mutex.c.
1833         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1834         * tests/test-pthread-rwlock.c: Likewise.
1835         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1836         * modules/pthread-rwlock-tests (Files): Likewise.
1838 2020-07-01  Bruno Haible  <bruno@clisp.org>
1840         tests: Refactor.
1841         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1842         * tests/test-mtx.c: Include it. Remove the corresponding code.
1843         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1845 2020-07-01  Bruno Haible  <bruno@clisp.org>
1847         tests: Refactor.
1848         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1849         * tests/test-lock.c: Include it. Remove the corresponding code.
1850         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1852 2020-06-29  Bruno Haible  <bruno@clisp.org>
1854         sys_socket: Don't define socklen_t if it is already defined on mingw.
1855         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1856         <https://savannah.gnu.org/bugs/?57725>,
1857         by Rahul Das <bokul_4u@yahoo.com> in
1858         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1859         and by Eli Zaretskii <eliz@gnu.org> in
1860         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1861         * lib/sys_socket.in.h (socklen_t): Remove definition.
1863 2020-06-29  Bruno Haible  <bruno@clisp.org>
1865         alloca-opt: Fix warning on mingw.
1866         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1867         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1868         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1869         whether alloca is defined.
1871 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1873         getrandom: do not depend on ‘open’ on mingw
1874         Similarly for at-internal, getloadavg.  These modules do not call
1875         the ‘open’ function when they are compiled on mingw.  On mingw,
1876         this avoids having to compile open.c when building Emacs, which
1877         does its own thing with ‘open’.
1878         * modules/at-internal, modules/getloadavg, modules/getrandom:
1879         (Depends-on): Don’t depend on ‘open’ on mingw.
1880         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1881         * modules/getloadavg (Depends-on):
1882         Depend on intprops, open, stdbool, stdlib only if compiling
1883         getloadavg.c.
1885 2020-06-28  Bruno Haible  <bruno@clisp.org>
1887         doc: Add a note about sigprocmask vs. pthread_sigmask.
1888         * doc/posix-functions/sigprocmask.texi: Add note.
1890 2020-06-28  Bruno Haible  <bruno@clisp.org>
1892         getrandom: Fix compilation errors on older versions of mingw.
1893         Reported by Eli Zaretskii <eliz@gnu.org> in
1894         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1895         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1896         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1897         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1898         BCryptGenRandom ourselves.
1900 2020-06-28  Bruno Haible  <bruno@clisp.org>
1902         clean-temp: Fix wrong errno in error message.
1903         * lib/clean-temp.c (create_temp_dir): Save errno around
1904         unblock_fatal_signals call.
1906 2020-06-27  Bruno Haible  <bruno@clisp.org>
1908         fatal-signal: Make multithread-safe.
1909         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1911 2020-06-27  Bruno Haible  <bruno@clisp.org>
1913         clean-temp: Don't force deletion of temporary files on native Windows.
1914         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1915         argument.
1916         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1917         * NEWS: Mention the change.
1918         * lib/javacomp.c (write_temp_file): Update.
1920 2020-06-27  Bruno Haible  <bruno@clisp.org>
1922         fatal-signal: Make multithread-safe.
1923         * lib/fatal-signal.c: Include glthread/lock.h.
1924         (at_fatal_signal_lock): New variable.
1925         (at_fatal_signal): Use it.
1926         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1927         (block_fatal_signals, unblock_fatal_signals): Use them.
1928         * modules/fatal-signal (Depends-on): Add lock.
1930 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1932         getloadavg: don’t depend on fopen-gnu
1933         This is for Emacs, which does not need fopen-gnu for anything else,
1934         and which would need it only on a NetBSD platform where getloadavg
1935         does not work (does that even happen?).
1936         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1937         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1939         * tests/test-getloadavg.c (main): Fix typo.
1941 2020-06-27  Bruno Haible  <bruno@clisp.org>
1943         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1944         * modules/tempname (Link): New section.
1945         * modules/mkdtemp (Link): Likewise.
1946         * modules/clean-temp (Link): Likewise.
1947         * modules/mkstemp (Link): Likewise.
1948         * modules/stdlib-safer (Link): Likewise.
1949         * modules/mkstemps (Link): Likewise.
1950         * modules/mkostemp (Link): Likewise.
1951         * modules/mkostemps (Link): Likewise.
1952         * modules/tmpfile (Link): Likewise.
1953         * modules/tmpfile-safer (Link): Likewise.
1954         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1955         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1956         $(LIB_GETRANDOM).
1957         * NEWS: Mention the changes.
1959 2020-06-27  Bruno Haible  <bruno@clisp.org>
1961         fopen-gnu: Simplify code.
1962         * lib/fopen.c: Include <stdbool.h>.
1963         (rpl_fopen): Use a single variable open_flags instead of
1964         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1965         * modules/fopen (Depends-on): Add stdbool.
1967 2020-06-26  Bruno Haible  <bruno@clisp.org>
1969         canonicalize: Improve documentation.
1970         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
1971         return convention.
1973 2020-06-26  Bruno Haible  <bruno@clisp.org>
1975         xgetcwd: Improve documentation.
1976         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
1978 2020-06-26  Bruno Haible  <bruno@clisp.org>
1980         getcwd: Improve documentation.
1981         * lib/getcwd.c (__getcwd): Document the failure return convention.
1983 2020-06-26  Bruno Haible  <bruno@clisp.org>
1985         fchdir: Improve documentation.
1986         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
1987         convention.
1989 2020-06-26  Bruno Haible  <bruno@clisp.org>
1991         filenamecat-lgpl: Set errno upon failure.
1992         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
1993         return convention.
1994         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
1996 2020-06-26  Bruno Haible  <bruno@clisp.org>
1998         areadlink-with-size: Set errno upon failure.
1999         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2000         fails.
2001         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2003 2020-06-26  Bruno Haible  <bruno@clisp.org>
2005         copy-file: Shrink dependencies.
2006         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2007         qcopy-acl.
2009 2020-06-26  Bruno Haible  <bruno@clisp.org>
2011         doc: Mention declaration fixes implemented by some modules.
2012         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2013         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2014         declaration appear in <unistd.h>.
2015         * doc/posix-functions/dup.texi: Likewise.
2016         * doc/posix-functions/dup2.texi: Likewise.
2017         * doc/posix-functions/gethostname.texi: Likewise.
2018         * doc/posix-functions/isatty.texi: Likewise.
2019         * doc/posix-functions/lseek.texi: Likewise.
2020         * doc/posix-functions/unlink.texi: Likewise.
2021         * doc/posix-functions/read.texi: Mention the module 'read'.
2022         * doc/posix-functions/write.texi: Mention the effects of the module
2023         'write'.
2025 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2027         c-dtoastr, c-ldtoastr: new modules
2028         These modules provide the same functionality as the modules
2029         dtoastr and ldtoastr except for the formatting taking place in the
2030         C locale.
2031         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2032         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2033         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2034         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2035         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2036         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2037         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2038         modules/c-ldtoastr-tests: New files.
2039         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2040         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2042 2020-06-21  Bruno Haible  <bruno@clisp.org>
2044         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2045         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2047 2020-06-16  Bruno Haible  <bruno@clisp.org>
2049         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2050         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2052 2020-06-16  Bruno Haible  <bruno@clisp.org>
2054         thread, thrd: Avoid a compiler warning.
2055         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2057 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2059         windows-thread: Avoid a compiler warning.
2060         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2061         void.
2062         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2064 2020-06-15  Bruno Haible  <bruno@clisp.org>
2066         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2067         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2068         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2069         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2070         first.
2072 2020-06-06  Bruno Haible  <bruno@clisp.org>
2074         calloc-gnu tests: Avoid a test failure with clang.
2075         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
2076         'volatile', to defeat compiler optimizations.
2078 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2080         getloadavg: fix double-increment bug
2081         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
2082         Linux without glibc, Android, Cygwin.  This fixes a bug I
2083         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
2084         Problem and fix reported by Semen Verchenko in:
2085         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
2087         tempname: use getrandom, not getentropy
2088         This removes a dependency, as getentropy depends on getrandom.
2089         * lib/tempname.c: Include sys/random.h instead of unistd.h.
2090         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
2091         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
2093 2020-06-01  Bruno Haible  <bruno@clisp.org>
2095         doc: New chapter 'Multithreading'.
2096         * doc/multithread.texi: New file.
2097         * doc/gnulib.texi: Include it.
2099 2020-06-01  Bruno Haible  <bruno@clisp.org>
2101         doc: Move 'Running self-tests under valgrind' section.
2102         * doc/gnulib.texi (Build Infrastructure Modules): Include
2103         valgrind-tests.texi here...
2104         (Miscellaneous Notes): ... not here.
2106 2020-06-01  Bruno Haible  <bruno@clisp.org>
2108         doc: Move 'Visual Studio Compatibility' section.
2109         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2110         here...
2111         (Build Infrastructure Modules): ... not here.
2113 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2115         doc: improve randomness discussion
2116         Inspired by comments from Jeffrey Walton in:
2117         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2118         * doc/glibc-functions/getentropy.texi (getentropy):
2119         * doc/glibc-functions/getrandom.texi (getrandom):
2120         Improve discussion of problems with "random" data,
2121         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2123 2020-06-01  Bruno Haible  <bruno@clisp.org>
2125         doc: Fix Texinfo syntax error.
2126         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2128 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2130         doc: Change '.' to '@.' where appropriate.
2131         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2132         * doc/glibc-functions/fstatfs.texi: Likewise.
2133         * doc/glibc-functions/fts_children.texi: Likewise.
2134         * doc/glibc-functions/fts_read.texi: Likewise.
2135         * doc/glibc-functions/getdirentries.texi: Likewise.
2136         * doc/glibc-functions/mkostemp.texi: Likewise.
2137         * doc/glibc-functions/mkostemps.texi: Likewise.
2138         * doc/glibc-functions/mkstemps.texi: Likewise.
2139         * doc/glibc-functions/preadv.texi: Likewise.
2140         * doc/glibc-functions/pwritev.texi: Likewise.
2141         * doc/glibc-functions/sendfile.texi: Likewise.
2142         * doc/glibc-functions/statfs.texi: Likewise.
2143         * doc/gnulib-intro.texi: Likewise.
2144         * doc/gnulib-tool.texi: Likewise.
2145         * doc/intprops.texi: Likewise.
2146         * doc/lib-symbol-visibility.texi: Likewise.
2147         * doc/licenses-texi.texi: Likewise.
2148         * doc/pastposix-functions/bcmp.texi: Likewise.
2149         * doc/pastposix-functions/bcopy.texi: Likewise.
2150         * doc/pastposix-functions/bzero.texi: Likewise.
2151         * doc/pastposix-functions/ecvt.texi: Likewise.
2152         * doc/pastposix-functions/fcvt.texi: Likewise.
2153         * doc/pastposix-functions/ftime.texi: Likewise.
2154         * doc/pastposix-functions/gcvt.texi: Likewise.
2155         * doc/pastposix-functions/getwd.texi: Likewise.
2156         * doc/pastposix-functions/index.texi: Likewise.
2157         * doc/pastposix-functions/mktemp.texi: Likewise.
2158         * doc/pastposix-functions/rindex.texi: Likewise.
2159         * doc/pastposix-functions/wcswcs.texi: Likewise.
2160         * doc/posix-functions/aio_cancel.texi: Likewise.
2161         * doc/posix-functions/aio_error.texi: Likewise.
2162         * doc/posix-functions/aio_fsync.texi: Likewise.
2163         * doc/posix-functions/aio_read.texi: Likewise.
2164         * doc/posix-functions/aio_return.texi: Likewise.
2165         * doc/posix-functions/aio_suspend.texi: Likewise.
2166         * doc/posix-functions/aio_write.texi: Likewise.
2167         * doc/posix-functions/creat.texi: Likewise.
2168         * doc/posix-functions/ctime.texi: Likewise.
2169         * doc/posix-functions/daylight.texi: Likewise.
2170         * doc/posix-functions/fgetpos.texi: Likewise.
2171         * doc/posix-functions/fopen.texi: Likewise.
2172         * doc/posix-functions/freopen.texi: Likewise.
2173         * doc/posix-functions/fseeko.texi: Likewise.
2174         * doc/posix-functions/fsetpos.texi: Likewise.
2175         * doc/posix-functions/fstatat.texi: Likewise.
2176         * doc/posix-functions/fstatvfs.texi: Likewise.
2177         * doc/posix-functions/ftello.texi: Likewise.
2178         * doc/posix-functions/ftruncate.texi: Likewise.
2179         * doc/posix-functions/getrlimit.texi: Likewise.
2180         * doc/posix-functions/lio_listio.texi: Likewise.
2181         * doc/posix-functions/localtime.texi: Likewise.
2182         * doc/posix-functions/lseek.texi: Likewise.
2183         * doc/posix-functions/mkstemp.texi: Likewise.
2184         * doc/posix-functions/mktime.texi: Likewise.
2185         * doc/posix-functions/open.texi: Likewise.
2186         * doc/posix-functions/openat.texi: Likewise.
2187         * doc/posix-functions/opendir.texi: Likewise.
2188         * doc/posix-functions/pread.texi: Likewise.
2189         * doc/posix-functions/pwrite.texi: Likewise.
2190         * doc/posix-functions/readdir.texi: Likewise.
2191         * doc/posix-functions/readdir_r.texi: Likewise.
2192         * doc/posix-functions/scandir.texi: Likewise.
2193         * doc/posix-functions/seekdir.texi: Likewise.
2194         * doc/posix-functions/setrlimit.texi: Likewise.
2195         * doc/posix-functions/statvfs.texi: Likewise.
2196         * doc/posix-functions/strftime.texi: Likewise.
2197         * doc/posix-functions/telldir.texi: Likewise.
2198         * doc/posix-functions/timezone.texi: Likewise.
2199         * doc/posix-functions/tmpfile.texi: Likewise.
2200         * doc/posix-functions/truncate.texi: Likewise.
2201         * doc/posix-functions/tzname.texi: Likewise.
2202         * doc/posix-functions/wcsftime.texi: Likewise.
2203         * doc/windows-sockets.texi: Likewise.
2205 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2207         getrandom-tests: do not assume GRND_RANDOM yields short read
2208         * tests/test-getrandom.c (main): Omit assertion that
2209         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2210         when b’s size is 100000.  This assertion fails with Linux kernel
2211         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2212         The separate blocking pool is going away in the Linux kernel, and
2213         they’ve added a flag GRND_INSECURE instead; see:
2214         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2215         The assertion was iffy anyway; what’s to prevent a kernel from
2216         lazily filling a large buffer with random bytes?
2218         read-file-test: pacify --enable-gcc-warnings
2219         * tests/test-read-file.c (test_read_file): Now static.
2221         tempname: merge from glibc and coreutils
2222         Also, merge in Gnulib’s more-recent methods of making it easier
2223         to share between Gnulib and glibc, and fix a few randomness
2224         glitches.
2225         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2226         (__set_errno): Remove; libc-config.h does that for us.
2227         Do not include <sys/time.h>.
2228         (__secure_getenv) [_LIBC]: New macro.
2229         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2230         (RANDOM_BITS): Rewrite.
2231         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2232         (random_value): New typedef.
2233         (try_file, try_dir, try_nocreate): Move up.
2234         (gen_tempname_len, try_tempname_len): New functions.
2235         (gen_tempname_len): Use a constant array rather than a switch.
2236         (try_tempname_len): Don’t assume string length fits in int.
2237         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2238         has enough entropy (it’s a bit short).
2239         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2240         (__try_tempname): Rewrite in terms of try_tempname_len.
2241         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2242         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2243         Add getentropy, libc-config.
2245 2020-05-31  Bruno Haible  <bruno@clisp.org>
2247         getrandom, getentropy: Mention the crypto/gc-random module.
2248         Suggested by Simon Josefsson in
2249         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2250         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2251         crypto/gc-random module.
2252         * doc/glibc-functions/getentropy.texi: Likewise.
2254 2020-05-31  Bruno Haible  <bruno@clisp.org>
2256         getentropy: Enhance tests.
2257         * tests/test-getentropy.c (main): Add one more test.
2258         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2260 2020-05-31  Bruno Haible  <bruno@clisp.org>
2262         getentropy: Work around a macOS and Solaris problem.
2263         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2264         'getentropy' module.
2265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2266         UNISTD_H_HAVE_SYS_RANDOM_H.
2267         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2268         UNISTD_H_HAVE_SYS_RANDOM_H.
2269         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2270         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2271         problem. List more platforms.
2273 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2275         fnmatch: merge from glibc
2276         Also, merge in Gnulib’s more-recent methods of making it easier
2277         to share between Gnulib and glibc.
2278         * lib/fnmatch.c: Reorder includes to match glibc better.
2279         Include libc-config.h instead of config.h.
2280         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2281         Do not include "../locale/elem-hash.h" if _LIBC.
2282         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2283         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2284         Include intprops.h, since glibc has it now.
2285         (SIZE_MAX): Remove; use (size_t) -1 instead.
2286         Omit the "Comment out all this code" ifdef, since Gnulib
2287         has never really needed it.
2288         (STREQ): Remove; no longer used.
2289         (__libc_use_alloca, alloca, alloca_account): Define as
2290         needed if !_LIBC.
2291         (ISWCTYPE): Remove; all uses replaced by iswctype.
2292         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2293         (internal_function): Remove.  All uses removed.
2294         (STRUCT): New macro.
2295         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2296         (WMEMCMP): New macro.
2297         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2298         and <locale/weightwc.h>.
2299         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2300         __builtin_expect.  Check for integer overflow more
2301         systematically.  Account for alloca storage better when
2302         recursive.  Use strnlen instead of strlen for efficiency.
2303         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2304         (struct STRUCT): New type.
2305         (FCT, EXT): New ENDS and ALLOCA_USED args.
2306         All callers changed.
2307         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2308         Simplify by assuming WIDE_CHAR_SUPPORT.
2309         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2310         Cast cold to UCHAR to avoid signedness warning.
2311         (END): Check for invalid pattern.
2312         (EXT): Improve alloca/malloc checking (taken from glibc),
2313         and improve it some more by using intprops.h and checking
2314         for integer overflow and using bool for booleans.
2315         * lib/libc-config.h (compat_symbol): New macro.
2316         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2317         acceptable to non-GCC when a trailing semicolon is added.
2318         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2319         libc-config, strnlen.  Remove alloca.
2321 2020-05-31  Bruno Haible  <bruno@clisp.org>
2323         getrandom: Doc and test tweaks.
2324         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2325         it sets errno when failing.
2326         * tests/test-getrandom.c (main): Disable the high-quality check on those
2327         platforms on which it fails.
2328         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2329         Cygwin to the list of platforms that don't have the function. Add a note
2330         about the quality of the result.
2331         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2332         declaration; this is fixed by module 'getrandom'.
2334 2020-05-31  Bruno Haible  <bruno@clisp.org>
2336         getrandom: Add support for native Windows.
2337         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2338         <wincrypt.h>.
2339         (CRYPT_VERIFY_CONTEXT): New macro.
2340         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2341         'A'.
2342         (GetProcAddress): New macro.
2343         (BCryptGenRandomFuncType): New type.
2344         (BCryptGenRandomFunc, initialized): New variables.
2345         (initialize): New function.
2346         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2347         <wincrypt.h> API as fallback.
2348         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2349         * modules/getrandom (Link): New section.
2350         * modules/getentropy (Link): Likewise.
2351         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2352         $(LIB_GETRANDOM).
2353         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2354         $(LIB_GETRANDOM).
2355         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2356         against $(LIB_GETRANDOM).
2357         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2358         support.
2360 2020-05-31  Bruno Haible  <bruno@clisp.org>
2362         getrandom: Simplify the determination of the random number devices.
2363         Suggested by Paul Eggert in
2364         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2365         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2366         macros.
2367         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2369 2020-05-31  Bruno Haible  <bruno@clisp.org>
2371         crypto/gc-random: Fix list of crypto devices for Solaris.
2372         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2374 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2376         list: fix GCC warnings
2377         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2378         (gl_tree_next_node, gl_tree_node_nx_set_value)
2379         (gl_tree_previous_node, gl_tree_next_node):
2380         Mark unused arguments.
2381         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2382         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2383         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2385         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2386         the same variable name in nested scopes.
2388 2020-05-31  Bruno Haible  <bruno@clisp.org>
2390         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2391         Reported by Akim Demaille in
2392         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2393         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2394         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2395         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2396         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2397         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2399 2020-05-30  Bruno Haible  <bruno@clisp.org>
2401         wmemchr: Relicense under LGPLv2+.
2402         * modules/wmemchr (License): Set to LGPLv2+.
2404 2020-05-30  Bruno Haible  <bruno@clisp.org>
2406         wmempcpy: New module.
2407         Reported by Paul Eggert in
2408         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2409         * lib/wchar.in.h (wmempcpy): New declaration.
2410         * lib/wmempcpy.c: New file.
2411         * m4/wmempcpy.m4: New file.
2412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2414         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2415         HAVE_WMEMPCPY.
2416         * modules/wmempcpy: New file.
2417         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2418         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2419         * modules/mempcpy (Description): Fix typo.
2421 2020-05-30  Bruno Haible  <bruno@clisp.org>
2423         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2424         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2426 2020-05-30  Bruno Haible  <bruno@clisp.org>
2428         sys_random: Work around macOS bug.
2429         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2430         <stdlib.h> before <sys/random.h>.
2431         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2432         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2433         first.
2434         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2436 2020-05-30  Bruno Haible  <bruno@clisp.org>
2438         getrandom: Override incompatible system function on Solaris 11.
2439         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2440         * lib/getrandom.c (getrandom): When the system has getrandom, just
2441         invoke it.
2442         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2443         system's getrandom function's prototype is not the expected one.
2444         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2445         REPLACE_GETRANDOM.
2446         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2447         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2448         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2449         EAGAIN.
2450         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2451         Solaris problem.
2453 2020-05-30  Bruno Haible  <bruno@clisp.org>
2455         sys_random: Add C++ tests.
2456         * tests/test-sys_random-c++.cc: New file.
2457         * modules/sys_random-c++-tests: New file.
2458         * modules/sys_random-tests (Depends-on): Depend on it.
2460         sys_random: Add tests.
2461         * tests/test-sys_random.c: New file.
2462         * modules/sys_random-tests: New file.
2464         sys_random: New module.
2465         * lib/sys_random.in.h: Use the common idioms for overridable header
2466         files.
2467         * m4/sys_random_h.m4: New file.
2468         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2469         * modules/sys_random: New file.
2470         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2471         (Depends-on): Add sys_random.
2472         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2473         gl_UNISTD_MODULE_INDICATOR.
2474         (Makefile.am): Don't generate sys/random.h here.
2475         * doc/glibc-headers/sys_random.texi: New file.
2476         * doc/gnulib.texi: Include it.
2478 2020-05-30  Bruno Haible  <bruno@clisp.org>
2480         unistd: Remove conflicting declaration of getrandom().
2481         * lib/unistd.in.h (getrandom): Remove declaration.
2482         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2483         declared.
2484         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2485         HAVE_GETRANDOM.
2486         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2487         HAVE_GETRANDOM.
2489 2020-05-30  Bruno Haible  <bruno@clisp.org>
2491         getrandom: Add tests.
2492         * tests/test-getrandom.c: New file.
2493         * modules/getrandom-tests: New file.
2495 2020-05-30  Bruno Haible  <bruno@clisp.org>
2497         crypto/gc-random: Fix link error on MSVC.
2498         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2499         * modules/crypto/gc-random (Link): New section.
2500         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2501         $(LIB_GC_RANDOM).
2503 2020-05-30  Bruno Haible  <bruno@clisp.org>
2505         Don't assume that UNICODE is not defined.
2506         Many Windows API functions are defined differently (redirecting to a
2507         function with suffix 'W') if the application defines the macro UNICODE
2508         than by default (redirecting to a function with suffix 'A').
2509         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2510         variant with suffix 'A'.
2511         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2512         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2513         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2514         * lib/getlogin.c (GetUserName): Likewise.
2515         * lib/getlogin_r.c (GetUserName): Likewise.
2516         * lib/gettimeofday.c (LoadLibrary): Likewise.
2517         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2518         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2519         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2520         * lib/mountlist.c (GetDriveType): Likewise.
2521         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2522         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2523         Likewise.
2524         * lib/physmem.c (GetModuleHandle): Likewise.
2525         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2526         PeekMessage, DispatchMessage): Likewise.
2527         * lib/progreloc.c (GetModuleFileName): Likewise.
2528         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2529         * lib/read.c (GetNamedPipeHandleState): Likewise.
2530         * lib/readdir.c (FindNextFile): Likewise.
2531         * lib/relocatable.c (GetModuleFileName): Likewise.
2532         * lib/rename.c (MoveFileEx): Likewise.
2533         * lib/rewinddir.c (FindFirstFile): Likewise.
2534         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2535         PeekMessage, DispatchMessage): Likewise.
2536         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2537         * lib/socket.c (WSASocket): Likewise.
2538         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2539         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2540         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2541         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2542         * lib/tmpdir.c (GetTempPath): Likewise.
2543         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2544         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2545         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2546         * lib/windows-cond.c (CreateEvent): Likewise.
2547         * lib/windows-rwlock.c (CreateEvent): Likewise.
2548         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2549         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2550         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2551         * lib/write.c (GetNamedPipeHandleState): Likewise.
2553 2020-05-30  Bruno Haible  <bruno@clisp.org>
2555         physmem: Fix compilation errors on MSVC.
2556         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2557         * modules/physmem (Depends-on): Add unistd.
2559 2020-05-29  Bruno Haible  <bruno@clisp.org>
2561         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2562         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2563         LDADD a second time, after the second occurrence of libtests.a.
2564         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2566 2020-05-29  Bruno Haible  <bruno@clisp.org>
2568         fnmatch: Rely on more gnulib modules.
2569         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2570         wmempcpy, mempcpy.
2571         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2572         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2573         HAVE_MEMPCPY are all 1.
2574         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2575         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2577 2020-05-29  Bruno Haible  <bruno@clisp.org>
2579         Avoid dynamic lookup of Windows API functions when possible.
2580         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2581         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2582         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2583         (use_win32_p): Define differently.
2584         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2585         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2586         for Windows XP or higher.
2588 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2590         read-file: disable buffering if RF_SENSITIVE is set
2591         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2592         Suggested by Glenn Strauss.
2593         (fread_file): Suggest calling setvbuf before calling this
2594         function.  Suggested by Bruno Haible.
2596 2020-05-29  Bruno Haible  <bruno@clisp.org>
2598         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2599         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2600         program.
2601         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2602         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2603         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2604         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2606 2020-05-29  Bruno Haible  <bruno@clisp.org>
2608         Fix compilation error on native Windows (regression from 2020-05-28).
2609         Reported by Daiki Ueno.
2610         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2611         macro when not using dynamic loading.
2612         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2613         QueryFullProcessImageNameFunc): Likewise.
2614         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2615         GetFinalPathNameByHandleFunc): Likewise.
2617 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2619         fopen-gnu-tests: fix "\x" escape usage
2620         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2622 2020-05-28  Bruno Haible  <bruno@clisp.org>
2624         Avoid dynamic loading of Windows API functions when possible.
2625         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2627         * lib/gettimeofday.c (GetProcAddress,
2628         GetSystemTimePreciseAsFileTimeFuncType,
2629         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2630         define in a build for Windows 8 or higher.
2631         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2632         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2633         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2634         in a build for Windows Vista or higher.
2635         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2636         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2637         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2639 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2641         explicit_bzero-tests: improve -Wmissing-declarations pacification
2642         * tests/test-explicit_bzero.c: Now noinline.
2643         Suggested by Bruno Haible in:
2644         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2646 2020-05-28  Bruno Haible  <bruno@clisp.org>
2648         Fix build errors due to read-file changes (regression from 2020-05-27).
2649         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2650         invocation.
2651         * tests/test-sameacls.c (main): Likewise.
2652         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2653         read_binary_file.
2654         * tests/test-pipe-filter-ii1.c (main): Likewise.
2656 2020-05-28  Bruno Haible  <bruno@clisp.org>
2658         fts: Make more robust in multithreaded applications.
2659         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2660         * modules/fts (Depends-on): Add 'open'.
2662 2020-05-28  Bruno Haible  <bruno@clisp.org>
2664         relocatable-prog: Make more robust in multithreaded applications.
2665         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2666         relocatable-prog-wrapper.
2667         (find_executable): Pass an O_CLOEXEC flag to open().
2668         * modules/relocatable-prog (Depends-on): Add 'open'.
2670 2020-05-28  Bruno Haible  <bruno@clisp.org>
2672         getloadavg: Make more robust in multithreaded applications.
2673         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2674         Simplify use of O_CLOEXEC.
2675         * modules/getloadavg (Depends-on): Add 'open'.
2677 2020-05-28  Bruno Haible  <bruno@clisp.org>
2679         vma-iter: Make more robust in multithreaded applications.
2680         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2681         open().
2682         * modules/vma-iter (Depends-on): Add 'open'.
2684 2020-05-28  Bruno Haible  <bruno@clisp.org>
2686         truncate: Make more robust in multithreaded applications.
2687         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2689 2020-05-28  Bruno Haible  <bruno@clisp.org>
2691         pagealign_alloc: Make more robust in multithreaded applications.
2692         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2693         open().
2694         * modules/pagealign_alloc (Depends-on): Add 'open'.
2696 2020-05-28  Bruno Haible  <bruno@clisp.org>
2698         openat: Make more robust in multithreaded applications.
2699         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2701 2020-05-28  Bruno Haible  <bruno@clisp.org>
2703         at-internal: Make more robust in multithreaded applications.
2704         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2705         open().
2707 2020-05-28  Bruno Haible  <bruno@clisp.org>
2709         mountlist: Make more robust in multithreaded applications.
2710         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2711         open().
2712         * modules/mountlist (Depends-on): Add 'open'.
2714 2020-05-28  Bruno Haible  <bruno@clisp.org>
2716         login_tty: Make more robust in multithreaded applications.
2717         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2718         * modules/login_tty (Depends-on): Add 'open'.
2720 2020-05-28  Bruno Haible  <bruno@clisp.org>
2722         javacomp: Make more robust in multithreaded applications.
2723         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2724         open().
2725         * modules/javacomp (Depends-on): Add 'open'.
2727 2020-05-28  Bruno Haible  <bruno@clisp.org>
2729         getprogname: Make more robust in multithreaded applications.
2730         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2731         * modules/getprogname (Depends-on): Add 'open'.
2733 2020-05-28  Bruno Haible  <bruno@clisp.org>
2735         get_progname_of: Make more robust in multithreaded applications.
2736         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2737         open().
2738         * modules/get_progname_of (Depends-on): Add 'open'.
2740 2020-05-28  Bruno Haible  <bruno@clisp.org>
2742         get_ppid_of: Make more robust in multithreaded applications.
2743         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2744         * modules/get_ppid_of (Depends-on): Add 'open'.
2746 2020-05-28  Bruno Haible  <bruno@clisp.org>
2748         get-rusage-as: Make more robust in multithreaded applications.
2749         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2750         flag to open().
2751         * modules/get-rusage-as (Depends-on): Add 'open'.
2753 2020-05-28  Bruno Haible  <bruno@clisp.org>
2755         crypto/gc: Make more robust in multithreaded applications.
2756         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2757         * modules/crypto/gc (Depends-on): Add 'open'.
2759 2020-05-28  Bruno Haible  <bruno@clisp.org>
2761         copy-file: Make more robust in multithreaded applications.
2762         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2763         open().
2765 2020-05-28  Bruno Haible  <bruno@clisp.org>
2767         chown: Make more robust in multithreaded applications.
2768         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2770 2020-05-28  Bruno Haible  <bruno@clisp.org>
2772         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2773         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2775 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2777         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2778         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2779         specified on Windows.
2780         * tests/test-fopen-gnu.c (DATA): New define.
2781         (main): Add test for reading binary files with an 'e' flag.
2783 2020-05-27  Bruno Haible  <bruno@clisp.org>
2785         Don't assume that UNICODE is not defined.
2786         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2787         differently if the application defines the macro UNICODE.
2788         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2789         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2790         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2791         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2792         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2794 2020-05-27  Bruno Haible  <bruno@clisp.org>
2796         Improve pattern for defining _WIN32_WINNT.
2797         Newer versions of the Windows API may not only add, but also remove API
2798         functions. Therefore, when the user is e.g. building for Windows 10, we
2799         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2800         use of APIs that were present in Windows 8 but removed in Windows 10.
2801         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2802         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2803         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2804         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2805         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2807 2020-05-27  Bruno Haible  <bruno@clisp.org>
2809         javacomp: Make more robust in multithreaded applications.
2810         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2811         * modules/javacomp (Depends-on): Add fopen-gnu.
2813 2020-05-27  Bruno Haible  <bruno@clisp.org>
2815         mountlist: Make more robust in multithreaded applications.
2816         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2817         to fopen.
2818         * modules/mountlist (Depends-on): Add fopen-gnu.
2820 2020-05-27  Bruno Haible  <bruno@clisp.org>
2822         sethostname: Make more robust in multithreaded applications.
2823         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2824         * modules/sethostname (Depends-on): Add fopen-gnu.
2826 2020-05-27  Bruno Haible  <bruno@clisp.org>
2828         readutmp: Make more robust in multithreaded applications.
2829         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2830         * modules/readutmp (Depends-on): Add fopen-gnu.
2832 2020-05-27  Bruno Haible  <bruno@clisp.org>
2834         getpass: Make more robust in multithreaded applications.
2835         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2836         * modules/getpass (Depends-on): Add fopen-gnu.
2838 2020-05-27  Bruno Haible  <bruno@clisp.org>
2840         getloadavg: Make more robust in multithreaded applications.
2841         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2842         * modules/getloadavg (Depends-on): Add fopen-gnu.
2844 2020-05-27  Bruno Haible  <bruno@clisp.org>
2846         exclude: Make more robust in multithreaded applications.
2847         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2848         * modules/exclude (Depends-on): Add fopen-gnu.
2850 2020-05-27  Bruno Haible  <bruno@clisp.org>
2852         bitset: Make more robust in multithreaded applications.
2853         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2854         'e' flag to fopen.
2855         * modules/bitset (Depends-on): Add fopen-gnu.
2857 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2859         read-file: add RF_SENSITIVE flag
2860         * lib/read-file.h (RF_SENSITIVE): New define.
2861         * lib/read-file.c (fread_file, read_file): Take into account of
2862         RF_SENSITIVE flag.
2863         * modules/read-file (Depends-on): Add explicit_bzero.
2864         This adds an alternative behavior of those functions to explicitly
2865         clear the internal memory block when it becomes unused.  This is
2866         useful for reading sensitive information from a file.
2868 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2870         read-file: add flags to modify reading behavior
2871         * lib/read-file.h (RF_BINARY): New define.
2872         (fread_file, read_file): Take FLAGS argument.
2873         (read_binary_file): Remove.
2874         * lib/read-file.c (internal_read_file): Merge into ...
2875         (read_file): ... here.
2876         * modules/read-file-tests (Files): Add "tests/macros.h".
2877         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2878         * NEWS: Mention this change.
2880 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2882         doc/gnulib-intro.texi: add missing "to" in sentence
2883         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2884         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2885         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2887 2020-05-26  Bruno Haible  <bruno@clisp.org>
2889         count-one-bits: Fix MSVC specific code.
2890         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2891         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2892         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2893         using GCC.
2894         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2895         (__popcnt64): In 32-bit mode, define as an inline function.
2896         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2898 2020-05-26  Bruno Haible  <bruno@clisp.org>
2900         argz: Avoid name clashes through argz.h.
2901         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2902         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2903         * lib/argz.h: Don't use __ prefixed identifiers.
2904         (const): Remove definition.
2905         (argz_next): Remove inline definitions.
2907 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2909         read-file: make use of fopen-gnu
2910         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2911         (read_binary_file): Likewise.
2912         * modules/read-file (Depends-on): Add fopen-gnu.
2914 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2916         getentropy, getrandom: new modules
2917         * MODULES.html.sh (func_all_modules):
2918         * lib/unistd.in.h (getentropy, getrandom):
2919         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2920         * modules/unistd (unistd.h):
2921         Add support for getentropy, getrandom.
2922         * doc/glibc-functions/getentropy.texi (getentropy):
2923         * doc/glibc-functions/getrandom.texi (getrandom):
2924         These are now fixed on some platforms.
2925         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2926         * m4/getentropy.m4, m4/getrandom.m4:
2927         * modules/getentropy, modules/getentropy-tests:
2928         * modules/getrandom, modules/getrandom-tests:
2929         * tests/test-getentropy.c, tests/test-getrandom.c:
2930         New files.
2932 2020-05-25  Bruno Haible  <bruno@clisp.org>
2934         Add missing C99 dependencies.
2935         Reported by Paul Smith <psmith@gnu.org> in
2936         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2937         * modules/assert (Depends-on): Add c99.
2938         * modules/filenamecat-lgpl (Depends-on): Likewise.
2939         * modules/libc-config (Depends-on): Likewise.
2940         * modules/mktime (Depends-on): Likewise.
2941         * modules/random_r (Depends-on): Likewise.
2942         * modules/regex (Depends-on): Likewise.
2943         * modules/scratch_buffer (Depends-on): Likewise.
2944         * modules/timespec-add (Depends-on): Likewise.
2945         * modules/timespec-sub (Depends-on): Likewise.
2946         * modules/verify (Depends-on): Likewise.
2948 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2950         explicit_bzero-tests: pacify -Wmissing-declarations
2951         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2952         Now static.
2954 2020-05-24  Bruno Haible  <bruno@clisp.org>
2956         fopen-gnu: Add tests.
2957         * tests/test-fopen-gnu.c: New file.
2958         * modules/fopen-gnu-tests: New file.
2960         fopen-gnu: New module.
2961         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2962         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2963         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2964         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2965         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2966         * modules/fopen-gnu: New file.
2967         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
2969 2020-05-24  Bruno Haible  <bruno@clisp.org>
2971         open, openat: Really support O_CLOEXEC.
2972         * lib/open.c (open): When have_cloexec is still undecided, do pass a
2973         O_CLOEXEC flag to orig_open.
2974         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
2975         pass a O_CLOEXEC flag to orig_openat.
2976         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
2977         * modules/open-tests (Depends-on): Add fcntl.
2978         * modules/openat-tests (Depends-on): Likewise.
2979         * modules/fcntl-safer-tests (Depends-on): Likewise.
2981 2020-05-24  Bruno Haible  <bruno@clisp.org>
2983         fopen: Fix the trailing slash workaround.
2984         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
2985         write access. Pass the right flags to open().
2986         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
2988 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2990         assure: new macro ‘affirm’
2991         * lib/assure.h: Include verify.h.
2992         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
2993         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
2994         and commentary by Bruno Haible in:
2995         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
2996         * modules/assure (Depends-on:): Add verify.
2998 2020-05-23  Bruno Haible  <bruno@clisp.org>
3000         calloc-gnu: Make test work in non-flat address spaces.
3001         Uses code by Paul Eggert.
3002         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3003         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3005 2020-05-23  Bruno Haible  <bruno@clisp.org>
3007         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3008         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3009         AC_RUN_IFELSE invocations.
3011 2020-05-23  Bruno Haible  <bruno@clisp.org>
3013         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3014         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3015         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3016         don't have it.
3017         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3018         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3019         don't have it.
3020         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3021         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3022         it.
3023         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3024         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3025         it.
3026         * lib/math.in.h (__has_builtin): New macro.
3027         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3028         it.
3029         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3030         it.
3031         (isnan): Don't use the builtins on clang versions that don't have
3032         __builtin_isnanf and __builtin_isnanl.
3034 2020-05-23  Bruno Haible  <bruno@clisp.org>
3036         calloc-gnu: Avoid wrong configure results with clang.
3037         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3038         'volatile', to defeat compiler optimizations.
3040 2020-05-23  Bruno Haible  <bruno@clisp.org>
3042         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3043         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3044         'long double' values by reference, with values taken from a statically
3045         allocated array.
3047 2020-05-23  Bruno Haible  <bruno@clisp.org>
3049         findprog-in: Ignore directories.
3050         Reported by Frederick Eaton via Dmitry Goncharov in
3051         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3052         * lib/findprog-in.c (find_in_given_path): When the file found is a
3053         directory, set errno to EACCES and, during a PATH search, continue
3054         searching.
3055         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3057 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3059         verify: document ‘assume’ better
3060         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3062 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3064         gendocs: Clarify licenses for templates.
3065         * doc/gendocs_template: Add a GNU All-Permissive license notice
3066         and bump Parent-Version.
3067         * doc/gendocs_template_min: Add a GNU All-Permissive license
3068         notice and copy the explanatory comment about the license notice
3069         at the bottom from gendocs_template.
3071 2020-05-21  Bruno Haible  <bruno@clisp.org>
3073         group-member: Relicense under LGPLv2+.
3074         Jim Meyering's approval is in
3075         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
3076         Paul Eggert's approval is in
3077         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
3078         Eric Blake's approval is in
3079         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
3080         * modules/group-member (License): Change to LGPLv2+.
3082 2020-05-21  Bruno Haible  <bruno@clisp.org>
3084         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
3085         Reported by Tim Rühsen in
3086         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3087         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
3089 2020-05-21  Bruno Haible  <bruno@clisp.org>
3091         regex: Avoid wrong configure results with "clang -fsanitize=leak".
3092         Reported by Tim Rühsen in
3093         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3094         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
3095         before returning with status 0.
3097 2020-05-21  Bruno Haible  <bruno@clisp.org>
3099         glob: Avoid wrong configure results with "clang -fsanitize=leak".
3100         Reported by Tim Rühsen in
3101         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3102         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
3104 2020-05-21  Bruno Haible  <bruno@clisp.org>
3106         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
3107         Reported by Tim Rühsen in
3108         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3109         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3110         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3111         respectively.
3113 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3115         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3116         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3118 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3120         ftoastr: fix ifndef typo
3121         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3123 2020-05-19  Bruno Haible  <bruno@clisp.org>
3125         havelib: Tweak documentation.
3126         * doc/havelib.texi (Searching for Libraries): Fix typo.
3128 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3130         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3131         This was needed earlier because modules had to import the main script,
3132         but that is no longer true.  Rename the script so that it is
3133         consistent with all other scripts in gnulib and uses hyphens.
3134         * build-aux/vcs_to_changelog.py: Rename to...
3135         * build-aux/vcs-to-changelog.py: ... this.
3136         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3137         * modules/vcs-to-changelog: Likewise.
3139 2020-05-17  Bruno Haible  <bruno@clisp.org>
3141         Clarify intended usage of the license file modules.
3142         Reported by Asher Gordon <AsDaGo@posteo.net> in
3143         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3144         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3145         GNU AGPL. Explain the intended usage of the modules.
3146         * modules/fdl (Notice): Discourage use as a module.
3147         * modules/fdl-1.3 (Notice): Likewise.
3149 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3151         hash: add hash_xinsert
3152         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3154 2020-05-16  Bruno Haible  <bruno@clisp.org>
3156         findprog-lgpl: Fix link error (existing since 2008-09-02).
3157         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3158         findprog-lgpl.c, not findprog.c.
3159         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3160         XNMALLOC.
3162 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3164         c-stack: pacify -Wunused-result when DEBUG
3165         Problem reported by Marc Nieper-Wißkirchen in:
3166         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3167         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3168         Explicitly ignore write failures.
3170 2020-05-13  Jim Meyering  <meyering@fb.com>
3172         announce-gen: improve a comment
3173         * build-aux/announce-gen: Improve comment.
3175 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3177         xalloc: pacify -Wanalyzer-possible-null-argument
3178         Problem reported for GCC 10.1.0 by Bruno Haible in:
3179         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3180         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3181         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3182         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3184 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3186         careadlinkat: fix GCC 10 workaround
3187         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3188         Massage the code so that it’s closer to what it was before
3189         the GCC 10.1.0 workaround was introduced.  This fixes
3190         a loop when !buffer and the bug workaround is in effect.
3191         Remove unnecessary casts.  Defend in a different way
3192         against (buffer && !buffer_size), by adding at least 1
3193         to buf_size each time through the loop.
3195 2020-05-10  Bruno Haible  <bruno@clisp.org>
3197         doc: Mark HP-UX as unsupported.
3198         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3200 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3202         careadlinkat: limit GCC workaround
3203         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3204         10.1.0 and later, since the workaround is pretty bad and the GCC
3205         bug should get fixed.
3207 2020-05-10  Bruno Haible  <bruno@clisp.org>
3209         havelib: Enhance documentation.
3210         * doc/havelib.texi (Searching for Libraries): Mention the bad
3211         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3213 2020-05-10  Bruno Haible  <bruno@clisp.org>
3215         attribute: Clarify list of attributes.
3216         * lib/attribute.h: Reorder the list of attributes, and group them by
3217         purpose.
3219 2020-05-10  Bruno Haible  <bruno@clisp.org>
3221         string: Fix compilation error in C++ mode.
3222         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3223         _GL_WARN_ON_USE.
3224         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3225         instead of _GL_WARN_ON_USE.
3227 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3229         announce-gen: add support for dist-lzip
3230         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3232 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3234         manywarnings: port to GCC 10.1
3235         * build-aux/gcc-warning.spec:
3236         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3237         Add GCC 10.1.0 warnings.
3239         careadlinkat: pacify -Wreturn-local-addr
3240         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3241         Pacify gcc 10’s -Wreturn-local-addr option.
3242         Simplify some of the later code.
3244 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3246         attribute: remove ATTRIBUTE_DEPRECATED
3247         * lib/attribute.h: Improve recently-added comments, mostly
3248         by shortening them (use active voice, etc.).
3249         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3250         Problem reported by Bruno Haible in:
3251         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3253 2020-05-09  Bruno Haible  <bruno@clisp.org>
3255         attribute: Add comments.
3256         * lib/attribute.h: Document each macro.
3258 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3260         bitset: use the attribute module
3261         * modules/bitset: Depend on 'attribute'.
3262         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3263         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3264         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3265         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3267 2020-05-09  Bruno Haible  <bruno@clisp.org>
3269         c-stack: Fix warning when DEBUG is enabled.
3270         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3271         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3272         * lib/c-stack.c: Include <stdio.h>.
3274 2020-05-09  Bruno Haible  <bruno@clisp.org>
3276         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3277         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3278         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3279         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3280         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3281         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3282         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3283         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3284         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3285         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3286         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3287         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3288         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3290 2020-05-09  Bruno Haible  <bruno@clisp.org>
3292         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3293         Reported by Akim Demaille in
3294         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3295         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3296         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3297         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3299 2020-05-09  Bruno Haible  <bruno@clisp.org>
3301         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3302         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3303         that usually comes from m4/gnulib-common.m4.
3304         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3306 2020-05-09  Bruno Haible  <bruno@clisp.org>
3308         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3309         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3310         that usually comes from m4/gnulib-common.m4.
3311         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3312         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3313         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3315 2020-05-09  Bruno Haible  <bruno@clisp.org>
3317         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3318         * lib/uchar.in.h (char16_t): Define as macro if
3319         GNULIB_OVERRIDES_CHAR16_T.
3320         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3321         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3322         (gl_UCHAR_H): Invoke them.
3323         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3324         GNULIB_OVERRIDES_CHAR32_T.
3325         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3326         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3327         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3328         GNULIB_OVERRIDES_CHAR32_T.
3330 2020-05-09  Bruno Haible  <bruno@clisp.org>
3332         Macro tweaks.
3333         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3334         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3336 2020-05-08  Bruno Haible  <bruno@clisp.org>
3338         c32rtomb: Avoid compilation failure on Haiku.
3339         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3340         inline definitions.
3341         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3343 2020-05-08  Bruno Haible  <bruno@clisp.org>
3345         mbrtoc32: Avoid compilation failure on Haiku.
3346         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3347         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3348         AC_CHECK_FUNCS_ONCE.
3349         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3351 2020-05-08  Bruno Haible  <bruno@clisp.org>
3353         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3354         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3356 2020-05-08  Bruno Haible  <bruno@clisp.org>
3358         list: Update documentation.
3359         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3360         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3361         * doc/containers.texi (Container data types): Document the new list
3362         operations and their complexity.
3364 2020-05-08  Bruno Haible  <bruno@clisp.org>
3366         ignore-value tests: Use module 'attribute'.
3367         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3368         * tests/test-ignore-value.c: Include attribute.h.
3369         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3370         * modules/ignore-value-tests (Depends-on): Add attribute.
3372 2020-05-08  Bruno Haible  <bruno@clisp.org>
3374         uniname/uniname: Use module 'attribute'.
3375         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3376         * lib/uniname/uninames.h: Regenerated.
3377         * lib/uniname/uniname.c: Include attribute.h.
3378         * modules/uniname/uniname (Depends-on): Add attribute.
3380 2020-05-08  Bruno Haible  <bruno@clisp.org>
3382         c32rtomb: Use module 'attribute'.
3383         * lib/c32rtomb.c: Include attribute.h.
3384         (FALLTHROUGH): Remove macro.
3385         * modules/c32rtomb (Depends-on): Add attribute.
3387 2020-05-08  Bruno Haible  <bruno@clisp.org>
3389         xsize: Use module 'attribute'.
3390         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3391         * modules/xsize (Depends-on): Add attribute.
3393 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3395         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3397         * lib/attribute.h: Minor style fixes.
3399         Fix version-etc glitch on OpenIndiana
3400         Problem reported by Mats Erik Andersson in:
3401         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3402         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3403         that now clashes with gnulib-common.h.  All uses changed.
3405 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3407         attribute: new module
3408         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3409         * MODULES.html.sh: Add attribute.
3410         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3411         * doc/gnulib.texi (Particular Modules): Add Attributes.
3412         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3413         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3414         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3415         * lib/vasnprintf.c:
3416         Include attribute.h, and let it define FALLTHROUGH.
3417         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3418         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3419         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3420         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3421         This is a copy since Gawk doesn’t use Gnulib.
3422         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3423         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3424         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3425         Keep the existing FALLTHROUGH definition since Glibc might use it,
3426         and it does no harm to Gnulib’s FALLTHROUGH.
3427         * lib/fts_.h, lib/inttostr.h:
3428         (__GNUC_PREREQ): Remove; no longer needed.
3429         (__attribute_warn_unused_result__): Remove.  All uses
3430         replaced by _GL_ATTRIBUTE_NODISCARD.
3431         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3432         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3433         __attribute__ ((__warn_unused_result__)), for forward
3434         compatibility to C2X.
3435         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3436         _GL_ATTRIBUTE_NODISCARD.
3437         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3438         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3439         replaced by gl_COMMON_BODY’s implementation, which has a
3440         slightly different signature.
3441         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3442         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3443         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3444         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3445         No doubt all uses should be replaced, at some point.
3446         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3447         (_Noreturn): Use it.
3448         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3449         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3450         (_GL_ATTRIBUTE_COLD)
3451         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3452         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3453         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3454         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3455         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3456         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3457         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3458         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3459         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3460         (_GL_ATTRIBUTE_SENTINEL): New macros.
3461         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3462         * modules/fnmatch, modules/freopen-safer, modules/fts:
3463         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3464         * modules/quotearg, modules/savewd:
3465         * modules/unistdio/u16-u16-vasnprintf:
3466         * modules/unistdio/u16-vasnprintf:
3467         * modules/unistdio/u32-u32-vasnprintf:
3468         * modules/unistdio/u32-vasnprintf:
3469         * modules/unistdio/u8-u8-vasnprintf:
3470         * modules/unistdio/u8-vasnprintf:
3471         * modules/unistdio/ulc-vasnprintf:
3472         * modules/unistr/u8-uctomb, modules/vasnprintf:
3473         (Depends-on:): Add attribute module.
3475 2020-05-03  Bruno Haible  <bruno@clisp.org>
3477         bison: Fix today's commit.
3478         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3480 2020-05-03  Bruno Haible  <bruno@clisp.org>
3482         list-c++: Add get_first, get_last, set_first, set_last operations.
3483         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3484         set_first, set_last.
3485         * lib/gl_list.h: Tweak comments.
3487 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3489         bison: rely on bison's %require to check a version requirement
3490         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3491         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3492         enough of not.
3493         So far it is the only know Yacc tool that supports '%require'.
3494         Other yaccs will actually even choke on seeing the -o option after the
3495         input file name.
3496         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3498 2020-05-02  Bruno Haible  <bruno@clisp.org>
3500         list: Add get_first, get_last, set_first, set_last operations.
3501         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3502         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3503         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3505 2020-05-02  Bruno Haible  <bruno@clisp.org>
3507         list: Remove redundant code for remove_first and remove_last operations.
3508         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3509         remove_first, remove_last.
3510         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3511         * lib/gl_array_list.c: Revert last change.
3512         * lib/gl_carray_list.c: Likewise.
3513         * lib/gl_anylinked_list2.h: Likewise.
3514         * lib/gl_linked_list.c: Likewise.
3515         * lib/gl_linkedhash_list.c: Likewise.
3516         * lib/gl_anytree_list2.h: Likewise.
3517         * lib/gl_avltree_list.c: Likewise.
3518         * lib/gl_avltreehash_list.c: Likewise.
3519         * lib/gl_rbtree_list.c: Likewise.
3520         * lib/gl_rbtreehash_list.c: Likewise.
3521         * lib/gl_sublist.c: Likewise.
3523 2020-05-02  Bruno Haible  <bruno@clisp.org>
3525         bison-i18n: Add support for cross-compilation.
3526         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3527         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3528         via Akim Demaille <akim@lrde.epita.fr>.
3529         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3530         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3531         Don't use bison's --print-localedir option when cross-compiling.
3532         Also, fix an error message and a comment.
3534 2020-05-01  Bruno Haible  <bruno@clisp.org>
3536         list: Add remove_first and remove_last operations.
3537         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3538         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3539         * lib/gl_list.h (struct gl_list_implementation): Add fields
3540         remove_first, remove_last.
3541         (gl_list_remove_first, gl_list_remove_last): New functions.
3542         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3543         functions, based on gl_array_remove_at.
3544         (gl_array_list_implementation): Implement the new operations.
3545         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3546         New functions, based on gl_carray_remove_at.
3547         (gl_carray_list_implementation): Implement the new operations.
3548         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3549         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3550         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3551         new operations.
3552         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3553         Likewise.
3554         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3555         New functions, based on gl_tree_remove_at.
3556         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3557         new operations.
3558         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3559         Likewise.
3560         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3561         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3562         Likewise.
3563         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3564         New functions, based on gl_sublist_remove_at.
3565         (gl_sublist_list_implementation): Implement the new operations.
3566         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3567         remove_last.
3568         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3569         gl_list_remove_last.
3570         * tests/test-avltree_list.c (main): Likewise.
3571         * tests/test-avltreehash_list.c (main): Likewise.
3572         * tests/test-carray_list.c (main): Likewise.
3573         * tests/test-linked_list.c (main): Likewise.
3574         * tests/test-linkedhash_list.c (main): Likewise.
3575         * tests/test-rbtree_list.c (main): Likewise.
3576         * tests/test-rbtreehash_list.c (main): Likewise.
3578 2020-05-01  Bruno Haible  <bruno@clisp.org>
3580         parse-datetime: Fix a build failure with an older bison version.
3581         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3582         parse-datetime.tab.c if a suitable version of bison was not found.
3584 2020-05-01  Bruno Haible  <bruno@clisp.org>
3586         bison: New module.
3587         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3588         m4/parse-datetime.m4.
3589         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3590         * modules/bison: New file.
3591         * modules/parse-datetime (Files): Remove m4/bison.m4.
3592         (Depends-on): Add bison.
3594 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3596         Update users.txt.
3597         * users.txt: Add poke.
3599 2020-04-28  Bruno Haible  <bruno@clisp.org>
3601         posix_spawn_file_actions_addfchdir tests: Enhance test.
3602         * tests/test-posix_spawn5.c: Include findprog.h.
3603         (test): New function, extracted from main.
3604         (main): Invoke it. Also, invoke it with a program name such as
3605         "bin/pwd".
3606         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3607         findprog.
3609 2020-04-28  Bruno Haible  <bruno@clisp.org>
3611         posix_spawn_file_actions_addchdir tests: Enhance test.
3612         * tests/test-posix_spawn4.c: Include findprog.h.
3613         (test): New function, extracted from main.
3614         (main): Invoke it. Also, invoke it with a program name such as
3615         "bin/pwd".
3616         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3617         findprog.
3619 2020-04-28  Bruno Haible  <bruno@clisp.org>
3621         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3622         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3623         access elements of the wrong union member.
3625 2020-04-27  Bruno Haible  <bruno@clisp.org>
3627         getdate: Remove deprecated module.
3628         * modules/getdate: Remove file.
3629         * doc/getdate.texi: Remove file.
3630         * lib/getdate.h: Remove file.
3631         * NEWS: Mention the removal.
3633 2020-04-27  Bruno Haible  <bruno@clisp.org>
3635         realloc: Remove deprecated module.
3636         * modules/realloc: Remove file.
3637         * NEWS: Mention the removal.
3639 2020-04-27  Bruno Haible  <bruno@clisp.org>
3641         calloc: Remove deprecated module.
3642         * modules/calloc: Remove file.
3643         * NEWS: Mention the removal.
3645 2020-04-27  Bruno Haible  <bruno@clisp.org>
3647         malloc: Remove deprecated module.
3648         * modules/malloc: Remove file.
3649         * NEWS: Mention the removal.
3651 2020-04-27  Bruno Haible  <bruno@clisp.org>
3653         fnmatch-posix: Remove deprecated module.
3654         * modules/fnmatch-posix: Remove file.
3655         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3656         * NEWS: Mention the removal.
3658 2020-04-27  Bruno Haible  <bruno@clisp.org>
3660         pipe: Remove deprecated module.
3661         * modules/pipe: Remove file.
3662         * lib/pipe.h: Remove file.
3663         * NEWS: Mention the removal.
3665 2020-04-27  Bruno Haible  <bruno@clisp.org>
3667         getopt: Remove deprecated module.
3668         * modules/getopt: Remove file.
3669         * NEWS: Mention the removal.
3671 2020-04-27  Bruno Haible  <bruno@clisp.org>
3673         remove-dest-slash: Remove deprecated module.
3674         * modules/rename-dest-slash: Remove file.
3675         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3676         Update.
3677         * NEWS: Mention the removal.
3679 2020-04-27  Bruno Haible  <bruno@clisp.org>
3681         unictype/bidicategory-*: Remove deprecated modules.
3682         * modules/unictype/bidicategory-all: Remove file.
3683         * modules/unictype/bidicategory-byname: Remove file.
3684         * modules/unictype/bidicategory-name: Remove file.
3685         * modules/unictype/bidicategory-of: Remove file.
3686         * modules/unictype/bidicategory-test: Remove file.
3687         * MODULES.html.sh (Unicode string functions): Update.
3688         * NEWS: Mention the removals.
3690 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3692         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3693         From a suggestion by Askar Safin in:
3694         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3695         * lib/fts.c (fts_build): If file types are known, optimize
3696         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3697         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3698         non-directories.
3700 2020-04-19  Bruno Haible  <bruno@clisp.org>
3702         vasnprintf: Add support for printing wide characters using escapes.
3703         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3704         (wctomb_fallback): New function.
3705         (local_wctomb): New function.
3706         (local_wcrtomb): New function or macro.
3707         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3708         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3709         %lc.
3711 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3713         fts: remove NOSTAT_LEAF_OPTIMIZATION
3714         It caused ‘find’ and ‘du’ to dump core, and it was useful
3715         only for obsolescent Linux filesystems anyway.  Problem reported in:
3716         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3717         Quite possibly there is still a serious underlying fts bug with
3718         tight-loop-check and mutating file systems, but if so this patch
3719         should cause the bug to be triggered less often.
3720         * lib/fts.c (enum leaf_optimization): Remove
3721         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3722         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3723         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3724         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3725         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3726         Remove.  All uses removed.
3728 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3730         explicit_bzero: Improve code style.
3731         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3733 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3735         explicit_bzero: On native Windows, use SecureZeroMemory().
3736         * lib/explicit_bzero.c: Include <windows.h>.
3737         (explicit_bzero): On native Windows, use SecureZeroMemory.
3739 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3741         explicit_bzero: Use memset_s() when available.
3742         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3743         (explicit_bzero): Use memset_s when available.
3744         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3746 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3748         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3749         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3750         free() that overwrite the memory with canaries.
3752 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3754         bootstrap: recommend git submodule update --init
3755         Reported by Bruno Haible.
3756         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3757         * build-aux/bootstrap: recommand "git submodule update --init"
3758         rather than "git submodule init".
3760 2020-04-12  Bruno Haible  <bruno@clisp.org>
3762         explicit_bzero: Add tests.
3763         * tests/test-explicit_bzero.c: New file.
3764         * modules/explicit_bzero-tests: New file.
3766 2020-04-11  Bruno Haible  <bruno@clisp.org>
3768         explicit_bzero: Relicense under LGPLv2+.
3769         Approved by Paul Eggert.
3770         * modules/explicit_bzero (License): Change to LGPLv2+.
3772 2020-04-10  Bruno Haible  <bruno@clisp.org>
3774         findprog, relocatable-prog: Ignore directories during PATH search.
3775         Reported by Frederick Eaton via Dmitry Goncharov in
3776         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3778         * lib/findprog.c (find_in_path): When the file found in a PATH element
3779         is a directory, continue searching.
3780         * modules/findprog (Depends-on): Add sys_stat, stat.
3781         * modules/findprog-lgpl (Depends-on): Likewise.
3783         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3784         element is a directory, continue searching.
3785         * lib/relocwrapper.c: Update comments.
3786         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3787         (configure.ac-early): New section.
3789 2020-04-10  Bruno Haible  <bruno@clisp.org>
3791         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3792         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3793         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3794         * MODULES.html.sh: In a git-less tarball, use the date of the first
3795         ChangeLog entry.
3797 2020-04-04  Bruno Haible  <bruno@clisp.org>
3799         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3800         * m4/gettext.m4: Fix comments regarding the gettext library.
3801         * m4/intl-thread-locale.m4: Likewise.
3802         * m4/intlmacosx.m4: Likewise.
3803         * m4/lcmessage.m4: Likewise.
3804         * m4/nls.m4: Likewise.
3805         * m4/po.m4: Likewise.
3806         * m4/progtest.m4: Likewise.
3808 2020-04-04  Jim Meyering  <meyering@fb.com>
3810         maint: remove a stray inter-word space in a 6x-repeated comment
3811         Induce the changes by running this:
3812           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3813         * build-aux/announce-gen: Change "by  perl" to "by perl".
3814         * build-aux/gitlog-to-changelog: Likewise.
3815         * build-aux/prefix-gnulib-mk: Likewise.
3816         * build-aux/update-copyright: Likewise.
3817         * build-aux/useless-if-before-free: Likewise.
3818         * tests/test-update-copyright.sh: Likewise.
3820 2020-03-28  Bruno Haible  <bruno@clisp.org>
3822         Use module 'filename' instead of module 'dosname'.
3824         * lib/at-func.c: Include filename.h instead of dosname.h.
3825         * lib/unlinkat.c: Likewise.
3826         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3827         * modules/areadlinkat-with-size (Depends-on): Likewise.
3828         * modules/faccessat (Depends-on): Likewise.
3829         * modules/fchmodat (Depends-on): Likewise.
3830         * modules/fchownat (Depends-on): Likewise.
3831         * modules/fstatat (Depends-on): Likewise.
3832         * modules/mkdirat (Depends-on): Likewise.
3833         * modules/mkfifoat (Depends-on): Likewise.
3834         * modules/readlinkat (Depends-on): Likewise.
3835         * modules/selinux-at (Depends-on): Likewise.
3836         * modules/symlinkat (Depends-on): Likewise.
3837         * modules/unlinkat (Depends-on): Likewise.
3838         * modules/utimensat (Depends-on): Likewise.
3840         * lib/at-func2.c: Include filename.h instead of dosname.h.
3841         * modules/linkat (Depends-on): Add filename. Remove dosname.
3842         * modules/renameatu (Depends-on): Likewise.
3844         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3845         * lib/canonicalize-lgpl.c: Likewise.
3846         * modules/canonicalize (Depends-on): Add filename.
3847         * modules/canonicalize-lgpl (Depends-on): Likewise.
3849         * lib/dirname.h: Include filename.h instead of dosname.h.
3850         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3852         * lib/fchdir.c: Include filename.h instead of dosname.h.
3853         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3855         * lib/openat.c: Include filename.h instead of dosname.h.
3856         * modules/openat (Depends-on): Add filename. Remove dosname.
3858         * lib/rmdir.c: Include filename.h instead of dosname.h.
3859         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3861         * lib/savewd.c: Include filename.h instead of dosname.h.
3862         * modules/savewd (Depends-on): Add filename. Remove dosname.
3864         * lib/unlink.c: Include filename.h instead of dosname.h.
3865         * modules/unlink (Depends-on): Add filename. Remove dosname.
3867         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3868         * lib/relocwrapper.c: Update comments.
3870         * modules/lstat (Depends-on): Remove dosname.
3872 2020-03-28  Bruno Haible  <bruno@clisp.org>
3874         dosname: Redirect to 'filename'.
3875         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3876         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3877         * lib/dosname.h: Remove all definitions. Just include filename.h.
3878         * modules/dosname (Status, Notice): Mark as deprecated.
3879         (Depends-on): Add 'filename'.
3881 2020-03-28  Bruno Haible  <bruno@clisp.org>
3883         dosname: Change IS_RELATIVE_FILE_NAME.
3884         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3885         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3886         * NEWS: Mention the change.
3888 2020-03-28  Bruno Haible  <bruno@clisp.org>
3890         filename: Copy some definitions from module 'dosname'.
3891         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3892         (HAS_DEVICE): Document macro.
3893         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3894         (IS_ABSOLUTE_FILE_NAME): Consider
3895         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3896         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3897         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3898         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3899         IS_PATH_WITH_DIR.
3900         (DllMain): Update.
3901         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3902         IS_PATH_WITH_DIR.
3903         (find_executable): Update.
3904         * NEWS: Document the deprecations.
3906 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3908         getopt-posix: port __GETOPT_PREFIX to macOS
3909         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3910         Define to work around a problem with asm on macOS (Bug#40205).
3912 2020-03-22  Bruno Haible  <bruno@clisp.org>
3914         MODULES.html.sh: Add support for reproducible builds.
3915         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3916         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3917         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3918         current date.
3920 2020-03-22  Bruno Haible  <bruno@clisp.org>
3922         Several modules: Depend on stat.
3923         * modules/acl-permissions (Depends-on): Add stat.
3924         * modules/canonicalize (Depends-on): Likewise.
3925         * modules/file-has-acl (Depends-on): Likewise.
3926         * modules/fstat (Depends-on): Likewise.
3927         * modules/fstatat (Depends-on): Likewise.
3928         * modules/glob (Depends-on): Likewise.
3929         * modules/javacomp (Depends-on): Likewise.
3930         * modules/linkat (Depends-on): Likewise.
3931         * modules/mkdir (Depends-on): Likewise.
3932         * modules/pt_chown (Depends-on): Likewise.
3933         * modules/ptsname_r (Depends-on): Likewise.
3934         * modules/readlinkat (Depends-on): Likewise.
3935         * modules/rename (Depends-on): Likewise.
3936         * modules/renameatu (Depends-on): Likewise.
3937         * modules/tmpdir (Depends-on): Likewise.
3938         * modules/utimens (Depends-on): Likewise.
3939         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3940         * modules/same (Depends-on): Remove stat.
3942 2020-03-22  Bruno Haible  <bruno@clisp.org>
3944         acl-permissions: Improve autoconf macro.
3945         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3946         more reliably.
3948 2020-03-22  Bruno Haible  <bruno@clisp.org>
3950         file-has-acl: Fix module description.
3951         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3952         (Depends-on): Depend on acl-permissions unconditionally.
3954 2020-03-21  Bruno Haible  <bruno@clisp.org>
3956         unlink: Ensure errno also on native Windows.
3957         * modules/unlink (Depends-on): Add malloc-posix.
3959 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3961         unlink: fix malloc errno typo
3962         Problem reported by Tim Rühsen in:
3963         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3964         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3966 2020-03-16  Bruno Haible  <bruno@clisp.org>
3968         *printf-posix: Fix m4 error (regression from 2020-03-08).
3969         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
3970         brackets in AC_COMPILE_IFELSE invocation.
3972 2020-03-08  Bruno Haible  <bruno@clisp.org>
3974         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
3975         * modules/crypto/af_alg (Depends-on): Add fstat.
3976         * modules/renameatu (Depends-on): Likewise.
3977         * modules/same (Depends-on): Likewise.
3978         * modules/term-style-control (Depends-on): Likewise.
3980 2020-03-08  Bruno Haible  <bruno@clisp.org>
3982         *printf-posix: Document why it's overridden on some glibc systems.
3983         Reported by Adrian Bunk <bunk@stusta.de> in
3984         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
3985         * doc/posix-functions/*printf.texi: Document the problem with the %n
3986         directive on some glibc systems.
3987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
3988         the cross-compilation guesses accordingly.
3990 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3992         open, openat: port to (O_RDWR | O_RDONLY) != 0
3993         Potential portability problem reported by Dan Gohman in:
3994         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
3995         * lib/open.c (open):
3996         * lib/openat.c (rpl_openat):
3997         Don’t assume O_RDONLY is disjoint from O_RDWR.
3999 2020-03-07  Bruno Haible  <bruno@clisp.org>
4001         openat: Fix theoretically possible issue on GNU/Hurd.
4002         Reported by Dan Gohman <sunfish@mozilla.com> in
4003         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4004         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4005         ignore the bits that are also set in O_RDONLY.
4007 2020-02-24  Bruno Haible  <bruno@clisp.org>
4009         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4010         Reported by Jens Rehsack <sno@netbsd.org> in
4011         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4012         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4013         cross-compiling.
4015 2020-02-24  Bruno Haible  <bruno@clisp.org>
4017         fcntl: Add witness of gnulib override.
4018         Reported by Jens Rehsack <sno@netbsd.org> in
4019         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4020         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4021         macros.
4023 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4025         Update users.txt.
4026         * users.txt: Add datamash, time.
4028 2020-02-23  Bruno Haible  <bruno@clisp.org>
4030         uni*/base: Use 'restrict'.
4031         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4032         from lib/regex.h.
4033         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4034         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4035         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4036         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4037         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4038         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4039         '_UC_RESTRICT'.
4040         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4041         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4042         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4043         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4044         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4045         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4046         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4047         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4048         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4049         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4050         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4051         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4052         '_UC_RESTRICT'.
4053         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4054         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4055         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4056         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4057         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4058         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4059         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4060         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4062 2020-02-23  Bruno Haible  <bruno@clisp.org>
4064         glob, spawn: Use improved '_Restrict_' definition.
4065         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4066         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4068 2020-02-23  Bruno Haible  <bruno@clisp.org>
4070         crypto/gc: Use 'restrict'.
4071         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4072         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
4074         crypto/hmac-*: Use 'restrict'.
4075         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
4076         'restrict'.
4077         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
4078         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
4079         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
4080         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
4082         crypto/sm3: Use 'restrict'.
4083         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
4084         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
4086         crypto/*-buffer: Use 'restrict'.
4087         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
4088         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
4090         crypto/sha512-buffer: Use 'restrict'.
4091         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
4092         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
4093         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
4095         crypto/sha256-buffer: Use 'restrict'.
4096         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
4097         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
4098         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
4100         crypto/sha1-buffer: Use 'restrict'.
4101         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
4102         'restrict'.
4103         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
4105         crypto/md5-buffer: Use 'restrict'.
4106         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
4107         'restrict'.
4108         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4110         crypto/md4: Use 'restrict'.
4111         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4112         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4114         crypto/md2: Use 'restrict'.
4115         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4116         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4118         crypto/rijndael: Use 'restrict'.
4119         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4120         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4121         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4123         crypto/arctwo: Use 'restrict'.
4124         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4125         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4127         crypto/arcfour: Use 'restrict'.
4128         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4129         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4131         careadlinkat: Use 'restrict'.
4132         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4133         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4134         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4136         regex-quote: Use 'restrict'.
4137         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4138         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4140         system-quote: Use 'restrict'.
4141         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4142         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4144         sh-quote: Use 'restrict'.
4145         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4146         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4148         quotearg: Use 'restrict'.
4149         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4150         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4152         parse-datetime: Use 'restrict'.
4153         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4154         'restrict'.
4155         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4157         nstrftime: Use 'restrict'.
4158         * lib/strftime.h (nstrftime): Use 'restrict'.
4159         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4161         mbstok_r: Use 'restrict'.
4162         * lib/string.in.h (mbstok_r): Use 'restrict'.
4164         xmemcoll: Use 'restrict'.
4165         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4166         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4168         memcoll: Use 'restrict'.
4169         * lib/memcoll.h (memcoll): Use 'restrict'.
4170         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4172         vasnprintf: Use 'restrict'.
4173         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4174         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4176         c-vasnprintf: Use 'restrict'.
4177         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4178         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4180         c-vsnprintf: Use 'restrict'.
4181         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4182         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4184         c-snprintf: Use 'restrict'.
4185         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4186         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4188         astrxfrm: Use 'restrict'.
4189         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4190         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4192         amemxfrm: Use 'restrict'.
4193         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4194         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4196 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4198         fchmodat, lchmod: simplify
4199         It appears that we may have overengineered lchmod and fchmodat,
4200         in that the code was prepared for some hypothetical platforms but
4201         was so complicated that it was hard to understand.  I attempted to
4202         improve the situation by simplifying the code when this
4203         simplification should not hurt on real platforms; we can re-add
4204         complexity later to port to platforms I didn’t know about.
4205         * lib/fchmodat.c (fchmodat):
4206         * lib/lchmod.c (lchmod):
4207         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4208         around the /proc code that needs it.
4209         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4210         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4211         Do not include <config.h> twice.
4212         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4213         lchmod on any known hosts.
4214         (lchmod): Do not defer to fchmodat, so that the lchmod module
4215         need not depend on the fchmodat module (which is a circular
4216         dependency).  Do not use openat, since ‘open’ suffices.
4217         Coalesce calls to lchmod/chmod.
4218         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4219         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4220         * modules/lchmod (Depends-on, configure.ac):
4221         * modules/sys_stat (Depends-on):
4222         Do not worry about replacing lchmod, since that shouldn’t happen.
4223         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4224         Do not worry about whether lchmod works on non-symlinks,
4225         since every known lchmod works on non-symlinks.
4226         * modules/lchmod (Depends-on):
4227         Remove circular dependency on fchmodat.
4229 2020-02-22  Bruno Haible  <bruno@clisp.org>
4231         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4232         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4233         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4235 2020-02-22  Bruno Haible  <bruno@clisp.org>
4237         Use 'restrict' in all POSIX function declarations.
4238         * lib/iconv.in.h (iconv): Use 'restrict'.
4239         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4240         * lib/monetary.in.h (strfmon_l): Likewise.
4241         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4242         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4243         pthread_mutex_timedlock, pthread_rwlock_init,
4244         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4245         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4246         * lib/search.in.h (tdelete): Likewise.
4247         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4248         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4249         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4250         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4251         Likewise.
4252         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4253         strtoull): Likewise.
4254         * lib/string.in.h (strncat): Likewise.
4255         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4256         recvfrom): Likewise.
4257         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4258         * lib/time.in.h (strftime): Likewise.
4259         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4260         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4261         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4262         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4263         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4264         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4265         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4266         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4267         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4268         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4269         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4272         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4273         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4274         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4275         other *_h.m4 files.
4276         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4278 2020-02-22  Bruno Haible  <bruno@clisp.org>
4280         Update NEWS.
4281         * NEWS: Mention the last change.
4283 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4285         chmodat, chownat: new modules
4286         These are split from fchmodat, fchownat.  GNU Emacs needs the
4287         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4288         lchmodat.  Split the latter two into a new module chmodat.
4289         Similarly for fchownat.  This the same basic idea for why statat
4290         was split from fstatat on 2013-01-23.
4291         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4292         Rename from FCHMODAT_INLINE.  All uses changed.
4293         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4294         Rename from FCHOWNAT_INLINE.  All uses changed.
4295         * lib/openat.h:
4296         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4297         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4298         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4299         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4300         (configure.ac): Remove fchmodat module indicator.
4301         (Makefile.am): Omit chmodat.c.
4302         (Maintainer): Add self.
4303         * modules/fchownat: Similarly, but for chown.
4304         * tests/test-fchownat.c (BASE): Don't define if already defined.
4305         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4307 2020-02-22  Bruno Haible  <bruno@clisp.org>
4309         users.txt: Add groff.
4310         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4311         * users.txt: Add groff.
4313 2020-02-22  Bruno Haible  <bruno@clisp.org>
4315         gnulib-tool: Ensure copied files are writable.
4316         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4317         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4318         * gnulib-tool (func_ensure_writable): New function.
4319         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4320         func_create_testdir, copy-file): Invoke it after copying a file.
4322 2020-02-22  Bruno Haible  <bruno@clisp.org>
4324         users.txt: Update.
4325         * users.txt: Update URLs to projects that have moved or switched to git.
4326         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4327         over the summary view. Add gawk.
4329 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4331         largefile: remove _DARWIN_USE_64_BIT_INODE
4332         It’s not needed in currently-supported macOS versions, and was
4333         problematic anyway in MacOS X 10.5 which was the only version that
4334         could use it.  Problem reported by Peter Eisentraut in:
4335         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4336         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4337         Don’t define _DARWIN_USE_64_BIT_INODE.
4338         This syncs with Autoconf master.
4340         Add ‘extern "C"’ to count-one-bits.h etc.
4341         This ports these .h files to C++.
4342         Problem reported by Simon Marchi in:
4343         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4344         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4345         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4347 2020-02-19  Bruno Haible  <bruno@clisp.org>
4349         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4350         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4352         * lib/array-mergesort.h: Accept an optional macro definition
4353         STATIC_FROMTO.
4354         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4356 2020-02-16  Bruno Haible  <bruno@clisp.org>
4358         fchmodat: Make more future-proof.
4359         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4360         NEED_FCHMODAT_NONSYMLINK_FIX.
4361         (gl_PREREQ_FCHMODAT): New macro.
4362         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4363         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4364         without lchmod function.
4365         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4367 2020-02-16  Bruno Haible  <bruno@clisp.org>
4369         lchmod: Make more future-proof.
4370         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4371         (gl_PREREQ_LCHMOD): New macro.
4372         * lib/lchmod.c (orig_lchmod): New function.
4373         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4374         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4375         function.
4376         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4378         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4379         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4381 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4383         xnanosleep: prefer pause, and get remaining time
4384         Problem reported by Vladimir Panteleev in:
4385         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4386         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4387         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4388         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4389         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4390         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4392 2020-02-16  Bruno Haible  <bruno@clisp.org>
4394         lchmod: Improve cross-compilation guess.
4395         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4396         cross-compiling, guess depending on the platform.
4398 2020-02-16  Bruno Haible  <bruno@clisp.org>
4400         fstrcmp: Add API to clean up resources.
4401         Reported by Akim Demaille <akim@lrde.epita.fr> in
4402         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4403         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4404         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4406 2020-02-14  Bruno Haible  <bruno@clisp.org>
4408         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4409         Reported by Christian Biesinger in
4410         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4411         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4412         corresponding module is not enabled.
4413         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4414         prototype if the corresponding module is not enabled.
4416 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4418         fchmodat, lchmod: port to buggy Linux filesystems
4419         Problem reported by Florian Weimer in:
4420         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4421         * lib/fchmodat.c (fchmodat):
4422         * lib/lchmod.c (lchmod):
4423         Don’t assume that chmod on the O_PATH-opened fd will do
4424         the right thing on a symbolic link.
4425         * lib/fchmodat.c (fchmodat):
4426         Don’t attempt to special-case
4427         any flag value other than AT_SYMLINK_NOFOLLOW.
4429 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4431         lchmod: pacify Coverity CID 1491216
4432         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4433         not complain about unreachable code at the ‘struct stat st;’
4434         declaration.
4436 2020-02-10  Bruno Haible  <bruno@clisp.org>
4438         copysignf: Fix link error on HP-UX with cc.
4439         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4440         HP-UX, set COPYSIGNF_LIBM to -lm.
4442 2020-02-10  Bruno Haible  <bruno@clisp.org>
4444         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4445         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4446         with $(LIB_SEMAPHORE).
4447         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4448         with $(LIB_SEMAPHORE).
4450 2020-02-10  Bruno Haible  <bruno@clisp.org>
4452         ptsname_r-tests: Avoid unused function warning.
4453         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4455 2020-02-08  Bruno Haible  <bruno@clisp.org>
4457         lchmod: Add tests.
4458         * tests/test-lchmod.c: New file.
4459         * modules/lchmod-tests: New file.
4461 2020-02-08  Bruno Haible  <bruno@clisp.org>
4463         lchmod: Ensure declaration on HP-UX.
4464         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4465         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4467 2020-02-08  Bruno Haible  <bruno@clisp.org>
4469         fchmodat: Strengthen tests.
4470         * tests/test-fchmodat.c (BASE): New macro.
4471         (main): Use it, to avoid conflicts with other unit tests. Verify that
4472         fchmodat changed the file permission bits.
4474 2020-02-08  Bruno Haible  <bruno@clisp.org>
4476         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4477         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4478         '#undef __need_system_sys_stat_h'.
4480 2020-02-08  Bruno Haible  <bruno@clisp.org>
4482         fchmodat: Improve cross-compilation guesses.
4483         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4484         cross-compiling, guess depending on the platform.
4485         * doc/posix-functions/fchmodat.texi: Clarify.
4487 2020-02-08  Bruno Haible  <bruno@clisp.org>
4489         Fix compilation errors in a testdir created with --with-c++-tests.
4490         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4491         since it does not work any more with g++ >= 4.4.
4493 2020-02-08  Bruno Haible  <bruno@clisp.org>
4495         doc: Update for glibc 2.31.
4496         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4497         * doc/gnulib.texi: Include it.
4498         * doc/pastposix-functions/h_errno.texi: Update.
4499         * doc/posix-functions/*.texi: Likewise.
4501 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4503         mountlist: consider smb3 file systems as remote
4504         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4505         "smb3" as remote.
4507 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4509         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4510         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4511         they act like chmod on non-symlinks.
4512         * NEWS:
4513         * doc/glibc-functions/lchmod.texi (lchmod):
4514         * doc/posix-functions/fchmodat.texi (fchmodat):
4515         Mention this.
4516         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4517         config.h, and undef it after including sys/stat.h the first time.
4518         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4519         sys/stat.h a second time after defining orig_fchmodat.
4520         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4521         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4522         * lib/lchmod.c: New file.
4523         * lib/sys_stat.in.h (fchmodat, lchmod):
4524         Support replacing these functions.
4525         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4526         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4527         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4528         Test that lchmod works on non-symlinks.
4529         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4530         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4531         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4532         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4533         * modules/lchmod (Files): Add lib/lchmod.c.
4534         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4535         (configure.ac): Compile lchmod.c if needed.
4536         (lib_SOURCES): Add lchmod.c.
4537         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4538         and REPLACE_LCHMOD.
4539         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4540         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4542 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4544         mountlist: Consider AFS filesystems as remote
4545         df --local relies on the ME_REMOTE macro to determine if a given
4546         mount entry should be considered "local".  There is special logic
4547         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4548         kernel's kafs module or AuriStorFS is treated as a local mount.
4549         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4550         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4552 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4554         Port _Noreturn to older Clang
4555         Problem reported by Jeffery Walton in:
4556         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4557         * lib/_Noreturn.h (_Noreturn):
4558         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4559         Assume _Noreturn works in Clang 3.5 and later.
4560         It is documented to work in Clang 3.5:
4561         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4562         and is not documented in Clang 3.4:
4563         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4564         Apple sets __clang_version__ to a different value, so use
4565         __apple_build_version__ there.  See:
4566         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4568 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4570         test-canonicalize: avoid unused function warning
4571         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4572         with the same guard as that used to protect usage of the null_ptr
4573         function, so that one doesn't get a -Wunused warning.
4574         * tests/test-canonicalize-lgpl.c: Likewise.
4576 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4578         libc-config: port to Apple’s Clang variant
4579         * lib/libc-config.h (__glibc_clang_prereq):
4580         Port to Apple’s Clang variant, which uses a different
4581         numbering scheme for __clang_major__.
4583 2020-02-02  Bruno Haible  <bruno@clisp.org>
4585         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4586         * doc/containers.texi: Document these new modules.
4588 2020-02-02  Bruno Haible  <bruno@clisp.org>
4590         omap-c++: Add tests.
4591         * tests/test-omap-c++.cc: New file.
4592         * modules/omap-c++-tests: New file.
4594         omap-c++: New module.
4595         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4596         * modules/omap-c++: New file.
4598 2020-02-02  Bruno Haible  <bruno@clisp.org>
4600         map-c++: Add tests.
4601         * tests/test-map-c++.cc: New file.
4602         * modules/map-c++-tests: New file.
4604         map-c++: New module.
4605         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4606         * modules/map-c++: New file.
4608 2020-02-02  Bruno Haible  <bruno@clisp.org>
4610         oset-c++: Add tests.
4611         * tests/test-oset-c++.cc: New file.
4612         * modules/oset-c++-tests: New file.
4614         oset-c++: New module.
4615         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4616         * modules/oset-c++: New file.
4618 2020-02-02  Bruno Haible  <bruno@clisp.org>
4620         set-c++: Add tests.
4621         * tests/test-set-c++.cc: New file.
4622         * modules/set-c++-tests: New file.
4624         set-c++: New module.
4625         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4626         * modules/set-c++: New file.
4628 2020-02-02  Bruno Haible  <bruno@clisp.org>
4630         list-c++: Add tests.
4631         * tests/test-list-c++.cc: New file.
4632         * modules/list-c++-tests: New file.
4634         list-c++: New module.
4635         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4636         * modules/list-c++: New file.
4638 2020-02-02  Bruno Haible  <bruno@clisp.org>
4640         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4641         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4642         '_Noreturn'.
4643         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4645 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4647         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4648         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4649           error: argument 2 value '18446744073709551615'
4650           exceeds maximum object size 9223372036854775807
4651           [-Werror=alloc-size-larger-than=]
4652         The details of this restriction are discussed at:
4653         https://stackoverflow.com/q/42574890/4421
4654         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4656 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4658         sysctl.h: avoid including on glibc
4659         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4660         * lib/physmem.c: Likewise.
4662 2020-02-02  Bruno Haible  <bruno@clisp.org>
4664         list, set, oset, map, omap: Avoid imperative voice in documentation.
4665         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4666         in the specification of functions.
4667         * lib/gl_set.h: Likewise.
4668         * lib/gl_oset.h: Likewise.
4669         * lib/gl_map.h: Likewise.
4670         * lib/gl_omap.h: Likewise.
4671         * lib/gl_*.h: Likewise.
4673 2020-02-01  Bruno Haible  <bruno@clisp.org>
4675         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4677         does.
4679 2020-01-29  Bruno Haible  <bruno@clisp.org>
4681         array-map, hash-map, linkedhash-map: Fix module description.
4682         * modules/array-map (Description): Fix description.
4683         * modules/hash-map (Description): Likewise.
4684         * modules/linkedhash-map (Description): Likewise.
4686 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4688         dfa: do not depend on isblank
4689         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4690         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4691         * modules/dfa (Depends-on): Remove isblank.
4692         * modules/isblank: Add a module indicator, for lib/dfa.c.
4694         dfa: do not assume 64-bit int
4695         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4696         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4697         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4698         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4699         Fall back to 32-bit words.
4700         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4701         of 4 64-bit args.  All uses changed.
4703 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4705         regex: remove limits-h dependency
4706         * modules/regex (Depends-on): Remove limits-h, since the
4707         code no longer depends on ULONG_WIDTH already being defined.
4709         regex: port to non-GCC pre-IEC-60559
4710         Problem reported by Arnold Robbins in:
4711         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4712         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4714 2020-01-25  Bruno Haible  <bruno@clisp.org>
4716         c32isxdigit: Add tests.
4717         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4718         * tests/test-c32isxdigit.sh: New file.
4719         * modules/c32isxdigit-tests: New file.
4721         c32isxdigit: New module.
4722         * lib/c32isxdigit.c: New file.
4723         * modules/c32isxdigit: New file.
4724         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4726 2020-01-25  Bruno Haible  <bruno@clisp.org>
4728         c32isupper: Add tests.
4729         * tests/test-c32isupper.c: New file.
4730         * tests/test-c32isupper.sh: New file.
4731         * modules/c32isupper-tests: New file.
4733         c32isupper: New module.
4734         * lib/c32isupper.c: New file.
4735         * modules/c32isupper: New file.
4736         * doc/posix-functions/iswupper.texi: Mention the new module.
4738 2020-01-25  Bruno Haible  <bruno@clisp.org>
4740         c32isspace: Add tests.
4741         * tests/test-c32isspace.c: New file.
4742         * tests/test-c32isspace.sh: New file.
4743         * modules/c32isspace-tests: New file.
4745         c32isspace: New module.
4746         * lib/c32isspace.c: New file.
4747         * modules/c32isspace: New file.
4748         * doc/posix-functions/iswspace.texi: Mention the new module.
4750 2020-01-25  Bruno Haible  <bruno@clisp.org>
4752         c32ispunct: Add tests.
4753         * tests/test-c32ispunct.c: New file.
4754         * tests/test-c32ispunct.sh: New file.
4755         * modules/c32ispunct-tests: New file.
4757         c32ispunct: New module.
4758         * lib/c32ispunct.c: New file.
4759         * modules/c32ispunct: New file.
4760         * doc/posix-functions/iswpunct.texi: Mention the new module.
4762 2020-01-25  Bruno Haible  <bruno@clisp.org>
4764         c32isprint: Add tests.
4765         * tests/test-c32isprint.c: New file.
4766         * tests/test-c32isprint.sh: New file.
4767         * modules/c32isprint-tests: New file.
4769         c32isprint: New module.
4770         * lib/c32isprint.c: New file.
4771         * modules/c32isprint: New file.
4772         * doc/posix-functions/iswprint.texi: Mention the new module.
4774 2020-01-25  Bruno Haible  <bruno@clisp.org>
4776         c32islower: Add tests.
4777         * tests/test-c32islower.c: New file.
4778         * tests/test-c32islower.sh: New file.
4779         * modules/c32islower-tests: New file.
4781         c32islower: New module.
4782         * lib/c32islower.c: New file.
4783         * modules/c32islower: New file.
4784         * doc/posix-functions/iswlower.texi: Mention the new module.
4786 2020-01-25  Bruno Haible  <bruno@clisp.org>
4788         c32isgraph: Add tests.
4789         * tests/test-c32isgraph.c: New file.
4790         * tests/test-c32isgraph.sh: New file.
4791         * modules/c32isgraph-tests: New file.
4793         c32isgraph: New module.
4794         * lib/c32isgraph.c: New file.
4795         * modules/c32isgraph: New file.
4796         * doc/posix-functions/iswgraph.texi: Mention the new module.
4798 2020-01-25  Bruno Haible  <bruno@clisp.org>
4800         c32isdigit: Add tests.
4801         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4802         * tests/test-c32isdigit.sh: New file.
4803         * modules/c32isdigit-tests: New file.
4805         c32isdigit: New module.
4806         * lib/c32isdigit.c: New file.
4807         * modules/c32isdigit: New file.
4808         * doc/posix-functions/iswdigit.texi: Mention the new module.
4810 2020-01-25  Bruno Haible  <bruno@clisp.org>
4812         c32iscntrl: Add tests.
4813         * tests/test-c32iscntrl.c: New file.
4814         * tests/test-c32iscntrl.sh: New file.
4815         * modules/c32iscntrl-tests: New file.
4817         c32iscntrl: New module.
4818         * lib/c32iscntrl.c: New file.
4819         * modules/c32iscntrl: New file.
4820         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4822 2020-01-25  Bruno Haible  <bruno@clisp.org>
4824         c32isblank: Add tests.
4825         * tests/test-c32isblank.c: New file.
4826         * tests/test-c32isblank.sh: New file.
4827         * modules/c32isblank-tests: New file.
4829         c32isblank: New module.
4830         * lib/c32isblank.c: New file.
4831         * modules/c32isblank: New file.
4832         * doc/posix-functions/iswblank.texi: Mention the new module.
4834 2020-01-25  Bruno Haible  <bruno@clisp.org>
4836         c32isalpha: Add tests.
4837         * tests/test-c32isalpha.c: New file.
4838         * tests/test-c32isalpha.sh: New file.
4839         * modules/c32isalpha-tests: New file.
4841         c32isalpha: New module.
4842         * lib/c32isalpha.c: New file.
4843         * modules/c32isalpha: New file.
4844         * doc/posix-functions/iswalpha.texi: Mention the new module.
4846 2020-01-25  Bruno Haible  <bruno@clisp.org>
4848         c32isalnum: Add tests.
4849         * tests/test-c32isalnum.c: New file.
4850         * tests/test-c32isalnum.sh: New file.
4851         * modules/c32isalnum-tests: New file.
4853         c32isalnum: New module.
4854         * lib/c32isalnum.c: New file.
4855         * lib/c32is-impl.h: New file.
4856         * modules/c32isalnum: New file.
4857         * doc/posix-functions/iswalnum.texi: Mention the new module.
4859 2020-01-25  Bruno Haible  <bruno@clisp.org>
4861         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4862         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4863         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4864         c32isupper, c32isxdigit): New declarations.
4865         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4866         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4867         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4868         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4869         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4870         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4871         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4872         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4873         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4874         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4875         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4876         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4877         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4879 2020-01-25  Bruno Haible  <bruno@clisp.org>
4881         mbchar, wctype: Use the corrected iswxdigit function.
4882         * modules/mbchar (Depends-on): Add iswxdigit.
4883         * modules/wctype (Depends-on): Likewise.
4885         iswxdigit: Add tests.
4886         * tests/test-iswxdigit.c: New file.
4887         * tests/test-iswxdigit.sh: New file.
4888         * modules/iswxdigit-tests: New file.
4890         iswxdigit: New module.
4891         * m4/iswxdigit.m4: New file.
4892         * lib/wctype.in.h (iswxdigit): Potentially override.
4893         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4894         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4895         * lib/iswxdigit.c: New file.
4896         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4897         REPLACE_ISWXDIGIT.
4898         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4899         REPLACE_ISWXDIGIT.
4900         * modules/iswxdigit: New file.
4901         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4903 2020-01-25  Bruno Haible  <bruno@clisp.org>
4905         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4906         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4907         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4908         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4909         off_t on mingw, invoke _lseeki64 instead of lseek.
4911 2020-01-25  Bruno Haible  <bruno@clisp.org>
4913         iswdigit tests: Avoid test failure on Cygwin.
4914         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4915         byte sequence, return 0.
4917         iswdigit: Fix test failure on native Windows.
4918         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4920         mbchar, wctype: Use the corrected iswdigit function.
4921         * modules/mbchar (Depends-on): Add iswdigit.
4922         * modules/wctype (Depends-on): Likewise.
4924         iswdigit: Add tests.
4925         * tests/test-iswdigit.c: New file.
4926         * tests/test-iswdigit.sh: New file.
4927         * modules/iswdigit-tests: New file.
4929         iswdigit: New module.
4930         * m4/iswdigit.m4: New file.
4931         * lib/wctype.in.h (iswdigit): Potentially override.
4932         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4933         * lib/iswdigit.c: New file.
4934         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4935         REPLACE_ISWDIGIT.
4936         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4937         REPLACE_ISWDIGIT.
4938         * modules/iswdigit: New file.
4939         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4941 2020-01-25  Bruno Haible  <bruno@clisp.org>
4943         hard-locale tests: Make it easy to reuse the musl test.
4944         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4945         * modules/hard-locale-tests (Files): Add it.
4946         (configure.ac): Invoke gl_MUSL_LIBC.
4948 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4950         regex: port to Gawk on nonstandard platforms
4951         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4952         This is useful for Gawk, which does not use the Gnulib stdlib-h
4953         module.  Problem reported by Arnold Robbins in:
4954         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4956 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4958         regex: fix bug with >=16 subexpressions
4959         * lib/regex_internal.h (struct re_backref_cache_entry):
4960         Use bitset_word_t as the type of eps_reachable_subexps_map,
4961         instead of unsigned short int.  This fixes a bug I introduced
4962         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4963         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4964         Remove unused member 'unused'.
4966         regex: simplify definition of BITSET_WORD_BITS
4967         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
4968         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
4969         * lib/regex_internal.h (BITSET_WORD_BITS):
4970         * modules/regex (Depends-on): Add limits-h.
4971         Simplify now that we can use ULONG_WIDTH.
4973 2020-01-20  Bruno Haible  <bruno@clisp.org>
4975         mbrtoc32: Add note about FreeBSD 12.
4976         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
4977         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
4978         affected.
4980 2020-01-20  Bruno Haible  <bruno@clisp.org>
4982         unistr/u8-uctomb: Fix warning.
4983         Reported by Andreas Schwab <schwab@suse.de> in
4984         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
4985         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
4986         (u8_uctomb): Add FALLTHROUGH markers.
4988 2020-01-20  Bruno Haible  <bruno@clisp.org>
4990         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
4991         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
4992         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
4993         (glthread_once): Use it.
4995 2020-01-19  Bruno Haible  <bruno@clisp.org>
4997         threadlib: Disable use of weak symbols on FreeBSD 11.
4998         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4999         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5000         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5001         against a bug in FreeBSD 11.
5003 2020-01-19  Bruno Haible  <bruno@clisp.org>
5005         iconv_open: Improve z/OS support.
5006         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5007         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5008         Remove mapping for EUC-TW.
5010 2020-01-18  Bruno Haible  <bruno@clisp.org>
5012         Rename ~~gnulib.m4 to zzgnulib.m4.
5013         Suggested by Paul Eggert.
5014         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5015         * gnulib-tool (func_get_filelist): Update.
5016         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5018 2020-01-18  Bruno Haible  <bruno@clisp.org>
5020         doc: Update license notices.
5021         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5022         reference to a section or to a "file as part of this distribution".
5024 2020-01-18  Bruno Haible  <bruno@clisp.org>
5026         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5028         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5029         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5030         AC_EGREP_CPP.
5032 2020-01-18  Bruno Haible  <bruno@clisp.org>
5034         Ensure Automake does not drop ~~gnulib.m4.
5035         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5036         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5038 2020-01-18  Bruno Haible  <bruno@clisp.org>
5040         Fix major regression from 2020-01-10.
5041         Reported by Paul Eggert in
5042         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5043         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5044         Don't AC_REQUIRE anything.
5045         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5046         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5047         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5048         use ac_compile instead.
5049         (AC_CHECK_DECL): Remove override.
5050         * m4/~~gnulib.m4: New file.
5051         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5052         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5054 2020-01-17  Bruno Haible  <bruno@clisp.org>
5055             Paul Eggert  <eggert@cs.ucla.edu>
5057         glob: Fix use-after-free bug.
5058         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5059         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5060         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5061         end_name.
5063 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5065         vcs-to-changelog: Fix parsing of fndecl without args.
5066         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5067         for empty arguments.
5069 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5071         vcs-to-changelog: Add documentation.
5072         * doc/vcs-to-changelog.texi: New file.
5073         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
5074         section.
5076 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5078         vcs-to-changelog: Allow loading of custom quirks file.
5079         * build-aux/vcs_to_changelog.py: New commandline option -q.
5081 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5083         vcs-to-changelog: Fix formatting of ChangeLog output.
5084         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
5085         output.
5087 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5089         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
5090         Reported in
5091         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
5092         * build-aux/vcstocl/frontend_c.py: Remove shebang.
5094 2020-01-15  Simon Josefsson  <simon@josefsson.org>
5096         crypto/gc-pbkdf2: New module.
5097         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
5098         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
5099         * lib/gc-pbkdf2.c: New file.
5100         * lib/gc-pbkdf2-sha1.c: Use new interface.
5101         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
5102         * modules/crypto/gc-pbkdf2: New file.
5103         * modules/crypto/gc-pbkdf2-tests: New file.
5104         * tests/test-gc-pbkdf2.c: New file.
5106 2020-01-12  Bruno Haible  <bruno@clisp.org>
5108         c32stombs: Add tests.
5109         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5110         * tests/test-c32stombs-1.sh: New file, based on
5111         tests/test-c32srtombs-1.sh.
5112         * tests/test-c32stombs-2.sh: New file, based on
5113         tests/test-c32srtombs-2.sh.
5114         * tests/test-c32stombs-3.sh: New file, based on
5115         tests/test-c32srtombs-3.sh.
5116         * tests/test-c32stombs-4.sh: New file, based on
5117         tests/test-c32srtombs-4.sh.
5118         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5120         c32stombs: New module.
5121         * lib/uchar.in.h (c32stombs): New declaration.
5122         * lib/c32stombs.c: New file.
5123         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5124         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5125         * modules/c32stombs: New file.
5126         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5127         * doc/posix-functions/wcstombs.texi: Mention the new module.
5129 2020-01-11  Jim Meyering  <meyering@fb.com>
5131         perl: require the "warnings" module
5132         * m4/perl.m4: Also "use warnings", so we reject the perl found
5133         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5134         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5136 2020-01-10  Bruno Haible  <bruno@clisp.org>
5138         Fix major regression from 2020-01-04.
5139         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5140         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5141         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5142         AC_DEFUN_ONCE.
5143         (AC_CHECK_DECL): Invoke, not require, it.
5145 2020-01-10  Bruno Haible  <bruno@clisp.org>
5147         c32snrtombs: Add tests.
5148         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5149         * tests/test-c32snrtombs-1.sh: New file, based on
5150         tests/test-wcsnrtombs1.sh.
5151         * tests/test-c32snrtombs-2.sh: New file, based on
5152         tests/test-wcsnrtombs2.sh.
5153         * tests/test-c32snrtombs-3.sh: New file, based on
5154         tests/test-wcsnrtombs3.sh.
5155         * tests/test-c32snrtombs-4.sh: New file, based on
5156         tests/test-wcsnrtombs4.sh.
5157         * modules/c32snrtombs-tests: New file, based on
5158         modules/wcsnrtombs-tests.
5160         c32snrtombs: New module.
5161         * lib/uchar.in.h (c32snrtombs): New declaration.
5162         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5163         INTERNAL_STATE, WCRTOMB.
5164         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5165         * lib/c32snrtombs.c: New file.
5166         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5167         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5168         * modules/c32snrtombs: New file.
5169         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5170         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5172 2020-01-09  Bruno Haible  <bruno@clisp.org>
5174         c32srtombs: Add tests.
5175         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5176         * tests/test-c32srtombs-1.sh: New file, based on
5177         tests/test-wcsrtombs1.sh.
5178         * tests/test-c32srtombs-2.sh: New file, based on
5179         tests/test-wcsrtombs2.sh.
5180         * tests/test-c32srtombs-3.sh: New file, based on
5181         tests/test-wcsrtombs3.sh.
5182         * tests/test-c32srtombs-4.sh: New file, based on
5183         tests/test-wcsrtombs4.sh.
5184         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5186         c32srtombs: New module.
5187         * lib/uchar.in.h (c32srtombs): New declaration.
5188         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5189         INTERNAL_STATE, WCRTOMB.
5190         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5191         * lib/c32srtombs.c: New file.
5192         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5193         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5194         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5195         * modules/c32srtombs: New file.
5196         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5197         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5199 2020-01-08  Bruno Haible  <bruno@clisp.org>
5201         c32tob: Make consistent with mbrtoc32.
5202         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5203         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5204         use c32rtomb, not wctob.
5205         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5206         (Depends-on): Add c32rtomb.
5207         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5209 2020-01-08  Bruno Haible  <bruno@clisp.org>
5211         c32rtomb: Add tests.
5212         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5213         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5214         * tests/test-c32rtomb-w32.c: New file, based on
5215         tests/test-wcrtomb-w32.c.
5216         * tests/test-c32rtomb-w32-1.sh: New file, based on
5217         tests/test-wcrtomb-w32-1.sh.
5218         * tests/test-c32rtomb-w32-2.sh: New file, based on
5219         tests/test-wcrtomb-w32-2.sh.
5220         * tests/test-c32rtomb-w32-3.sh: New file, based on
5221         tests/test-wcrtomb-w32-3.sh.
5222         * tests/test-c32rtomb-w32-4.sh: New file, based on
5223         tests/test-wcrtomb-w32-4.sh.
5224         * tests/test-c32rtomb-w32-5.sh: New file, based on
5225         tests/test-wcrtomb-w32-5.sh.
5226         * tests/test-c32rtomb-w32-6.sh: New file, based on
5227         tests/test-wcrtomb-w32-6.sh.
5228         * tests/test-c32rtomb-w32-7.sh: New file, based on
5229         tests/test-wcrtomb-w32-7.sh.
5230         * modules/c32rtomb-tests: New file.
5232         c32rtomb: New module.
5233         * lib/uchar.in.h (c32rtomb): New declaration.
5234         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5235         * m4/c32rtomb.m4: New file.
5236         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5237         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5238         REPLACE_C32RTOMB.
5239         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5240         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5241         * modules/c32rtomb: New file.
5242         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5243         * doc/posix-functions/c32rtomb.texi: Document the new module.
5244         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5246 2020-01-08  Bruno Haible  <bruno@clisp.org>
5248         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5249         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5250         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5251         but is not working.
5252         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5253         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5254         differ, use the system's mbrtoc32, adding workarounds.
5255         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5256         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5257         Windows problem.
5258         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5259         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5260         use mbrtoc32, not btowc.
5261         * modules/btoc32 (Depends-on): Add mbrtoc32.
5262         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5263         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5264         * modules/mbsrtoc32s (Depends-on): Update conditions.
5265         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5266         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5267         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5268         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5269         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5271 2020-01-07  Bruno Haible  <bruno@clisp.org>
5273         wcrtomb: Make multithread-safe, except possibly on IRIX.
5274         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5275         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5276         WCRTOMB_RETVAL_BUG.
5277         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5278         wctomb only on IRIX.
5280 2020-01-05  Jim Meyering  <meyering@fb.com>
5282         tests: skip thread-using tests when threading is disabled
5283         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5284         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5285         of those, so they are skipped in this case.
5286         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5287         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5288         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5290 2020-01-05  Bruno Haible  <bruno@clisp.org>
5292         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5293         Reported by Jim Meyering in
5294         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5295         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5296         (GNULIB_defined_ptsname_r): New macro.
5297         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5298         (main): Disable the NULL argument test if canonicalize_file_name does
5299         not come from gnulib.
5300         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5301         (main): Disable the NULL argument test if canonicalize_file_name does
5302         not come from gnulib.
5303         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5304         (test_errors): Disable the NULL argument test if ptsname_r does not come
5305         from gnulib.
5307 2020-01-04  Jim Meyering  <meyering@fb.com>
5309         update-copyright: reenable its always-skipped test
5310         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5311         on 2019-06-15. Without those, an internal preliminary test would
5312         fail, causing this test always to be skipped.
5313         Verify that the test is now run and passes via this:
5314           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5316 2020-01-05  Bruno Haible  <bruno@clisp.org>
5318         mbstoc32s: Add tests.
5319         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5320         * tests/test-mbstoc32s-1.sh: New file, based on
5321         tests/test-mbsrtoc32s-1.sh.
5322         * tests/test-mbstoc32s-2.sh: New file, based on
5323         tests/test-mbsrtoc32s-2.sh.
5324         * tests/test-mbstoc32s-3.sh: New file, based on
5325         tests/test-mbsrtoc32s-3.sh.
5326         * tests/test-mbstoc32s-4.sh: New file, based on
5327         tests/test-mbsrtoc32s-4.sh.
5328         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5330         mbstoc32s: New module.
5331         * lib/uchar.in.h (mbstoc32s): New declaration.
5332         * lib/mbstoc32s.c: New file.
5333         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5334         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5335         * modules/mbstoc32s: New file.
5336         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5337         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5339 2020-01-05  Bruno Haible  <bruno@clisp.org>
5341         Tweak recently added tests.
5342         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5343         * tests/test-mbsrtoc32s.c: Likewise.
5344         * tests/test-mbsnrtoc32s.c: Likewise.
5346 2020-01-04  Bruno Haible  <bruno@clisp.org>
5348         mbsnrtoc32s: Add tests.
5349         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5350         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5351         tests/test-mbsnrtowcs1.sh.
5352         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5353         tests/test-mbsnrtowcs2.sh.
5354         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5355         tests/test-mbsnrtowcs3.sh.
5356         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5357         tests/test-mbsnrtowcs4.sh.
5358         * modules/mbsnrtoc32s-tests: New file, based on
5359         modules/mbsnrtowcs-tests.
5361         mbsnrtoc32s: New module.
5362         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5363         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5364         INTERNAL_STATE, MBRTOWC.
5365         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5366         * lib/mbsnrtoc32s.c: New file.
5367         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5368         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5369         * modules/mbsnrtoc32s: New file.
5370         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5371         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5373 2020-01-04  Bruno Haible  <bruno@clisp.org>
5375         mbsrtoc32s tests: Enhance test.
5376         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5377         test strings for UTF-8 and GB18030.
5379 2020-01-04  Bruno Haible  <bruno@clisp.org>
5381         mbsrtoc32s: Fix bug.
5382         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5383         that SMALL_WCHAR_T is defined.
5385 2020-01-04  Bruno Haible  <bruno@clisp.org>
5387         mbsrtoc32s: Add tests.
5388         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5389         * tests/test-mbsrtoc32s-1.sh: New file, based on
5390         tests/test-mbsrtowcs1.sh.
5391         * tests/test-mbsrtoc32s-2.sh: New file, based on
5392         tests/test-mbsrtowcs2.sh.
5393         * tests/test-mbsrtoc32s-3.sh: New file, based on
5394         tests/test-mbsrtowcs3.sh.
5395         * tests/test-mbsrtoc32s-4.sh: New file, based on
5396         tests/test-mbsrtowcs4.sh.
5397         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5399         mbsrtoc32s: New module.
5400         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5401         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5402         INTERNAL_STATE, MBRTOWC.
5403         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5404         * lib/mbsrtoc32s.c: New file.
5405         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5406         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5407         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5408         * modules/mbsrtoc32s: New file.
5409         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5410         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5412 2020-01-04  Bruno Haible  <bruno@clisp.org>
5414         mbrtowc, mbrtoc32: Tighten dependendies.
5415         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5416         REPLACE_MBSTATE_T is 1.
5417         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5418         REPLACE_MBSTATE_T is 0.
5419         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5420         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5421         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5422         REPLACE_MBSTATE_T is 0.
5424 2020-01-04  Bruno Haible  <bruno@clisp.org>
5426         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5427         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5428         * modules/uchar (Files): Add stdint.m4.
5429         (Makefile.am): Substitute SMALL_WCHAR_T.
5430         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5432 2020-01-04  Bruno Haible  <bruno@clisp.org>
5434         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5435         Reported by Martin Storsjö <martin@martin.st> in
5436         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5437         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5438         New macros.
5439         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5441 2020-01-04  Bruno Haible  <bruno@clisp.org>
5443         btoc32: Add tests.
5444         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5445         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5446         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5447         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5449         btoc32: New module.
5450         * lib/uchar.in.h (btoc32): New declaration.
5451         * lib/btoc32.c: New file.
5452         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5453         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5454         * modules/btoc32: New file.
5455         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5456         * doc/posix-functions/btowc.texi: Mention the new module.
5458 2020-01-03  Bruno Haible  <bruno@clisp.org>
5460         uchar tests: Avoid compilation error with HP cc.
5461         * tests/test-uchar.c: Disable a test when HP cc is in use.
5463 2020-01-03  Bruno Haible  <bruno@clisp.org>
5465         mbrtoc32: Add tests.
5466         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5467         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5468         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5469         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5470         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5471         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5472         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5473         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5474         tests/test-mbrtowc-w32-1.sh.
5475         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5476         tests/test-mbrtowc-w32-2.sh.
5477         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5478         tests/test-mbrtowc-w32-3.sh.
5479         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5480         tests/test-mbrtowc-w32-4.sh.
5481         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5482         tests/test-mbrtowc-w32-5.sh.
5483         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5484         tests/test-mbrtowc-w32-6.sh.
5485         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5486         tests/test-mbrtowc-w32-7.sh.
5487         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5489         mbrtoc32: New module.
5490         * lib/uchar.in.h (mbrtoc32): New declaration.
5491         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5492         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5493         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5494         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5495         REPLACE_MBRTOC32.
5496         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5497         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5498         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5499         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5500         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5501         $(LIB_MBRTOWC).
5502         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5503         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5505 2020-01-03  Bruno Haible  <bruno@clisp.org>
5507         mbrtowc: Refactor to share code with mbrtoc32.
5508         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5509         * lib/mbrtowc-impl-utf8.h: Likewise.
5510         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5511         mbrtowc-impl.h.
5512         * modules/mbrtowc (Files): Add the new files.
5514 2020-01-03  Jim Meyering  <meyering@fb.com>
5516         doc: fix time.texi wording
5517         * doc/posix-headers/time.texi (time.h): Typo.
5519 2020-01-03  Bruno Haible  <bruno@clisp.org>
5521         mbrtowc: Refactor locale charset dispatching.
5522         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5523         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5524         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5525         localcharset.h, streq.h.
5526         (enc_t): Remove type.
5527         (locale_enc): Remove function.
5528         (cached_locale_enc): Remove variable.
5529         (locale_enc_cached): Remove function.
5530         (mbrtowc): Invoke locale_encoding_classification.
5531         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5532         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5533         lc-charset-dispatch.c.
5534         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5536 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5538         doc: mention 32-bit time_t issue
5539         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5540         * doc/posix-headers/time.texi (time.h): Mention 2038.
5542 2020-01-03  Bruno Haible  <bruno@clisp.org>
5544         mbrtowc: Ensure the mbtowc_lock is unique.
5545         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5546         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5547         lib/setlocale_null.c.
5548         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5549         glthread/lock.h. Include mbtowc-lock.h.
5550         (mbtowc_lock): Remove declaration.
5551         (mbrtowc): Use mbtowc_with_lock.
5552         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5553         threads.h. Set LIB_MBRTOWC.
5554         (gl_PREREQ_MBTOWC_LOCK): New macro.
5555         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5556         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5557         (Depends-on): Remove lock.
5558         (configure.ac): Arrange to compile mbtowc-lock.c.
5559         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5560         * modules/acl (Link): Likewise.
5561         * modules/argmatch (Link): Likewise.
5562         * modules/backup-rename (Link): Likewise.
5563         * modules/backupfile (Link): Likewise.
5564         * modules/closein (Link): Likewise.
5565         * modules/closeout (Link): Likewise.
5566         * modules/copy-file (Link): Likewise.
5567         * modules/csharpcomp (Link): Likewise.
5568         * modules/csharpexec (Link): Likewise.
5569         * modules/dfa (Link): Likewise.
5570         * modules/exclude (Link): Likewise.
5571         * modules/fnmatch (Link): Likewise.
5572         * modules/fnmatch-gnu (Link): Likewise.
5573         * modules/fnmatch-posix (Link): Likewise.
5574         * modules/glob (Link): Likewise.
5575         * modules/human (Link): Likewise.
5576         * modules/javacomp (Link): Likewise.
5577         * modules/javaexec (Link): Likewise.
5578         * modules/javaversion (Link): Likewise.
5579         * modules/mbfile (Link): Likewise.
5580         * modules/mbiter (Link): Likewise.
5581         * modules/mbmemcasecmp (Link): Likewise.
5582         * modules/mbmemcasecoll (Link): Likewise.
5583         * modules/mbrlen (Link): Likewise.
5584         * modules/mbscasecmp (Link): Likewise.
5585         * modules/mbscasestr (Link): Likewise.
5586         * modules/mbschr (Link): Likewise.
5587         * modules/mbscspn (Link): Likewise.
5588         * modules/mbsinit (Link): Likewise.
5589         * modules/mbslen (Link): Likewise.
5590         * modules/mbsncasecmp (Link): Likewise.
5591         * modules/mbsnlen (Link): Likewise.
5592         * modules/mbsnrtowcs (Link): Likewise.
5593         * modules/mbspbrk (Link): Likewise.
5594         * modules/mbspcasecmp (Link): Likewise.
5595         * modules/mbsrchr (Link): Likewise.
5596         * modules/mbsrtowcs (Link): Likewise.
5597         * modules/mbssep (Link): Likewise.
5598         * modules/mbsspn (Link): Likewise.
5599         * modules/mbsstr (Link): Likewise.
5600         * modules/mbstok_r (Link): Likewise.
5601         * modules/mbswidth (Link): Likewise.
5602         * modules/mbuiter (Link): Likewise.
5603         * modules/mkdir-p (Link): Likewise.
5604         * modules/propername (Link): Likewise.
5605         * modules/quote (Link): Likewise.
5606         * modules/quotearg (Link): Likewise.
5607         * modules/quotearg-simple (Link): Likewise.
5608         * modules/regex-quote (Link): Likewise.
5609         * modules/rpmatch (Link): Likewise.
5610         * modules/sh-quote (Link): Likewise.
5611         * modules/system-quote (Link): Likewise.
5612         * modules/trim (Link): Likewise.
5613         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5614         * modules/unistdio/ulc-fprintf (Link): Likewise.
5615         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5616         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5617         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5618         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5619         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5620         * modules/xfreopen (Link): Likewise.
5621         * modules/xmemcoll (Link): Likewise.
5622         * modules/yesno (Link): Likewise.
5623         * modules/regex (Link): Add $(LIB_MBRTOWC).
5624         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5625         instead of $(LIBTHREAD).
5626         * modules/argmatch-tests (Makefile.am): Likewise.
5627         * modules/closein-tests (Makefile.am): Likewise.
5628         * modules/copy-file-tests (Makefile.am): Likewise.
5629         * modules/dfa-tests (Makefile.am): Likewise.
5630         * modules/fnmatch-tests (Makefile.am): Likewise.
5631         * modules/glob-tests (Makefile.am): Likewise.
5632         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5633         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5634         * modules/mbrtowc-tests (Makefile.am): Likewise.
5635         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5636         * modules/mbscasestr-tests (Makefile.am): Likewise.
5637         * modules/mbschr-tests (Makefile.am): Likewise.
5638         * modules/mbscspn-tests (Makefile.am): Likewise.
5639         * modules/mbsinit-tests (Makefile.am): Likewise.
5640         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5641         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5642         * modules/mbspbrk-tests (Makefile.am): Likewise.
5643         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5644         * modules/mbsrchr-tests (Makefile.am): Likewise.
5645         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5646         * modules/mbsspn-tests (Makefile.am): Likewise.
5647         * modules/mbsstr-tests (Makefile.am): Likewise.
5648         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5649         * modules/quotearg-tests (Makefile.am): Likewise.
5650         * modules/readtokens-tests (Makefile.am): Likewise.
5651         * modules/sh-quote-tests (Makefile.am): Likewise.
5652         * modules/system-quote-tests (Makefile.am): Likewise.
5653         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5654         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5655         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5656         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5657         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5658         * modules/yesno-tests (Makefile.am): Likewise.
5659         * modules/exclude-tests (Makefile.am): Link the programs with
5660         $(LIB_MBRTOWC).
5661         * modules/regex-tests (Makefile.am): Likewise.
5662         * modules/regex-quote-tests (Makefile.am): Likewise.
5664 2020-01-03  Bruno Haible  <bruno@clisp.org>
5666         getopt-posix: Fix compilation failure in testdirs.
5667         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5668         when the gnulib module 'getopt-posix' is enabled.
5669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5670         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5671         module indicator.
5672         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5674 2020-01-03  Bruno Haible  <bruno@clisp.org>
5676         doc: Mention the 64-bit inode number problem.
5677         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5678         64-bit inode number problem.
5679         * doc/posix-functions/stat.texi: Mention that this module fixes the
5680         64-bit inode number problem.
5681         * doc/posix-functions/lstat.texi: Likewise.
5682         * doc/posix-functions/fstat.texi: Likewise.
5683         * doc/posix-functions/readdir.texi: Add more details.
5684         * doc/posix-functions/readdir_r.texi: Likewise.
5686 2020-01-02  Bruno Haible  <bruno@clisp.org>
5688         wcrtomb: Add more tests.
5689         * tests/test-wcrtomb-w32.c: Include localcharset.h.
5690         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5691         locale_charset() returns the expected value; otherwise, skip the test.
5692         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
5693         * tests/test-wcrtomb-w32-7.sh: Likewise.
5694         * modules/wcrtomb-tests (Files): Add these files.
5695         (Depends-on): Add localcharset.
5696         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5698 2020-01-02  Bruno Haible  <bruno@clisp.org>
5700         mbrtowc: Add more tests.
5701         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5702         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5703         locale_charset() returns the expected value; otherwise, skip the test.
5704         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5705         * tests/test-mbrtowc-w32-7.sh: Likewise.
5706         * modules/mbrtowc-tests (Files): Add these files.
5707         (Depends-on): Add localcharset.
5708         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5710 2020-01-02  Bruno Haible  <bruno@clisp.org>
5712         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5713         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5714         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5715         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5716         MBRTOWC_STORES_INCOMPLETE_BUG.
5717         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5719 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5721         doc: mention glibc bug 24269
5722         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5723         Reformat slightly so that it looks nicer in the Grep manual.
5725 2020-01-02  Bruno Haible  <bruno@clisp.org>
5727         mbrtowc: Don't replace mbstate_t on MSVC.
5728         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5729         a missing mbsinit function on native Windows.
5730         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5731         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5732         MSVC bug.
5733         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5735 2020-01-02  Bruno Haible  <bruno@clisp.org>
5737         setlocale-null: Avoid crashing the MSVC linker.
5738         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5739         MSVC.
5741 2020-01-02  Bruno Haible  <bruno@clisp.org>
5743         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5744         * modules/wchar (Depends-on): Add inttypes-incomplete.
5745         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5746         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5747         of strtoimax.
5749 2020-01-02  Bruno Haible  <bruno@clisp.org>
5751         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5752         * lib/mbrtowc.c: Include <stdint.h>.
5753         * modules/mbrtowc (Depends-on): Add stdint.
5755 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5757         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5758         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5759         which will auto enable use of openssl, only for >= version 3,
5760         which is newly licensed under the Apache Software License.
5762 2020-01-01  Bruno Haible  <bruno@clisp.org>
5764         mbrtowc: Include function name in macro names.
5765         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5766         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5767         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5768         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5769         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5770         C_LOCALE_MAYBE_EILSEQ.
5772 2020-01-01  Bruno Haible  <bruno@clisp.org>
5774         c32tob: New module.
5775         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5776         (c32tob): New declaration.
5777         * lib/c32tob.c: New file.
5778         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5779         macros.
5780         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5781         * modules/uchar (Depends-on): Add snippet/c++defs.
5782         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5783         uchar.h.
5784         * modules/c32tob: New file.
5785         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5786         defined.
5787         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5788         c32tob.
5789         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5790         * doc/posix-functions/wctob.texi: Mention the new module.
5792 2020-01-01  Bruno Haible  <bruno@clisp.org>
5794         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5795         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5796         $(LIB_SETLOCALE).
5798 2020-01-01  Bruno Haible  <bruno@clisp.org>
5800         hard-locale tests: Fix a conflict with the C++ tests.
5801         * modules/hard-locale-tests (Makefile.am): Build a program named
5802         'current-locale', not 'locale'.
5804 2020-01-01  Bruno Haible  <bruno@clisp.org>
5806         doc: Update documentation about wchar_t.
5807         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5808         wchar_t type.
5810 2020-01-01  Bruno Haible  <bruno@clisp.org>
5812         mbrtowc tests: Fix typos.
5813         * tests/test-mbrtowc.c (main): Fix typo.
5814         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5816 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5818         maint: update copyright notices
5819         Before doing the following changes done by hand, I also ran ‘make
5820         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5821         to do most of the copyright years automatically.  A few upstream
5822         sources are still in 2019 but these should eventually be changed
5823         automatically too.
5824         * build-aux/declared.sh (func_version):
5825         * build-aux/libtool-next-version (func_version):
5826         * build-aux/run-test (func_version):
5827         Update these notices by hand.  Put just the last year
5828         in output of programs, as per GNU coding standards.
5830 2019-12-31  Bruno Haible  <bruno@clisp.org>
5832         uchar: Add C++ tests.
5833         * tests/test-uchar-c++.cc: New file.
5834         * tests/test-uchar-c++2.cc: New file.
5835         * modules/uchar-c++-tests: New file.
5837         uchar: Add tests.
5838         * tests/test-uchar.c: New file.
5839         * modules/uchar-tests: New file.
5841         uchar: New module.
5842         * lib/uchar.in.h: New file.
5843         * m4/uchar.m4: New file.
5844         * modules/uchar: New file.
5845         * doc/posix-headers/uchar.texi: Mention the new module.
5847 2019-12-30  Jim Meyering  <meyering@fb.com>
5849         localeinfo: ->simple would be wrong for LC_ALL=C
5850         That would lead to using unnecessary and expensive code paths in dfa.c.
5851         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5852         error that would have made grep many times slower in the C locale.
5853         With this change, and a file created like this:
5854           yes 00 | head -10000000 > in
5855         Running grep as follows becomes more than 40 times faster:
5856           LC_ALL=C grep -Fw 0 in
5858 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5860         doc: document trouble with back-references
5861         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5863 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5865         doc: use “back-reference” for \1 etc.
5866         * doc/regex.texi: Consistently spell “back-reference” with
5867         a hyphen, since that’s how POSIX does it.
5869 2019-12-26  Jim Meyering  <meyering@fb.com>
5871         test-framework-sh: tighten an internal grep regexp
5872         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5873         that helps test for a working printf.
5875 2019-12-26  Bruno Haible  <bruno@clisp.org>
5877         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5878         Reported by Paul Eggert in
5879         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5880         Simplification by Jim Meyering.
5881         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5882         octal escape sequence in a UTF-8 locale.
5884 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5886         mbrtowc: port better to narrow-wchar_t platforms
5887         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5888         wchar_t is too narrow to represent all the Unicode characters,
5889         consider a byte sequence for an out-of-wchar_t-range character to
5890         be an encoding error.  This fixes grep’s surrogate-pair test
5891         failure on AIX 7.2.
5893 2019-12-24  Bruno Haible  <bruno@clisp.org>
5895         localcharset: Avoid referencing rpl_setlocale on native Windows.
5896         * lib/localcharset.c (setlocale): Undefine.
5898 2019-12-24  Bruno Haible  <bruno@clisp.org>
5900         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5901         * m4/semaphore.m4: New file.
5902         * modules/lock-tests (Files): Add it.
5903         (configure.ac): Require gl_SEMAPHORE.
5904         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5906 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5908         strptime: fix typo in previous patch
5909         Problem and fix reported by Bruno Haible in:
5910         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5911         * lib/strptime.c (day_of_the_week): Fix paren bug.
5913 2019-12-24  Bruno Haible  <bruno@clisp.org>
5915         setlocale-null: Make it easy to rely on the lock in another library.
5916         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5917         defined.
5919 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5921         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5922         Performanced analyzed by Bruno Haible in:
5923         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5924         * config/srclist.txt: Do not sync mktime.c for now.
5925         * lib/mktime.c (shr, ydhms_diff):
5926         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5927         * lib/strptime.c (day_of_the_week):
5928         * lib/xtime.h (xtime_sec):
5929         Redo with neither ‘%’ nor conditional branches.
5931 2019-12-23  Bruno Haible  <bruno@clisp.org>
5933         setlocale-null: Export the lock function also on non-Windows platforms.
5934         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5935         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5936         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5937         * modules/setlocale-null (configure.ac): Invoke it.
5938         (Files): Add m4/visibility.m4.
5940 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5942         gethrxtime: fix rounding bug with negative args
5943         Problem reported by Bruno Haible in:
5944         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5945         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5946         with negative rounding.  Common platforms can compute / and % with
5947         a single instruction, so the simplified code should be shorter and
5948         faster on these platforms anyway.
5950 2019-12-22  Bruno Haible  <bruno@clisp.org>
5952         gethrxtime: remove incorrect overflow detection
5953         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5954         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5955         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5956         cannot now see the need for anyway (even in cases where it works),
5957         as the patch is helpful only when the signs of S and NS disagree,
5958         and all callers pass nonnegative values for S and NS.
5960 2019-12-22  Bruno Haible  <bruno@clisp.org>
5962         setlocale-null: Add standalone include file.
5963         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5964         * lib/locale.in.h: Include setlocale_null.h.
5965         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5966         setlocale_null): Remove declarations.
5967         * lib/setlocale_null.c: Include setlocale_null.h.
5968         * lib/localename.c: Likewise.
5969         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
5970         (Depends-on): Add snippet/arg-nonnull.
5971         (Include): Allow either "setlocale_null.h" or <locale.h>.
5973 2019-12-22  Bruno Haible  <bruno@clisp.org>
5975         strfmon_l: Fix test failures on FreeBSD and Cygwin.
5976         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
5977         AC_RUN_IFELSE test.
5978         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
5979         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
5980         problem.
5982 2019-12-22  Bruno Haible  <bruno@clisp.org>
5984         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
5985         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
5986         unconditional AC_LIBOBJ.
5987         * modules/selinux-at: Likewise.
5988         * modules/xmemdup0: Likewise.
5989         * modules/xstrtoll: Likewise.
5991 2019-12-22  Bruno Haible  <bruno@clisp.org>
5993         longlong: Mark module obsolete.
5994         * modules/longlong (Status, Notice): New sections.
5996         stdint: Assume that the compiler supports 'long long'.
5997         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
5998         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
5999         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6000         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6001         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6002         * modules/stdint (Files): Remove longlong.m4.
6003         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6004         HAVE_UNSIGNED_LONG_LONG_INT.
6006         inttypes-incomplete: Assume that the compiler supports 'long long'.
6007         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6008         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6009         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6010         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6011         HAVE_LONG_LONG_INT to be 1.
6012         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6013         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6015         malloca: Assume that the compiler supports 'long long'.
6016         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6017         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6018         * modules/malloca (Files): Remove longlong.m4.
6019         * modules/relocatable-prog-wrapper (Files): Likewise.
6021         atoll: Assume that the compiler supports 'long long'.
6022         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6023         * modules/atoll (Files): Remove longlong.m4.
6025         strtoll: Assume that the compiler supports 'long long'.
6026         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6027         * modules/strtoll (Files): Remove longlong.m4.
6029         strtoull: Assume that the compiler supports 'long long'.
6030         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6031         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6032         * modules/strtoull (Files): Remove longlong.m4.
6034         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6035         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6036         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6037         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6038         AC_TYPE_LONG_LONG_INT.
6039         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6040         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6041         * modules/strtoimax (Files): Remove longlong.m4.
6042         * modules/strtoumax (Files): Likewise.
6044         xstrtoll: Assume that the compiler supports 'long long'.
6045         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6046         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6048         vasnprintf: Assume that the compiler supports 'long long'.
6049         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6050         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6051         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6052         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6053         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6054         require AC_TYPE_LONG_LONG_INT.
6055         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6056         gl_PREREQ_VASNPRINTF): Likewise.
6057         * modules/vasnprintf (Files): Remove longlong.m4.
6058         * modules/c-vasnprintf (Files): Likewise.
6059         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6060         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6061         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6062         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6063         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6064         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6065         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6067         gethrxtime: Assume that the compiler supports 'long long'.
6068         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6069         (XTIME_PRECISION): Define to 1000000000 always.
6070         (xtime_make, xtime_sec): Optimize accordingly.
6071         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6072         * modules/gethrxtime (Files): Remove longlong.m4.
6074         integer_length*: Assume that the compiler supports 'long long'.
6075         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
6076         * modules/integer_length (Files): Remove longlong.m4.
6077         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6078         * modules/integer_length_l (Files): Remove longlong.m4.
6079         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6080         * modules/integer_length_ll (Files): Remove longlong.m4.
6081         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
6083         count-one-bits: Assume that the compiler supports 'long long'.
6084         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
6085         * m4/count-one-bits.m4: Remove file.
6086         * modules/count-one-bits (Files): Remove it.
6087         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
6088         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
6089         unconditionally.
6091         count-trailing-zeros: Assume that the compiler supports 'long long'.
6092         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
6093         unconditionally.
6094         * m4/count-trailing-zeros.m4: Remove file.
6095         * modules/count-trailing-zeros (Files): Remove it.
6096         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
6097         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
6098         unconditionally.
6100         count-leading-zeros: Assume that the compiler supports 'long long'.
6101         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
6102         unconditionally.
6103         * m4/count-leading-zeros.m4: Remove file.
6104         * modules/count-leading-zeros (Files): Remove it.
6105         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
6106         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
6107         unconditionally.
6109 2019-12-22  Bruno Haible  <bruno@clisp.org>
6111         localcharset: Update support for OpenBSD.
6112         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6114 2019-12-21  Bruno Haible  <bruno@clisp.org>
6116         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6117         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6118         NetBSD.
6119         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6121 2019-12-21  Bruno Haible  <bruno@clisp.org>
6123         threadlib: Improve code structure.
6124         * m4/threadlib.m4: Reorder macros. Add comments.
6126 2019-12-21  Bruno Haible  <bruno@clisp.org>
6128         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6129         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6130         here from m4/threads.m4).
6131         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6132         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6133         (gl_STDTHREADLIB): New macro.
6134         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6135         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6137 2019-12-21  Bruno Haible  <bruno@clisp.org>
6139         sched_yield: Don't depend on threadlib and yield.
6140         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6141         LIB_SCHED_YIELD.
6142         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6143         m4/yield.m4).
6144         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6145         gl_THREADLIB and gl_YIELD.
6146         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6147         based on $(LIB_SCHED_YIELD).
6148         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6149         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6150         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6151         (Depends-on): Remove threadlib.
6152         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6153         * modules/threads-h (Files): Remove m4/yield.m4.
6154         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6155         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6156         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6157         * modules/pthread-once-tests (Makefile.am): Likewise.
6158         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6159         * modules/pthread-tss-tests (Makefile.am): Likewise.
6161 2019-12-21  Bruno Haible  <bruno@clisp.org>
6163         threads-h: Don't depend on threadlib.
6164         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6165         not gl_THREADLIB_EARLY.
6167 2019-12-21  Bruno Haible  <bruno@clisp.org>
6169         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6170         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6171         with $(LIB_SETLOCALE).
6173 2019-12-21  Bruno Haible  <bruno@clisp.org>
6175         threadlib: Remove unused dependency (left over from 2019-07-06).
6176         * modules/threadlib (Depends-on): Remove havelib.
6178 2019-12-21  Bruno Haible  <bruno@clisp.org>
6180         New convention for multithread-safety tests.
6181         * tests/test-setlocale_null-mt-one.c: Renamed from
6182         tests/test-setlocale_null-one.c.
6183         * tests/test-setlocale_null-mt-all.c: Renamed from
6184         tests/test-setlocale_null-all.c.
6185         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6187 2019-12-21  Bruno Haible  <bruno@clisp.org>
6189         quotearg tests: Fix conflict with hard-locale tests.
6190         * tests/testlocale: Renamed from tests/locale.
6191         * modules/quotearg-tests (Files): Update.
6192         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6194 2019-12-21  Bruno Haible  <bruno@clisp.org>
6196         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6197         Reported by Daniel Richard G. in
6198         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6199         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6200         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6201         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6202         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6203         alternative to PTHREAD_RWLOCK_INITIALIZER.
6204         * lib/glthread/lock.c: Likewise.
6206 2019-12-21  Bruno Haible  <bruno@clisp.org>
6208         memcmp tests: Work around the clang bug.
6209         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6210         the clang optimization.
6212 2019-12-20  Bruno Haible  <bruno@clisp.org>
6214         localcharset: Add support for z/OS encoding names.
6215         * lib/localcharset.h: Mention which encodings are used as locale
6216         encodings on z/OS.
6218 2019-12-20  Bruno Haible  <bruno@clisp.org>
6220         iconv_open: Add support for z/OS encoding names.
6221         Reported by Daniel Richard G. in
6222         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6223         * lib/iconv_open-zos.gperf: New file.
6224         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6225         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6226         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6227         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6228         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6230 2019-12-20  Bruno Haible  <bruno@clisp.org>
6232         doc: Document the problem of the per-thread locale functions on z/OS.
6233         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6234         * doc/posix-functions/newlocale.texi: Likewise.
6235         * doc/posix-functions/duplocale.texi: Likewise.
6236         * doc/posix-functions/freelocale.texi: Likewise.
6238 2019-12-20  Bruno Haible  <bruno@clisp.org>
6240         localename, gettext: Fix host_os value for z/OS.
6241         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6242         cross-configuration code.
6244 2019-12-19  Jim Meyering  <meyering@fb.com>
6246         nstrftime: avoid a shadowing warning
6247         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6248         to avoid shadowing an "i" declared hundreds of lines above.
6250 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6252         dfa: struct dfamust now uses flexible array
6253         * lib/dfa.c: Include flexmember.h.
6254         (dfamust, dfamustfree): Adjust to struct dfamust change.
6255         This saves a call to malloc+free.
6256         * lib/dfa.h (struct dfamust): Make the final member a
6257         flexible array member.
6258         * modules/dfa (Depends-on): Add flexmember.
6260         dfa: fast->small for array elements
6261         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6262         since this type is used in arrays.  This change is more for
6263         documentation than for any practical effect, since the two types
6264         are the same on all known platforms.
6266 2019-12-19  Bruno Haible  <bruno@clisp.org>
6268         iconv tests: Test canonicalized, not system-dependent, encoding names.
6269         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6270         * modules/iconv-tests (Depends-on): Add iconv_open.
6272 2019-12-18  Bruno Haible  <bruno@clisp.org>
6274         localename: Fix test failure on AIX 7.2.
6275         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6276         locales on AIX.
6277         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6278         locales on AIX.
6280 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6282         Improve port of AC_C_RESTRICT to Oracle C++
6283         Problem reported by Christian Biesinger in:
6284         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6285         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6286         Oracle Developer Studio C++ 12.5 or later.
6288 2019-12-18  Bruno Haible  <bruno@clisp.org>
6290         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6291         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6293 2019-12-18  Bruno Haible  <bruno@clisp.org>
6295         localename: Ensure multithread-safety in future changes.
6296         * lib/localename.c (setlocale): Reference the system's setlocale().
6297         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6298         (gl_locale_name_posix): Likewise.
6299         * modules/localename (Depends-on): Add setlocale-null.
6301 2019-12-18  Bruno Haible  <bruno@clisp.org>
6303         setlocale-null: Make API more useful.
6304         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6305         callers changed.
6306         (setlocale_null): New declaration.
6307         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6308         extracted from setlocale_null_unlocked.
6309         (setlocale_null_unlocked): Invoke it.
6310         (setlocale_null_r): Renamed from setlocale_null.
6311         (setlocale_null): New function, extracted from setlocale_mtsafe in
6312         setlocale.c.
6313         * lib/setlocale.c: Don't include <errno.h>.
6314         (setlocale_mtsafe): Invoke setlocale_null.
6315         * lib/setlocale-lock.c: Update comments.
6316         * doc/posix-functions/setlocale.texi: Mention both functions.
6318 2019-12-18  Bruno Haible  <bruno@clisp.org>
6320         localename: Optimize code for native Windows.
6321         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6322         category (not allowed here).
6324 2019-12-18  Bruno Haible  <bruno@clisp.org>
6326         setlocale: Make calls with NULL argument multithread-safe.
6327         * lib/setlocale.c: Include <errno.h>.
6328         (setlocale_mtsafe): New function.
6329         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6330         (setlocale_improved): Renamed from rpl_setlocale.
6331         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6332         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6333         LIB_SETLOCALE.
6334         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6335         (Link): New section.
6336         * tests/locale.c: Undefine setlocale.
6337         * tests/test-setlocale_null-one.c: Likewise.
6338         * tests/test-setlocale_null-all.c: Likewise.
6339         * modules/setlocale-tests (Makefile.am): Link the test programs with
6340         $(LIB_SETLOCALE).
6341         * modules/astrxfrm-tests (Makefile.am): Likewise.
6342         * modules/btowc-tests (Makefile.am): Likewise.
6343         * modules/c-ctype-tests (Makefile.am): Likewise.
6344         * modules/c-snprintf-tests (Makefile.am): Likewise.
6345         * modules/c-strcase-tests (Makefile.am): Likewise.
6346         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6347         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6348         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6349         * modules/dfa-tests (Makefile.am): Likewise.
6350         * modules/duplocale-tests (Makefile.am): Likewise.
6351         * modules/hard-locale-tests (Makefile.am): Likewise.
6352         * modules/localcharset-tests (Makefile.am): Likewise.
6353         * modules/localename-tests (Makefile.am): Likewise.
6354         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6355         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6356         * modules/mbrtowc-tests (Makefile.am): Likewise.
6357         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6358         * modules/mbscasestr-tests (Makefile.am): Likewise.
6359         * modules/mbschr-tests (Makefile.am): Likewise.
6360         * modules/mbscspn-tests (Makefile.am): Likewise.
6361         * modules/mbsinit-tests (Makefile.am): Likewise.
6362         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6363         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6364         * modules/mbspbrk-tests (Makefile.am): Likewise.
6365         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6366         * modules/mbsrchr-tests (Makefile.am): Likewise.
6367         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6368         * modules/mbsspn-tests (Makefile.am): Likewise.
6369         * modules/mbsstr-tests (Makefile.am): Likewise.
6370         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6371         * modules/quotearg-tests (Makefile.am): Likewise.
6372         * modules/regex-tests (Makefile.am): Likewise.
6373         * modules/strfmon_l-tests (Makefile.am): Likewise.
6374         * modules/strtod-tests (Makefile.am): Likewise.
6375         * modules/strtold-tests (Makefile.am): Likewise.
6376         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6377         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6378         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6379         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6380         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6381         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6382         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6383         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6384         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6385         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6386         * modules/wcrtomb-tests (Makefile.am): Likewise.
6387         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6388         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6389         * modules/wcwidth-tests (Makefile.am): Likewise.
6390         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6391         safety fix is also available in module 'setlocale'.
6393 2019-12-18  Bruno Haible  <bruno@clisp.org>
6395         hard-locale: Make multithread-safe.
6396         * lib/hard-locale.h (hard_locale): Move documentation to here.
6397         * lib/hard-locale.c: Don't include <stdlib.h>.
6398         (GLIBC_VERSION): Remove macro.
6399         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6400         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6401         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6402         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6403         (Link): New section.
6404         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6405         $(LIB_HARD_LOCALE).
6407 2019-12-18  Bruno Haible  <bruno@clisp.org>
6409         hard-locale: Avoid test failure on Haiku.
6410         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6412 2019-12-18  Bruno Haible  <bruno@clisp.org>
6414         setlocale-null: Handle NULL result from setlocale.
6415         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6416         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6417         from setlocale or _wsetlocale.
6419 2019-12-18  Bruno Haible  <bruno@clisp.org>
6421         hard-locale: Add test.
6422         * tests/test-hard-locale.c: New file.
6423         * tests/locale.c: New file.
6424         * modules/hard-locale-tests: New file.
6426 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6428         dfa: do not match invalid UTF-8
6429         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6430         from 5 to 9 tokens; this is needed due to the changes to
6431         add_utf8_anychar.
6432         (charclass_index): 2nd arg is now pointer-to-const.
6433         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6434         instead of allowing overlong encodings or surrogate halves.
6436         dfa: simplify charclass by assuming C99
6437         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6438         (charclass_word): Now always uint_fast64_t.
6439         (CHARCLASS_PAIR): Remove.
6440         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6442         fts: tune via calloc
6443         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6445         dfa: tune via xzalloc
6446         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6448 2019-12-17  Bruno Haible  <bruno@clisp.org>
6450         localcharset: Fix multithread-safety bug on Windows and OS/2.
6451         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6452         invalid.
6453         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6454         assemble the result.
6456 2019-12-17  Bruno Haible  <bruno@clisp.org>
6458         localcharset: Optimize code for native Windows.
6459         * lib/localcharset.c (locale_charset): Don't bother calling
6460         setlocale (LC_ALL, NULL) since we're not interested in its result.
6462 2019-12-17  Bruno Haible  <bruno@clisp.org>
6464         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6465         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6466         setlocale.
6467         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6468         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6469         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6471 2019-12-17  Bruno Haible  <bruno@clisp.org>
6473         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6474         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6475         stack-allocated buffer to assemble each result and different static
6476         buffers to return it.
6477         * tests/test-nl_langinfo-mt.c: New file.
6478         * modules/nl_langinfo-tests (Files): Add it.
6479         (Depends-on): Add thread, nanosleep.
6480         (Makefile.am): Build test-nl_langinfo-mt test.
6482 2019-12-17  Bruno Haible  <bruno@clisp.org>
6484         langinfo: Document more details.
6485         * doc/posix-headers/langinfo.texi: List platform details.
6486         * doc/posix-functions/nl_langinfo.texi: Likewise.
6488 2019-12-17  Bruno Haible  <bruno@clisp.org>
6490         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6491         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6492         and Martin Storsjö <martin@martin.st>
6493         in <https://savannah.gnu.org/bugs/?57406>.
6494         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6495         mingw.
6497 2019-12-17  Bruno Haible  <bruno@clisp.org>
6499         glob: Avoid warning on mingw.
6500         Reported by Christian Biesinger <cbiesinger@google.com> in
6501         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6502         * lib/glob.c (__stat64): Undefine first.
6504 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6506         xalloc: tune xzalloc for fresh allocations
6507         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6508         because when the memory is freshly allocated from the OS via sbrk
6509         or mmap, calloc can avoid doing the memset.
6511         dfa: new function dfacopysyntax
6512         * lib/dfa.c (struct dfa): Move syntax member later so
6513         that dfacopysyntax can easily clear earlier members.
6514         (dfacopysyntax): New function, used by Gawk.
6516 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6518         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6519         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6520         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6521         if not already defined.
6523         dfa: remove one dependency on MB_CUR_MAX
6524         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6526         dfa: remove struct lexer_state.cur_mb_len
6527         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6528         as it’s not needed and the code is simpler without it.
6529         All uses removed.
6531 2019-12-16  Bruno Haible  <bruno@clisp.org>
6533         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6534         Reported by Arnold Robbins <arnold@skeeve.com>.
6535         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6536         copied from lib/glthread/lock.h.
6537         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6538         (setlocale_null_with_lock): If pthread_in_use() is false, use
6539         setlocale_null_unlocked directly.
6540         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6541         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6542         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6543         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6544         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6545         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6547 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6549         dfa: make dfasyntax thread-safe
6550         Problem reported by Bruno Haible in:
6551         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6552         * lib/dfa.c: Do not include locale.h.
6553         (struct dfa): Remove simple_locale member.
6554         All uses replaced by localeinfo.simple.
6555         (using_simple_locale): Remove; now present (with some
6556         changes) in localeinfo.c.
6557         (dfasyntax): No need to initialize removed member.
6559         localeinfo: record whether locale is simple
6560         * lib/localeinfo.c (using_simple_locale): New function,
6561         copied here from lib/dfa.c but with a change: it uses
6562         strcoll for its heuristic, instead of using setlocale.
6563         This lets it be thread-safe.
6564         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6566 2019-12-15  Bruno Haible  <bruno@clisp.org>
6568         duplocale: Fix multithread-safety bug on AIX.
6569         * lib/duplocale.c: Don't include <stdlib.h>.
6570         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6571         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6572         Set LIB_DUPLOCALE.
6573         * modules/duplocale (Depends-on): Add setlocale-null.
6574         (Link): New section.
6575         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6576         $(LIB_DUPLOCALE).
6578 2019-12-15  Bruno Haible  <bruno@clisp.org>
6580         setlocale-null: Add tests.
6581         * tests/test-setlocale_null.c: New file.
6582         * tests/test-setlocale_null-one.c: New file.
6583         * tests/test-setlocale_null-all.c: New file.
6584         * modules/setlocale-null-tests: New file.
6586         setlocale-null: New module.
6587         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6588         setlocale_null): New declarations.
6589         * lib/setlocale_null.c: New file.
6590         * lib/setlocale-lock.c: New file.
6591         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6592         * m4/setlocale_null.m4: New file.
6593         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6594         GNULIB_SETLOCALE_NULL.
6595         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6596         * modules/setlocale-null: New file.
6597         * doc/posix-functions/setlocale.texi: Mention the new module.
6599 2019-12-15  Bruno Haible  <bruno@clisp.org>
6601         lock tests: Skip test when no multithreading is enabled.
6602         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6604 2019-12-14  Bruno Haible  <bruno@clisp.org>
6606         locale, duplocale, localename: Fix last patch.
6607         Reported by Daniel Richard G. in
6608         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6609         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6610         Don't define if locale_t does not exist.
6612 2019-12-13  Bruno Haible  <bruno@clisp.org>
6614         locale, duplocale, localename: Fix errors if locale_t does not exist.
6615         Reported by Daniel Richard G. in
6616         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6617         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6618         macros.
6619         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6620         HAVE_NEWLOCALE.
6621         * tests/test-localename.c: Likewise.
6622         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6623         HAVE_DUPLOCALE.
6624         * tests/test-locale-c++.cc: Likewise.
6626 2019-12-13  Bruno Haible  <bruno@clisp.org>
6628         wcstok: Fix test failure on HP-UX.
6629         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6630         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6632 2019-12-12  Bruno Haible  <bruno@clisp.org>
6634         strtod, strtold tests: Avoid test failure on AIX 7.2.
6635         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6636         '.' both are radix characters.
6637         * tests/test-strtold1.c (main): Likewise.
6639 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6641         dfa: prefer ptrdiff_t for API, too
6642         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6643         but do this only for internal use for now.
6644         * NEWS: Mention the API change.
6645         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6646         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6647         values known to be nonnegative.
6648         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6649         Prefer idx_t or ptrdiff_t to size_t for API.
6650         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6651         Prefer ptrdiff_t to size_t for API.
6653         stdalign: port to xlclang 16.01
6654         Problem reportd by Bruno Haible in:
6655         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6656         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6657         ((__aligned__ (...))) with xlclang, as a top-level
6658         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6659         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6661 2019-12-12  Bruno Haible  <bruno@clisp.org>
6663         duplocale: Fix test failure on AIX 7.2 with xlclang.
6664         * lib/duplocale.c: Include <stdlib.h>.
6665         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6666         value.
6668 2019-12-12  Bruno Haible  <bruno@clisp.org>
6670         stddef: Document the AIX xlc issue.
6671         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6673 2019-12-12  Bruno Haible  <bruno@clisp.org>
6675         duplocale: Don't attempt to override if locale_t does not exist.
6676         Reported by Daniel Richard G. in
6677         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6678         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6679         HAVE_DUPLOCALE to 0.
6681 2019-12-12  Bruno Haible  <bruno@clisp.org>
6683         wcwidth: Avoid test failure on AIX 7.2.
6684         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6685         negative.
6686         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6688 2019-12-12  Bruno Haible  <bruno@clisp.org>
6690         ilogbl: Work around Cygwin bug.
6691         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6692         correct.
6693         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6695 2019-12-12  Bruno Haible  <bruno@clisp.org>
6697         strtold: Work around Cygwin bug.
6698         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6699         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6700         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6701         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6702         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6704 2019-12-12  Bruno Haible  <bruno@clisp.org>
6706         strtold: Fix autoconf test.
6707         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6709 2019-12-11  Bruno Haible  <bruno@clisp.org>
6711         fsync tests: Skip test that is known to fail.
6712         * doc/posix-functions/fsync.texi: Update list of platforms.
6713         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6714         that is known to fail on AIX and Cygwin.
6716 2019-12-11  Bruno Haible  <bruno@clisp.org>
6718         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6720         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6721         HAVE_GETADDRINFO as a C macro.
6722         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6723         declare as replacement functions.
6724         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6725         define as no-op overrides.
6726         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6727         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6728         * modules/getaddrinfo (Depends-on, configure.ac): Test
6729         REPLACE_GETADDRINFO.
6730         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6731         problem.
6732         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6733         convention problems.
6735 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6737         dfa: prefer signed integers for internals
6738         Signed integers can be checked more easily for integer overflow.
6739         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6740         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6741         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6742         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6743         (replace, state_index, epsclosure, charclass_context)
6744         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6745         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6746         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6747         (comsubs, inboth, allocmust):
6748         Prefer a signed to an unsigned integer when calculating indexes,
6749         unless the integer is part of the external API (a bigger deal,
6750         and to be done later).
6752         dfa: fix index overflow
6753         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6754         very large regular expressions.
6756         dfa: update commentary for previous change
6757         * NEWS: Mention the change.
6758         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6760 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6762         dfa: separate parse and compile phase
6763         ‘dfamust’ must be called after parsing and before tokens are
6764         reordered, but both are executed in the compilation phase.
6765         Token reordering was introduced in Gnulib commit
6766         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6767         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6768         * lib/dfa.c (dfaparse): Change it to global function.
6769         (dfacomp): If first argument is NULL, skip parse.
6770         * lib/dfa.h: (dfaparse): Add a prototype.
6772 2019-12-11  Bruno Haible  <bruno@clisp.org>
6774         unistd tests: Fix link error on MSVC.
6775         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6776         $(LIB_GETLOGIN).
6778 2019-12-11  Bruno Haible  <bruno@clisp.org>
6780         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6781         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6782         and POSIX substitutes are supported in C++ mode.
6783         * NEWS: Likewise.
6785 2019-12-11  Bruno Haible  <bruno@clisp.org>
6787         stddef: Fix compilation error in C++ mode on MSVC.
6788         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6789         instead, include <cstddef>.
6791 2019-12-11  Bruno Haible  <bruno@clisp.org>
6793         unistd: Fix compilation error in C++ mode on MSVC.
6794         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6795         does not have <unistd.h>.
6797 2019-12-11  Bruno Haible  <bruno@clisp.org>
6799         locale: Fix compilation error in C++ mode on MSVC.
6800         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6801         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6802         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6803         int_n_sep_by_space): Define as macros on MSVC.
6805 2019-12-11  Bruno Haible  <bruno@clisp.org>
6807         wchar: Fix compilation error in C++ mode on MSVC.
6808         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6810 2019-12-11  Bruno Haible  <bruno@clisp.org>
6812         pthread-thread: Fix compilation error in C++ mode on MSVC.
6813         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6814         _GL_CXXALIAS_RPL invocation.
6816 2019-12-08  Bruno Haible  <bruno@clisp.org>
6818         Fix compilation errors in C++ mode on Haiku.
6819         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6820         non-glibc systems.
6821         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6822         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6823         posix_spawnattr_setschedparam): Likewise.
6824         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6825         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6826         * lib/unistd.in.h (usleep): Likewise.
6828 2019-12-08  Bruno Haible  <bruno@clisp.org>
6830         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6831         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6832         * modules/fseeko (configure.ac-early): Require it instead of
6833         AC_FUNC_FSEEKO.
6834         * modules/ftello (configure.ac-early): Likewise.
6835         * modules/fflush (configure.ac-early): Likewise.
6837 2019-12-08  Bruno Haible  <bruno@clisp.org>
6839         Fix compilation error in C++ mode on HP-UX 11.
6840         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6841         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6843 2019-12-08  Bruno Haible  <bruno@clisp.org>
6845         Fix compilation errors on HP-UX 11/ia64.
6846         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6847         _GL_FUNCDECL_SYS.
6849 2019-12-08  Bruno Haible  <bruno@clisp.org>
6851         Fix compilation error in C++ mode on OpenBSD.
6852         * lib/signal.in.h (signal): Declare on OpenBSD.
6854 2019-12-08  Bruno Haible  <bruno@clisp.org>
6856         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6857         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6858         instead of #error.
6860 2019-12-08  Bruno Haible  <bruno@clisp.org>
6862         Fix compilation errors in C++ mode on FreeBSD.
6863         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6864         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6865         * lib/threads.in.h (thrd_exit): Likewise.
6866         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6868 2019-12-08  Bruno Haible  <bruno@clisp.org>
6870         Fix compilation errors in C++ mode on macOS and FreeBSD.
6871         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6872         or FreeBSD with clang, use the approach without C preprocessor macro.
6874 2019-12-07  Bruno Haible  <bruno@clisp.org>
6876         Fix compilation errors in C++ mode on AIX with xlclang++.
6877         Reported by Christian Biesinger <cbiesinger@google.com> in
6878         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6879         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6881 2019-12-07  Bruno Haible  <bruno@clisp.org>
6883         Document compilation error in C++ mode on NetBSD 8.0.
6884         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6886 2019-12-07  Bruno Haible  <bruno@clisp.org>
6888         Fix compilation errors in C++ mode on Solaris 10.
6889         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6890         to non-empty on Solaris with a non-GCC compiler.
6891         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6893 2019-12-07  Bruno Haible  <bruno@clisp.org>
6895         Reword NEWS entry.
6896         * NEWS: Reword the latest NEWS entry.
6898 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6900         Move xstrtol_fatal to a new xstrtol-error module.
6901         * lib/xstrtol.h: Stop including <getopt.h>.
6902         (xstrtol_fatal): Move ...
6903         * lib/xstrtol-error.h: ... here.  New file.
6904         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6905         * tests/test-xstrtol.c: Likewise.
6906         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6907         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6908         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6909         * modules/xstrtol-error: New file.
6910         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6911         * MODULES.html.sh: Add xstrtol-error.
6912         * NEWS: Document the change.
6914 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6916         nstrftime: better width support for %N, %z
6917         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6918         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6919         a new WIDTH parameter.
6920         (add, add1, cpy): Use these macros.
6921         (width_add): Do not treat digits == 0 as a special case,
6922         do not pad if padding is ‘-’, and do not use a negative width.
6923         (__strftime_internal): Redo formatting of nanoseconds and numeric
6924         timezones to avoid buffer misuse in unusual cases, and so that
6925         widths make more sense.  Add support for widths greater than 9 to
6926         the %N format; they are zero filled on the right.
6927         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6929 2019-12-05  Bruno Haible  <bruno@clisp.org>
6931         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6932         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6933         set REPLACE_ISFINITE to 1.
6934         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6935         REPLACE_ISINF to 1.
6936         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6937         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6938         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6939         * lib/threads.in.h (call_once): Likewise.
6940         * lib/iconv.in.h (iconv): Likewise.
6942 2019-12-05  Bruno Haible  <bruno@clisp.org>
6944         wchar: Add more C++ tests.
6945         Reported by Christian Biesinger <cbiesinger@google.com> in
6946         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6947         * tests/test-wchar-c++3.cc: New file.
6948         * modules/wchar-c++-tests (Files): Add it.
6949         (Makefile.am): Compile it.
6951 2019-12-05  Bruno Haible  <bruno@clisp.org>
6953         Add more C++ tests.
6955         assert-h: Add C++ tests.
6956         * tests/test-assert-h-c++.cc: New file.
6957         * tests/test-assert-h-c++2.cc: New file.
6958         * modules/assert-h-c++-tests: New file.
6959         * modules/assert-h-tests: New file.
6961         ctype: Add C++ tests.
6962         * tests/test-ctype-c++.cc: New file.
6963         * tests/test-ctype-c++2.cc: New file.
6964         * modules/ctype-c++-tests: New file.
6965         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6967         errno: Add C++ tests.
6968         * tests/test-errno-c++.cc: New file.
6969         * tests/test-errno-c++2.cc: New file.
6970         * modules/errno-c++-tests: New file.
6971         * modules/errno-tests (Depends-on): Add errno-c++-tests.
6973         float: Add C++ tests.
6974         * tests/test-float-c++.cc: New file.
6975         * tests/test-float-c++2.cc: New file.
6976         * modules/float-c++-tests: New file.
6977         * modules/float-tests (Depends-on): Add float-c++-tests.
6979         inttypes: Add more C++ tests.
6980         * tests/test-inttypes-c++2.cc: New file.
6981         * modules/inttypes-c++-tests (Files): Add it.
6982         (Makefile.am): Compile it.
6984         limits-h: Add C++ tests.
6985         * tests/test-limits-h-c++.cc: New file.
6986         * tests/test-limits-h-c++2.cc: New file.
6987         * modules/limits-h-c++-tests: New file.
6988         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
6990         stdarg: Add C++ tests.
6991         * tests/test-stdarg-c++.cc: New file.
6992         * tests/test-stdarg-c++2.cc: New file.
6993         * modules/stdarg-c++-tests: New file.
6994         * modules/stdarg-tests: New file.
6996         stdbool: Add C++ tests.
6997         * tests/test-stdbool-c++.cc: New file.
6998         * tests/test-stdbool-c++2.cc: New file.
6999         * modules/stdbool-c++-tests: New file.
7000         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7002         stddef: Add C++ tests.
7003         * tests/test-stddef-c++.cc: New file.
7004         * tests/test-stddef-c++2.cc: New file.
7005         * modules/stddef-c++-tests: New file.
7006         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7008         stdint: Add C++ tests.
7009         * tests/test-stdint-c++.cc: New file.
7010         * tests/test-stdint-c++2.cc: New file.
7011         * modules/stdint-c++-tests: New file.
7012         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7014         wchar: Add more C++ tests.
7015         * tests/test-wchar-c++2.cc: New file.
7016         * modules/wchar-c++-tests (Files): Add it.
7017         (Makefile.am): Compile it.
7019         wctype-h: Add more C++ tests.
7020         * tests/test-wctype-h-c++2.cc: New file.
7021         * modules/wctype-h-c++-tests (Files): Add it.
7022         (Makefile.am): Compile it.
7024 2019-12-04  Bruno Haible  <bruno@clisp.org>
7026         Fix compilation errors in C++ mode with xlclang++ on AIX.
7027         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7028         C++ mode on AIX.
7029         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7030         without C preprocessor macro.
7031         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7032         _GL_CXXALIAS_SYS.
7033         * lib/threads.in.h (thrd_exit): Likewise.
7035 2019-12-04  Bruno Haible  <bruno@clisp.org>
7037         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7038         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7039         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7041 2019-12-04  Bruno Haible  <bruno@clisp.org>
7043         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7044         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7045         _GL_CXXALIASWARN invocation on non-glibc systems.
7046         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7047         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7048         iswctype, towlower, towupper): Likewise.
7050 2019-12-03  Bruno Haible  <bruno@clisp.org>
7052         Avoid hassles caused by [[noreturn]] in C++.
7053         Reported by Christian Biesinger <cbiesinger@google.com> in
7054         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7055         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7056         * lib/_Noreturn.h: Likewise.
7058 2019-12-02  Bruno Haible  <bruno@clisp.org>
7060         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7061         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7062         LIBMULTITHREAD.
7063         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7064         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7065         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7066         gl_THREADLIB.
7067         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7069 2019-12-02  Bruno Haible  <bruno@clisp.org>
7071         Fix some more link errors with --enable-threads=isoc.
7072         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7073         * modules/pthread-rwlock (Depends-on): Likewise.
7075 2019-12-02  Bruno Haible  <bruno@clisp.org>
7077         Fix link errors with --enable-threads=posix on AIX.
7078         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
7079         program with $(LIBTHREAD).
7080         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
7081         program with $(LIBTHREAD).
7083 2019-12-02  Bruno Haible  <bruno@clisp.org>
7085         Fix link errors with --enable-threads=posix on AIX.
7086         * modules/mbrtowc (Link): New section.
7087         * modules/acl (Link): Likewise.
7088         * modules/argmatch (Link): Likewise.
7089         * modules/backup-rename (Link): Likewise.
7090         * modules/backupfile (Link): Likewise.
7091         * modules/closein (Link): Likewise.
7092         * modules/closeout (Link): Likewise.
7093         * modules/copy-file (Link): Likewise.
7094         * modules/csharpcomp (Link): Likewise.
7095         * modules/csharpexec (Link): Likewise.
7096         * modules/dfa (Link): Likewise.
7097         * modules/exclude (Link): Likewise.
7098         * modules/fnmatch (Link): Likewise.
7099         * modules/fnmatch-gnu (Link): Likewise.
7100         * modules/fnmatch-posix (Link): Likewise.
7101         * modules/glob (Link): Likewise.
7102         * modules/human (Link): Likewise.
7103         * modules/javacomp (Link): Likewise.
7104         * modules/javaexec (Link): Likewise.
7105         * modules/javaversion (Link): Likewise.
7106         * modules/mbfile (Link): Likewise.
7107         * modules/mbiter (Link): Likewise.
7108         * modules/mbmemcasecmp (Link): Likewise.
7109         * modules/mbmemcasecoll (Link): Likewise.
7110         * modules/mbrlen (Link): Likewise.
7111         * modules/mbscasecmp (Link): Likewise.
7112         * modules/mbscasestr (Link): Likewise.
7113         * modules/mbschr (Link): Likewise.
7114         * modules/mbscspn (Link): Likewise.
7115         * modules/mbsinit (Link): Likewise.
7116         * modules/mbslen (Link): Likewise.
7117         * modules/mbsncasecmp (Link): Likewise.
7118         * modules/mbsnlen (Link): Likewise.
7119         * modules/mbsnrtowcs (Link): Likewise.
7120         * modules/mbspbrk (Link): Likewise.
7121         * modules/mbspcasecmp (Link): Likewise.
7122         * modules/mbsrchr (Link): Likewise.
7123         * modules/mbsrtowcs (Link): Likewise.
7124         * modules/mbssep (Link): Likewise.
7125         * modules/mbsspn (Link): Likewise.
7126         * modules/mbsstr (Link): Likewise.
7127         * modules/mbstok_r (Link): Likewise.
7128         * modules/mbswidth (Link): Likewise.
7129         * modules/mbuiter (Link): Likewise.
7130         * modules/mkdir-p (Link): Likewise.
7131         * modules/propername (Link): Likewise.
7132         * modules/quote (Link): Likewise.
7133         * modules/quotearg (Link): Likewise.
7134         * modules/quotearg-simple (Link): Likewise.
7135         * modules/regex-quote (Link): Likewise.
7136         * modules/rpmatch (Link): Likewise.
7137         * modules/sh-quote (Link): Likewise.
7138         * modules/system-quote (Link): Likewise.
7139         * modules/trim (Link): Likewise.
7140         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7141         * modules/unistdio/ulc-fprintf (Link): Likewise.
7142         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7143         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7144         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7145         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7146         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7147         * modules/xfreopen (Link): Likewise.
7148         * modules/xmemcoll (Link): Likewise.
7149         * modules/yesno (Link): Likewise.
7150         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7151         * modules/argmatch-tests (Makefile.am): Likewise.
7152         * modules/closein-tests (Makefile.am): Likewise.
7153         * modules/copy-file-tests (Makefile.am): Likewise.
7154         * modules/dfa-tests (Makefile.am): Likewise.
7155         * modules/fnmatch-tests (Makefile.am): Likewise.
7156         * modules/glob-tests (Makefile.am): Likewise.
7157         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7158         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7159         * modules/mbrtowc-tests (Makefile.am): Likewise.
7160         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7161         * modules/mbscasestr-tests (Makefile.am): Likewise.
7162         * modules/mbschr-tests (Makefile.am): Likewise.
7163         * modules/mbscspn-tests (Makefile.am): Likewise.
7164         * modules/mbsinit-tests (Makefile.am): Likewise.
7165         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7166         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7167         * modules/mbspbrk-tests (Makefile.am): Likewise.
7168         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7169         * modules/mbsrchr-tests (Makefile.am): Likewise.
7170         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7171         * modules/mbsspn-tests (Makefile.am): Likewise.
7172         * modules/mbsstr-tests (Makefile.am): Likewise.
7173         * modules/quotearg-tests (Makefile.am): Likewise.
7174         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7175         * modules/readtokens-tests (Makefile.am): Likewise.
7176         * modules/regex-quote-tests (Makefile.am): Likewise.
7177         * modules/sh-quote-tests (Makefile.am): Likewise.
7178         * modules/system-quote-tests (Makefile.am): Likewise.
7179         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7180         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7181         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7182         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7183         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7184         * modules/yesno-tests (Makefile.am): Likewise.
7186 2019-12-02  Bruno Haible  <bruno@clisp.org>
7188         Simplify link sections.
7189         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7190         * modules/lock (Link): Likewise.
7191         * modules/cond (Link): Likewise.
7192         * modules/tls (Link): Likewise.
7193         * modules/yield (Link): Likewise.
7194         * modules/regex (Link): Likewise.
7195         * modules/localename (Link): Likewise.
7196         * modules/unicase/locale-language (Link): Likewise.
7197         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7199 2019-12-02  Bruno Haible  <bruno@clisp.org>
7201         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7202         * tests/test-thread_self.c (main): Disable test on AIX.
7204 2019-12-01  Bruno Haible  <bruno@clisp.org>
7206         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7207         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7208         gl_THREADLIB_EARLY_BODY.
7209         (gl_THREADLIB_EARLY_BODY): Invoke it.
7210         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7211         (gl_THREADLIB_BODY): Invoke it.
7212         (gl_PTHREADLIB): New macro.
7213         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7214         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7215         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7216         * modules/pthread-h (Files): Add threadlib.m4.
7217         (Depends-on): Remove threadlib.
7218         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7219         and _THREAD_SAFE here.
7220         (Link): Use LIBPTHREAD, not LIBTHREAD.
7221         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7222         LIBMULTITHREAD.
7223         * modules/pthread-once (Link): Likewise.
7224         * modules/pthread-mutex (Link): Likewise.
7225         * modules/pthread-rwlock (Link): Likewise.
7226         * modules/pthread-cond (Link): Likewise.
7227         * modules/pthread-tss (Link): Likewise.
7228         * modules/pthread-spin (Link): Likewise.
7229         * modules/pthread (Link): Likewise.
7230         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7231         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7232         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7233         test_pthread_once2_LDADD): Likewise.
7234         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7235         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7236         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7237         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7239 2019-12-01  Bruno Haible  <bruno@clisp.org>
7241         cond: State linking requirements.
7242         * modules/cond (Link): New section.
7244 2019-12-01  Bruno Haible  <bruno@clisp.org>
7246         threadlib: Remove unnecessary file (left over from 2019-07-06).
7247         * modules/threadlib (Files): Remove config.rpath.
7249 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7251         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7252         Reported by Dagobert Michelsen <dam@opencsw.org> in
7253         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7254         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7255         list of strings instead of one string.
7256         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7257         * pygnulib/GLImport.py (execute): Likewise.
7259 2019-11-27  Bruno Haible  <bruno@clisp.org>
7261         openpty, forkpty: Fix build error on Solaris 11.4.
7262         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7263         also in <termios.h>.
7264         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7265         of the function also in <termios.h>.
7266         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7267         * doc/glibc-functions/forkpty.texi: Likewise.
7269 2019-11-27  Bruno Haible  <bruno@clisp.org>
7271         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7272         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7273         --enable-threads=isoc and --enable-threads=isoc+posix.
7274         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7275         When both the ISO C and the POSIX threads API are available, choose
7276         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7277         --enable-threads=isoc+posix was specified. When only the ISO C threads
7278         API is available and --enable-threads=iso was specified, choose
7279         USE_ISOC_THREADS.
7280         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7281         USE_ISOC_AND_POSIX_THREADS.
7282         * lib/glthread/lock.c: Likewise.
7283         * lib/glthread/cond.h: Likewise.
7284         * lib/glthread/cond.c: Likewise.
7285         * lib/glthread/tls.h: Likewise.
7286         * lib/glthread/tls.c: Likewise.
7287         * lib/glthread/yield.h: Likewise.
7288         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7289         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7290         * lib/glthread/thread.c: Likewise.
7291         * lib/glthread/threadlib.c: Likewise.
7292         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7293         USE_ISOC_AND_POSIX_THREADS.
7294         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7295         USE_ISOC_AND_POSIX_THREADS.
7296         * tests/test-tls.c: Likewise.
7297         * tests/test-thread_create.c (main): Likewise.
7298         * tests/test-pthread-cond.c: Likewise.
7299         * tests/test-pthread-mutex.c: Likewise.
7300         * tests/test-pthread-once2.c: Likewise.
7301         * tests/test-pthread-rwlock.c: Likewise.
7302         * tests/test-pthread-tss.c: Likewise.
7303         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7304         USE_POSIX_THREADS.
7306 2019-11-24  Bruno Haible  <bruno@clisp.org>
7308         mbrtowc: Modernize autoconf test.
7309         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7310         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7311         try a UTF-8 locale.
7312         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7314 2019-11-24  Bruno Haible  <bruno@clisp.org>
7316         Fix errors in C++ mode on mingw.
7317         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7318         instead of _GL_CXXALIAS_SYS.
7319         * lib/signal.in.h (pthread_sigmask): Likewise.
7320         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7321         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7322         Likewise.
7323         * lib/wchar.in.h (btowc): Likewise.
7325 2019-11-24  Bruno Haible  <bruno@clisp.org>
7327         sys_time: Fix errors in C++ mode on mingw.
7328         * lib/sys_time.in.h (timeval): Restore the redirection
7329         '#define timeval rpl_timeval', for when the symbol timeval is being used
7330         outside the 'gnulib' namespace.
7331         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7332         'struct timeval'.
7334 2019-11-24  Bruno Haible  <bruno@clisp.org>
7336         iswctype: Fix errors in C++ mode on mingw.
7337         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7338         is 1.
7339         * lib/iswctype.c (iswctype): Add another implementation, for the
7340         GNULIB_defined_wint_t case.
7341         * modules/iswctype (configure.ac): Compile iswctype.c also if
7342         GNULIB_OVERRIDES_WINT_T is 1.
7344 2019-11-24  Bruno Haible  <bruno@clisp.org>
7346         windows-timedmutex: Fix errors in C++ mode on mingw.
7347         * lib/windows-timedmutex.h: Add closing brace.
7349 2019-11-24  Bruno Haible  <bruno@clisp.org>
7351         Fix errors in C++ mode on Cygwin.
7352         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7353         _GL_CXXALIAS_SYS.
7355 2019-11-24  Bruno Haible  <bruno@clisp.org>
7357         time_r: Fix for mingw (regression from 2019-11-16).
7358         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7359         AC_LINK_IFELSE test only if the function does not appear to exist.
7361 2019-11-24  Bruno Haible  <bruno@clisp.org>
7363         wcstok: Add tests.
7364         * tests/test-wcstok.c: New file.
7365         * modules/wcstok-tests: New file.
7367 2019-11-24  Bruno Haible  <bruno@clisp.org>
7369         wcstok: Work around wrong signature on native Windows.
7370         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7371         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7372         REPLACE_WCSTOK.
7373         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7374         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7375         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7376         * doc/posix-functions/wcstok.texi: Mention the problem.
7378 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7380         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7381         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7382         remove workaround for GCC bug 91450 as the bug should be fixed
7383         there too.
7385 2019-11-21  Bruno Haible  <bruno@clisp.org>
7387         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7388         Reported by Christian Biesinger <cbiesinger@google.com> in
7389         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7390         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7391         non-glibc systems.
7392         * lib/locale.in.h (localeconv, setlocale): Likewise.
7393         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7394         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7395         rint, round, trunc): Likewise.
7396         * lib/monetary.in.h (strfmon_l): Likewise.
7397         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7398         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7399         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7400         pthread_spin_destroy): Likewise.
7401         * lib/signal.in.h (raise, signal): Likewise.
7402         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7403         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7404         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7405         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7406         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7407         Likewise.
7408         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7409         Likewise.
7410         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7411         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7412         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7413         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7414         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7415         wcsftime): Likewise.
7416         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7418 2019-11-21  Bruno Haible  <bruno@clisp.org>
7420         Fix various errors in _GL_CXXALIAS_SYS invocations.
7421         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7422         _GL_CXXALIAS_SYS.
7423         * lib/pthread.in.h (pthread_mutexattr_gettype,
7424         pthread_mutexattr_getrobust): Likewise.
7425         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7426         * lib/sys_socket.in.h (recv, send): Likewise.
7427         * lib/unistd.in.h (getdtablesize): Likewise.
7428         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7429         'struct timeval'.
7431 2019-11-21  Bruno Haible  <bruno@clisp.org>
7433         math tests: Update after 2019-08-28 change.
7434         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7435         return type of 'bool', not 'int'.
7437 2019-11-21  Bruno Haible  <bruno@clisp.org>
7439         pthread-spin: Fix errors in C++ mode.
7440         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7441         functions as nonexistent when <pthread.h> exists but does not define
7442         the pthread_spinlock_t type.
7444 2019-11-21  Bruno Haible  <bruno@clisp.org>
7446         pthread-mutex: Fix errors in C++ mode.
7447         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7448         pthread_mutexattr_getrobust exists. If not, define
7449         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7450         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7451         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7452         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7453         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7454         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7455         definition.
7457 2019-11-19  Bruno Haible  <bruno@clisp.org>
7459         threads-h tests: Fix typo.
7460         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7462 2019-11-19  Bruno Haible  <bruno@clisp.org>
7464         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7465         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7466         to 'const pthread_attr_t *'.
7467         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7468         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7470 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7472         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7473         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7474         work around GCC bug 91450 as the bug should be fixed there.
7476 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7478         glob: get closer to glibc glob.c
7479         Omit differences from glibc when the differences don’t matter.
7480         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7481         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7482         (glob_lstat): New function.
7483         (glob_in_dir): Use it.
7484         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7485         Use changed.
7487 2019-11-18  Bruno Haible  <bruno@clisp.org>
7489         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7490         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7491         UINTPTR_MAX): Consider _WIN64.
7492         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7493         a pointer.
7495 2019-11-18  Bruno Haible  <bruno@clisp.org>
7497         stdint: Fix value of WINT_MAX when we override wint_t.
7498         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7499         when GNULIB_OVERRIDES_WINT_T is 1.
7501 2019-11-18  Bruno Haible  <bruno@clisp.org>
7503         vcs-to-changelog: New module.
7504         * modules/vcs-to-changelog: New file.
7505         * MODULES.html.sh (func_all_modules): Add it.
7507 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7509         vcs-to-changelog: New script to generate ChangeLog-like output.
7510         Discussion:
7511         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7512         * build-aux/vcs_to_changelog.py: New file.
7513         * build-aux/vcstocl/frontend_c.py: New file.
7514         * build-aux/vcstocl/misc_util.py: New file.
7515         * build-aux/vcstocl/vcs_git.py: New file.
7517 2019-11-18  Bruno Haible  <bruno@clisp.org>
7519         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7520         Reported by Keith Marshall <keith@users.osdn.me> in
7521         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7522         and <https://osdn.net/projects/mingw/ticket/39677>.
7523         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7524         already been defined by mingw's <crtdefs.h>.
7526 2019-11-18  Bruno Haible  <bruno@clisp.org>
7528         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7529         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7530         conditionally enabled.
7532 2019-11-18  Bruno Haible  <bruno@clisp.org>
7534         gc: Mirror libgcrypt.m4 from libgcrypt.
7535         * config/srclistvars.sh (LIBGCRYPT): New variable.
7536         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7538 2019-11-17  Bruno Haible  <bruno@clisp.org>
7540         locale, localename: Improve z/OS support.
7541         Reported by Daniel Richard G. in
7542         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7543         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7544         gl_LOCALE_H.
7545         (gl_LOCALE_H): Require it.
7546         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7547         defined, don't even check for newlocale, duplocale, freelocale.
7548         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7549         locale_t is not defined.
7551 2019-11-17  Bruno Haible  <bruno@clisp.org>
7553         havelib: Make libdirstems processing more flexible.
7554         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7555         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7556         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7557         patch from 2017-02-19).
7558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7559         libdirs, even when the first one exists as a directory.
7561 2019-11-17  Bruno Haible  <bruno@clisp.org>
7563         havelib: Match the bitness when searching for libraries.
7564         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7565         acl_is_expected_elfclass.
7566         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7567         file exists, in ELF, also test whether it has the ELF class that
7568         corresponds to the host's bitness.
7570 2019-11-17  Bruno Haible  <bruno@clisp.org>
7572         host-cpu-c-abi: Add support for unknown CPUs.
7573         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7574         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7575         32-bit or 64-bit.
7577 2019-11-17  Bruno Haible  <bruno@clisp.org>
7579         havelib: Remove redundant code.
7580         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7581         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7583 2019-11-17  Bruno Haible  <bruno@clisp.org>
7585         havelib: Fix a bug in dependency processing.
7586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7587         of .la files, don't overwrite the value of additional_libdir for the
7588         next rounds.
7590 2019-11-16  Bruno Haible  <bruno@clisp.org>
7592         wctype-h: When overriding wint_t, override also the related functions.
7593         Reported by Christian Biesinger <cbiesinger@google.com> in
7594         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7595         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7596         REPLACE_ISWCNTRL to 1.
7597         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7598         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7599         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7600         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7601         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7602         on mingw.
7603         * doc/posix-headers/wctype.texi: Likewise.
7605 2019-11-16  Bruno Haible  <bruno@clisp.org>
7607         time_r: Fix for mingw.
7608         Reported by Christian Biesinger <cbiesinger@google.com> in
7609         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7610         * lib/time.in.h: On mingw, include <unistd.h>.
7611         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7612         <time.h>. Test for localtime_r in a way that works when it is defined
7613         as an inline function.
7615 2019-11-13  Bruno Haible  <bruno@clisp.org>
7617         havelib: Revert last change.
7618         * build-aux/config.rpath: Revert last change. We can add msys2 support
7619         when it has been added to libtool.m4 upstream.
7621 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7623         config: add msys support
7624         Requested by Arnold Robbins in:
7625         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7626         He also requested a change to config.guess, which I’ll forward
7627         upstream.
7628         * build-aux/ar-lib (func_file_conv):
7629         * build-aux/compile (func_file_conv):
7630         * build-aux/config.rpath (wl, with_gnu_ld)
7631         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7632         Treat msys like cygwin.
7634 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7636         regex: now back in sync with glibc
7637         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7638         regexec.c got merged into glibc and are now copies again.
7640 2019-10-27  Bruno Haible  <bruno@clisp.org>
7642         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7643         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7644         statement.
7645         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7646         32-bit CPUs.
7648 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7650         timespec-add, timespec-sub: simplify
7651         * lib/timespec-add.c (timespec_add):
7652         * lib/timespec-sub.c (timespec_sub):
7653         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7654         work on unsigned integers.
7656 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7658         nstrftime: speed up integer overflow checking
7659         * lib/nstrftime.c: Include intprops.h.
7660         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7661         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7662         instead of doing it by hand.
7663         * modules/nstrftime (Depends-on): Add intprops.
7665         Port better to GCC under macOS
7666         Work around macOS header that has ‘#define __has_builtin(x) 0’
7667         when compiled by GCC.  Apple really, really doesn’t want you to
7668         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7669         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7670         The fix is to not trust __has_builtin when being compiled by
7671         recent-enough GCC.
7672         * lib/intprops.h (__has_builtin)
7673         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7674         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7675         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7676         Remove.  All uses removed.
7677         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7678         directly, if defined and if not newer GCC.
7679         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7680         New macro, that use __has_builtin directly, if defined and if
7681         not newer GCC.
7682         (assume): Use them.
7684 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7686         maintainer-makefile: update rule for argmatch.
7687         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7689 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7691         bitset: let freeing functions accept NULL.
7692         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7693         given NULL.
7694         * lib/bitset.h: Document that.
7695         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7697 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7699         inttypes: use more-robust test for int range
7700         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7701         Problem reported by Dagobert Michelsen in:
7702         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7703         * lib/inttypes.in.h: Rely only on limits.h when checking
7704         int range.
7706 2019-10-15  Bruno Haible  <bruno@clisp.org>
7708         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7709         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7710         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7711         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7712         term_ostream_set_hyperlink): New functions.
7713         (term_styled_ostream_get_hyperlink_ref,
7714         term_styled_ostream_get_hyperlink_id,
7715         term_styled_ostream_set_hyperlink): New function aliases.
7717 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7719         update-copyright: use en dashes in .texi ranges
7720         * build-aux/update-copyright: Match year ranges like "1998--2019",
7721         which are used in the Autoconf manual.  Also, update ranges in
7722         .tex, .texi, and .texinfo files to use en dashes instead of
7723         hyphens.
7725 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7727         * config/srclist.txt: Remove posix/regex_internal.c for now.
7729 2019-10-13  Bruno Haible  <bruno@clisp.org>
7731         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7732         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7733         contents to the empty string.
7735 2019-10-12  Bruno Haible  <bruno@clisp.org>
7737         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7738         * tests/test-intprops.c (main): Disable two more tests when using
7739         HP-UX cc.
7741 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7743         Simplify and regularize regex use of ‘assert’
7744         Also, tell GCC about the asserts even when compiling without
7745         debugging, to give it further optimization opportunities.
7746         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7747         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7748         (parse_expression, parse_bracket_exp):
7749         * lib/regex_internal.c (build_wcs_buffer)
7750         (build_wcs_upper_buffer, re_string_reconstruct)
7751         (re_string_context_at):
7752         * lib/regexec.c (re_search_stub, re_copy_regs)
7753         (re_search_internal, prune_impossible_nodes, check_matching)
7754         (check_halt_state_context, set_regs, sift_states_backward)
7755         (build_sifted_states, transit_state_mb, transit_state_bkref)
7756         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7757         (match_ctx_add_subtop):
7758         Use it instead of plain ‘assert’.
7760 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7762         regex: omit debug assignment when not debugging
7763         * lib/regexec.c (re_search_internal) [!DEBUG]:
7764         Remove unnecessary assignment.
7766         regex: tell compiler there’s at most 256 arcs out
7767         Partly this is to help the reader (and maybe help GCC);
7768         partly this is to pacify Coverity.
7769         * lib/regex_internal.h: Include verify.h.
7770         * lib/regexec.c (group_nodes_into_DFAstates):
7771         Tell the compiler that ndests cannot exceed SBC_MAX.
7772         * modules/regex (Depends-on): Add ‘verify’.
7774         regex: simplify by assuming C99
7775         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7776         temporarily.
7777         * lib/regex_internal.h (lock_define, re_match_context_t):
7778         Simplify by assuming C99 macros and const.
7779         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7780         initializers.  Remove unnecessary assignment, as mctx is now
7781         safely initialized earlier.
7783         regex: avoid copying of uninitialized storage
7784         * config/srclist.txt: Comment out regcomp.c temporarily.
7785         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7786         Initialize even when not checking for lint, as the behavior is
7787         arguably undefined otherwise and Coverity warns about it.
7789 2019-10-06  Bruno Haible  <bruno@clisp.org>
7791         access tests: Fix test failure when run as root.
7792         * tests/test-access.c: Include root-uid.h.
7793         (geteuid): Define fallback.
7794         (main): Don't expect that writing to a read-only file would fail when
7795         running as root. Also, remove the created files at the end.
7796         * modules/access-tests (Depends-on): Add root-uid.
7797         (configure.ac): Test whether geteuid exists.
7799 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7801         users.txt: add GNU nano
7802         Nano has been making use of gnulib since March 2017, version 2.8.0.
7804 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7806         bootstrap: simplify debugging of wget failures
7807         Problem reported by Tim Rühsen in:
7808         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7809         * build-aux/bootstrap (po_download_command_format):
7810         Invoke wget with -nv instead of -q, to make debugging easier.
7812 2019-09-29  Bruno Haible  <bruno@clisp.org>
7814         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7815         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7816         'const' attribute.
7818 2019-09-29  Bruno Haible  <bruno@clisp.org>
7820         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7821         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7823 2019-09-28  Bruno Haible  <bruno@clisp.org>
7825         Update comments that refer to POSIX.
7826         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7827         sentence about trailing slashes.
7828         * lib/fflush.c: Clarify the reasoning.
7829         * tests/test-fflush2.c: Cite the relevant sentence.
7831 2019-09-28  Bruno Haible  <bruno@clisp.org>
7833         access: Document limitations on Windows.
7834         Suggested by Zaretskii <eliz@gnu.org>.
7835         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7837 2019-09-28  Bruno Haible  <bruno@clisp.org>
7839         findprog-in: Fix comment.
7840         Reported by Eli Zaretskii <eliz@gnu.org>.
7841         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7842         condition.
7843         * lib/stat.c (rpl_stat): Fix typo in comment.
7844         * lib/utime.c (_gl_utimens_windows): Likewise.
7846 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7848         Update URLs and associated text
7849         (Thanks to Bruno Haible for proofreading this patch.)
7850         Prefer https: to http: in URLs where either will do, for the usual
7851         security reasons.  I also updated broken and/or moved URLs
7852         discovered during the process. In a few places I had to resort to
7853         archive.org, since I didn't find the originals elsewhere.
7855 2019-09-15  Paul Smith  <psmith@gnu.org>
7856             Bruno Haible  <bruno@clisp.org>
7858         findprog-in: Set errno when the search fails.
7859         * lib/findprog-in.c: Include <errno.h>.
7860         (find_in_given_path): Set errno before returning NULL.
7861         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7862         Define the term "slash".
7864 2019-09-15  Bruno Haible  <bruno@clisp.org>
7866         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7867         * modules/findprog (Depends-on): Add access.
7868         * modules/findprog-lgpl (Depends-on): Likewise.
7869         * modules/findprog-in (Depends-on): Likewise.
7871 2019-09-15  Bruno Haible  <bruno@clisp.org>
7873         access: Add tests.
7874         * tests/test-access.c: New file.
7875         * modules/access-tests: New file.
7877         access: New module.
7878         * lib/unistd.in.h (access): New declaration.
7879         * lib/access.c: New file.
7880         * m4/access.m4: New file.
7881         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7882         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7883         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7884         REPLACE_ACCESS.
7885         * modules/access: New file.
7886         * tests/test-unistd-c++.cc (access): Check signature.
7887         * doc/posix-functions/access.texi: Mention the new module.
7889 2019-09-15  Bruno Haible  <bruno@clisp.org>
7891         fcntl-h: Fix compilation error of creat.c on MSVC.
7892         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7893         defined.
7895 2019-09-15  Bruno Haible  <bruno@clisp.org>
7897         creat: Add tests.
7898         * tests/test-creat.c: New file, based on tests/test-open.h.
7899         * modules/creat-tests: New file.
7901         creat: New module.
7902         * lib/fcntl.in.h (creat): New declaration.
7903         * lib/creat.c: New file, based on lib/open.c.
7904         * m4/creat.m4: New file.
7905         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7906         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7907         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7908         * modules/open (Files): Add m4/open-slash.m4.
7909         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7910         REPLACE_CREAT.
7911         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7912         * modules/creat: New file.
7913         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7914         * doc/posix-functions/creat.texi: Mention the new module.
7916 2019-09-15  Bruno Haible  <bruno@clisp.org>
7918         open tests: Enhance test.
7919         * tests/test-open.h (test_open): Test the creation of an executable
7920         regular file. Also improve initial cleanup.
7922 2019-09-15  Bruno Haible  <bruno@clisp.org>
7924         intprops tests: Avoid build failure with HP-UX cc.
7925         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7926         "error 4018: Macro param too large after substitution - use -H option.".
7928 2019-09-14  Bruno Haible  <bruno@clisp.org>
7930         Make autoconf tests work with -Werror=implicit-function-declaration.
7931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7932         towupper() declaration.
7933         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7934         declaration.
7936 2019-09-14  Bruno Haible  <bruno@clisp.org>
7938         findprog-in: Better mimic the system on native Windows.
7939         Reported by Paul Smith <psmith@gnu.org>.
7940         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7941         non-empty suffixes when the file name already contains a '.'.
7943 2019-09-10  Bruno Haible  <bruno@clisp.org>
7945         wctob: Fix autoconf test.
7946         Based on patch by Florian Weimer <fweimer@redhat.com>.
7947         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7949 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7951         xhash: provide hash_xinitialize.
7952         Suggested by Egor Pugin <egor.pugin@gmail.com>
7953         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7954         * modules/xhash, lib/xhash.c: New.
7955         * lib/hash.h (hash_xinitialize): New.
7957 2019-09-09  Bruno Haible  <bruno@clisp.org>
7959         findprog-in: Make exec optimization optional.
7960         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7961         (find_in_given_path): Add optimize_for_exec parameter.
7962         * lib/findprog-in.c (find_in_given_path): Likewise.
7964 2019-09-08  Bruno Haible  <bruno@clisp.org>
7966         Add option to assume the best, not the worst, when cross-compiling.
7967         Suggested by Jonas Termansen <sortie@maxsi.org>.
7968         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
7969         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
7970         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
7971         lt_cv_sys_argz_works.
7972         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
7973         ac_cv_func_calloc_0_nonnull.
7974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
7975         --enable-cross-guesses for gl_cv_func_realpath_works.
7976         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
7977         gl_cv_func_cbrtl_ieee.
7978         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
7979         gl_cv_func_ceil_ieee.
7980         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
7981         gl_cv_func_ceilf_ieee.
7982         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
7983         gl_cv_func_ceill_ieee.
7984         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
7985         ac_cv_func_chown_works.
7986         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
7987         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
7988         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
7989         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
7990         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
7991         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
7992         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
7993         gl_cv_func_expl_works.
7994         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
7995         gl_cv_func_expm1_ieee.
7996         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
7997         gl_cv_func_expm1l_works.
7998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
7999         gl_cv_func_open_directory_works.
8000         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8001         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8002         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8003         gl_cv_func_fchownat_empty_filename_works.
8004         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8005         gl_cv_func_fdopendir_works.
8006         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8007         gl_cv_func_floor_ieee.
8008         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8009         gl_cv_func_floorf_ieee.
8010         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8011         gl_cv_func_fma_works.
8012         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8013         gl_cv_func_fmaf_works.
8014         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8015         gl_cv_func_fmal_works.
8016         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8017         gl_cv_func_fmod_ieee.
8018         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8019         gl_cv_func_fmodf_ieee.
8020         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8021         gl_cv_func_fmodl_ieee.
8022         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8023         gl_cv_func_fpurge_works.
8024         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8025         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8026         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8027         gl_cv_func_getcwd_null.
8028         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8029         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8030         gl_cv_func_working_getdelim.
8031         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8032         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8033         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8034         gl_cv_func_getgroups_works.
8035         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8036         am_cv_func_working_getline.
8037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8038         for gl_cv_func_getopt_gnu.
8039         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8040         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8041         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8042         gl_cv_func_hypot_ieee.
8043         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8044         gl_cv_func_hypotf_ieee.
8045         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8046         gl_cv_func_hypotl_ieee.
8047         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8048         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8049         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8050         gl_cv_func_link_works.
8051         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8052         gl_cv_func_linkat_slash.
8053         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8054         gl_cv_func_log_ieee.
8055         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8056         gl_cv_func_logf_ieee.
8057         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8058         gl_cv_func_logl_works.
8059         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8060         gl_cv_func_log10_ieee.
8061         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8062         gl_cv_func_log10f_ieee.
8063         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8064         gl_cv_func_log10l_works.
8065         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8066         gl_cv_func_log1p_ieee.
8067         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8068         gl_cv_func_log1pf_ieee.
8069         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8070         gl_cv_func_log1pl_ieee.
8071         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8072         gl_cv_func_log2_ieee.
8073         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
8074         gl_cv_func_log2f_ieee.
8075         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
8076         --enable-cross-guesses for
8077         gl_cv_func_lstat_dereferences_slashed_symlink.
8078         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
8079         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8080         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
8081         gl_cv_C_locale_sans_EILSEQ.
8082         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
8083         gl_cv_func_memchr_works.
8084         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
8085         gl_cv_func_memmem_works_always.
8086         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
8087         gl_cv_func_memmem_works_fast.
8088         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
8089         gl_cv_func_mkdir_trailing_slash_works,
8090         gl_cv_func_mkdir_trailing_dot_works.
8091         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
8092         gl_cv_func_mkfifo_works.
8093         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
8094         gl_cv_func_mknod_works.
8095         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
8096         gl_cv_func_working_mkstemp.
8097         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
8098         gl_cv_func_working_mktime.
8099         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
8100         gl_cv_func_modf_ieee.
8101         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
8102         gl_cv_func_modff_ieee.
8103         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
8104         gl_cv_func_modfl_ieee.
8105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
8106         gl_cv_func_nanosleep.
8107         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
8108         gl_cv_func_perror_works.
8109         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8110         gl_cv_func_printf_sizes_c99.
8111         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8112         gl_cv_func_printf_infinite.
8113         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8114         gl_cv_func_printf_infinite_long_double.
8115         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8116         gl_cv_func_printf_directive_a.
8117         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8118         gl_cv_func_printf_directive_f.
8119         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8120         gl_cv_func_printf_flag_zero.
8121         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8122         gl_cv_func_printf_enomem.
8123         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8124         gl_cv_func_snprintf_truncation_c99.
8125         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8126         gl_cv_func_snprintf_retval_c99.
8127         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8128         gl_cv_func_snprintf_directive_n.
8129         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8130         gl_cv_func_vsnprintf_zerosize_c99.
8131         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8132         gl_cv_func_pselect_detects_ebadf.
8133         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8134         Obey --enable-cross-guesses for
8135         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8136         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8137         gl_cv_func_ptsname_sets_errno.
8138         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8139         gl_cv_func_svid_putenv.
8140         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8141         gl_cv_func_readlink_works.
8142         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8143         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8144         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8145         gl_cv_func_re_compile_pattern_working.
8146         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8147         gl_cv_func_remainder_ieee.
8148         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8149         gl_cv_func_remainderf_ieee.
8150         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8151         gl_cv_func_remainderl_ieee.
8152         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8153         gl_cv_func_rintl_works.
8154         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8155         gl_cv_func_rmdir_works.
8156         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8157         gl_cv_func_round_ieee.
8158         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8159         gl_cv_func_roundf_ieee.
8160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8161         gl_cv_func_roundl_ieee.
8162         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8163         gl_cv_func_select_detects_ebadf.
8164         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8165         gl_cv_func_setenv_works.
8166         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8167         gl_cv_func_unsetenv_works.
8168         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8169         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8170         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8171         gl_cv_func_sleep_works.
8172         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8173         gl_cv_func_stat_file_slash.
8174         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8175         gl_cv_func_stpncpy.
8176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8177         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8178         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8179         gl_cv_func_strcasestr_linear.
8180         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8181         gl_cv_func_working_strerror.
8182         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8183         gl_cv_func_strerror_0_works.
8184         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8185         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8186         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8187         gl_cv_func_strstr_works_always.
8188         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8189         gl_cv_func_strstr_linear.
8190         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8191         gl_cv_func_strtod_works.
8192         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8193         gl_cv_func_strtold_works.
8194         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8195         gl_cv_func_symlink_works.
8196         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8197         gl_cv_func_symlinkat_works.
8198         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8199         gl_cv_func_trunc_ieee.
8200         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8201         gl_cv_func_truncf_ieee.
8202         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8203         gl_cv_func_truncl_ieee.
8204         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8205         gl_cv_func_tzset_clobber.
8206         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8207         gl_cv_func_ungetc_works.
8208         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8209         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8210         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8211         gl_cv_func_usleep_works.
8212         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8213         gl_cv_func_futimesat_works.
8214         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8215         gl_cv_func_working_utimes.
8216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8217         gl_cv_func_wcwidth_works.
8218         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8219         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8220         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8221         links for testing. Obey --enable-cross-guesses for
8222         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8223         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8225 2019-09-08  Bruno Haible  <bruno@clisp.org>
8227         Clarify that cross-compilation guesses are guesses.
8228         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8229         cross-compiling.
8231 2019-09-08  Bruno Haible  <bruno@clisp.org>
8233         chown: Fix configure output (regression from 2019-03-23).
8234         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8235         gl_cv_func_chown_follows_symlink variable.
8237 2019-09-08  Bruno Haible  <bruno@clisp.org>
8239         findprog-in: New module.
8240         Suggested by Paul Smith <psmith@gnu.org>.
8241         * lib/findprog.h (find_in_given_path): New declaration.
8242         * lib/findprog-in.c: New file, based on lib/findprog.c.
8243         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8244         * modules/findprog-in: New file.
8246 2019-09-08  Bruno Haible  <bruno@clisp.org>
8248         findprog: Remove unused dependency.
8249         * modules/findprog (Depends-on): Remove strdup.
8251 2019-09-08  Bruno Haible  <bruno@clisp.org>
8253         findprog: Remove test that is obsolete since 2006-04-24.
8254         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8256 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8258         bitset: style changes
8259         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8260         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8261         xzalloc to xcalloc.
8262         Suggested by Paul Eggert.
8264 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8266         bitset: check memory allocation
8267         Reported by 江 祖铭 (Zu-Ming Jiang).
8268         With help from Paul Eggert.
8269         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8270         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8271         instead of realloc.
8272         When shrinking, accept failures.
8273         * lib/bitset/vector.c (vbitset_resize): Likewise.
8275 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8277         scratch_buffer: sync from glibc
8278         * config/srclist.txt: Add the scratch_buffer source
8279         code from glibc, since these should be in sync.
8280         Autoupdate.
8282 2019-09-07  Bruno Haible  <bruno@clisp.org>
8284         doc: Update for glibc 2.30.
8285         * doc/glibc-functions/gettid.texi: New file.
8286         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8287         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8288         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8289         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8290         * doc/glibc-functions/sem_clockwait.texi: New file.
8291         * doc/glibc-functions/tgkill.texi: New file.
8292         * doc/glibc-functions/twalk_r.texi: New file.
8293         * doc/gnulib.texi: Include them.
8294         (Glibc semaphore.h): New section.
8295         * doc/pastposix-functions/h_errno.texi: Update.
8296         * doc/posix-functions/*.texi: Likewise.
8298 2019-09-06  Bruno Haible  <bruno@clisp.org>
8300         symlink tests: Avoid test failure on Linux with Lustre file system.
8301         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8302         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8303         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8305 2019-09-01  Bruno Haible  <bruno@clisp.org>
8307         gitsub.sh: Add support for shallow-cloning of subdirectories.
8308         * top/gitsub.sh (func_usage): Document allowed git options with
8309         'git pull'.
8310         (func_pull): Accept GIT_OPTIONS argument.
8311         (pull): Parse git options before complaining about too many arguments.
8312         Pass the git options to func_pull.
8314 2019-08-29  Bruno Haible  <bruno@clisp.org>
8316         lock: Fix cross-compilation guesses.
8317         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8318         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8319         platforms.
8321 2019-08-28  Bruno Haible  <bruno@clisp.org>
8323         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8324         Reported by Martin Storsjö <martin@martin.st> in
8325         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8326         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8327         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8328         files from GCC 6 or newer, use an override through '#define', because
8329         the inline definitions in the platform's <cmath> cannot be overridden
8330         in another way.
8332 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8334         Revert macOS INT_MULTIPLY_WRAPV patch
8335         Problem reported by Bruno Haible in:
8336         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8337         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8338         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8339         Go back to working around the Clang bug on macOS.
8341 2019-08-27  Bruno Haible  <bruno@clisp.org>
8343         libtool-next-version: Fix error output.
8344         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8345         name.
8347 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8349         Speed up INT_MULTIPLY_WRAPV on macOS
8350         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8351         Mattias Engdegård says it’s safe to assume the relevant library
8352         is always available there.
8353         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8354         New temporary internal macro.
8355         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8356         No need to work around the Clang bug on macOS.
8358 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8360         intprops.h, verify.h: port better to clang
8361         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8362         with Clang.  Problem reported privately by Mattias Engdegård.
8363         Also, insulate intprops.h and verify.h better against each other’s
8364         definitions of __has_builtin on non-Clang hosts.
8365         * lib/intprops.h (__has_builtin): Define a temporary substitute
8366         if __has_builtin is not already defined.
8367         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8368         New temporary internal macros.
8369         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8370         Now two separate macros, replacing the old
8371         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8372         __builtin_mul_overflow is like the rest.  All uses changed.
8373         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8374         Adjust to above changes.
8375         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8376         longer relevant.  All uses changed.
8377         * lib/verify.h (__has_builtin): Treat like intprops.h,
8378         so that the two .h files do not collide with each other.
8379         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8380         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8382 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8384         intprops: say why not Clang __builtin_add_overflow
8385         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8386         Mention Clang in comment, responding to a query from
8387         Mattias Engdegård.
8389 2019-08-24  Bruno Haible  <bruno@clisp.org>
8391         doc: Document most of the files outside of modules.
8392         * doc/gnulib.texi (Build Infrastructure Files,
8393         Release Management Files): New chapters.
8395 2019-08-24  Bruno Haible  <bruno@clisp.org>
8397         bootstrap: Keep in sync with the 'gettext' module.
8398         Reported by Assaf Gordon in
8399         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8400         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8401         * build-aux/po/remove-potcdate.sin: Likewise.
8403 2019-08-24  Bruno Haible  <bruno@clisp.org>
8405         crypto/gc-sha512: Add tests.
8406         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8407         * modules/crypto/gc-sha512-tests: New file.
8409         crypto/gc-sha256: Add tests.
8410         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8411         * modules/crypto/gc-sha256-tests: New file.
8413         crypto/gc-sha256, crypto/gc-sha512: New modules.
8414         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8415         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8416         (MAX_DIGEST_SIZE): Set to 64.
8417         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8418         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8419         (gc_sha256, gc_sha512): New functions.
8420         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8421         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8422         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8424 2019-08-24  Bruno Haible  <bruno@clisp.org>
8426         crypto/gc-sha1 tests: Improve output when the test fails.
8427         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8428         output.
8430 2019-08-24  Bruno Haible  <bruno@clisp.org>
8432         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8433         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8434         LIBGCRYPT_HAS_MD_SM3.
8435         * lib/gc-libgcrypt.c: Include sm3.h.
8436         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8437         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8438         implementation if libgcrypt does not support SM3.
8440 2019-08-24  Bruno Haible  <bruno@clisp.org>
8442         crypto/gc-md2: Optimize and clarify code.
8443         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8444         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8445         is not needed.
8447 2019-08-24  Bruno Haible  <bruno@clisp.org>
8449         crypto/gc-md2: Add comment.
8450         * lib/gc-libgcrypt.c: Add comment.
8452 2019-08-24  Bruno Haible  <bruno@clisp.org>
8454         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8455         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8456         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8457         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8458         variable.
8460 2019-08-24  Bruno Haible  <bruno@clisp.org>
8462         crypto/gc: Fix link error with --with-libgcrypt.
8463         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8464         AC_LIB_HAVE_LINKFLAGS invocation.
8466 2019-08-24  Bruno Haible  <bruno@clisp.org>
8468         crypto/gc: Access the module indicators correctly.
8469         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8470         * lib/gc-libgcrypt.c: Likewise.
8472 2019-08-24  Bruno Haible  <bruno@clisp.org>
8474         crypto/gc: Fix configuration with --with-libgcrypt.
8475         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8476         * modules/crypto/gc (Files): Add it.
8477         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8479 2019-08-24  Bruno Haible  <bruno@clisp.org>
8481         Remove unused file.
8482         * m4/stat-macros.m4: Remove file.
8484 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8486         New strip-trailing-space option for srclist-update
8487         * config/srclist-update (fixfile): Support new option.
8488         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8489         Use it.
8491 2019-08-20  Eric Blake  <eblake@redhat.com>
8493         accept4: Support SOCK_NONBLOCK, if defined
8494         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8496         accept4: Fix compilation when native accept4() exists.
8497         Reported by Richard W.M. Jones <rjones@redhat.com> in
8498         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8499         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8501 2019-08-18  Bruno Haible  <bruno@clisp.org>
8503         Defeat -flto GCC optimization in math autoconf tests.
8504         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8505         at <https://savannah.gnu.org/bugs/?56109>.
8506         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8507         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8508         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8509         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8510         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8511         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8512         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8513         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8514         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8515         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8516         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8517         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8519 2019-08-17  Bruno Haible  <bruno@clisp.org>
8521         windows-spin: Implement declared functions.
8522         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8523         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8524         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8525         name.
8527 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8529         intprops: port to Oracle Developer Studio 12.6
8530         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8531         typos that were in a section not compiled by GCC.
8533 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8535         intprops: support uchar, ushort _WRAPV dests
8536         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8537         when __builtin_add_overflow etc. and _Generic are not used.
8538         (_GL_INT_OP_WRAPV): Use it to support destinations that
8539         are unsigned char or unsigned short, even in compilers
8540         that lack __typeof__ and are not C11-compatible.
8542         intprops: pacify picky GCC
8543         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8544         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8545         possibly-incorrect result.
8546         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8547         about (A) used as a boolean, when A is an expression like 3 * 4.
8549         intprops: support unsigned *_WRAPV results
8550         Add support for unsigned, unsigned long, and unsigned long long
8551         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8552         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8553         bug with unsigned inputs reported by Eli Zaretskii in:
8554         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8555         * config/srclist.txt: Break the glibc connection for intprops.h
8556         temporarily, while more testing is done in Gnulib-using apps.
8557         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8558         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8559         Support unsigned results no narrower than unsigned int.  Report
8560         overflow correctly if some arguments are unsigned.
8561         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8562         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8563         the right thing with narrow args.
8564         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8565         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8566         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8567         * tests/test-intprops.c: Check for bugs and test new behavior.
8569 2019-08-14  Bruno Haible  <bruno@clisp.org>
8571         get_progname_of: New module.
8572         * lib/get_progname_of.h: New file.
8573         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8574         * lib/getprogname.c (getprogname): Tweak coding style.
8575         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8576         * modules/get_progname_of: New file.
8578 2019-08-14  Bruno Haible  <bruno@clisp.org>
8580         get_ppid_of: New module.
8581         * lib/get_ppid_of.h: New file.
8582         * lib/get_ppid_of.c: New file.
8583         * modules/get_ppid_of: New file.
8585 2019-08-13  Bruno Haible  <bruno@clisp.org>
8587         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8588         * tests/test-libtextstyle.c (main): Do not emit styling when the
8589         environment variable NO_COLOR is set.
8591 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8593         verify: improve diagnostic quality in recent GCC
8594         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8595         useful line number containing the top-level caller of the macro.
8596         So, bring back the older way of issuing a diagnostic containing
8597         the top-level call’s arg, so that it is easier to diagnose
8598         ‘verify’ failures with recent GCC.
8599         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8600         Bring back DIAGNOSTIC arg.  All callers changed.
8601         (verify): Just use _GL_VERIFY.
8603 2019-08-11  Bruno Haible  <bruno@clisp.org>
8605         localcharset: Add more aliases for OS/2.
8606         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8607         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8608         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8610 2019-08-10  Eric Blake  <eblake@redhat.com>
8612         configmake: Update advice on usage.
8613         * modules/configmake (Include): No longer necessary to include
8614         last, since configmake.h itself worries about collision avoidance.
8616 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8618         parse-datetime: fix 'T' military timezone handling
8619         * lib/parse-datetime.y (zone):
8620         follow-up to the previous commit: the 'T' case is handled outside the
8621         conversion table (used as either military timezone UTC-7 or ISO8601
8622         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8623         timezone letters.
8625 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8627         parse-datetime: fix military timezone letters
8628         Problem and trivial fix reported by Neil Hoggarth in:
8629         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8630         * lib/parse-datetime.y (military_table):
8631         Do it the right way, not the RFC 822 way.
8633 2019-08-08  Eric Blake  <eblake@redhat.com>
8635         configmake: Avoid namespace pollution issue on mingw.
8636         * modules/configmake (Makefile.am): If the project uses
8637         <winsock2.h>, include that header before defining DATADIR.
8639 2019-07-28  Bruno Haible  <bruno@clisp.org>
8641         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8642         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8644 2019-07-24  Bruno Haible  <bruno@clisp.org>
8646         pthread-h: Fix definitions of types and macros on mingw.
8647         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8648         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8649         not in use.
8650         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8651         'pthread-once' is not in use.
8652         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8653         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8654         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8655         in use.
8656         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8657         Define also when module 'pthread-rwlock' is not in use.
8658         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8659         also when module 'pthread-cond' is not in use.
8660         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8661         'pthread-tss' is not in use.
8662         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8663         use.
8665 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8667         crypto/gc: Cope with libgcrypt without SM3.
8668         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8670 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8672         backupfile: fix resource leak on memory failure
8673         Problem found by Coverity (CID 1484214).
8674         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8676 2019-07-22  Bruno Haible  <bruno@clisp.org>
8678         Avoid missing-declarations warning in various tests.
8679         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8680         test6, test_optional, test7, test8, test9, test10, test11, test12,
8681         test13, test14, test15, test_fun): Declare static.
8682         * tests/test-cnd.c (test_cnd_wait): Likewise.
8683         * tests/test-cond.c (test_cond): Likewise.
8685 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8687         pthread tests: Avoid missing-declarations warning.
8688         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8690 2019-07-19  Bruno Haible  <bruno@clisp.org>
8692         parse-datetime: Avoid warnings from bison versions >= 3.3.
8693         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8694         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8696 2019-07-19  Bruno Haible  <bruno@clisp.org>
8698         parse-datetime: Require Bison 2.4 or newer.
8699         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8700         Code taken from gettext's intl.m4.
8701         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8702         of YACC.
8704 2019-07-19  Bruno Haible  <bruno@clisp.org>
8706         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8707         * lib/areadlink-with-size.c: Include <string.h>.
8708         * lib/areadlinkat-with-size.c: Likewise.
8709         * lib/xgethostname.c: Likewise.
8710         * lib/xgetdomainname.c: Likewise.
8712 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8714         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8715         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8716         "%pure-parser".  The former is available since Bison 2.3b (2008),
8717         while the latter is marked as obsolete since version 3.4 (May 2019).
8719 2019-07-16  Bruno Haible  <bruno@clisp.org>
8721         update-copyright: Make it work again (regression from 2019-06-15).
8722         Reported by Brian C. Lane <bcl@redhat.com>.
8723         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8725 2019-07-14  Bruno Haible  <bruno@clisp.org>
8727         doc: Update info about <pthread.h>.
8728         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8729         of 'pthread'.
8731 2019-07-14  Bruno Haible  <bruno@clisp.org>
8733         pthread_sigmask tests: Use new multithread modules.
8734         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8735         glthread/thread.h.
8736         (main_thread, killer_thread): Change type to pthread_t.
8737         (main): Update accordingly.
8738         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8739         thread.
8741 2019-07-14  Bruno Haible  <bruno@clisp.org>
8743         pthread-tss: Add tests.
8744         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8745         tests/test-tss.c.
8746         * modules/pthread-tss-tests: New file.
8748 2019-07-14  Bruno Haible  <bruno@clisp.org>
8750         pthread-cond: Add tests.
8751         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8752         tests/test-cnd.c.
8753         * modules/pthread-cond-tests: New file.
8755 2019-07-14  Bruno Haible  <bruno@clisp.org>
8757         pthread-rwlock: Add tests.
8758         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8759         * modules/pthread-rwlock-tests: New file.
8761 2019-07-14  Bruno Haible  <bruno@clisp.org>
8763         pthread-mutex: Add tests.
8764         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8765         tests/test-mtx.c.
8766         * modules/pthread-mutex-tests: New file.
8768 2019-07-14  Bruno Haible  <bruno@clisp.org>
8770         pthread-once: Add tests.
8771         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8772         tests/test-call_once.c.
8773         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8774         tests/test-mtx.c.
8775         * modules/pthread-once-tests: New file.
8777 2019-07-14  Bruno Haible  <bruno@clisp.org>
8779         pthread-thread: Add tests.
8780         * tests/test-pthread-thread.c: New file, based on
8781         tests/test-thread_create.c and tests/test-thrd_create.c.
8782         * modules/pthread-thread-tests: New file.
8784 2019-07-14  Bruno Haible  <bruno@clisp.org>
8786         pthread: Turn into a convenience module.
8787         * lib/pthread.in.h: Remove declarations for extern inline functions.
8788         * lib/pthread.c: Remove file.
8789         * modules/pthread (Files): Remove it.
8790         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8791         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8792         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8793         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8794         GNULIB_PTHREAD.
8795         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8797 2019-07-14  Bruno Haible  <bruno@clisp.org>
8799         pthread-spin: New module.
8800         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8801         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8802         inline definitions.
8803         * lib/pthread-spin.c: New file.
8804         * m4/pthread-spin.m4: New file.
8805         * modules/pthread-spin: New file.
8806         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8807         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8808         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8809         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8810         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8812 2019-07-14  Bruno Haible  <bruno@clisp.org>
8814         pthread-tss: New module.
8815         * lib/pthread-tss.c: New file.
8816         * m4/pthread-tss.m4: New file.
8817         * modules/pthread-tss: New file.
8818         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8819         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8820         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8821         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8823 2019-07-14  Bruno Haible  <bruno@clisp.org>
8825         pthread-cond: New module.
8826         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8827         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8828         * lib/pthread-cond.c: New file.
8829         * m4/pthread-cond.m4: New file.
8830         * modules/pthread-cond: New file.
8831         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8832         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8833         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8834         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8835         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8836         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8837         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8838         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8840 2019-07-14  Bruno Haible  <bruno@clisp.org>
8842         pthread-rwlock: New module.
8843         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8844         * m4/pthread-rwlock.m4: New file.
8845         * modules/pthread-rwlock: New file.
8846         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8847         and the Android problem.
8848         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8849         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8850         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8851         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8852         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8853         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8854         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8855         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8856         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8857         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8859 2019-07-14  Bruno Haible  <bruno@clisp.org>
8861         pthread-mutex: New module.
8862         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8863         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8864         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8865         pthread_mutex_unlock): Remove inline definitions.
8866         * lib/pthread-mutex.c: New file.
8867         * m4/pthread-mutex.m4: New file.
8868         * modules/pthread-mutex: New file.
8869         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8870         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8871         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8872         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8873         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8874         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8875         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8876         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8877         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8878         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8879         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8880         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8882 2019-07-14  Bruno Haible  <bruno@clisp.org>
8884         pthread-once: New module.
8885         * lib/pthread-once.c: New file.
8886         * m4/pthread-once.m4: New file.
8887         * modules/pthread-once: New file.
8888         * doc/posix-functions/pthread_once.texi: Mention the new module.
8890 2019-07-14  Bruno Haible  <bruno@clisp.org>
8892         pthread-thread: New module.
8893         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8894         inline definitions.
8895         * lib/pthread-thread.c: New file.
8896         * m4/pthread-thread.m4: New file.
8897         * modules/pthread-thread: New file.
8898         * doc/posix-functions/pthread_create.texi: Mention the new module.
8899         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8900         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8901         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8902         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8903         * doc/posix-functions/pthread_self.texi: Likewise.
8904         * doc/posix-functions/pthread_equal.texi: Likewise.
8905         * doc/posix-functions/pthread_detach.texi: Likewise.
8906         * doc/posix-functions/pthread_join.texi: Likewise.
8907         * doc/posix-functions/pthread_exit.texi: Likewise.
8909 2019-07-14  Bruno Haible  <bruno@clisp.org>
8911         pthread-h: Prepare for adding new modules.
8912         * lib/pthread.in.h: Define the types and macros for each of the
8913         facilities separately.
8914         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8915         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8916         HAVE_PTHREAD_PROCESS_SHARED.
8917         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8918         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8919         HAVE_PTHREAD_PROCESS_SHARED.
8920         * modules/pthread-h (Makefile.am): Substitute
8921         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8922         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8924 2019-07-14  Bruno Haible  <bruno@clisp.org>
8926         pthread-h: Add declarations of essential pthread functions.
8927         * lib/pthread.in.h: Include snippets.
8928         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8929         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8930         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8931         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8932         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8933         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8934         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8935         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8936         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8937         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8938         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8939         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8940         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8941         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8942         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8943         pthread_key_create, pthread_setspecific, pthread_getspecific,
8944         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8945         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8946         declarations.
8947         (pthread_mutex_timedlock): Move declaration.
8948         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8949         declared.
8950         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8951         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8952         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8953         HAVE_* and REPLACE_* variables for the new functions.
8954         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8955         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8956         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8957         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8958         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8959         variables for the new functions. Split the sed script, to avoid the
8960         limit of 99 commands of HP-UX sed.
8961         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8963 2019-07-14  Bruno Haible  <bruno@clisp.org>
8965         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8966         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8967         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
8968         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
8969         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
8970         * modules/pthread-h (Depends-on): Add threadlib.
8971         (Link): Change to $(LIBTHREAD).
8972         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
8973         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
8975 2019-07-14  Bruno Haible  <bruno@clisp.org>
8977         pthread-h: Add C++ tests.
8978         * tests/test-pthread-c++.cc: New file.
8979         * modules/pthread-h-c++-tests: New file.
8981 2019-07-14  Bruno Haible  <bruno@clisp.org>
8983         pthread-h: Add tests.
8984         * tests/test-pthread.c: New file.
8985         * modules/pthread-h-tests: New file.
8987 2019-07-14  Bruno Haible  <bruno@clisp.org>
8989         pthread-h: New module.
8990         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
8991         is 1.
8992         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
8993         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
8994         <pthread.h> pollutes the namespace; instead, prepare for generating a
8995         pthread.h always. Substitute HAVE_PTHREAD_H here.
8996         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
8997         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
8998         * modules/pthread-h: New file, based on modules/pthread.
8999         * modules/pthread: Rely on 'pthread-h'.
9000         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9001         Update.
9002         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9003         pthread.
9005 2019-07-14  Bruno Haible  <bruno@clisp.org>
9007         sched_yield: New module.
9008         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9009         (sched_yield): New declaration.
9010         * lib/sched_yield.c: New file.
9011         * m4/sched_yield.m4: New file.
9012         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9013         provide a replacement sched.h always. Test whether sched_yield is
9014         declared.
9015         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9016         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9017         (Makefile.am): Provide a replacement sched.h always. Substitute
9018         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9019         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9020         * modules/sched_yield: New file.
9021         * doc/posix-functions/sched_yield.texi: Mention the new module.
9023 2019-07-14  Bruno Haible  <bruno@clisp.org>
9025         windows-spin: New module.
9026         * lib/windows-spin.h: New file.
9027         * lib/windows-spin.c: New file.
9028         * modules/windows-spin: New file.
9030 2019-07-14  Bruno Haible  <bruno@clisp.org>
9032         windows-timedrwlock: New module.
9033         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9034         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9035         windows-cond.c.
9036         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9037         redefinition conflict with windows-timedrwlock.h.
9038         * modules/windows-timedrwlock: New file.
9040 2019-07-14  Bruno Haible  <bruno@clisp.org>
9042         windows-rwlock: New module.
9043         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9044         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9045         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9046         windows-initguard.h.
9047         (gl_rwlock_t): Define using glwthread_rwlock_t.
9048         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9049         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9050         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9051         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9052         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9053         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9054         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9055         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9056         glthread_rwlock_destroy_func): Remove declarations.
9057         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9058         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9059         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9060         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9061         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9062         functions.
9063         * modules/windows-rwlock: New file.
9064         * modules/lock (Depends-on): Add windows-rwlock.
9066 2019-07-14  Bruno Haible  <bruno@clisp.org>
9068         windows-thread: Add support for creating a thread in detached state.
9069         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9070         (glwthread_thread_create): Add attr argument.
9071         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9072         * lib/glthread/thread.h (glthread_create): Update.
9073         * lib/thrd.c (thrd_create): Update.
9075 2019-07-14  Bruno Haible  <bruno@clisp.org>
9077         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
9078         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
9079         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
9080         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
9081         * lib/windows-mutex.h: Update.
9082         * lib/windows-recmutex.h: Likewise.
9083         * lib/windows-timedmutex.h: Likewise.
9084         * lib/windows-timedrecmutex.h: Likewise.
9085         * lib/windows-cond.h: Likewise.
9086         * lib/glthread/lock.h: Likewise.
9087         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
9088         lib/windows-spinlock.h.
9089         * modules/windows-recmutex (Files): Likewise.
9090         * modules/windows-timedmutex (Files): Likewise.
9091         * modules/windows-timedrecmutex (Files): Likewise.
9092         * modules/windows-cond (Files): Likewise.
9093         * modules/threads-h (Files): Likewise.
9095 2019-07-14  Bruno Haible  <bruno@clisp.org>
9097         doc: Fix info about pthread API in HP-UX.
9098         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
9100 2019-07-14  Bruno Haible  <bruno@clisp.org>
9102         threads-h: Fix generation of threads.h.
9103         * modules/threads-h (Makefile.am): Insert the required header file
9104         snippets.
9106 2019-07-09  Bruno Haible  <bruno@clisp.org>
9108         striconveh test: Fix a compilation failure when iconv is not available.
9109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9110         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9111         HAVE_ICONV.
9113 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9115         argmatch: adjust columns for help2man.
9116         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9117         requires column 20 or more, return 20.
9119 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9121         areadlink-with-size: avoid realloc when size==0
9122         * lib/areadlink-with-size.c (areadlink_with_size):
9123         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9124         Reallocate at the end to the actual size, to avoid memory waste,
9125         as suggested by Bruno Haible.  But when the guessed size is zero -
9126         useful when the size is unknown - do the initial small readlink
9127         into the stack, to avoid that realloc in the usual case.
9129 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9131         areadlink-with-size: guess a buffer size with 0 size
9132         The size is usually taken from st_size, which can be zero,
9133         resulting in inefficient operation.
9134         Instead let zero select an initial memory allocation
9135         of 128 bytes, which most symlinks fit within.
9136         * lib/areadlink-with-size.c (areadlink_with_size):
9137         Start with a 128 byte buffer, for SIZE == 0.
9138         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9140 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9142         Replace manually crafted hex regexes with [:xdigit:]
9143         * build-aux/gitlog-to-changelog (parse_amend_file)
9144         (git_dir_option):
9145         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9146         This patch is backported from Emacs (Bug#36167).
9148 2019-07-06  Bruno Haible  <bruno@clisp.org>
9150         error: Fix documentation.
9151         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9152         module provides.
9153         * doc/glibc-functions/error_message_count.texi: Likewise.
9154         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9155         * doc/glibc-functions/error_print_progname.texi: Likewise.
9157 2019-07-06  Bruno Haible  <bruno@clisp.org>
9159         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9160         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9161         and older is unsupported.
9162         * doc/**/*.texi: Update.
9164 2019-07-06  Bruno Haible  <bruno@clisp.org>
9166         doc: Remove documentation of Linux libc5 as a supported platform.
9167         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9168         to Linux libc5.
9169         * doc/posix-functions/iswalpha.texi: Likewise.
9170         * doc/posix-functions/iswblank.texi: Likewise.
9171         * doc/posix-functions/iswcntrl.texi: Likewise.
9172         * doc/posix-functions/iswdigit.texi: Likewise.
9173         * doc/posix-functions/iswgraph.texi: Likewise.
9174         * doc/posix-functions/iswlower.texi: Likewise.
9175         * doc/posix-functions/iswprint.texi: Likewise.
9176         * doc/posix-functions/iswpunct.texi: Likewise.
9177         * doc/posix-functions/iswspace.texi: Likewise.
9178         * doc/posix-functions/iswupper.texi: Likewise.
9179         * doc/posix-functions/iswxdigit.texi: Likewise.
9180         * doc/posix-functions/snprintf.texi: Likewise.
9181         * doc/posix-functions/vsnprintf.texi: Likewise.
9183 2019-07-06  Bruno Haible  <bruno@clisp.org>
9185         doc: Remove documentation of Tandem/NSK as a supported platform.
9186         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9187         Tandem/NSK.
9188         * doc/**/*.texi: Update.
9190 2019-07-06  Bruno Haible  <bruno@clisp.org>
9192         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9193         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9194         and older is unsupported.
9195         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9196         Mac OS X 10.4 and older.
9197         * doc/posix-functions/asinl.texi: Likewise.
9198         * doc/posix-functions/atanl.texi: Likewise.
9199         * doc/posix-functions/cosl.texi: Likewise.
9200         * doc/posix-functions/expl.texi: Likewise.
9201         * doc/posix-functions/frexpl.texi: Likewise.
9202         * doc/posix-functions/gettimeofday.texi: Likewise.
9203         * doc/posix-functions/logl.texi: Likewise.
9204         * doc/posix-functions/mkstemp.texi: Likewise.
9205         * doc/posix-functions/sinl.texi: Likewise.
9206         * doc/posix-functions/sqrtl.texi: Likewise.
9207         * doc/posix-functions/tanl.texi: Likewise.
9208         * doc/posix-functions/wcswidth.texi: Likewise.
9209         * doc/**/*.texi: Update.
9211 2019-07-06  Bruno Haible  <bruno@clisp.org>
9213         doc: Remove documentation of AIX 4 as a supported platform.
9214         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9215         unsupported.
9216         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9217         workarounds.
9218         * doc/posix-functions/strnlen.texi: Likewise.
9219         * doc/posix-headers/inttypes.texi: Likewise.
9220         * doc/**/*.texi: Update.
9222 2019-07-06  Bruno Haible  <bruno@clisp.org>
9224         doc: Remove documentation of HP-UX 10 as a supported platform.
9225         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9226         unsupported.
9227         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9228         workarounds.
9229         * doc/posix-functions/gmtime_r.texi: Likewise.
9230         * doc/posix-functions/localtime_r.texi: Likewise.
9231         * doc/posix-functions/mkstemp.texi: Likewise.
9232         * doc/**/*.texi: Update.
9234 2019-07-06  Bruno Haible  <bruno@clisp.org>
9236         doc: Remove documentation of Interix 3.5 as a supported platform.
9237         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9238         unsupported.
9239         * doc/posix-functions/select.texi: Don't mention Interix specific
9240         workarounds.
9241         * doc/posix-headers/signal.texi: Likewise.
9242         * doc/**/*.texi: Update.
9244 2019-07-06  Bruno Haible  <bruno@clisp.org>
9246         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9247         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9248         unsupported.
9249         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9250         workarounds.
9251         * doc/posix-functions/nl_langinfo.texi: Likewise.
9252         * doc/posix-functions/remainder.texi: Likewise.
9253         * doc/posix-functions/towlower.texi: Likewise.
9254         * doc/posix-functions/towupper.texi: Likewise.
9255         * doc/posix-functions/vsnprintf.texi: Likewise.
9256         * doc/posix-functions/wcscat.texi: Likewise.
9257         * doc/posix-functions/wcschr.texi: Likewise.
9258         * doc/posix-functions/wcscmp.texi: Likewise.
9259         * doc/posix-functions/wcscpy.texi: Likewise.
9260         * doc/posix-functions/wcscspn.texi: Likewise.
9261         * doc/posix-functions/wcslen.texi: Likewise.
9262         * doc/posix-functions/wcsncat.texi: Likewise.
9263         * doc/posix-functions/wcsncmp.texi: Likewise.
9264         * doc/posix-functions/wcsncpy.texi: Likewise.
9265         * doc/posix-functions/wcspbrk.texi: Likewise.
9266         * doc/posix-functions/wcsrchr.texi: Likewise.
9267         * doc/posix-functions/wcsspn.texi: Likewise.
9268         * doc/posix-headers/langinfo.texi: Likewise.
9269         * doc/posix-headers/signal.texi: Likewise.
9270         * doc/posix-headers/wchar.texi: Likewise.
9271         * doc/posix-headers/wctype.texi: Likewise.
9272         * doc/**/*.texi: Update.
9274 2019-07-05  Bruno Haible  <bruno@clisp.org>
9276         doc: Remove documentation of OSF/1 as supported platform.
9277         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9278         unsupported.
9279         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9280         workarounds.
9281         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9282         * doc/glibc-functions/ptsname_r.texi: Likewise.
9283         * doc/posix-functions/ceil.texi: Likewise.
9284         * doc/posix-functions/ceilf.texi: Likewise.
9285         * doc/posix-functions/ceill.texi: Likewise.
9286         * doc/posix-functions/fchdir.texi: Likewise.
9287         * doc/posix-functions/floor.texi: Likewise.
9288         * doc/posix-functions/floorf.texi: Likewise.
9289         * doc/posix-functions/fmod.texi: Likewise.
9290         * doc/posix-functions/fmodf.texi: Likewise.
9291         * doc/posix-functions/fmodl.texi: Likewise.
9292         * doc/posix-functions/log.texi: Likewise.
9293         * doc/posix-functions/logf.texi: Likewise.
9294         * doc/posix-functions/logl.texi: Likewise.
9295         * doc/posix-functions/log10.texi: Likewise.
9296         * doc/posix-functions/log10f.texi: Likewise.
9297         * doc/posix-functions/log10l.texi: Likewise.
9298         * doc/posix-functions/log2.texi: Likewise.
9299         * doc/posix-functions/log2f.texi: Likewise.
9300         * doc/posix-functions/log2l.texi: Likewise.
9301         * doc/posix-functions/mbrtowc.texi: Likewise.
9302         * doc/posix-functions/recv.texi: Likewise.
9303         * doc/posix-functions/recvfrom.texi: Likewise.
9304         * doc/posix-functions/remainder.texi: Likewise.
9305         * doc/posix-functions/remainderf.texi: Likewise.
9306         * doc/posix-functions/remainderl.texi: Likewise.
9307         * doc/posix-functions/round.texi: Likewise.
9308         * doc/posix-functions/roundf.texi: Likewise.
9309         * doc/posix-functions/roundl.texi: Likewise.
9310         * doc/posix-functions/send.texi: Likewise.
9311         * doc/posix-functions/sendto.texi: Likewise.
9312         * doc/posix-functions/setenv.texi: Likewise.
9313         * doc/posix-functions/snprintf.texi: Likewise.
9314         * doc/posix-functions/tcgetsid.texi: Likewise.
9315         * doc/posix-functions/trunc.texi: Likewise.
9316         * doc/posix-functions/truncf.texi: Likewise.
9317         * doc/posix-functions/truncl.texi: Likewise.
9318         * doc/posix-functions/ttyname_r.texi: Likewise.
9319         * doc/posix-functions/unsetenv.texi: Likewise.
9320         * doc/posix-functions/wcsrtombs.texi: Likewise.
9321         * doc/posix-headers/sys_select.texi: Likewise.
9322         * doc/posix-headers/wchar.texi: Likewise.
9323         * doc/posix-headers/wctype.texi: Likewise.
9324         * doc/**/*.texi: Update.
9326 2019-07-05  Bruno Haible  <bruno@clisp.org>
9328         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9329         * doc/**/*.texi: Update.
9331 2019-07-05  Bruno Haible  <bruno@clisp.org>
9333         doc: Remove documentation of Solaris 8 and older as supported platforms.
9334         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9335         unsupported.
9336         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9337         workarounds.
9338         * doc/posix-functions/memcmp.texi: Likewise.
9339         * doc/posix-functions/rename.texi: Likewise.
9340         * doc/posix-functions/tzset.texi: Likewise.
9341         * doc/posix-headers/wctype.texi: Likewise.
9342         * doc/**/*.texi: Update.
9344 2019-07-05  Bruno Haible  <bruno@clisp.org>
9346         doc: Remove documentation of Interix 3.5 as a supported platform.
9347         * doc/**/*.texi: Update.
9349 2019-07-05  Bruno Haible  <bruno@clisp.org>
9351         doc: Remove documentation of BeOS as a supported platform.
9352         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9353         unsupported.
9354         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9355         * doc/posix-functions/getdelim.texi: Likewise.
9356         * doc/**/*.texi: Update.
9358 2019-07-05  Bruno Haible  <bruno@clisp.org>
9360         thread, lock, cond, tls: Remove support for Pth threads.
9361         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9362         --enable-threads=pth any more.
9363         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9364         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9365         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9366         threads and ISO C11 threads.
9367         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9368         * lib/glthread/lock.h: Likewise.
9369         * lib/glthread/lock.c: Likewise.
9370         * lib/glthread/cond.h: Likewise.
9371         * lib/glthread/cond.c: Likewise.
9372         * lib/glthread/tls.h: Likewise.
9373         * lib/glthread/tls.c: Likewise.
9374         * lib/glthread/yield.h: Likewise.
9375         * lib/regex_internal.h: Likewise.
9376         * tests/test-thread_create.c: Likewise.
9377         * tests/test-lock.c: Likewise.
9378         * tests/test-cond.c: Likewise.
9379         * tests/test-tls.c: Likewise.
9380         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9381         (main): Sleep without calling gl_thread_yield.
9383 2019-07-05  Bruno Haible  <bruno@clisp.org>
9385         thread, lock, cond, tls: Remove support for old Solaris threads.
9386         Solaris >= 2.5.1 has POSIX threads.
9387         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9388         --enable-threads=solaris any more.
9389         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9390         * lib/glthread/thread.c: Update comment.
9391         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9392         * lib/glthread/lock.h: Likewise.
9393         * lib/glthread/lock.c: Likewise.
9394         * lib/glthread/cond.h: Likewise.
9395         * lib/glthread/cond.c: Likewise.
9396         * lib/glthread/tls.h: Likewise.
9397         * lib/glthread/tls.c: Likewise.
9398         * lib/glthread/yield.h: Likewise.
9399         * lib/regex_internal.h: Likewise.
9400         * tests/test-thread_create.c: Likewise.
9401         * tests/test-lock.c: Likewise.
9402         * tests/test-cond.c: Likewise.
9403         * tests/test-tls.c: Likewise.
9405 2019-07-05  Bruno Haible  <bruno@clisp.org>
9407         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9408         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9409         needed size is equal to the allocated size.
9410         * lib/getcwd.c (__getcwd): Likewise.
9412 2019-07-05  Bruno Haible  <bruno@clisp.org>
9414         xgetdomainname: Don't return an excessive memory allocation.
9415         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9416         before returning it.
9418 2019-07-05  Bruno Haible  <bruno@clisp.org>
9420         xgethostname: Don't return an excessive memory allocation.
9421         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9422         returning it.
9424 2019-07-05  Bruno Haible  <bruno@clisp.org>
9426         areadlinkat-with-size: Don't return an excessive memory allocation.
9427         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9428         before returning it.
9430 2019-07-05  Bruno Haible  <bruno@clisp.org>
9432         areadlink-with-size: Don't return an excessive memory allocation.
9433         Reported by Andreas Dilger <adilger@whamcloud.com>.
9434         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9435         before returning it.
9437 2019-07-03  Bruno Haible  <bruno@clisp.org>
9439         renameatu: Fix test failure on MSVC.
9440         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9441         empty string.
9443 2019-07-03  Bruno Haible  <bruno@clisp.org>
9445         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9446         * lib/mbrtowc.c: Include glthread/lock.h.
9447         (mbtowc_lock): New variable.
9448         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9449         encodings, explicitly reset the internal state of mbtowc, and protect
9450         this through a lock.
9451         * modules/mbrtowc (Depends-on): Add lock.
9453 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9455         argmatch: don't define _ in the header.
9456         Reported by Jim Meyering.
9457         * lib/argmatch.h (N_, _): Don't define.
9458         Use gettext instead.
9459         * lib/argmatch.h (_): Define.
9460         * tests/test-argmatch.c (N_): Define.
9462 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9464         verify: document ‘assume’ better
9465         * lib/verify.h: Reword doc (Bug#36370).
9467 2019-07-02  Bruno Haible  <bruno@clisp.org>
9469         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9470         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9471         "CPutf8".
9472         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9474 2019-07-02  Bruno Haible  <bruno@clisp.org>
9476         getcwd: Fix crash when invoked with size = 0 on MSVC.
9477         * lib/getcwd.c: Include msvc-inval.h.
9478         (getcwd_nothrow): New function/macro.
9479         (getcwd_system): New macro.
9480         (__getcwd): Use it instead of getcwd.
9481         * modules/getcwd (Depends-on): Add msvc-inval.
9482         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9484 2019-07-02  Bruno Haible  <bruno@clisp.org>
9486         nonblocking-pipe tests: Fix test failure on MSVC.
9487         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9488         native Windows.
9490 2019-07-02  Bruno Haible  <bruno@clisp.org>
9492         usleep: Implement with millisecond resolution on native Windows.
9493         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9494         * doc/pastposix-functions/usleep.texi: Update accordingly.
9496 2019-07-02  Bruno Haible  <bruno@clisp.org>
9498         lstat tests: Fix test failure on MSVC.
9499         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9500         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9502 2019-07-02  Bruno Haible  <bruno@clisp.org>
9504         stat tests: Fix test failure on MSVC.
9505         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9506         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9508 2019-07-02  Bruno Haible  <bruno@clisp.org>
9510         getaddrinfo tests: Fix test failure on MSVC.
9511         * tests/test-getaddrinfo.c: Include sockets.h.
9512         (main): Invoke gl_sockets_startup.
9513         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9515 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9517         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9518         * lib/poll.c: Call Windows native select() with Windows native timeval.
9520 2019-06-30  Bruno Haible  <bruno@clisp.org>
9522         argmatch: Fix compilation errors.
9523         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9524         * tests/test-argmatch.c (main): Update after last-minute function names
9525         change.
9527 2019-06-30  Bruno Haible  <bruno@clisp.org>
9529         Include <stdlib.h> when needed.
9530         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9531         * lib/fcntl.c: Likewise.
9532         * lib/mbscasestr.c: Likewise.
9533         * lib/mbssep.c: Likewise.
9534         * lib/mbsstr.c: Likewise.
9535         * lib/openat.c: Include <stdlib.h>, needed for free().
9536         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9537         abort().
9539 2019-06-30  Bruno Haible  <bruno@clisp.org>
9541         Include <stdlib.h> when needed.
9542         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9543         * lib/faccessat.c: Likewise.
9544         * lib/fchmodat.c: Likewise.
9545         * lib/fchownat.c: Likewise.
9546         * lib/fstatat.c: Likewise.
9547         * lib/mkfifoat.c: Likewise.
9548         * lib/mknodat.c: Likewise.
9549         * lib/readlinkat.c: Likewise.
9550         * lib/symlinkat.c: Likewise.
9551         * lib/utimensat.c: Likewise.
9552         * lib/mkdirat.c: Likewise. Include also the specification header.
9554 2019-06-30  Bruno Haible  <bruno@clisp.org>
9556         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9557         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9558         from gl_PREREQ_SYS_H_SOCKET.
9559         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9560         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9561         gl_PREREQ_SYS_H_WS2TCPIP.
9562         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9563         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9564         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9566 2019-06-30  Bruno Haible  <bruno@clisp.org>
9568         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9569         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9570         REPLACE_INET_NTOP to 1 always.
9571         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9572         REPLACE_INET_PTON to 1 always.
9574 2019-06-30  Bruno Haible  <bruno@clisp.org>
9576         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9577         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9578         not REPLACE_INET_NTOP.
9580 2019-06-30  Bruno Haible  <bruno@clisp.org>
9582         poll: Add comment.
9583         * lib/poll.c: Add comment about WSAPoll.
9585 2019-06-30  Bruno Haible  <bruno@clisp.org>
9587         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9588         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9589         * lib/poll.in.h: Include <winsock2.h>.
9590         (POLL*, pollfd): Override on native Windows.
9591         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9592         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9593         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9595 2019-06-28  Bruno Haible  <bruno@clisp.org>
9597         accept4: Fix compilation error on OpenIndiana.
9598         Reported by Michal Nowak <mnowak@startmail.com>
9599         via Mark H Weaver <mhw@netris.org>.
9600         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9601         whether it exists as a function.
9603 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9605         strverscmp: sync from glibc
9606         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9607         comments, include libc-config.h, define __strverscmp to be
9608         strverscmp, and don’t assume types line uint8_t and int8_t that
9609         that C99 doesn’t guarantee.
9610         [!_LIBC]: Include libc-config.h; define __strverscmp.
9611         Include stdint.h.
9612         (__strverscmp): Assume C99.  Use uint_least8_t
9613         and int_least8_t instead of unsigned char and signed char.
9614         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9616 2019-06-25  Bruno Haible  <bruno@clisp.org>
9618         tss tests: Add tests for destructors and races.
9619         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9620         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9621         functions.
9622         (main): Invoke them.
9623         * modules/tls-tests (Depends-on): Add mtx.
9625 2019-06-25  Bruno Haible  <bruno@clisp.org>
9627         tls tests: Add tests for destructors and races.
9628         * tests/test-tls.c: Include glthread/lock.h.
9629         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9630         functions.
9631         (main): Invoke them.
9632         * modules/tls-tests (Depends-on): Add lock.
9634 2019-06-25  Bruno Haible  <bruno@clisp.org>
9636         windows-tls: Implement TLS key destructors for native Windows.
9637         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9638         declaration.
9639         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9640         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9641         (dtor_table_init_once, dtor_table_lock: New variables.
9642         (struct dtor): New type.
9643         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9644         dtor_processing_threads): New variables.
9645         (dtor_table_initialize, dtor_table_ensure_initialized,
9646         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9647         functions.
9648         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9649         handle non-NULL destructors.
9650         * modules/windows-tls (Depends-on): Add windows-once.
9651         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9652         Use the functions declared in windows-tls.h.
9653         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9654         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9655         * lib/windows-thread.c: Include windows-tls.h.
9656         (wrapper_func, glwthread_thread_exit): Invoke
9657         glwthread_tls_process_destructors.
9658         * modules/windows-thread (Depends-on): Add windows-tls.
9660 2019-06-25  Bruno Haible  <bruno@clisp.org>
9662         threadlib: Avoid autoconf warning "was expanded before it was required".
9663         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9665 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9667         argmatch: remove duplicate const qualifier
9668         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9670 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9672         unistd: stddef.h and sys/types.h namespace cleanup
9673         * lib/unistd.in.h [__GLIBC__]:
9674         Do not include stddef.h or sys/types.h.
9675         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9676         supposed to declare off_t and ssize_t.  Problem found when looking
9677         at why @GNULIB_PWRITE@ was different from the newly-added
9678         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9680 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9682         maintainer-makefile: restore portability to non-GNU awks
9683         Reported by Tim Rühsen.
9684         * top/maint.mk (AWK): New variable.  Use it.
9685         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9687 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9689         Document setvbuf _IOLBF problem
9690         * doc/posix-functions/setvbuf.texi (setvbuf):
9691         Document MS-Windows portability problem with _IOLBF.
9693         Document lseek SEEK_DATA/SEEK_HOLE
9694         * doc/posix-functions/lseek.texi (lseek):
9695         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9697 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9699         argmatch: put all the docs member last.
9700         Reported by Bruno Haible.
9701         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9702         member before the docs done.
9703         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9705 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9707         argmatch: add support to generate the usage message.
9708         * lib/argmatch.c: Move some #includes and gettext support to...
9709         * lib/argmatch.h: here.
9710         (ARGMATCH_DEFINE_GROUP): New macro.
9711         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9712         (argmatch_backup_group): New.
9713         (CHECK): New.
9714         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9715         argmatch_backup_argument and argmatch_backup_usage.
9716         * modules/argmatch: We depend on c99.
9717         * doc/argmatch.texi (Recognizing Option Arguments): New.
9718         * doc/gnulib.texi: Use it.
9720 2019-06-21  Bruno Haible  <bruno@clisp.org>
9722         thrd: Add comment.
9723         * lib/thrd.c (pthread_main_func): Add comment.
9725 2019-06-21  Bruno Haible  <bruno@clisp.org>
9727         threads-h: Define 'thread_local' if and only if it actually works.
9728         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9729         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9730         Oracle Solaris Studio C. Compile a simple program, to see whether
9731         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9732         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9733         * lib/threads.in.h (thread_local): Undefine if it does not work.
9734         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9735         (Link): Mention LIBTHREADLOCAL.
9736         * tests/test-threads.c: Don't check that thread_local is defined.
9737         * tests/test-thread_local.c: New file.
9738         * modules/threads-h-tests (Files): Add it and macros.h.
9739         (Depends-on): Add thrd and stdint.
9740         (configure.ac): Test whether 'alarm' is declared.
9741         (Makefile.am): Arrange to build and link test-thread_local.
9742         * doc/posix-headers/threads.texi: Mention the platforms that don't
9743         support 'thread_local'.
9745 2019-06-20  Bruno Haible  <bruno@clisp.org>
9747         threads-h: Simplify link dependencies.
9748         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9749         Don't set LTLIBSTDTHREAD.
9750         * modules/thrd (Link): Simplify accordingly.
9751         * modules/mtx (Link): Likewise.
9752         * modules/cnd (Link): Likewise.
9753         * modules/tss (Link): Likewise.
9754         * modules/threads (Link): Likewise.
9756 2019-06-20  Bruno Haible  <bruno@clisp.org>
9758         threads-h: Fix link error on FreeBSD 11.
9759         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9760         also with -lpthread.
9762 2019-06-20  Bruno Haible  <bruno@clisp.org>
9764         threadlib: Fix typo (regression from today).
9765         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9767 2019-06-20  Bruno Haible  <bruno@clisp.org>
9769         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9770         * lib/windows-thread.c: Include <errno.h>.
9771         * lib/windows-tls.c: Likewise.
9773 2019-06-20  Bruno Haible  <bruno@clisp.org>
9775         tss tests: Small improvement.
9776         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9778 2019-06-20  Bruno Haible  <bruno@clisp.org>
9780         threads: New module.
9781         * modules/threads: New file.
9783 2019-06-20  Bruno Haible  <bruno@clisp.org>
9785         tss: Add tests.
9786         * tests/test-tss.c: New file, based on tests/test-tls.c.
9787         * modules/tss-tests: New file.
9789 2019-06-20  Bruno Haible  <bruno@clisp.org>
9791         cnd: Add tests.
9792         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9793         * modules/cnd-tests: New file.
9795 2019-06-20  Bruno Haible  <bruno@clisp.org>
9797         mtx: Add tests.
9798         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9799         * tests/test-call_once.c: New file, based on tests/test-once.c.
9800         * modules/mtx-tests: New file.
9802 2019-06-20  Bruno Haible  <bruno@clisp.org>
9804         thrd: Add tests.
9805         * tests/test-thrd_create.c: New file, based on
9806         tests/test-thread_create.c.
9807         * tests/test-thrd_current.c: New file, based on
9808         tests/test-thread_self.c.
9809         * modules/thrd-tests: New file.
9811 2019-06-20  Bruno Haible  <bruno@clisp.org>
9813         tss: New module.
9814         * lib/tss.c: New file.
9815         * modules/tss: New file.
9816         * doc/posix-functions/tss_create.texi: Mention the new module.
9817         * doc/posix-functions/tss_set.texi: Likewise.
9818         * doc/posix-functions/tss_get.texi: Likewise.
9819         * doc/posix-functions/tss_delete.texi: Likewise.
9821 2019-06-20  Bruno Haible  <bruno@clisp.org>
9823         cnd: New module.
9824         * lib/cnd.c: New file.
9825         * modules/cnd: New file.
9826         * doc/posix-functions/cnd_init.texi: Mention the new module.
9827         * doc/posix-functions/cnd_wait.texi: Likewise.
9828         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9829         * doc/posix-functions/cnd_signal.texi: Likewise.
9830         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9831         * doc/posix-functions/cnd_destroy.texi: Likewise.
9833 2019-06-20  Bruno Haible  <bruno@clisp.org>
9835         mtx: New module.
9836         * lib/mtx.c: New file.
9837         * modules/mtx: New file.
9838         * doc/posix-functions/call_once.texi: Mention the new module.
9839         * doc/posix-functions/mtx_init.texi: Likewise.
9840         * doc/posix-functions/mtx_lock.texi: Likewise.
9841         * doc/posix-functions/mtx_trylock.texi: Likewise.
9842         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9843         * doc/posix-functions/mtx_unlock.texi: Likewise.
9844         * doc/posix-functions/mtx_destroy.texi: Likewise.
9846 2019-06-20  Bruno Haible  <bruno@clisp.org>
9848         thrd: New module.
9849         * lib/thrd.c: New file.
9850         * m4/thrd.m4: New file.
9851         * modules/thrd: New file.
9852         * doc/posix-functions/thrd_current.texi: Mention the new module.
9853         * doc/posix-functions/thrd_detach.texi: Likewise.
9854         * doc/posix-functions/thrd_equal.texi: Likewise.
9855         * doc/posix-functions/thrd_exit.texi: Likewise.
9856         * doc/posix-functions/thrd_sleep.texi: Likewise.
9857         * doc/posix-functions/thrd_yield.texi: Likewise.
9858         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9859         AIX bug.
9860         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9861         AIX and Solaris bugs.
9863 2019-06-20  Bruno Haible  <bruno@clisp.org>
9865         threads-h: Add tests.
9866         * tests/test-threads.c: New file.
9867         * modules/threads-h-tests: New file.
9868         * tests/test-threads-c++.cc: New file.
9869         * modules/threads-h-c++-tests: New file.
9871 2019-06-20  Bruno Haible  <bruno@clisp.org>
9873         threads-h: New module.
9874         * lib/threads.in.h: New file.
9875         * m4/threads.m4: New file.
9876         * m4/yield.m4 (gl_YIELD): Update comment.
9877         * modules/threads-h: New file.
9878         * modules/yields (configure.ac): Use AC_REQUIRE.
9879         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9880         bugs.
9882 2019-06-20  Bruno Haible  <bruno@clisp.org>
9884         windows-thread: New module.
9885         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9886         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9887         * lib/glthread/thread.h: Include windows-thread.h.
9888         (gl_thread_t): Define using glwthread_thread_t.
9889         (glthread_create): Define using glwthread_thread_create.
9890         (glthread_join): Define using glwthread_thread_join.
9891         (gl_thread_self): Define using glwthread_thread_self.
9892         (gl_thread_exit): Define using glwthread_thread_exit.
9893         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9894         gl_thread_exit_func): Remove declarations.
9895         * lib/glthread/thread.c (self_key): Remove variable.
9896         (do_init_self_key, init_self_key): Remove functions.
9897         (struct gl_thread_struct): Remove type.
9898         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9899         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9900         functions.
9901         * modules/windows-thread: New file.
9902         * modules/thread (Depends-on): Add windows-thread.
9904 2019-06-20  Bruno Haible  <bruno@clisp.org>
9906         windows-tls: New module.
9907         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9908         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9909         * lib/glthread/tls.h: Include windows-tls.h.
9910         (gl_tls_key_t): Define using glwthread_tls_key_t.
9911         * modules/windows-tls: New file.
9912         * modules/tls (Depends-on): Add windows-tls.
9914 2019-06-20  Bruno Haible  <bruno@clisp.org>
9916         windows-cond: New module.
9917         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9918         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9919         * lib/glthread/cond.h: Include windows-cond.h.
9920         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9921         (gl_cond_t): Define using glwthread_cond_t.
9922         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9923         (glthread_cond_init): Define using glwthread_cond_init.
9924         (glthread_cond_wait): Define using glwthread_cond_wait.
9925         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9926         (glthread_cond_signal): Define using glwthread_cond_signal.
9927         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9928         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9929         (glthread_cond_init_func, glthread_cond_wait_func,
9930         glthread_cond_timedwait_func, glthread_cond_signal_func,
9931         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9932         declarations.
9933         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9934         types.
9935         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9936         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9937         glthread_cond_init_func, glthread_cond_wait_func,
9938         glthread_cond_timedwait_func, glthread_cond_signal_func,
9939         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9940         functions.
9941         * modules/windows-cond: New file.
9942         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9944 2019-06-20  Bruno Haible  <bruno@clisp.org>
9946         windows-timedrecmutex: New module.
9947         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9948         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9949         * modules/windows-timedrecmutex: New file.
9951 2019-06-20  Bruno Haible  <bruno@clisp.org>
9953         windows-timedmutex: New module.
9954         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9955         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9956         * modules/windows-timedmutex: New file.
9958 2019-06-20  Bruno Haible  <bruno@clisp.org>
9960         windows-recmutex: New module.
9961         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9962         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9963         * lib/glthread/lock.h: Include windows-recmutex.h.
9964         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9965         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9966         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9967         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
9968         (glthread_recursive_lock_unlock): Define using
9969         glwthread_recmutex_unlock.
9970         (glthread_recursive_lock_destroy): Define using
9971         glwthread_recmutex_destroy.
9972         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
9973         glthread_recursive_lock_unlock_func,
9974         glthread_recursive_lock_destroy_func): Remove declarations.
9975         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
9976         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
9977         glthread_recursive_lock_destroy_func): Remove functions.
9978         * modules/windows-recmutex: New file.
9979         * modules/lock (Depends-on): Add windows-recmutex.
9981 2019-06-20  Bruno Haible  <bruno@clisp.org>
9983         windows-mutex: New module.
9984         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
9985         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
9986         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
9987         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
9988         (gl_spinlock_t): Remove type.
9989         (gl_lock_t): Define using glwthread_mutex_t.
9990         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
9991         (glthread_lock_init): Define using glwthread_mutex_init.
9992         (glthread_lock_lock): Define using glwthread_mutex_lock.
9993         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
9994         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
9995         (glthread_lock_init_func, glthread_lock_lock_func,
9996         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9997         declarations.
9998         Use glwthread_spinlock_t instead of gl_spinlock_t.
9999         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10000         GLWTHREAD_SPINLOCK_INIT.
10001         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10002         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10003         functions.
10004         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10005         gl_spinlock_t.
10006         * modules/windows-mutex: New file.
10007         * modules/lock (Depends-on): Add windows-mutex.
10009 2019-06-20  Bruno Haible  <bruno@clisp.org>
10011         windows-once: New module.
10012         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10013         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10014         * lib/glthread/lock.h: Include windows-once.h.
10015         (gl_once_t): Define using glwthread_once_t.
10016         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10017         (glthread_once): Define using glwthread_once.
10018         (glthread_once_func): Remove declaration.
10019         * lib/glthread/lock.c (glthread_once_func): Remove function.
10020         * modules/windows-once: New file.
10021         * modules/lock (Depends-on): Add windows-once.
10023 2019-06-20  Bruno Haible  <bruno@clisp.org>
10025         lock, cond: Avoid possible counter wraparound on Windows.
10026         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10027         field of the guard unchanged if it was already positive.
10028         (glthread_rwlock_rdlock_func): Likewise.
10029         (glthread_rwlock_wrlock_func): Likewise.
10030         (glthread_recursive_lock_lock_func): Likewise.
10031         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10032         (glthread_cond_timedwait_func): Likewise.
10034 2019-06-20  Bruno Haible  <bruno@clisp.org>
10036         cond: Make glthread_cond_timedwait more reliable on Windows.
10037         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10038         condition variable before looking at the current time.
10040 2019-06-20  Bruno Haible  <bruno@clisp.org>
10042         pthread_mutex_timedlock: New module.
10043         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10044         new declaration.
10045         * lib/pthread_mutex_timedlock.c: New file.
10046         * m4/pthread_mutex_timedlock.m4: New file.
10047         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10048         whether pthread_mutex_timedlock is declared.
10049         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10050         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10051         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10052         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10053         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10054         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10055         * modules/pthread_mutex_timedlock: New file.
10056         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10057         module.
10059 2019-06-20  Bruno Haible  <bruno@clisp.org>
10061         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10062         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10063         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10064         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10065         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10066         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10067         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10068         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10069         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10070         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10072 2019-06-20  Bruno Haible  <bruno@clisp.org>
10074         tls tests: Small improvements.
10075         * tests/test-tls.c: Include <stdint.h>.
10076         (worker_thread): Avoid gcc warning on 64-bit mingw.
10077         (test_tls): Pass a different id to each thread.
10078         * modules/tls-tests (Depends-on): Add stdint.
10080 2019-06-20  Bruno Haible  <bruno@clisp.org>
10082         cond tests: Simplify.
10083         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
10085 2019-06-20  Bruno Haible  <bruno@clisp.org>
10087         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
10088         * tests/test-lock.c (test_once): Don't reference fire_signal if
10089         !ENABLE_LOCKING.
10091 2019-06-19  Bruno Haible  <bruno@clisp.org>
10093         nanosleep: Relicense under LGPLv2+.
10094         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
10095         * modules/nanosleep (License): Change to LGPLv2+.
10097 2019-06-19  Bruno Haible  <bruno@clisp.org>
10099         Reorder pieces of header in perl scripts.
10100         The desired order is
10101         - Prologue part 1 (2 lines with #!)
10102         - Program short description
10103         - Copyright and license notice
10104         - Written-by notice
10105         - Program short description (optional)
10106         - Program long description (optional)
10107         - Prologue part 2
10108         - Time stamp
10109         - Code
10110         Reported by Paul Eggert.
10111         * build-aux/announce-gen: Reorder header.
10112         * build-aux/gitlog-to-changelog: Likewise.
10113         * build-aux/useless-if-before-free: Likewise.
10114         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10115         description.
10116         * build-aux/update-copyright: Likewise. Add short description. Bump
10117         time-stamp-line-limit to 200.
10119 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10121         verify-tests: work around xlc bug
10122         Problem reported by Bruno Haible in:
10123         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10124         * tests/test-verify.c (item): Move the arithmetic inside the
10125         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10127 2019-06-16  Bruno Haible  <bruno@clisp.org>
10129         Restore Emacs time-stamp hook applicability.
10130         Reported by Darshit Shah <darnir@gnu.org>.
10131         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10132         * build-aux/announce-gen: Likewise.
10133         * build-aux/gitlog-to-changelog: Likewise.
10134         * build-aux/prefix-gnulib-mk: Likewise.
10135         * build-aux/update-copyright: Likewise.
10137 2019-06-15  Bruno Haible  <bruno@clisp.org>
10139         Fix scripts to have valid executable format on Alpine Linux.
10140         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10141         Idea by Paul Eggert.
10142         * build-aux/useless-if-before-free: Use a prologue that starts with
10143         '#!/bin/sh'.
10144         * build-aux/announce-gen: Likewise.
10145         * build-aux/gitlog-to-changelog: Likewise.
10146         * build-aux/prefix-gnulib-mk: Likewise.
10147         * build-aux/update-copyright: Likewise.
10148         * tests/test-update-copyright.sh: Update test program accordingly.
10150 2019-06-10  Bruno Haible  <bruno@clisp.org>
10152         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10153         Reported by Nikita Ermakov <arei@altlinux.org> in
10154         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10155         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10156         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10158 2019-06-10  Bruno Haible  <bruno@clisp.org>
10160         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10161         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10162         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10163         a copy of the path argument.
10164         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10165         it.
10167 2019-06-10  Bruno Haible  <bruno@clisp.org>
10169         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10170         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10171         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10172         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10173         a copy of the path argument.
10174         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10175         it.
10177 2019-06-10  Bruno Haible  <bruno@clisp.org>
10179         posix_spawn_file_actions_addfchdir: Add tests.
10180         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10181         * tests/test-posix_spawn5.c: New file.
10182         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10184 2019-06-10  Bruno Haible  <bruno@clisp.org>
10186         posix_spawn_file_actions_addfchdir: New module.
10187         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10188         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10189         union member 'fchdir_action'.
10190         * lib/spawn_faction_addfchdir.c: New file.
10191         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10192         * m4/posix_spawn_faction_addfchdir.m4: New file.
10193         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10194         'posix_spawn_file_actions_addfchdir' is present and whether
10195         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10196         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10197         posix_spawn_file_actions_addfchdir is declared.
10198         (gl_SPAWN_H_DEFAULTS): Initialize
10199         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10200         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10201         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10202         * modules/spawn (Makefile.am): Substitute
10203         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10204         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10205         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10206         * modules/posix_spawn_file_actions_addfchdir: New file.
10207         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10208         signature.
10209         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10210         * doc/posix-functions/posix_spawnp.texi: Likewise.
10211         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10212         Likewise.
10214 2019-06-10  Bruno Haible  <bruno@clisp.org>
10216         doc: Document existence of posix_spawn_file_actions_addchdir module.
10217         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10218         the posix_spawn_file_actions_addchdir module.
10220 2019-06-10  Bruno Haible  <bruno@clisp.org>
10222         posix_spawn-internal: Fix module description.
10223         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10224         from here...
10225         * modules/posix_spawnp (configure.ac): ... and here...
10226         * modules/posix_spawn-internal (configure.ac): ... to here.
10228 2019-06-10  Bruno Haible  <bruno@clisp.org>
10230         doc: Update and improve documentation of glibc functions.
10231         This is a series of commits that
10232         - updates the documentation to the state of glibc 2.29,
10233         - adds references to Linux man pages and glibc documentation,
10234         - marks Linux specific functions as such.
10235         These are the commits:
10236         doc: Update after removal of crypt functions from glibc 2.28.
10237         doc: Remove mention of function vm86 (does not exist on x86_64).
10238         doc: Remove mention of functions that are gone from glibc.
10239         doc: Mention that glibc no longer provides h_errno.
10240         doc: Mention the availability of specific functions in glibc versions.
10241         doc: Mention eaccess.
10242         doc: Add references to Linux man pages.
10243         doc: Add references to glibc documentation.
10244         doc: Mention inotify_* functions.
10245         doc: Mention ppoll.
10246         doc: Mention sched_getcpu.
10247         doc: Mention sync_file_range.
10248         doc: Mention epoll_pwait.
10249         doc: Mention eventfd, eventfd_read, eventfd_write.
10250         doc: Mention signalfd.
10251         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10252         doc: Mention epoll_create1.
10253         doc: Mention getauxval.
10254         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10255         doc: Mention nextdown, nextup.
10256         doc: Mention more ISO TS 18661-1 <math.h> functions.
10257         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10258         doc: Mention getrandom, getentropy.
10259         doc: Mention strfromf, strfromd, strfroml.
10260         doc: Mention preadv2, pwritev2.
10261         doc: Mention copy_file_range.
10262         doc: Mention memfd_create.
10263         doc: Mention mlock2.
10264         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10265         doc: Mention more ISO TS 18661-1 <math.h> functions.
10266         doc: Mention renameat2.
10267         doc: Mention statx.
10268         doc: Mention the ISO C11 multithreading header and functions.
10269         doc: Mention getcpu.
10270         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10271         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10272         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10273         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10274         doc: Some glibc functions also exist on Solaris 11.
10275         doc: Some glibc functions also exist on Solaris 11.4.
10276         doc: Some glibc functions also exist on FreeBSD.
10277         doc: Some glibc functions also exist on BeOS.
10278         doc: Some glibc functions also exist on Haiku.
10279         doc: Mark functions which exist only on Linux.
10280         doc: Mark functions which exist only on Linux and illumos.
10282 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10284         copy-file: fix typo
10285         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10287         copy-file-range: simplify into a stub
10288         Based on a comment by Florian Weimer in:
10289         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10290         It turns out that Emacs (which will use this module) won’t need an
10291         emulation and I suspect other programs won’t either, because these
10292         programs will need to fall back on read+write anyway.  Perhaps I
10293         am wrong and other programs will be able to use an emulation; if
10294         so, this patch can be reverted.
10295         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10296         Just call it copy_file_range.
10297         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10298         Check via AC_LINK_IFELSE.
10299         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10301 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10303         copy-file: prefer copy_file_range
10304         * lib/copy-file.c: Do not include xalloc.h.
10305         (qcopy_file_preserving): Allocate a buffer only if
10306         copy_file_range does not suffice.  If the allocation fails
10307         don't give up; just use a small stack-based buffer.
10308         Prefer copy_file_range if it works.
10309         * modules/copy-file (Depends-on): Add copy-file-range.
10310         Remove xalloc.
10312         copy-file-range: new module
10313         * MODULES.html.sh: Add copy-file-range.
10314         * lib/copy-file-range.c, m4/copy-file-range.m4:
10315         * modules/copy-file-range: New files.
10316         * lib/unistd.in.h (copy_file_range): Declare.
10317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10318         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10319         * modules/unistd (unistd.h): Substitute them.
10321 2019-05-28  Bruno Haible  <bruno@clisp.org>
10323         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10324         Reported by KO Myung-Hun <komh78@gmail.com> in
10325         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10326         * lib/binary-io.h (__gl_setmode_check): Remove function.
10327         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10328         * lib/binary-io.c (__gl_setmode_check): Remove function.
10329         (set_binary_mode): Define here on DJGPP and EMX. Inline
10330         __gl_setmode_check. In case of a tty, don't return an error code.
10332 2019-05-28  James Youngman  <jay@gnu.org>
10334         dirent-safer: Make opendir_safer usable from C++.
10335         * lib/dirent-safer.h: use extern "C".
10337 2019-05-28  James Youngman  <jay@gnu.org>
10339         canonicalize: Make canonicalize_filename_mode usable from C++.
10340         * lib/canonicalize.h: use extern "C".
10342 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10344         prefix-gnulib-mk: Fix CPPFLAGS migration.
10345         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10346         _a part of the library name.
10348 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10350         flexmember: update comments again
10351         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10353         flexmember: update comment
10354         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10356 2019-05-20  Bruno Haible  <bruno@clisp.org>
10358         setlocale: Improve fallback on macOS.
10359         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10360         invocation.
10361         (locales_with_principal_territory): New array.
10362         (langcmp, get_main_locale_with_same_language): New functions.
10363         (locales_with_principal_language): New array.
10364         (terrcmp, get_main_locale_with_same_territory): New functions.
10365         (rpl_setlocale): When setlocale_single failed, try again with a locale
10366         that is more likely to exist. Don't warn if the environment variable
10367         SETLOCALE_VERBOSE is not set.
10369 2019-05-19  Bruno Haible  <bruno@clisp.org>
10371         localename: Fix default on macOS.
10372         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10373         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10374         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10375         HAVE_CFLOCALECOPYCURRENT.
10376         * lib/localename.h (gl_locale_name_default): Update.
10378 2019-05-19  Karl Berry  <karl@freefriends.org>
10380         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10381         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10382         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10384 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10386         maintainer-makefile: catch uses of $< in non-implicit rules
10387         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10389 2019-05-18  Bruno Haible  <bruno@clisp.org>
10391         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10392         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10393         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10394         gl_use_threads accordingly.
10396 2019-05-18  Bruno Haible  <bruno@clisp.org>
10398         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10399         Reported by Tim Rühsen in
10400         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10401         and Michele Locati in
10402         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10403         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10404         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10405         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10406         in use and regardless which threads API is chosen.
10408 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10410         close-stream, closein, closeout: simplify
10411         I noticed this opportunity for simplification while drafting a
10412         new, related module that I haven’t had time to finish yet.
10413         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10414         * modules/close-stream (Files): Remove m4/close-stream.m4.
10415         (configure.ac): Omit gl_CLOSE_STREAM.
10416         * modules/closein (Files): Remove m4/closein.m4
10417         (configure.ac): Omit gl_CLOSEIN.
10418         * modules/closeout (Files): Remove m4/closeout.m4.
10419         (configure.ac): Omit gl_CLOSEOUT.
10421 2019-05-12  Bruno Haible  <bruno@clisp.org>
10423         libtool-next-version: New program.
10424         * build-aux/libtool-next-version: New file.
10426 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10427             Bruno Haible  <bruno@clisp.org>
10429         version-etc: Ease translation.
10430         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10431         URLs and formatting newlines out of translatable string.
10433 2019-05-11  Bruno Haible  <bruno@clisp.org>
10435         gnupload: Explain how to create symlinks.
10436         * build-aux/gnupload (usage): Add an example that creates symlinks.
10438 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10440         fpucw: port to gcc -pedantic
10441         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10442         Use __extension__ if using ({ ... }).
10444         crypto/af_alg: port to strict C compilers
10445         * lib/af_alg.c: Include af_alg.h regardless, so that the
10446         compilation unit is nonempty.
10448 2019-05-10  Bruno Haible  <bruno@clisp.org>
10450         base64: Avoid false positive warning from Coverity.
10451         Reported by Kamil Dudka <kdudka@redhat.com>.
10452         Idea by Paul Eggert.
10453         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10454         '& 0x3f' to the array index expressions. This convinces Coverity that
10455         there is no out-of-bounds array reference, regardless of the input.
10457 2019-05-09  Bruno Haible  <bruno@clisp.org>
10459         gettext: Update to gettext 0.20.
10460         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10461         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10462         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10463         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10464         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10465         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10466         (configure.ac): Request infrastructure compatible with gettext 0.20.
10467         * m4/glibc2.m4: Remove file.
10468         * m4/intdiv0.m4: Remove file.
10469         * m4/intl.m4: Remove file.
10470         * m4/intldir.m4: Remove file.
10471         * m4/intmax.m4: Remove file.
10472         * m4/printf-posix.m4: Remove file.
10473         * m4/uintmax_t.m4: Remove file.
10474         * m4/gettext.m4: Update from gettext 0.20.
10475         * m4/po.m4: Likewise.
10477 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10479         verify: remove verify_true
10480         * NEWS: Mention this.
10481         * lib/verify.h (verify_true): Remove.
10482         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10484         Support C2X and C++17 static_assert
10485         C2X and C++17 finally added support for a simple, single-argument
10486         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10487         doing back in 2005.  Implement static_assert on older platforms.
10488         The only remaining advantage of ‘verify’ is a shorter name.
10489         * doc/posix-headers/assert.texi (assert.h):
10490         * doc/verify.texi (Compile-time Assertions):
10491         Modernize for C2X and C++17.
10492         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10493         New macros.
10494         (_GL_HAVE__STATIC_ASSERT): Remove.
10495         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10496         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10497         string.  All callers changed.
10498         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10499         are used.  All callers changed.
10500         (_Static_assert): Allow either 1 or 2 args, and define if
10501         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10502         !_GL_HAVE__STATIC_ASSERT.
10503         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10504         of defining if !_GL_HAVE_STATIC_ASSERT.
10505         (verify_expr, verify): Don’t bother trying to copy the expression
10506         into the diagnostic, since 1-argument static_assert doesn’t.
10507         (verify): Prefer 1-argument _Static_assert if it works.
10508         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10510 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10512         Fix _GL_HAVE__STATIC_ASSERT typo
10513         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10514         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10516 2019-05-05  Bruno Haible  <bruno@clisp.org>
10518         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10519         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10520         via Akim Demaille <akim.demaille@gmail.com>.
10521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10522         en_US.UTF-8 locale, since that is more likely to be present than an
10523         fr_FR.UTF-8 locale.
10524         * tests/test-wcwidth.c (main): Check the width of U+2202.
10525         * doc/posix-functions/wcwidth.texi: Mention the issue.
10527 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10529         Port manywarnings to GCC 9
10530         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10531         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10532         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10533         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10534         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10535         --help=warnings output.
10536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10537         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10538         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10540 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10542         Sync lib/mktime-internal.h from glibc
10543         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10544         * lib/mktime-internal.h: Autoupdate.
10546 2019-04-28  Bruno Haible  <bruno@clisp.org>
10548         tls tests: Prevent that the test takes too long.
10549         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10550         (main): Let the test fail if it takes more than 10 minutes.
10551         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10553 2019-04-27  Bruno Haible  <bruno@clisp.org>
10555         lock tests: Prevent that the test takes too long.
10556         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10557         (main): Let the test fail if it takes more than 10 minutes.
10558         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10560 2019-04-27  Bruno Haible  <bruno@clisp.org>
10562         localename: Fix crash on mingw (regression from 2018-11-23).
10563         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10564         locale name that is null.
10566 2019-04-27  Bruno Haible  <bruno@clisp.org>
10568         Fix gcc warnings on 64-bit mode mingw.
10569         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10570         * lib/gl_array_list.c: Likewise.
10571         * lib/gl_array_map.c: Likewise.
10572         * lib/gl_array_set.c: Likewise.
10573         * lib/gl_carray_list.c: Likewise.
10574         * lib/gl_sublist.c: Likewise.
10575         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10576         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10577         * lib/gl_hash_map.c (uintptr_t): Likewise.
10578         * lib/gl_hash_set.c (uintptr_t): Likewise.
10579         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10580         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10581         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10582         * lib/iconv.c (uintptr_t): Likewise.
10583         * lib/iconv_close.c (uintptr_t): Likewise.
10584         * tests/test-lock.c: Include <stdint.h>.
10585         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10586         'long'.
10587         * modules/clean-temp (Depends-on): Add stdint.
10588         * modules/array-list (Depends-on): Likewise.
10589         * modules/array-map (Depends-on): Likewise.
10590         * modules/array-set (Depends-on): Likewise.
10591         * modules/carray-list (Depends-on): Likewise.
10592         * modules/sublist (Depends-on): Likewise.
10593         * modules/lock-tests (Depends-on): Likewise.
10595 2019-04-27  Bruno Haible  <bruno@clisp.org>
10597         error: Tweak indentation.
10598         * lib/error.c: Correct indentation.
10600 2019-04-27  Bruno Haible  <bruno@clisp.org>
10602         term-style-control: Fix gcc warning on mingw.
10603         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10604         of i.
10606 2019-04-26  Bruno Haible  <bruno@clisp.org>
10608         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10609         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10611 2019-04-26  Bruno Haible  <bruno@clisp.org>
10613         relocatable-prog: Fix gcc warning on mingw.
10614         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10615         on EMX.
10617 2019-04-02  Bruno Haible  <bruno@clisp.org>
10619         gitsub.sh: New file.
10620         * top/gitsub.sh: New file.
10622 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10624         argmatch: use void* for raw memory pointers
10625         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10626         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10627         to "values", keep char* for strings.
10629 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10631         prefix-gnulib-mk: fix the support for gnulib-po
10632         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10633         Don't touch HAVE_* variables.
10634         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10636 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10638         di-set: allow free with 'ino_map' being NULL.
10639         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10640         is NULL.  Bug introduced in commit 3703dbbe88dd.
10641         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10642         as a test.
10644 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10646         * lib/str-two-way.h: Fix comment typo.
10648 2019-04-13  Bruno Haible  <bruno@clisp.org>
10650         x-to-1: Restore ability to use original calling convention.
10651         * build-aux/x-to-1.in: Add comments. Accept the original form of
10652         HELP2MAN argument as well as the form expected since 2012-12-12.
10654 2019-04-13  Bruno Haible  <bruno@clisp.org>
10656         x-to-1: Avoid failure due to missing perl modules.
10657         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10658         needs are installed.
10660 2019-04-13  Bruno Haible  <bruno@clisp.org>
10662         openmp-init: New module.
10663         * modules/openmp-init: New file.
10664         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10665         the changes from 2019-04-09.
10667 2019-04-12  Bruno Haible  <bruno@clisp.org>
10669         signbit: Fix compilation error when gnulib's math.h exists twice.
10670         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10672 2019-04-12  Bruno Haible  <bruno@clisp.org>
10674         openmp: Fix compilation error on platforms without OpenMP.
10675         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10677 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10679         mountlist: make parsing /proc/self/mountinfo more robust
10680         Cater for the following issues with mountinfo parsing (the first
10681         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10682         in <https://bugs.gnu.org/35137>).
10683         1. The fields source, target, mntroot and fstype may contain characters
10684         like '\r'; sscanf(3) fails to read such values with the %s format
10685         specifier because it would stop at such characters.
10686         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10687         The only true separator in that file is the ' ' character.
10688         2. The source field may be an empty string, which happens e.g. with
10689         "mount -t tmpfs '' /target".
10690         3. The fstype field may contain mangled characters as well which need
10691         unescaping.
10692         * lib/mountlist.c (terminate_at_blank): Add utility function.
10693         (read_file_system_list): In the block trying to read the mountinfo file,
10694         avoid using sscanf(3) with %s format; instead, parse the above fields
10695         separated by spaces one by one.
10696         This also handles the case when the source field is an empty string.
10697         Unescape the fstype field.
10699 2019-04-09  Bruno Haible  <bruno@clisp.org>
10701         openmp: Add workaround for 32-bit programs on AIX.
10702         * lib/omp.in.h: New file.
10703         * lib/omp-init.c: New file, based on lib/nproc.c.
10704         * m4/omp_h.m4: New file.
10705         * modules/openmp (Files): Add them.
10706         (Depends-on): Add include_next, c-ctype, setenv.
10707         (configure.ac): Invoke gl_OMP_H.
10708         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10709         (Include): Mention <omp.h>.
10711 2019-04-09  Bruno Haible  <bruno@clisp.org>
10713         nproc: Fix return value for privileged processes.
10714         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10715         getpid().
10717 2019-04-07  Bruno Haible  <bruno@clisp.org>
10719         Add copyright notices in several files.
10720         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10721         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10722         * lib/libunistring.valgrind: Likewise.
10723         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10724         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10725         * lib/memchr.valgrind: Likewise.
10726         * lib/memchr2.valgrind: Likewise.
10727         * lib/rawmemchr.valgrind: Likewise.
10728         * lib/relocatable.valgrind: Likewise.
10729         * lib/strchrnul.valgrind: Likewise.
10731 2019-03-25  Bruno Haible  <bruno@clisp.org>
10733         term-style-control tests: Fix link error.
10734         Reported by Tom G. Christensen in
10735         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10736         * modules/term-style-control-tests (Makefile.am): Link
10737         test-term-style-control-hello and test-term-style-control-yes against
10738         LIBINTL.
10740 2019-03-24  Bruno Haible  <bruno@clisp.org>
10742         term-style-control: Add tests.
10743         * tests/test-term-style-control-hello.c: New file.
10744         * tests/test-term-style-control-yes.c: New file.
10745         * modules/term-style-control-tests: New file.
10747         term-style-control: New module.
10748         * lib/term-style-control.h: New file, based on libtextstyle's
10749         term-ostream.oo.h and term-ostream.oo.c.
10750         * lib/term-style-control.c: New file, based on libtextstyle's
10751         term-ostream.oo.c.
10752         * modules/term-style-control: New file.
10754 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10756         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10757         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10758         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10760 2019-03-23  Bruno Haible  <bruno@clisp.org>
10762         Support cross-compilation to musl libc.
10763         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10764         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10765         musl libc.
10766         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10767         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10768         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10769         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10770         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10771         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10772         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10773         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10774         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10775         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10776         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10777         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10778         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10779         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10780         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10781         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10782         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10783         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10784         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10785         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10786         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10788         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10789         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10790         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10791         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10792         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10793         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10794         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10795         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10796         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10797         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10798         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10799         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10800         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10801         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10802         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10803         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10804         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10805         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10806         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10807         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10808         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10810         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10811         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10812         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10813         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10814         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10815         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10816         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10817         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10818         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10819         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10820         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10821         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10822         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10823         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10824         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10825         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10826         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10829         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10830         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10831         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10833         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10834         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10835         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10836         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10837         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10838         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10839         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10840         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10841         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10842         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10845 2019-03-23  Bruno Haible  <bruno@clisp.org>
10847         posix_spawn_file_actions_*: Document musl libc bugs.
10848         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10849         the bug.
10850         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10851         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10852         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10853         cross-compiling to a musl system, guess no.
10854         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10855         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10857 2019-03-23  Bruno Haible  <bruno@clisp.org>
10859         futimens: Document musl libc bug.
10860         * doc/posix-functions/futimens.texi: Mention the bug.
10861         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10862         cross-compiling, guess no on glibc and musl systems.
10864 2019-03-23  Bruno Haible  <bruno@clisp.org>
10866         Clarify that cross-compilation guesses are guesses.
10867         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10868         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10869         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10870         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10871         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10872         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10873         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10874         gl_cv_glob_lists_symlinks.
10875         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10876         'guessing ' to ac_cv_func_malloc_0_nonnull.
10877         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10878         'guessing ' to ac_cv_func_realloc_0_nonnull.
10879         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10880         'guessing ' to gl_cv_func_poll.
10881         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10882         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10883         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10885 2019-03-23  Bruno Haible  <bruno@clisp.org>
10887         strtold: Fix typo.
10888         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10890 2019-03-23  Bruno Haible  <bruno@clisp.org>
10892         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10893         Reported by Akim Demaille.
10894         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10895         [[noreturn]] would not work, use _Noreturn instead.
10897 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10899         libtextstyle-optional: Fix compiler warnings.
10900         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10901         as unused.
10903 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10905         bitset: fix memory leaks
10906         Reported by Bruno Haible.
10907         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10908         * lib/bitset/vector.c (vbitset_free): New.
10909         (vbitset_vtable): Use it.
10911 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10913         bitset: minor changes
10914         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10915         * lib/bitset/table.c: Formatting changes.
10916         Remove useless braces.
10917         Prefer using else in cascades of if/else-if with returns.
10918         * lib/bitset/vector.c: Reduce scopes.
10920 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10922         bitset: expose bitset_resize
10923         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10924         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10925         (main): Use a variable bitset as reference, since fixed does not support resize.
10927 2019-03-19  Bruno Haible  <bruno@clisp.org>
10929         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10930         Reported by Akim Demaille.
10931         * doc/noreturn.texi: New file.
10932         * doc/gnulib.texi: Include it.
10934 2019-03-19  Bruno Haible  <bruno@clisp.org>
10936         doc: Document how to use 'static inline'.
10937         * doc/static-inline.texi: New file.
10938         * doc/gnulib.texi: Include it.
10940 2019-03-19  Bruno Haible  <bruno@clisp.org>
10942         libtextstyle-optional: Add tests.
10943         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10944         adhoc-tests/hello.c.
10945         * tests/test-libtextstyle-default.css: New file, copied from
10946         libtextstyle's adhoc-tests/hello-default.css.
10947         * modules/libtextstyle-optional-tests: New file.
10949         libtextstyle-optional: New module.
10950         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10951         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10952         * modules/libtextstyle-optional: New file.
10954 2019-03-19  Bruno Haible  <bruno@clisp.org>
10956         c-stack: Make signal handlers more reliable.
10957         * lib/c-stack.c (progname): New variable.
10958         (die): Use it.
10959         (c_stack_action): Initialize it.
10960         (segv_handler): Save and restore errno.
10962 2019-03-19  Bruno Haible  <bruno@clisp.org>
10964         Help making signal handlers more reliable.
10965         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10966         _GL_ASYNC_SAFE into config.h.
10967         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
10968         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
10969         argument.
10970         * lib/fatal-signal.c (action_t, uninstall_handlers,
10971         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
10972         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
10973         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
10974         _GL_ASYNC_SAFE.
10975         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
10976         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
10978 2019-03-18  Bruno Haible  <bruno@clisp.org>
10980         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
10981         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
10982         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
10984 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10986         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
10987         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
10988         GCC 4.8.
10990 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10992         fts: minor simplification
10993         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
10995 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10997         bitset, timevar: Depend on c99.
10998         Reported by Bruno Haible.
10999         * modules/bitset, modules/timevar (Depends-on): Add c99.
11001 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11003         bitset: a bit (...) more tests
11004         * tests/test-bitset.c (check_attributes): Check zero and ones.
11006 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11008         bitset: fix overflows.
11009         Reported by Bruno Haible.
11010         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11011         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11012         the bit in the array of bitset_word, so be sure to take its modulo
11013         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11014         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11016 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11018         bitset: style changes.
11019         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11020         Formatting changes.
11021         (tbitset_list): Reduce scopes.
11023 2019-03-16  Bruno Haible  <bruno@clisp.org>
11025         fatal-signal: Pass the signal number to the action.
11026         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11027         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11028         (fatal_signal_handler): Pass the signal number to the action.
11029         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11030         signal number as parameter.
11031         (create_temp_dir): Update.
11032         * lib/wait-process.c (cleanup_slaves_action): New function.
11033         (register_slave_subprocess): Update at_fatal_signal invocation.
11034         * NEWS: Mention the change.
11036 2019-03-16  Bruno Haible  <bruno@clisp.org>
11038         fatal-signal: Add function that lists the fatal signals.
11039         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11040         * lib/fatal-signal.c (get_fatal_signals): New function.
11042 2019-03-14  Bruno Haible  <bruno@clisp.org>
11044         isatty: Make it return true in Cygwin consoles on native Windows.
11045         * lib/isatty.c: Include <string.h>.
11046         (GetProcAddress): New macro.
11047         (GetNamedPipeClientProcessIdFuncType): New type.
11048         (GetNamedPipeClientProcessIdFunc): New variable.
11049         (QueryFullProcessImageNameFuncType): New type.
11050         (QueryFullProcessImageNameFunc): New variable.
11051         (initialized): New variable.
11052         (initialize): New function.
11053         (IsCygwinConsoleHandle): New function.
11054         (isatty): Invoke it.
11055         * doc/posix-functions/isatty.texi: Mention the issue.
11057 2019-03-14  Bruno Haible  <bruno@clisp.org>
11059         all: Update URLs to msdn.microsoft.com.
11060         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11061         was moved to docs.microsoft.com.
11063 2019-03-13  Bruno Haible  <bruno@clisp.org>
11065         gnulib-tool: Clarify the coding style.
11066         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11067         * gnulib-tool: Add comment about coding style.
11069 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11071         strtod: fix clash with strtold
11072         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11073         * lib/strtod.c (compute_minus_zero, minus_zero):
11074         Simplify by remving the macro / external variable,
11075         and having just a function.  User changed.  This avoids
11076         the need for an external variable that might clash.
11078 2019-03-10  Bruno Haible  <bruno@clisp.org>
11080         alloca-opt: Fix conflict mingw's new <alloca.h> file.
11081         Reported by Eli Zaretskii <eliz@gnu.org>.
11082         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
11083         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
11084         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
11086 2019-03-10  Bruno Haible  <bruno@clisp.org>
11088         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
11089         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
11090         is in use.
11091         * tests/test-printf-posix2.c: Likewise.
11093 2019-03-10  Bruno Haible  <bruno@clisp.org>
11095         uninorm tests: Free allocated memory.
11096         * tests/uninorm/test-u32-normalize-big.h
11097         (struct normalization_test_file): Remove 'const' from allocated member.
11098         (free_normalization_test_file): New declaration.
11099         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
11100         memory.
11101         (free_normalization_test_file): New function.
11102         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
11103         'struct normalization_test_file' contents.
11104         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
11105         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
11106         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
11108 2019-03-10  Bruno Haible  <bruno@clisp.org>
11110         di-set: Fix memory leak.
11111         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11112         not free().
11114 2019-03-10  Bruno Haible  <bruno@clisp.org>
11116         tests: Free allocated memory.
11117         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11118         * tests/test-astrxfrm.c (main): Free allocated memory.
11119         * tests/test-bitset.c (compare, check_attributes): Free allocated
11120         bitsets.
11121         * tests/test-filenamecat.c (main): Free allocated memory.
11122         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11123         * tests/test-freadptr.c (main): Likewise.
11124         * tests/test-freadptr2.c (main): Free allocated memory.
11125         * tests/test-freadseek.c (main): Likewise.
11126         * tests/test-gc-arcfour.c (main): Close allocated context.
11127         * tests/test-gc-arctwo.c (main): Likewise.
11128         * tests/test-gc-des.c (main): Close all allocated contexts.
11129         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11130         * tests/test-pipe-filter-ii1.c (main): Likewise.
11131         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11132         allocated file actions.
11133         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11134         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11135         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11136         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11137         * tests/test-strfmon_l.c (main): Free allocated locales.
11138         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11139         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11140         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11141         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11142         * tests/unistr/test-chr.h (main): Free input32.
11143         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11145 2019-03-10  Bruno Haible  <bruno@clisp.org>
11147         tests: Prepare for using valgrind.
11148         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11149         * tests/*/*.sh: Likewise.
11150         * tests/test-freadptr.c (main): Update accordingly.
11151         * tests/test-freadseek.c (main): Likewise.
11153 2019-03-09  Bruno Haible  <bruno@clisp.org>
11155         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11156         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11157         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11158         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11159         before exiting.
11161 2019-03-09  Jim Meyering  <meyering@fb.com>
11163         test-userspec.c: don't print NULL
11164         * tests/test-userspec.c (main): A test release of gcc,
11165         9.0.1 20190310, warned that this test would attempt to
11166         print a NULL pointer via a %s printf format.  Fix that
11167         and remove the unnecessary preceding "!diag" conjunct.
11168         Also add a comment.
11170 2019-03-03  Bruno Haible  <bruno@clisp.org>
11172         getloadavg: Write NULL for the null pointer.
11173         Reported by Michal Privoznik <mprivozn@redhat.com>.
11174         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11176 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11178         alloca, tsearch-tests: Write NULL for the null pointer.
11179         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11180         * tests/test-tsearch.c (mangle_tree): Likewise.
11182 2019-03-09  Bruno Haible  <bruno@clisp.org>
11184         strfmon_l: Fix -fsanitize=address finding.
11185         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11186         <string.h>.
11187         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11188         (directive_t, directives_t): New types.
11189         (fmon_parse): New function.
11190         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11191         format string. Consume 'long double' arguments in places where the
11192         format string indicates so.
11193         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11195 2019-03-09  Bruno Haible  <bruno@clisp.org>
11197         crypto/des: Fix undefined behaviour.
11198         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11199         shift operations on 'int'.
11201 2019-03-09  Bruno Haible  <bruno@clisp.org>
11203         Fix undefined behaviour.
11204         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11205         'unsigned int', to avoid shift operations on 'int'.
11206         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11207         * tests/test-count-leading-zeros.c (main): Use a random number that has
11208         as many bits as TYPE, not only 2*15 or 2*31 bits.
11209         * tests/test-count-trailing-zeros.c (main): Likewise.
11210         * tests/test-count-one-bits.c (main): Likewise.
11211         * tests/test-memmem.c: Don't include "null-ptr.h".
11212         (main): Use zerosize_ptr() instead of null_ptr().
11213         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11215 2019-03-08  Bruno Haible  <bruno@clisp.org>
11217         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11218         Reported by Jeffrey Walton <noloader@gmail.com>.
11219         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11220         invoke memset with a zero size.
11221         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11222         Likewise.
11223         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11224         Adjust accordingly.
11226 2019-03-08  Bruno Haible  <bruno@clisp.org>
11228         unistr/*, uniconv/*: Fix undefined behaviour.
11229         Reported by Jeffrey Walton <noloader@gmail.com>.
11230         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11231         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11232         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11233         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11235 2019-03-08  Bruno Haible  <bruno@clisp.org>
11237         unistr/u8-cmp: Fix undefined behaviour.
11238         Reported by Jeffrey Walton <noloader@gmail.com>.
11239         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11241 2019-03-08  Bruno Haible  <bruno@clisp.org>
11243         unictype/numeric: Fix undefined behaviour.
11244         Reported by Jeffrey Walton <noloader@gmail.com>.
11245         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11246         on shift overflow, caught by "gcc -fsanitize=undefined".
11247         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11248         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11249         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11251 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11253         git-version-gen: fix --version copyright year
11254         * build-aux/git-version-gen, build-aux/move-if-change (version):
11255         --version output copyright year is now taken from script year,
11256         so that it no longer needs to be updated by hand.
11258 2019-03-04  Bruno Haible  <bruno@clisp.org>
11260         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11261         This approach supports relocatable installation of shared libraries
11262         which depend on other shared libraries from the same package.
11263         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11264         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11265         wrapper around the original LIBTOOL.
11266         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11267         token '@loader_path' instead of '$ORIGIN'.
11268         * build-aux/libtool-reloc: New file.
11269         * modules/relocatable-prog (Files): Add it.
11270         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11271         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11272         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11273         Makefile.am, not in configure.ac.
11275 2019-03-04  Bruno Haible  <bruno@clisp.org>
11277         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11278         * build-aux/install-reloc: Revert change.
11279         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11281 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11283         nstrftime: support the ‘+’ flag
11284         * lib/nstrftime.c (add, __strftime_internal):
11285         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11286         (__strftime_internal): New arg ‘width’.  All uses changed.
11287         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11289 2019-02-24  Bruno Haible  <bruno@clisp.org>
11291         relocatable-prog: Improve verbose output.
11292         * build-aux/install-reloc (func_verbose): Escape characters that would
11293         be interpreted by the shell.
11295 2019-02-24  Bruno Haible  <bruno@clisp.org>
11297         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11298         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11299         "sys/stat.h".
11300         * lib/lstat.c: Likewise.
11301         * lib/fstat.c: Likewise.
11302         * lib/fstatat.c: Likewise.
11304 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11306         long-options: add parse_gnu_standard_options_only
11307         Discussed in https://bugs.gnu.org/33468 .
11309         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11310         (parse_gnu_standard_options_only): Add function to process
11311         the GNU default options --help and --version and fail for
11312         any other unknown long or short option. See
11313         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11314         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11315         * modules/long-options (depends-on): Add stdbool, exitfail.
11316         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11317         syntax-check rule, add new function name.
11319 2019-02-23  Bruno Haible  <bruno@clisp.org>
11321         relocatable-prog: Update documentation.
11322         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11323         the recent changes.
11325 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11327         nstrftime: tweak arg order
11328         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11329         All callers changed.  Suggested by TAMUKI Shoichi in:
11330         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11332 2019-02-23  Bruno Haible  <bruno@clisp.org>
11334         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11335         Reported by Paul Smith <psmith@gnu.org>.
11336         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11337         (func_relativize): New function, from gnulib-tool.
11338         Handle mode 'macosx' through invocations of 'otool' and
11339         'install_name_tool'.
11340         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11341         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11342         'install-reloc' invocation with mode 'macosx'.
11344 2019-02-23  Bruno Haible  <bruno@clisp.org>
11346         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11347         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11348         Hurd with glibc >= 2.27.
11350 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11352         nstrftime: merge glibc strftime changes
11353         This incorporates:
11354         2019-02-11 Fix a few whitespace arrangement inconsistencies
11355         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11356         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11357         2019-01-11 strftime: use the "L_" macro with character literals
11358         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11359         callers changed.  Default width of %Ey is now 2.  This is needed
11360         for proper handling of Japanese dates starting on 2019-05-01.
11362 2019-02-19  Bruno Haible  <bruno@clisp.org>
11364         relocatable-prog: Use $ORIGIN trick on more platforms.
11365         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11366         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11367         Solaris >= 10, Haiku. But don't use it on Android.
11368         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11369         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11371 2019-02-19  Bruno Haible  <bruno@clisp.org>
11373         progreloc: Speed up executable lookup on various platforms.
11374         * lib/progreloc.c: Include <errno.h>.
11375         (safe_read, full_read): New functions.
11376         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11377         prefer the information from the /proc file system to a PATH search.
11379 2019-02-19  Bruno Haible  <bruno@clisp.org>
11381         progreloc: Simplify code for Android.
11382         * lib/progreloc.c (executable_fd): Don't define on Android.
11383         (maybe_executable, find_executable): Don't use executable_fd on Android.
11385 2019-02-15  Bruno Haible  <bruno@clisp.org>
11387         gnulib-tool: Support --import with just a few tests, not --with-tests.
11388         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11389         'inctests' when generating files; use 'inctests' only for computing the
11390         transitive closure.
11392 2019-02-14  Bruno Haible  <bruno@clisp.org>
11394         gnulib-tool: Improve handling of multiple --local-dir options.
11395         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11396         options work.
11397         * gnulib-tool (func_path_prepend): Remove function.
11398         (func_path_foreach): Make IFS handling more robust.
11399         (local_gnulib_path): Collect --local-dir values using func_path_append,
11400         not func_path_prepend.
11401         (func_determine_path_separator): Make IFS handling more robust.
11402         (func_lookup_file_cb): New function.
11403         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11404         func_lookup_local_file. Apply the patches in the reverse order of their
11405         origin in $local_gnulib_path.
11406         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11407         * NEWS: Mention that the first --local-dir option is the one with
11408         highest priority.
11410 2019-02-10  Bruno Haible  <bruno@clisp.org>
11412         libtextstyle: New module.
11413         * m4/libtextstyle.m4: New file.
11414         * modules/libtextstyle: New file.
11416 2019-02-05  Bruno Haible  <bruno@clisp.org>
11418         declared.sh: Fix bug with variables of pointer type.
11419         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11420         before the symbol to be omitted if the preceding character is a '*'.
11422 2019-02-04  Bruno Haible  <bruno@clisp.org>
11424         Add script for running tests under valgrind.
11425         * build-aux/run-test: New file, from GNU libunistring.
11426         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11427         as well.
11429 2019-02-04  Bruno Haible  <bruno@clisp.org>
11431         declared.sh: Fix --version output.
11432         * build-aux/declared.sh (func_version): Update package name.
11434 2019-02-03  Bruno Haible  <bruno@clisp.org>
11436         Add script for determining the set of symbols to export from a library.
11437         * build-aux/declared.sh: New file, from GNU libunistring.
11438         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11439         Mention it.
11441 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11443         vla: add commentary about VLA_ELEMS
11444         * lib/vla.h (VLA_ELEMS): Add commentary,
11445         some inspired by Bruno Haible’s proposal in:
11446         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11448         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11449         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11450         assume the C99 signatures for strtod and strtold.  Programs that
11451         require stricter adherence to C99 should also use the strtod and
11452         strtold modules as needed, and we no longer need the
11453         HAVE_C99_STRTOLD macro.
11454         * NEWS: Mention this.
11455         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11456         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11457         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11458         (Files): Remove m4/c-strtod.m4.
11459         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11460         exists.
11462 2019-02-02  Bruno Haible  <bruno@clisp.org>
11464         fma: Improve code style.
11465         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11467 2019-02-02  Colin Watson  <cjwatson@debian.org>
11469         *-map tests: Fix compilation error.
11470         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11471         * tests/test-hash_map.c: Likewise.
11472         * tests/test-linkedhash_map.c: Likewise.
11474 2019-01-31  Bruno Haible  <bruno@clisp.org>
11476         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11477         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11478         GNULIB_defined_strtold_function): New macros.
11479         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11480         (STRTOD): Ignore HAVE_C99_STRTOLD.
11481         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11482         deemed buggy. But do use it on platforms where uselocale exists and is
11483         usable.
11484         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11485         deemed buggy. On platforms where uselocale exists and is usable, use
11486         uselocale and strtod/strtold.
11487         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11488         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11489         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11490         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11491         (Depends-on): Add strtod.
11492         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11493         (Depends-on): Add strtold.
11495 2019-01-31  Bruno Haible  <bruno@clisp.org>
11497         strtod, strtold: Use the locale's decimal point.
11498         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11499         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11500         (parse_number): Add a radixchar argument. Use it instead of '.'.
11501         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11502         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11503         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11504         * tests/test-strtod1.c: New file.
11505         * tests/test-strtod1.sh: New file.
11506         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11507         locale-fr.m4 and its dependencies.
11508         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11509         (Makefile.am): Arrange to compile test-strtod1.c and run
11510         test-strtod1.sh.
11511         * tests/test-strtold1.c: New file.
11512         * tests/test-strtold1.sh: New file.
11513         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11514         locale-fr.m4 and its dependencies.
11515         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11516         (Makefile.am): Arrange to compile test-strtold1.c and run
11517         test-strtold1.sh.
11519 2019-01-31  Bruno Haible  <bruno@clisp.org>
11521         strtod, strtold tests: Simplify tests.
11522         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11523         * tests/test-strtold.c (main): Likewise.
11525 2019-01-31  Bruno Haible  <bruno@clisp.org>
11527         strtod, strtold: Avoid unnecessary rounding errors.
11528         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11529         decimal to DOUBLE conversion.
11531 2019-01-31  Bruno Haible  <bruno@clisp.org>
11533         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11534         * lib/strtod.c (STRTOD): When there is an extra character after the
11535         exponent marker 'p', reparse the number.
11536         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11537         * doc/posix-functions/strtold.texi: Likewise.
11539 2019-01-29  Bruno Haible  <bruno@clisp.org>
11541         strtold: Add tests.
11542         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11543         * modules/strtold-tests: New file.
11545 2019-01-29  Bruno Haible  <bruno@clisp.org>
11547         strtold: New module.
11548         * lib/stdlib.in.h (strtold): New declaration.
11549         * lib/strtold.c: New file.
11550         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11551         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11552         USE_LDEXP): New macros.
11553         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11554         USE_LONG_DOUBLE.
11555         (underlying_strtod): Remove function. Replace with some macros.
11556         Re-add the code for a missing underlying function that was removed on
11557         2013-02-19.
11558         * m4/strtold.m4: New file.
11559         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11560         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11561         REPLACE_STRTOLD.
11562         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11563         REPLACE_STRTOLD.
11564         * modules/strtold: New file.
11565         * doc/posix-functions/strtold.texi: Document the new module.
11567 2019-01-29  Bruno Haible  <bruno@clisp.org>
11569         strtod: Fix compilation error on IRIX 6.5.
11570         * modules/strtod (Depends-on): Add 'math'.
11572 2019-01-28  Bruno Haible  <bruno@clisp.org>
11574         Fix build error when building a shared libunistring on Android.
11575         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11576         (main): Add 'volatile', to defeat a GCC optimization that would
11577         eliminate the reference.
11578         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11579         (main): Add 'volatile', to defeat a GCC optimization that would
11580         eliminate the reference.
11581         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11582         (main): Add 'volatile', to defeat a GCC optimization that would
11583         eliminate the reference.
11584         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11585         (main): Add 'volatile', to defeat a GCC optimization that would
11586         eliminate the reference.
11588 2019-01-27  Bruno Haible  <bruno@clisp.org>
11590         Avoid build errors due to wrong references between modules.
11591         * lib/uninorm/canonical-decomposition.c: Include
11592         "uninorm/decomposition-table.h", not "decomposition-table.h".
11593         * lib/uninorm/decomposition.c: Likewise.
11594         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11595         not "decompose-internal.h".
11596         * lib/uninorm/u16-normalize.c: Likewise.
11597         * lib/uninorm/u32-normalize.c: Likewise.
11598         * lib/uninorm/uninorm-filter.c: Likewise.
11599         * lib/uninorm/nfkc.c: Likewise.
11600         * lib/uninorm/nfkd.c: Likewise.
11601         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11602         "caseprop.h".
11603         * lib/unicase/u8-ct-totitle.c: Likewise.
11604         * lib/unicase/u8-prefix-context.c: Likewise.
11605         * lib/unicase/u8-suffix-context.c: Likewise.
11606         * lib/unicase/u16-casemap.c: Likewise.
11607         * lib/unicase/u16-ct-totitle.c: Likewise.
11608         * lib/unicase/u16-prefix-context.c: Likewise.
11609         * lib/unicase/u16-suffix-context.c: Likewise.
11610         * lib/unicase/u32-casemap.c: Likewise.
11611         * lib/unicase/u32-ct-totitle.c: Likewise.
11612         * lib/unicase/u32-prefix-context.c: Likewise.
11613         * lib/unicase/u32-suffix-context.c: Likewise.
11614         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11615         "unicasemap.h".
11616         * lib/unicase/u8-toupper.c: Likewise.
11617         * lib/unicase/u8-ct-tolower.c: Likewise.
11618         * lib/unicase/u8-ct-toupper.c: Likewise.
11619         * lib/unicase/u16-tolower.c: Likewise.
11620         * lib/unicase/u16-toupper.c: Likewise.
11621         * lib/unicase/u16-ct-tolower.c: Likewise.
11622         * lib/unicase/u16-ct-toupper.c: Likewise.
11623         * lib/unicase/u32-tolower.c: Likewise.
11624         * lib/unicase/u32-toupper.c: Likewise.
11625         * lib/unicase/u32-ct-tolower.c: Likewise.
11626         * lib/unicase/u32-ct-toupper.c: Likewise.
11627         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11628         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11629         * lib/unicase/u16-ct-casefold.c: Likewise.
11630         * lib/unicase/u32-ct-casefold.c: Likewise.
11632 2019-01-27  Bruno Haible  <bruno@clisp.org>
11634         gperf: Fix error when this module is required by some test module.
11635         * modules/gperf (Applicability): Set to 'all'.
11637 2019-01-27  Bruno Haible  <bruno@clisp.org>
11639         tmpfile: Add support for Android.
11640         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11641         works.
11642         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11643         Android.
11644         * modules/tmpfile (Depends-on): Add 'stdbool'.
11645         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11646         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11648 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11650         bitsetv: allow free on NULL.
11651         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11653 2019-01-27  Bruno Haible  <bruno@clisp.org>
11655         test-framework-sh: Improve maintainability.
11656         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11658 2019-01-27  Bruno Haible  <bruno@clisp.org>
11660         tests: Don't assume that /tmp exists.
11661         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11662         * tests/test-copy-acl-1.sh: Likewise.
11663         * tests/test-file-has-acl-1.sh: Likewise.
11664         * tests/test-copy-file-1.sh: Likewise.
11666 2019-01-27  Bruno Haible  <bruno@clisp.org>
11668         tests: Accommodate a shell that is not in /bin/sh.
11669         * tests/init.sh (setup_): Set srcdir and builddir.
11670         (BOURNE_SHELL): New variable.
11671         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11672         * modules/file-has-acl-tests (Depends-on): Likewise.
11673         * modules/copy-file-tests (Depends-on): Likewise.
11674         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11675         scripts through $BOURNE_SHELL.
11676         * tests/test-set-mode-acl-2.sh: Likewise.
11677         * tests/test-copy-acl-1.sh: Likewise.
11678         * tests/test-copy-acl-2.sh: Likewise.
11679         * tests/test-file-has-acl-1.sh: Likewise.
11680         * tests/test-file-has-acl-2.sh: Likewise.
11681         * tests/test-copy-file-1.sh: Likewise.
11682         * tests/test-copy-file-2.sh: Likewise.
11683         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11684         invoker.
11685         * tests/test-copy-acl.sh (builddir): Likewise.
11686         * tests/test-file-has-acl.sh (builddir): Likewise.
11687         * tests/test-copy-file.sh (builddir): Likewise.
11688         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11689         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11690         * tests/test-vc-list-files-git.sh: Likewise.
11692 2019-01-27  Bruno Haible  <bruno@clisp.org>
11694         tests: Fix some "unused variable" warnings.
11695         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11696         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11697         * tests/test-striconveh.c (main): Move some variable into the
11698         '#if HAVE_ICONV'.
11699         * tests/test-striconveha.c (main): Likewise.
11700         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11701         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11702         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11703         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11704         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11705         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11706         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11707         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11708         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11709         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11710         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11711         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11712         * tests/test-tsearch.c (main): Move some variable into the
11713         '#if HAVE_INITSTATE'.
11715 2019-01-27  Bruno Haible  <bruno@clisp.org>
11717         unigbrk/uc-grapheme-breaks: Fix build failure.
11718         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11719         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11721 2019-01-27  Bruno Haible  <bruno@clisp.org>
11723         mountlist: Merge two .m4 files.
11724         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11725         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11726         * m4/ls-mntd-fs.m4: Remove file.
11727         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11729 2019-01-27  Bruno Haible  <bruno@clisp.org>
11731         tests: Enable Linux specific tests on Android.
11732         * tests/test-flock.c (main): Treat Android like Linux.
11733         * tests/test-openat-safer.c (main): Likewise.
11735 2019-01-27  Bruno Haible  <bruno@clisp.org>
11737         relocatable-prog: Use Linux code on Android.
11738         * lib/progreloc.c: Treat Android like Linux.
11740 2019-01-26  Bruno Haible  <bruno@clisp.org>
11742         getloadavg: Add support for Android.
11743         * lib/getloadavg.c: Treat Android like Linux.
11745 2019-01-26  Bruno Haible  <bruno@clisp.org>
11747         vma-iter: Add support for Android.
11748         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11749         * lib/vma-iter.c: Treat Android like Linux.
11750         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11752 2019-01-26  Bruno Haible  <bruno@clisp.org>
11754         fts: Optimize on Android.
11755         * lib/fts.c: Treat Android like Linux.
11757 2019-01-26  Bruno Haible  <bruno@clisp.org>
11759         fts: Add support for Android.
11760         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11761         defined by this module and the ones in libc.
11762         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11764 2019-01-26  Bruno Haible  <bruno@clisp.org>
11766         mountlist: Use Linux code on Android.
11767         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11768         (unescape_tab, read_file_system_list): Enable Linux code on Android
11769         as well.
11770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11771         and endmntent.
11772         * modules/mountlist (Depends-on): Add 'getline'.
11774 2019-01-26  Bruno Haible  <bruno@clisp.org>
11776         localename tests: Fix test failure on Android.
11777         * modules/localename-tests (Depends-on): Add 'setlocale'.
11779 2019-01-26  Bruno Haible  <bruno@clisp.org>
11781         mountlist: Port better to Android.
11782         * lib/mountlist.c (MOUNTED): Redefine on Android.
11783         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11784         Android.
11786 2019-01-26  Bruno Haible  <bruno@clisp.org>
11788         striconveh: Fix use of uninitialized iconv_t.
11789         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11790         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11791         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11793 2019-01-26  Bruno Haible  <bruno@clisp.org>
11795         nonblocking-socket-tests: Fix test failure on Android 4.3.
11796         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11797         also on Android.
11799 2019-01-26  Bruno Haible  <bruno@clisp.org>
11801         sh-filename: Add support for Android 4.3.
11802         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11804 2019-01-26  Bruno Haible  <bruno@clisp.org>
11806         ptsname_r: Work around bug on Android 4.3.
11807         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11808         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11809         correct.
11810         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11811         is defined, just fix the return value.
11812         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11813         The behaviour of musl libc is nothing to be "fixed", since it is
11814         compliant with the next POSIX standard.
11816 2019-01-26  Bruno Haible  <bruno@clisp.org>
11818         ttyname_r: Work around bug on Android 4.3.
11819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11820         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11821         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11822         * doc/posix-functions/ttyname.texi: Likewise.
11824 2019-01-25  Bruno Haible  <bruno@clisp.org>
11826         getprogname: Port to Android 4.3.
11827         * lib/getprogname.c (getprogname): On Android, take only the last
11828         component of __progname.
11830 2019-01-25  Bruno Haible  <bruno@clisp.org>
11832         wcrtomb: Work around bug on Android 4.3.
11833         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11834         the C locale.
11835         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11836         which does not have the 'wctomb' function.
11837         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11838         * tests/test-wcrtomb.c (main): Accept argument '5'.
11839         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11841 2019-01-25  Bruno Haible  <bruno@clisp.org>
11843         setlocale: Work around bug on Android 4.3.
11844         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11845         the "C" locale.
11846         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11847         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11849 2019-01-24  Bruno Haible  <bruno@clisp.org>
11851         memchr: Work around bug on Android <= 5.0.
11852         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11853         * doc/posix-functions/memchr.texi: Mention the Android bug.
11855 2019-01-24  Bruno Haible  <bruno@clisp.org>
11857         random: Fix compilation error on Android 4.3.
11858         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11859         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11860         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11861         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11862         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11864         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11865         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11866         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11867         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11868         REPLACE_INITSTATE, REPLACE_SETSTATE.
11869         * doc/posix-functions/random.texi: Correct the description of the
11870         situation on Android.
11871         * doc/posix-functions/srandom.texi: Likewise.
11872         * doc/posix-functions/rand.texi: Likewise.
11873         * doc/posix-functions/srand.texi: Likewise.
11875 2019-01-24  Bruno Haible  <bruno@clisp.org>
11877         mbtowc: Fix compilation error on Android 4.3.
11878         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11879         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11880         HAVE_MBTOWC.
11881         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11882         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11883         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11884         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11885         * doc/posix-functions/mbtowc.texi: Mention the change.
11887 2019-01-24  Bruno Haible  <bruno@clisp.org>
11889         fdatasync: Fix compilation error on Android 4.3.
11890         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11891         test whether fdatasync() exists.
11893 2019-01-24  Bruno Haible  <bruno@clisp.org>
11895         unlinkat: Fix compilation error on Android 4.3.
11896         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11897         also on Android.
11898         * doc/posix-functions/unlinkat.texi: Mention the issue.
11900 2019-01-24  Bruno Haible  <bruno@clisp.org>
11902         renameat: Fix compilation error on Android 4.3.
11903         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11904         * doc/posix-functions/renameat.texi: Mention the issue.
11906 2019-01-24  Bruno Haible  <bruno@clisp.org>
11908         fchownat: Fix compilation error on Android 4.3.
11909         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11910         use.
11911         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11912         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11913         * doc/posix-functions/fchownat.texi: Mention the issue.
11915 2019-01-23  Bruno Haible  <bruno@clisp.org>
11917         gnulib-tool: Support running testdirs on Android.
11918         * build-aux/test-driver.diff: New file.
11919         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11920         build-aux/test-driver after running automake.
11922 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11924         relocatable-prog: avoid warnings from Automake
11925         * modules/relocatable-prog: Don't declare PHONY dependencies in
11926         Automake conditionals.
11928 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11930         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11931         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11933 2019-01-23  Bruno Haible  <bruno@clisp.org>
11935         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11936         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11937         preceding -Wl,--as-needed option. Don't check whether the linker
11938         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11940 2019-01-23  Bruno Haible  <bruno@clisp.org>
11942         thread: Force linking with -lpthread, even when --as-needed is in use.
11943         Reported by Richard W.M. Jones <rjones@redhat.com> in
11944         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11945         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11947 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11948             Bruno Haible  <bruno@clisp.org>
11950         relocatable: avoid compiler warnings (-Wshadow)
11951         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11952         to avoid name collisions with global variables.
11954 2019-01-22  Bruno Haible  <bruno@clisp.org>
11956         vasnprintf: Don't use %n on Android.
11957         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11958         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11959         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11961 2019-01-22  Bruno Haible  <bruno@clisp.org>
11963         *printf: Support cross-compilation to Android.
11964         * m4/printf.m4: Add cross-compilation guesses for Android.
11966 2019-01-21  Bruno Haible  <bruno@clisp.org>
11968         diacrit: Mark deprecated.
11969         * modules/diacrit (Status, Notice): Mark as deprecated.
11970         * NEWS: Mention it.
11972 2019-01-20  Bruno Haible  <bruno@clisp.org>
11974         rintl: Override broken implementation on NetBSD.
11975         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
11976         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
11977         REPLACE_RINTL.
11978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
11979         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
11980         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
11981         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
11983 2019-01-20  Bruno Haible  <bruno@clisp.org>
11985         log10l: Work around inaccurate implementation on NetBSD.
11986         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
11987         * lib/log10l.c: Comment out too simplistic override.
11988         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
11990 2019-01-20  Bruno Haible  <bruno@clisp.org>
11992         logl: Work around inaccurate implementation on NetBSD.
11993         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
11994         * lib/logl.c: Comment out unused code.
11995         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
11997 2019-01-20  Bruno Haible  <bruno@clisp.org>
11999         expm1l: Work around inaccurate implementation on NetBSD.
12000         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12001         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12002         REPLACE_EXPM1L.
12003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12004         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12005         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12006         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12008 2019-01-20  Bruno Haible  <bruno@clisp.org>
12010         expl: Work around inaccurate implementation on NetBSD.
12011         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12012         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12013         REPLACE_EXPL.
12014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12015         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12016         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12017         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12019 2019-01-20  Bruno Haible  <bruno@clisp.org>
12021         exp2l: Work around inaccurate implementation on NetBSD.
12022         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12023         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12025 2019-01-20  Bruno Haible  <bruno@clisp.org>
12027         floor, floorl: Avoid autoconf warnings.
12028         * modules/floor (configure.ac): Use AC_REQUIRE.
12029         * modules/floorl (configure.ac): Likewise.
12031 2019-01-20  Bruno Haible  <bruno@clisp.org>
12033         Defeat current GCC optimizations in math autoconf tests.
12034         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12035         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12036         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12037         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12038         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12039         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12040         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12041         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12042         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12043         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12044         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12045         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12046         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12047         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12048         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12049         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12050         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12051         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12052         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12053         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12054         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12055         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12056         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12057         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12058         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12059         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12060         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12061         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12062         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12063         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12064         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12065         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12066         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12069         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12070         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12073 2019-01-19  Pádraig Brady  <P@draigBrady.com>
12075         gettext: support disabling use of VLAs
12076         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
12078 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12080         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
12081         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
12083 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
12085         fcntl: Fix syntax error (regression from 2018-10-05).
12086         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
12088 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12090         relocatable: improve documentation.
12091         * doc/relocatable-maint.texi (Supporting Relocation): For
12092         substitutions performed by config.status, we need more variables
12093         (for instance datarootdir defaults to '${prefix}/share' so we need
12094         prefix).
12096 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
12098         backup: update dependencies
12099         * modules/backup-rename (Depends-on): It now depends on opendirat
12100         instead of opendir.  It also uses stdint, and xalloc-oversized.
12101         But no longer dirfd.
12102         * modules/backupfile (Depends-on): Add xalloc-oversized.
12104 2019-01-13  Bruno Haible  <bruno@clisp.org>
12106         getcwd: Fix test failure when building on a Linux 9p file system.
12107         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
12108         EINVAL from mkdir like ENAMETOOLONG.
12109         * tests/test-getcwd.c (test_long_name): Likewise.
12111 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12113         Fix typos found by codespell.
12114         * lib/*.[hc]: Fix typos in comments.
12115         * pygnulib/*.py: Fix typos in error messages and comments.
12117 2019-01-12  Bruno Haible  <bruno@clisp.org>
12119         doc: Fix documentation about container data types.
12120         Reported by Werner Lemberg <wl@gnu.org>.
12121         * doc/containers.texi (Container data types): Fix typo.
12123 2019-01-10  Bruno Haible  <bruno@clisp.org>
12125         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12126         Reported by Reuben Thomas <rrt@sc3d.org>.
12127         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12129 2019-01-06  Bruno Haible  <bruno@clisp.org>
12131         maintainer-makefile: Make the configure.ac section optional.
12132         * top/maint.mk (GREP, SED): Define if not defined.
12134 2019-01-06  Bruno Haible  <bruno@clisp.org>
12136         localename: Assume setlocale function.
12137         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12138         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12140 2019-01-06  Bruno Haible  <bruno@clisp.org>
12142         doc: Add documentation about container data types.
12143         * doc/containers.texi: New file.
12144         * doc/gnulib.texi (Particular Modules): Include it.
12146 2019-01-06  Bruno Haible  <bruno@clisp.org>
12148         doc: Update documentation about 'progname' module.
12149         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12150         title. Rewrite.
12151         * doc/gnulib.texi (Particular Modules): Update.
12153 2019-01-06  Bruno Haible  <bruno@clisp.org>
12155         doc: Document the xstdopen and *-safer modules.
12156         * doc/xstdopen.texi: New file.
12157         * doc/gnulib.texi (Particular Modules): Include it.
12159 2019-01-06  Bruno Haible  <bruno@clisp.org>
12161         xstdopen: Add tests.
12162         * tests/test-xstdopen.c: New file.
12163         * tests/test-xstdopen.sh: New file.
12164         * modules/xstdopen-tests: New file.
12166         xstdopen: New module.
12167         * lib/xstdopen.h: New file.
12168         * lib/xstdopen.c: New file.
12169         * modules/xstdopen: New file.
12171 2019-01-06  Bruno Haible  <bruno@clisp.org>
12173         stdopen: Fix compilation error with IRIX cc.
12174         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12176 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12178         xfreopen need not include stdio--.h
12179         * lib/xfreopen.c: Do not include stdio--.h.
12181         xfreopen need not depend on freopen-safer
12182         * modules/xfreopen (Depends-on):
12183         Depend on freopen, not freopen-safer.
12185         stdopen: modernize and simplify
12186         * lib/stdopen.c: Update copyright date
12187         Do not include sys/types.h; no longer needed these days.
12188         (stdopen): Use C99-style decl in loop.  Return int errno
12189         value, rather than just a bool.  Do not worry about fd mismatches,
12190         since the caller cares only if 0, 1, 2 are occupied.
12191         * lib/stdopen.h: No need to include <stdbool.h>.
12192         * m4/stdopen.m4: Remove.
12193         * modules/stdopen: New file.
12195         stdopen: copy from last use in coreutils
12196         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12197         New files, taken from their last commit in coreutils
12198         2007-07-23T12:35:58Z!jim@meyering.net
12199         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12201 2019-01-05  Bruno Haible  <bruno@clisp.org>
12203         argp: Don't pass an invalid argument to dgettext().
12204         Reported by He X <xw897002528@gmail.com>.
12205         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12206         dgettext().
12208 2019-01-05  Bruno Haible  <bruno@clisp.org>
12210         argp: Don't pass an invalid argument to dgettext().
12211         Reported by He X <xw897002528@gmail.com>.
12212         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12213         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12214         dgettext().
12216 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12218         stdioext: port to newer 32-bit Android
12219         Problem reported by Tom Yan in:
12220         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12221         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12222         (fp_) [__ANDROID__]: Use it.
12224 2019-01-04  Bruno Haible  <bruno@clisp.org>
12226         lock: Fix link error with --enable-threads=pth.
12227         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12228         Mark as weak.
12230 2019-01-04  Bruno Haible  <bruno@clisp.org>
12232         Fix link errors in unit tests.
12233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12234         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12235         * modules/array-map-tests (Makefile.am): Link test-array_map against
12236         libintl.
12237         * modules/array-set-tests (Makefile.am): Link test-array_set against
12238         libintl.
12239         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12240         libintl.
12241         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12242         libintl.
12243         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12244         against libintl.
12245         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12246         against libintl.
12248 2019-01-04  Bruno Haible  <bruno@clisp.org>
12250         Fix incorrect 'Link' sections.
12251         * modules/regex (Link): Mention the link requirement of module 'lock'.
12252         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12254 2019-01-04  Bruno Haible  <bruno@clisp.org>
12256         Fix some 'Link' sections.
12257         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12258         dependency.
12259         * modules/getaddrinfo (Link): Likewise.
12261 2019-01-04  Bruno Haible  <bruno@clisp.org>
12263         Remove redundant 'Link' sections.
12264         * modules/canon-host (Link): Remove section.
12265         * modules/timevar (Link): Likewise.
12267 2019-01-04  Bruno Haible  <bruno@clisp.org>
12269         Remove incorrect 'Link' sections.
12270         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12271         the dependencies instead.
12272         * modules/crypto/md5 (Link): Likewise.
12273         * modules/crypto/sha1 (Link): Likewise.
12274         * modules/crypto/sha256 (Link): Likewise.
12275         * modules/crypto/sha512 (Link): Likewise.
12276         * modules/faccessat (Link): Likewise.
12277         * modules/fdutimensat (Link): Likewise.
12278         * modules/iconv_open-utf (Link): Likewise.
12279         * modules/propername (Link): Likewise.
12280         * modules/qacl (Link): Likewise.
12281         * modules/unicodeio (Link): Likewise.
12282         * modules/utimecmp (Link): Likewise.
12283         * modules/utimensat (Link): Likewise.
12284         * modules/xstriconv (Link): Likewise.
12285         * modules/xstriconveh (Link): Likewise.
12287 2019-01-04  Bruno Haible  <bruno@clisp.org>
12289         gnulib-tool: New option --extract-recursive-link-directive.
12290         * gnulib-tool (func_usage): Document the new options
12291         --extract-recursive-dependencies, --extract-recursive-link-directive.
12292         (func_verify_module): Document output variables.
12293         (func_get_dependencies_recursively): New function.
12294         (func_get_link_directive_recursively): New function.
12295         Use them to implement the new options
12296         --extract-recursive-dependencies, --extract-recursive-link-directive.
12297         * doc/gnulib-tool.texi (Link-time requirements): New section.
12299 2019-01-04  Bruno Haible  <bruno@clisp.org>
12301         Clarify meaning of 'Link' section in module description.
12302         * doc/gnulib.texi (Module description): Clarify the meaning of the
12303         'Link' section versus the one of the dependencies.
12304         * NEWS: Mention the change.
12306 2019-01-04  Bruno Haible  <bruno@clisp.org>
12308         pselect: Fix module description.
12309         * modules/pselect (Link): Put one link option per line.
12311 2019-01-04  Bruno Haible  <bruno@clisp.org>
12313         cosl: Fix module description.
12314         * modules/cosl (Link): Fix typo.
12315         * modules/mathl (configure.ac): Likewise.
12317 2019-01-04  Bruno Haible  <bruno@clisp.org>
12319         c-xvasprintf: Fix module dependencies.
12320         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12322 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12324         bootstrap: die when some submodules are not initialized
12325         * build-aux/bootstrap: Make sure all submodules are initialized.
12327 2019-01-04  Bruno Haible  <bruno@clisp.org>
12329         bitsetv: Fix module dependencies.
12330         * lib/bitsetv.c: Include xalloc.h.
12331         * modules/bitsetv (Depends-on): Add 'xalloc'.
12333 2019-01-04  Bruno Haible  <bruno@clisp.org>
12335         xmemdup0: Remove redundant code.
12336         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12338 2019-01-04  Bruno Haible  <bruno@clisp.org>
12340         backupfile: Fix module dependencies.
12341         * modules/backupfile (Depends-on): Add 'xalloc'.
12343 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12345         bitset, crypto/gc: fix conflicts with Solaris 11
12346         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12347         avoid clash with Solaris 11 <sys/bitset.h>.
12348         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12349         with Solaris 11 <xorg/gc.h>.
12351 2019-01-04  Bruno Haible  <bruno@clisp.org>
12353         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12354         Reported by Andy Fiddaman <andy@omniosce.org>.
12355         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12357 2019-01-03  Eric Blake  <eblake@redhat.com>
12359         maintainer-makefile: fix typo in previous patch
12360         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12361         of Roman's work.
12363 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12365         maintainer-makefile: prefer $(GREP) over grep
12366         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12367         defined.
12368         * top/maint.mk: Use it everywhere.
12370         maintainer-makefile: split long argument lines
12371         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12372         it would be too long for exec limits on BSD.
12374 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12376         mkfifo: bring back HAVE_MKFIFO macro
12377         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12378         Problem reported by Andrew Janke in:
12379         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12381 2018-12-21  Bruno Haible  <bruno@clisp.org>
12383         Assume Autoconf >= 2.63.
12384         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12385         versions < 2.60.
12387 2018-12-21  Bruno Haible  <bruno@clisp.org>
12389         memcmp: Mention the clang bug.
12390         * tests/test-memcmp.c: Add comment about a known test failure.
12391         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12393 2018-12-20  Jim Meyering  <meyering@fb.com>
12395         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12396         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12397           echo '123-x'|LC_ALL=C grep -E '.\bx'
12398         The goal is to revert the first, but reverting it requires to restore
12399         the function deleted in the second. I ran this to restore the deleted
12400         function:
12401           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12402             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12403             | patch -R -p1
12404         * lib/dfa.c (charclass_context): Restore deleted function.
12405         Reverting the primary commit removes this change:
12406         dfa: Simplify a building state
12407         * lib/dfa.c (build_state): Simplify a building state.
12409 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12411         version-etc: allow zero authors
12412         * lib/version-etc.c (version_etc_arn): If no authors are given,
12413         omit authorship info instead of dumping core.
12415 2018-12-19  Bruno Haible  <bruno@clisp.org>
12417         lchown tests: Be more permissive regarding errno values.
12418         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12419         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12420         alternative to ENOSYS.
12421         * modules/lchown-tests (Depends-on): Add 'errno'.
12422         * modules/fchownat-tests (Depends-on): Likewise.
12424 2018-12-18  Bruno Haible  <bruno@clisp.org>
12426         duplocale: Avoid test failure on AIX 7.
12427         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12428         (configure.ac): Invoke gt_FUNC_USELOCALE.
12429         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12430         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12431         works.
12433 2018-12-18  Bruno Haible  <bruno@clisp.org>
12435         localename: Fix test failure on AIX 7.
12436         Reported by Assaf Gordon in
12437         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12438         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12439         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12440         instead of ac_cv_func_uselocale.
12441         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12442         HAVE_USELOCALE.
12443         * lib/localename-table.h: Likewise.
12444         * lib/localename-table.c: Likewise.
12445         * tests/test-localename.c: Likewise.
12446         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12448 2018-12-18  Bruno Haible  <bruno@clisp.org>
12450         localename: Update comments regarding Cygwin.
12451         * lib/localename.c: Update comment.
12452         * doc/posix-functions/uselocale.texi: Update platforms list.
12453         * doc/posix-functions/newlocale.texi: Likewise.
12454         * doc/posix-functions/duplocale.texi: Likewise.
12455         * doc/posix-functions/freelocale.texi: Likewise.
12457 2018-12-16  Bruno Haible  <bruno@clisp.org>
12459         c-stack: Fix for Linux/sparc.
12460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12461         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12463 2018-12-16  Bruno Haible  <bruno@clisp.org>
12465         localename: Avoid test failure on some glibc systems.
12466         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12467         Unset environment variables that might disturb the first setlocale call,
12468         and verify that this setlocale call succeeds.
12470 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12472         random: Fix build error on native Windows (regression from 2018-06-21).
12473         * lib/random.c (__srandom, __initstate, __setstate, __random,
12474         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12475         to the symbols without '__' prefix.
12477 2018-12-16  Bruno Haible  <bruno@clisp.org>
12479         obstack, libc-config: Support HP-UX cc in C99 mode.
12480         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12481         compiler, even when in C99 mode.
12482         * lib/cdefs.h (__flexarr): Likewise.
12483         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12485 2018-12-16  Bruno Haible  <bruno@clisp.org>
12487         localename: Fix test failure on OpenBSD >= 6.2.
12488         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12489         locale system. Define HAVE_FAKE_LOCALES in this case.
12490         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12491         HAVE_USELOCALE.
12492         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12493         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12494         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12495         platforms list.
12496         * doc/posix-functions/newlocale.texi: Likewise.
12497         * doc/posix-functions/duplocale.texi: Update platforms list.
12498         * doc/posix-functions/freelocale.texi: Likewise.
12500 2018-12-16  Bruno Haible  <bruno@clisp.org>
12502         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12503         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12504         of the test, on platforms without <monetary.h>.
12506 2018-12-16  Bruno Haible  <bruno@clisp.org>
12508         localename: Update comments.
12509         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12511 2018-12-15  Jim Meyering  <meyering@fb.com>
12513         regex: fix indentation
12514         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12516 2018-12-15  Bruno Haible  <bruno@clisp.org>
12518         openat-safer tests: Avoid test failure on NetBSD 8.
12519         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12520         on Linux.
12522 2018-12-15  Jim Meyering  <meyering@fb.com>
12524         regex: work around a bug in glibc-2.27 and prior
12525         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12526         assertion for /0|()0|\1|0/.
12527         * tests/test-regex.c (main): Add the same test here.
12529 2018-12-15  Bruno Haible  <bruno@clisp.org>
12531         localename: Fix use of uninitialized shell variable.
12532         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12533         gt_cv_locale_solaris114 always before use. Remove assignment without
12534         effect.
12536 2018-12-15  Bruno Haible  <bruno@clisp.org>
12538         dfa tests: Avoid test failure on Alpine Linux.
12539         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12540         command found on Alpine Linux.
12542 2018-12-15  Jim Meyering  <meyering@fb.com>
12544         dfa: avoid new warnings from gcc
12545         These would prevent building with -Werror and a Dec snapshot of gcc.
12546         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12547         Rename each inner instance to "p".
12548         (charclass_context): Remove unused static function.
12550 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12552         mkdir-p: improve diagnostic for FUSE mounts
12553         Problem reported by Niklas Hambüchen in:
12554         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12555         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12556         errno to mkdir errno if the stat errno is likely more interesting.
12558 2018-12-14  Bruno Haible  <bruno@clisp.org>
12560         hash-map: Add tests.
12561         * tests/test-hash_map.c: New file.
12562         * modules/hash-map-tests: New file.
12564         linkedhash-map: Add tests.
12565         * tests/test-linkedhash_map.c: New file.
12566         * modules/linkedhash-map-tests: New file.
12568         array-map: Add tests.
12569         * tests/test-array_map.c: New file.
12570         * modules/array-map-tests: New file.
12572         xmap: New module.
12573         * lib/gl_xmap.h: New file.
12574         * lib/gl_xmap.c: New file.
12575         * modules/xmap: New file.
12577         hash-map: New module.
12578         * lib/gl_hash_map.h: New file.
12579         * lib/gl_hash_map.c: New file.
12580         * modules/hash-map: New file.
12582         linkedhash-map: New module.
12583         * lib/gl_linkedhash_map.h: New file.
12584         * lib/gl_linkedhash_map.c: New file.
12585         * lib/gl_anyhash1.h: Update comments.
12586         * lib/gl_anyhash2.h: Likewise.
12587         * modules/linkedhash-map: New file.
12589         array-map: New module.
12590         * lib/gl_array_map.h: New file.
12591         * lib/gl_array_map.c: New file.
12592         * modules/array-map: New file.
12594         map: New module.
12595         * lib/gl_map.h: New file.
12596         * lib/gl_map.c: New file.
12597         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12598         conflict with gl_map.h.
12599         * modules/map: New file.
12601 2018-12-13  Bruno Haible  <bruno@clisp.org>
12603         select tests: Avoid test failure on Cygwin.
12604         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12606 2018-12-13  Bruno Haible  <bruno@clisp.org>
12608         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12609         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12611 2018-12-13  Bruno Haible  <bruno@clisp.org>
12613         localeconv tests: Avoid test failure on Cygwin.
12614         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12615         'mon_grouping' tests.
12617 2018-12-11  Bruno Haible  <bruno@clisp.org>
12619         omap: Don't dispose the old value when the function returns it.
12620         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12621         here.
12622         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12623         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12624         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12625         here.
12627         array-omap, avltree-omap, rbtree-omap: Tweak style.
12628         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12629         false.
12630         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12632         rbtree-omap: Add tests.
12633         * tests/test-rbtree_omap.c: New file.
12634         * modules/rbtree-omap-tests: New file.
12636         avltree-omap: Add tests.
12637         * tests/test-avltree_omap.c: New file.
12638         * modules/avltree-omap-tests: New file.
12640         array-omap: Add tests.
12641         * tests/test-array_omap.c: New file.
12642         * modules/array-omap-tests: New file.
12644         xomap: New module.
12645         * lib/gl_xomap.h: New file.
12646         * lib/gl_xomap.c: New file.
12647         * modules/xomap: New file.
12649         rbtree-omap: New module.
12650         * lib/gl_rbtree_omap.h: New file.
12651         * lib/gl_rbtree_omap.c: New file.
12652         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12653         Parameterize.
12654         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12655         * modules/rbtree-omap: New file.
12656         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12657         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12659         avltree-omap: New module.
12660         * lib/gl_avltree_omap.h: New file.
12661         * lib/gl_avltree_omap.c: New file.
12662         * lib/gl_avltree_ordered.h: Code moved to here from
12663         lib/gl_avltree_oset.c. Parameterize.
12664         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12665         * lib/gl_anytree_omap.h: New file.
12666         * modules/avltree-omap: New file.
12667         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12668         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12670         array-omap: New module.
12671         * lib/gl_array_omap.h: New file.
12672         * lib/gl_array_omap.c: New file.
12673         * modules/array-omap: New file.
12675         omap: New module.
12676         * lib/gl_omap.h: New file.
12677         * lib/gl_omap.c: New file.
12678         * modules/omap: New file.
12680 2018-12-11  Bruno Haible  <bruno@clisp.org>
12682         hash-set, linkedhash-set: Reduce code duplication.
12683         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12684         lib/gl_anyhash_set1.h.
12685         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12686         lib/gl_anyhash_set2.h. Parameterize.
12687         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12688         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12689         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12690         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12691         * lib/gl_rbtreehash_list.c: Likewise.
12692         * lib/gl_linkedhash_list.c: Likewise.
12693         (hash_resize_after_add): Remove function.
12694         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12695         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12696         * gl_hash_set.c: Likewise.
12697         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12698         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12699         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12700         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12701         * modules/hash-set (Files, Makefile.am): Likewise.
12703 2018-12-11  Bruno Haible  <bruno@clisp.org>
12705         array-set: Optimize.
12706         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12707         outside the loop, not inside the loop.
12709 2018-12-11  Bruno Haible  <bruno@clisp.org>
12711         times: Fix tests.
12712         * tests/test-times.c (doublecmp): Implement a total order.
12714 2018-12-11  Bruno Haible  <bruno@clisp.org>
12716         array-set, linkedhash-set, hash-set: Fix tests.
12717         * tests/test-array_set.c (cmp_objects_in_array): New function.
12718         (check_equals): Use it.
12719         * tests/test-hash_set.c: Likewise.
12720         * tests/test-linkedhash_set.c: Likewise.
12722 2018-12-08  Bruno Haible  <bruno@clisp.org>
12724         Fix comments.
12725         * lib/gl_list.h (gl_list_free): Clarify what it does.
12726         * lib/gl_oset.h (gl_oset_free): Likewise.
12727         * lib/gl_set.h (gl_set_free): Likewise.
12728         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12729         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12730         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12731         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12733 2018-12-03  Bruno Haible  <bruno@clisp.org>
12735         hash-set: Add tests.
12736         * tests/test-hash_set.c: New file.
12737         * modules/hash-set-tests: New file.
12739         linkedhash-set: Add tests.
12740         * tests/test-linkedhash_set.c: New file.
12741         * modules/linkedhash-set-tests: New file.
12743         array-set: Add tests.
12744         * tests/test-array_set.c: New file.
12745         * modules/array-set-tests: New file.
12747         xset: New module.
12748         * lib/gl_xset.h: New file.
12749         * lib/gl_xset.c: New file.
12750         * modules/xset: New file.
12752         hash-set: New module.
12753         * lib/gl_hash_set.h: New file.
12754         * lib/gl_hash_set.c: New file.
12755         * modules/hash-set: New file.
12757         linkedhash-set: New module.
12758         * lib/gl_linkedhash_set.h: New file.
12759         * lib/gl_linkedhash_set.c: New file.
12760         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12761         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12762         * lib/gl_anyhash_primes.h: New file, extracted from
12763         lib/gl_anyhash_list2.h.
12764         * lib/gl_anyhash_list2.h: Include it.
12765         (primes, next_prime): Remove definitions.
12766         * modules/linkedhash-set: New file.
12767         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12768         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12769         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12770         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12771         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12772         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12774         array-set: New module.
12775         * lib/gl_array_set.h: New file.
12776         * lib/gl_array_set.c: New file.
12777         * modules/array-set: New file.
12779         set: New module.
12780         * lib/gl_set.h: New file.
12781         * lib/gl_set.c: New file.
12782         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12783         gl_set.h.
12784         * modules/set: New file.
12786 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12788         bison: don't force the Yacc mode
12789         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12790         errors when Bison features are used in the grammar file.  Some of
12791         these features (such as %expect) were flagged non-yacc recently.  Most
12792         of the time, -y is actually used to please Automake's ylwrap which
12793         expects the output to be y.tab.c.
12794         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12796 2018-12-01  Bruno Haible  <bruno@clisp.org>
12798         gnupload: Document short options.
12799         * build-aux/gnupload (usage): Document the short options.
12801 2018-11-28  Ben Elliston  <bje@gnu.org>
12803         gnupload: Support option -h as alias of --help.
12804         * build-aux/gnupload: Support -h.
12806 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12808         memrchr: port better to clang
12809         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12810         longword *, to pacify clang -Wcast-align (Bug#33544).
12812 2018-11-29  Eric Blake  <eblake@redhat.com>
12814         docs: mention printf %m considerations
12815         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12816         is not portable, and is easy enough to work around.
12817         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12818         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12819         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12820         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12821         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12822         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12823         * doc/posix-functions/printf.texi (printf): Likewise.
12824         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12825         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12826         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12827         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12828         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12829         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12830         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12831         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12832         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12833         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12834         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12835         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12837 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12839         bitset: rename ebitset/expandable.* as tbitset/table.*
12840         See
12841         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12842         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12843         * lib/bitset/table.h, lib/bitset/table.c: these.
12844         Rename all the ebitset* symbols as tbitset*.
12845         Adjust dependencies.
12847 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12849         bitset: check the operations
12850         * tests/test-bitset.c (bitset_random): New.
12851         Use it.
12852         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12854 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12856         bitset: properly use false/true instead of 0/1 for Booleans
12857         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12858         0/1, as Booleans.
12860 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12862         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12863         For consistency with the name of the file.
12864         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12865         * lib/bitset/stats.c, lib/bitset/vector.c
12866         (BITSET_VARRAY): Rename as...
12867         (BITSET_VECTOR): this.
12869 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12871         strerror_r-posix: memmove, not memcpy
12872         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12873         since the source and destination might overlap in the call
12874         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12875         Simplify.
12877 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12879         bitsetv: new module
12880         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12882 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12884         bitset: add tests and doc
12885         First stabs at providing a documentation and test for the bitset
12886         module.
12887         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12889 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12891         bitset: new module
12892         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12893         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12894         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12895         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12896         * lib/bitset/vector.h, modules/bitset:
12897         New.
12899 2018-11-23  Bruno Haible  <bruno@clisp.org>
12901         localename: Fix gettext test failures on mingw.
12902         * lib/localename.c (gl_locale_name_posix): Convert the result of
12903         gl_locale_name_environ to XPG syntax.
12905 2018-11-23  Karl Berry  <karl@freefriends.org>
12907         * config/srclistvars.txt,
12908         * config/srclist.txt: remove all gettext references;
12909         the gettext maintainers will sync as needed.
12911 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12913         mktime: add libc-config dependency
12914         I missed this when we synced from glibc.
12915         * modules/mktime (Depends-on): Add libc-config.
12917 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12919         longlong: fix comment typo
12920         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12922 2018-11-11  Bruno Haible  <bruno@clisp.org>
12924         havelib: Remove the need to include asm-underscore.m4.
12925         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12926         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12927         gl_HOST_CPU_C_ABI.
12928         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12929         (Depends-on): Remove host-cpu-c-abi.
12931 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12933         parse-datetime: simplify test for mktime failure
12934         * lib/parse-datetime.y (mktime_ok): Simplify.
12935         Remove args TZ and T; no longer needed.  Callers changed.
12937         posixtm: simplify test for mktime failure
12938         * lib/posixtm.c (posixtime): Simplify.
12940         nstrftime: simplify test for mktime failure
12941         * lib/nstrftime.c (__strftime_internal): Simplify.
12943 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12945         gnulib-common.m4: port _Noreturn to C++
12946         Problem reported by Akim Demaille in:
12947         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12948         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12949         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12950         version.
12951         * lib/_Noreturn.h: Match gnulib-common.
12953 2018-10-30  Bruno Haible  <bruno@clisp.org>
12955         gnu-make: Fix for NetBSD 8 'make'.
12956         Reported by Reuben Thomas in
12957         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12958         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12959         output, ignoring exit codes.
12961 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12963         maintainer-makefile: fix syntax-check rule for "same.h"
12964         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12965         for 'same_nameat', too.
12967 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12969         havelib: fix nested ‘configure’ chatter
12970         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
12971         AC_CACHE_CHECK calls, which resulted in confusing output like
12972         “checking for the common suffixes of directories in the library
12973         search path... checking for 64-bit host... no lib,lib”.
12975         backupfile: tweak for better code
12976         * lib/backupfile.c: Sort include directives, and remove
12977         unnecessary <limits.h> include.
12978         (FALLTHROUGH): New macro, copied from other modules.
12979         (backupfile_internal): Use it to avoid code duplication.
12980         This lets GCC 8.2.1 generate better code by inlining the
12981         call to check_extension.
12983 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12985         backupfile: new dir_fd args
12986         New module opendirat with code taken from fts.
12987         Use this module to let backupfile use a directory file descriptor.
12988         * NEWS: Document the incompatible change.
12989         * lib/backup-find.c (find_backup_file_name):
12990         * lib/backup-rename.c (backup_file_rename):
12991         New arg DIR_FD.
12992         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
12993         (SIZE_MAX): Remove.
12994         Include opendirat.h rather than dirent--.h.
12995         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
12996         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
12997         (backupfile_internal): New arg DIR_FD.  All callers changed.
12998         * lib/fts.c: Include opendirat.h.
12999         (opendirat): Move to opendirat.c.
13000         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13001         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13002         Add opendirat.
13003         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13004         Add opendirat.
13006 2018-10-23  Bruno Haible  <bruno@clisp.org>
13008         localename: Simplify support for per-thread locales on Solaris 11.4.
13009         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13010         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13011         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13012         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13013         specific code.
13014         * lib/localename-table.h: Update comments.
13015         * lib/localename-table.c: Update comments.
13016         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13017         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13018         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13019         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13020         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13021         HAVE_NAMELESS_LOCALES here.
13022         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13023         m4/intlsolaris.m4.
13024         * modules/gettext (Files): Likewise.
13026 2018-10-22  Bruno Haible  <bruno@clisp.org>
13028         std-gnu11: Support Autoconf versions < 2.64.
13029         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13030         when _AC_DO_LIMIT does not exist.
13032 2018-10-22  Bruno Haible  <bruno@clisp.org>
13034         Assume Autoconf >= 2.63.
13035         * DEPENDENCIES: Mention the requirement.
13037         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13038         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13039         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13040         * m4/onceonly.m4: Remove file.
13042         * m4/openmp.m4: Remove file.
13043         * modules/openmp (Files): Remove m4/openmp.m4.
13045         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13046         htmldir, dvidir, pdfdir, psdir, localedir.
13047         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13049         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13050         Autoconf < 2.60.
13051         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13052         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13054         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13055         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13056         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13058         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13059         exists.
13060         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13063         Autoconf < 2.61.
13065         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13066         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13067         Autoconf >= 2.52.
13069         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13070         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13071         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13073 2018-10-22  Bruno Haible  <bruno@clisp.org>
13075         Assume Automake >= 1.11.
13076         * m4/configmake.m4: Update comments.
13077         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
13078         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
13079         of 'eval'.
13080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
13081         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
13082         requires Automake >= 1.11.
13084 2018-10-22  Bruno Haible  <bruno@clisp.org>
13086         localename: Fix typo in comment.
13087         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
13089 2018-10-22  Bruno Haible  <bruno@clisp.org>
13091         Fix failure of 'gnulib-tool --create-testdir' with all modules.
13092         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
13094 2018-10-21  Bruno Haible  <bruno@clisp.org>
13096         locale: Ease integration with GNU libintl.
13097         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
13098         GNULIB_defined_freelocale): New macros.
13100 2018-10-21  Bruno Haible  <bruno@clisp.org>
13102         localename: Fine-tune support for per-thread locales on Solaris 11.4.
13103         * lib/localename-table.h: New file, extracted from lib/localename.c.
13104         * lib/localename-table.c: Likewise.
13105         * lib/localename.c: Include localename-table.h.
13106         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
13107         locale_hash_function instead of pointer_hash.
13108         * modules/localename (Files): Add lib/localename-table.h,
13109         lib/localename-table.c.
13110         (lib_SOURCES): Add localename-table.c.
13111         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13112         for Solaris 11.4 locale system only on Solaris. Test for it
13113         independently whether getlocalename_l exists.
13114         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13115         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13116         HAVE_NAMELESS_LOCALES.
13117         * modules/gettext (Files): Add m4/intlsolaris.m4.
13119 2018-10-21  Bruno Haible  <bruno@clisp.org>
13121         Small update from gettext.
13122         * m4/intl.m4: Update from gettext:
13123         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13124         mode on AIX.
13125         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13126         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13128 2018-10-16  Bruno Haible  <bruno@clisp.org>
13130         mountlist: Remove support for Cray with UNICOS 9.
13131         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13132         MOUNTED_LISTMNTENT.
13133         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13135 2018-10-16  Bruno Haible  <bruno@clisp.org>
13137         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13138         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13139         STAT_STATFS2_FS_DATA.
13140         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13141         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13142         MOUNTED_GETMNT.
13143         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13144         * lib/getloadavg.c (decstation): Remove definition and case.
13145         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13146         * lib/getgroups.c: Likewise.
13147         * doc/posix-functions/getgroups.texi: Likewise.
13148         * lib/time.in.h: Update comments.
13150 2018-10-16  Bruno Haible  <bruno@clisp.org>
13152         getloadavg: Remove support for ConvexOS.
13153         * lib/getloadavg.c: Remove convex case.
13155 2018-10-16  Bruno Haible  <bruno@clisp.org>
13157         getloadavg: Remove support for Sony NEWS.
13158         * lib/getloadavg.c: Remove sony_news case.
13160 2018-10-16  Bruno Haible  <bruno@clisp.org>
13162         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13163         * lib/fsusage.c: Remove _SEQUENT_ case.
13164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13165         * lib/mountlist.c: Don't test for MNTTABNAME.
13166         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13167         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13168         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13169         * lib/stat-size.h: Don't mention the Sequent bug.
13170         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13172 2018-10-16  Bruno Haible  <bruno@clisp.org>
13174         fsusage: Remove support for AIX 3.
13175         * lib/fsusage.c: Remove code for AIX 3.
13176         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13178 2018-10-16  Bruno Haible  <bruno@clisp.org>
13180         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13181         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13182         * lib/fsusage.c: Remove code for AIX PS/2.
13183         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13184         * lib/getloadavg.c: Likewise.
13186 2018-10-16  Bruno Haible  <bruno@clisp.org>
13188         getloadavg: Remove support for HP-UX on m68k.
13189         * lib/getloadavg.c: Remove hp9000s300 case.
13191 2018-10-16  Bruno Haible  <bruno@clisp.org>
13193         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13194         * lib/fsusage.c: Remove DOLPHIN case.
13195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13196         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13198 2018-10-16  Bruno Haible  <bruno@clisp.org>
13200         getloadavg: Remove support for Alliant FX/2800.
13201         * lib/getloadavg.c: Remove alliant case.
13203 2018-10-16  Bruno Haible  <bruno@clisp.org>
13205         getloadavg: Remove support for tek4300.
13206         * lib/getloadavg.c: Remove tek4300 case.
13208 2018-10-16  Bruno Haible  <bruno@clisp.org>
13210         getloadavg: Remove support for Ardent.
13211         * lib/getloadavg.c: Remove ardent case.
13213 2018-10-16  Bruno Haible  <bruno@clisp.org>
13215         mountlist: Remove support for SVR2.
13216         Reported by Andrew Borodin <aborodin@vmail.ru> in
13217         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13218         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13219         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13220         MOUNTED_FREAD.
13222 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13224         libc-config: merge from glibc
13225         * lib/cdefs.h (__glibc_has_attribute): New macro.
13227         regex: depend on libc-config
13228         * modules/regex (Depends-on): Add libc-config.
13229         This is needed after the recent autoupdate from glibc.
13231 2018-10-14  Bruno Haible  <bruno@clisp.org>
13233         localename: Add support for per-thread locales on Solaris 11.4.
13234         * lib/locale.in.h (newlocale, freelocale): New declarations.
13235         (duplocale): Declare also when the 'localename' module requests it.
13236         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13237         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13238         (struniq): Update.
13239         (struct locale_categories_names, struct locale_hash_node): New types.
13240         (LOCALE_HASH_TABLE_SIZE): New constant.
13241         (locale_hash_table, locale_lock): New variables.
13242         (pointer_hash, get_locale_t_name): New functions.
13243         (newlocale, duplocale, freelocale): New overridden functions.
13244         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13245         * m4/intlsolaris.m4: New file.
13246         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13247         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13248         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13249         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13250         declared.
13251         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13252         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13253         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13254         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13255         * modules/localename (Files): Add intlsolaris.m4.
13256         (Depends-on): Add 'locale'.
13257         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13258         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13259         the signatures.
13261 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13263         timevar: use gethrxtime to get wall clock time
13264         clock_gettime is not portable.  gethrxtime takes the best available
13265         option to get the wall clock time, including clock_gettime (monotonic
13266         clock), and gettime (non monotonic).
13267         Also, using xtime_t instead of float preserves the precision.
13268         Suggested by Bruno Haible.
13269         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13270         * modules/timevar (Depends-on): We need gethrxtime.
13271         We no longer use times().
13272         (Link): Update.
13273         * lib/timevar.h (timevar_time_def): Use xtime_t.
13274         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13275         (timevar_print): Instead of checking whether the timings themselves
13276         are large enough for the timevar to be printed, check the percentages.
13278 2018-10-14  Bruno Haible  <bruno@clisp.org>
13280         wcsnrtombs: Work around Solaris 11.4 bug.
13281         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13282         macro.
13283         (gl_FUNC_WCSNRTOMBS): Invoke it.
13284         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13286 2018-10-14  Bruno Haible  <bruno@clisp.org>
13288         mbsnrtowcs: Work around Solaris 11.4 bug.
13289         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13290         macro.
13291         (gl_FUNC_MBSNRTOWCS): Invoke it.
13292         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13294 2018-10-14  Bruno Haible  <bruno@clisp.org>
13296         doc: Update for Solaris 11.4.
13297         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13298         mention Solaris 11.4.
13299         * m4/printf.m4: Update comments about Solaris.
13300         * m4/log.m4: Likewise.
13301         * m4/log10.m4: Likewise.
13302         * m4/logb.m4: Likewise.
13303         * m4/logbf.m4: Likewise.
13304         * m4/logbl.m4: Likewise.
13305         * m4/rename.m4: Likewise.
13306         * m4/wcrtomb.m4: Likewise.
13307         * m4/hostent.m4: Likewise.
13308         * m4/servent.m4: Likewise.
13310 2018-10-14  Bruno Haible  <bruno@clisp.org>
13312         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13313         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13314         pointer.
13315         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13316         pointer.
13317         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13318         pointer.
13319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13320         pointer.
13321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13322         pointer.
13324 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13326         bootstrap: fix wget command for po files.
13327         * build-aux/bootstrap (po_download_command_format): Fix comment,
13328         and adjust callers.
13330 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13332         timevar: improve the output format
13333         Suggested by Bruno Haible.
13334         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13335         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13336         wall, since its resolution is much higher.
13338 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13340         timevar: expect that getrusage is available.
13341         Don't keep both times and getrusage as backend: both are guaranteed by
13342         gnulib, a single one suffices.  Using getrusage is open to possibly
13343         tracking other types of resources in the future.
13344         * modules/timevar (Depends-on): Add getrusage.
13345         (configure.ac): Remove gl_TIMEVAR.
13346         (Files): Remove m4/timevar.m4.
13347         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13348         * lib/timevar.h (timevar_enabled): Clarify documentation.
13349         * lib/timevar.c: Remove all the code about times.
13350         Remove all the CPP guards about getrusage: expect it to be present
13351         (courtesy of gnulib).
13353 2018-10-12  Bruno Haible  <bruno@clisp.org>
13355         mountlist: Improve support for Solaris in 64-bit mode.
13356         Reported by David Wood <David.Wood@deshaw.com> in
13357         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13358         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13359         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13360         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13362 2018-10-12  Bruno Haible  <bruno@clisp.org>
13364         mountlist: Add support for Minix.
13365         Reported by Assaf Gordon in
13366         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13367         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13368         AC_CHECK_FUNCS to check for 'getmntinfo'.
13369         * lib/mountlist.c: Update comments.
13371 2018-10-12  Bruno Haible  <bruno@clisp.org>
13373         Make better use of Autoconf.
13374         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13375         * m4/manywarnings.m4: Likewise.
13376         * m4/manywarnings-c++.m4: Likewise.
13377         * m4/socklen.m4: Likewise.
13378         * m4/sockpfaf.m4: Likewise.
13379         * m4/stdarg.m4: Likewise.
13380         * m4/visibility.m4: Likewise.
13381         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13382         indentation.
13383         * m4/ls-mntd-fs.m4: Likewise.
13385 2018-10-11  Bruno Haible  <bruno@clisp.org>
13387         mountlist: Modernize platform lists.
13388         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13389         platforms, deemphasizing the obsolete ones.
13390         * lib/mountlist.c: Likewise.
13392 2018-10-11  Bruno Haible  <bruno@clisp.org>
13394         getprogname: Add support for 32-bit programs on HP-UX.
13395         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13396         try the similar functions 32-bit programs on 64-bit HP-UX.
13398 2018-10-11  Bruno Haible  <bruno@clisp.org>
13400         getprogname: Work around program name truncation when possible.
13401         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13402         possibly use pst_cmd instead.
13404 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13406         fts: cleanup after FTS_NOATIME removal
13407         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13408         (FTS_STOP): Shrink to minimal values.  We don’t need to
13409         worry about binary compatibility in Gnulib, and the old way
13410         of doing things had a hole in the user options that caused
13411         FTS_OPTIONMASK to not work as desired.
13413 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13415         fts: remove FTS_NOATIME
13416         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13417         We cannot guarantee that O_NOATIME works: e.g. openat fails
13418         with EPERM if the effective user ID of the caller does not match
13419         the owner of the file and the caller is not privileged.
13420         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13421         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13422         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13423         (FTS_OPTIONMASK): Adjust.
13424         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13425         (fd_ring_check): Likewise.
13427 2018-10-08  Bruno Haible  <bruno@clisp.org>
13429         csharpcomp*, csharpexec*: Remove support for pnet.
13430         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13431         HAVE_CSCC.
13432         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13433         Don't test HAVE_CSCC.
13434         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13435         (compile_csharp_class): Don't invoke it.
13436         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13437         HAVE_ILRUN.
13438         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13439         Don't test HAVE_ILRUN.
13440         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13441         (execute_csharp_program): Don't invoke it.
13442         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13443         any more.
13445 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13447         renameatu: prefer renameat2 to syscall
13448         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13449         Use renameat2 instead of syscall (Bug#32796).
13450         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13452 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13454         bootstrap, gnulib-tool: use https instead of insecure rsync
13455         * build-aux/bootstrap (download_po_files, po_download_command_format):
13456         Don't try using rsync; always use wget over https to fetch PO files.
13457         * gnulib-tool (func_import): Likewise.
13458         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13460 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13462         bootstrap, gnulib-tool: correct the translations wget command
13463         * build-aux/bootstrap (po_download_command_format2): Restrict
13464         recursion to a single level.
13465         * gnulib-tool (func_import): Likewise.
13466         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13468 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13470         doc: the gnulib snapshots are not maintained
13471         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13473 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13475         timevar: add to lib_SOURCES
13476         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13478 2018-10-07  Bruno Haible  <bruno@clisp.org>
13480         dirent: Update documentation.
13481         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13483 2018-10-05  Bruno Haible  <bruno@clisp.org>
13485         strpbrk: Make it possible to namespace the defined symbol.
13486         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13488 2018-10-05  Bruno Haible  <bruno@clisp.org>
13490         strcspn: Make it possible to namespace the defined symbol.
13491         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13493 2018-10-05  Bruno Haible  <bruno@clisp.org>
13495         raise: Make it possible to namespace the defined symbol.
13496         * lib/raise.c (raise): Undefine only after the replacement function has
13497         been defined.
13498         (raise): Renamed from rpl_raise.
13499         (raise_nothrow): Move to the end of the compilation unit.
13501 2018-10-05  Bruno Haible  <bruno@clisp.org>
13503         memcmp: Make it possible to namespace the defined symbol.
13504         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13506 2018-10-05  Bruno Haible  <bruno@clisp.org>
13508         explicit_bzero: Make it possible to namespace the defined symbol.
13509         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13510         glibc.
13512 2018-10-05  Bruno Haible  <bruno@clisp.org>
13514         mkdir-p: Depend on 'mkdir'.
13515         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13517 2018-10-05  Bruno Haible  <bruno@clisp.org>
13519         tempname: Depend on 'mkdir'.
13520         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13521         at <https://savannah.gnu.org/bugs/?33379>.
13522         * modules/tempname (Depends-on): Add 'mkdir'.
13524 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13526         timevar: rely on gnulib modules for time portability.
13527         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13528         * m4/timevar.m4: Don't check for clock_t and struct tms,
13529         guaranteed by gnulib.
13530         * lib/timevar.h: Use extern "C" protection.
13531         Include <stdio.h> for FILE.
13532         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13533         they are guaranteed by gnulib.
13534         Remove uses of clock as (now useless) fallback.
13536 2018-10-04  Bruno Haible  <bruno@clisp.org>
13538         sh-filename: New module.
13539         * m4/sh-filename.m4: New file.
13540         * modules/sh-filename: New file.
13541         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13542         "/bin/sh".
13543         * tests/test-posix_spawn1.c (main): Likewise.
13544         * tests/test-posix_spawn2.c (main): Likewise.
13545         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13546         is_envjavac_gcj43): Likewise.
13547         * lib/javaexec.c (execute_java_class): Likewise.
13548         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13549         * modules/posix_spawnp-tests (Depends-on): Likewise.
13550         * modules/javacomp (Depends-on): Likewise.
13551         * modules/javaexec (Depends-on): Likewise.
13553 2018-10-04  Bruno Haible  <bruno@clisp.org>
13555         spawn-pipe tests: Avoid test failure on native Windows.
13556         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13557         that fd 2 is closed.
13559 2018-10-04  Bruno Haible  <bruno@clisp.org>
13561         fcntl: Make it possible to namespace the defined symbol.
13562         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13563         been defined.
13564         (fcntl): Renamed from rpl_fcntl.
13565         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13566         from fcntl.
13567         (klibc_fcntl): Move to the end of the compilation unit.
13569 2018-10-02  Bruno Haible  <bruno@clisp.org>
13571         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13572         * tests/test-vasnprintf.c (test_function): Change the test added on
13573         2018-09-23 to check only the 18 most significant digits.
13575         vasnprintf tests: Avoid test failure on Cygwin.
13576         * tests/test-vasnprintf.c (test_function): Change the test added on
13577         2018-09-23 to check only the 42 most significant digits.
13579 2018-10-01  Bruno Haible  <bruno@clisp.org>
13581         mkostemp, mkostemps: Update documentation.
13582         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13583         * doc/glibc-functions/mkostemps.texi: Likewise.
13585 2018-10-01  Tom Tromey  <tom@tromey.com>
13587         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13588         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13589         on OS X.
13591 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13593         hmac-*: refactor to remove repetitive code
13594         * lib/hmac.c: A new parameterized single implementation.
13595         * lib/hmac-md5.c: Define parameters and include implementation.
13596         * lib/hmac-sha1.c: Likewise.
13597         * lib/hmac-sha256.c: Likewise.
13598         * lib/hmac-sha512.c: Likewise.
13599         * modules/crypto/hmac-md5: Reference the new implementation file.
13600         * modules/crypto/hmac-sha1: Likewise.
13601         * modules/crypto/hmac-sha256: Likewise.
13602         * modules/crypto/hmac-sha512: Likewise.
13603         * tests/test-hmac-md5.c: Refactor common code to a single function.
13604         * tests/test-hmac-sha1.c: Likewise.
13605         * tests/test-hmac-sha256.c: Likewise.
13606         * tests/test-hmac-sha512.c: Likewise.
13608 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13610         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13611         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13612         key length to that output by sha512, not the blocksize.
13613         Otherwise uninitialized data from the stack
13614         is used when computing the hash.
13615         * tests/test-hmac-sha512.c: Add a shortened key test case.
13616         Reported at https://github.com/coreutils/gnulib/pull/5
13618 2018-09-30  Bruno Haible  <bruno@clisp.org>
13620         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13621         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13622         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13623         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13624         'unsigned int' before comparison with an unsigned value.
13626 2018-09-30  Bruno Haible  <bruno@clisp.org>
13628         grantpt: Remove unnecessary dependency.
13629         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13631 2018-09-30  Bruno Haible  <bruno@clisp.org>
13633         timevar: Small tweaks.
13634         * lib/timevar.h: Fix comments. Add parameter names to function
13635         declarations.
13636         * lib/timevar.c: Include timevar.h immediately after config.h.
13637         * lib/timevar.def: Fix comments.
13638         * modules/timevar (Maintainer): List Akim Demaille.
13640 2018-09-30  Bruno Haible  <bruno@clisp.org>
13642         timevar: Include documentation in gnulib manual.
13643         * doc/timevar.texi: Change node and section name to 'Profiling of
13644         program phases'.
13645         In the code snippets, tweak the #includes and use GNU coding style.
13646         * doc/gnulib.texi: Include timevar.texi.
13648 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13650         timevar: import from Bison.
13651         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13652         New files.
13653         * lib/timevar.def: New file.
13654         * doc/timevar.texi: New file.
13656 2018-09-26  Bruno Haible  <bruno@clisp.org>
13658         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13659         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13660         * lib/javacomp.c (default_target_version): Likewise.
13662 2018-09-26  Bruno Haible  <bruno@clisp.org>
13664         javacomp-script, javacomp: Add support for Java 11.
13665         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13666         target-version 11.
13667         * lib/javaversion.h: Update comments.
13668         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13669         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13670         TARGET_VERSION_BOUND, target_version_index,
13671         corresponding_classfile_version): Accept source_version 11 and
13672         target_version 11.
13673         * lib/javacomp.h: Update comments accordingly.
13675 2018-09-23  Bruno Haible  <bruno@clisp.org>
13677         vasnprintf: Fix heap memory overrun bug.
13678         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13679         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13680         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13681         memory.
13682         * tests/test-vasnprintf.c (test_function): Add another test.
13684 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13686         maint: mktime.c now shared with glibc
13687         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13688         are now the same in Gnulib and glibc.
13690         mktime: fix _LIBC typo
13691         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13693 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13695         dfa: optimization for state merge
13696         * lib/dfa.c (merge2): New function.
13697         (merge_nfa_state): Use it.
13699 2018-09-18  Jim Meyering  <meyering@fb.com>
13701         dfa: trivial comment fix: s/is/if/
13702         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13704 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13706         dfa: use more-informative function name
13707         * lib/dfa.c (maybe_disable_superset_dfa):
13708         Rename from dfautf8noss.  Use change.
13710         dfa: tweak allocation performance
13711         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13712         Prefer ptrdiff_t for indexes some more.
13713         Use char for flags, as it’s wide enough.
13714         Allocate queue and flags together, with one malloc call.
13715         No need to use xnmalloc since the multiplication and
13716         addition cannot overflow (it’s already been checked by
13717         earlier allocation).  Prefer memset to open-coding.
13719         dfa: prune states as we go
13720         * lib/dfa.c (prune): Remove.
13721         dfa: reorder enum for efficiency
13722         (merge_nfa_state): Prune as we go instead of at the end.
13723         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13725         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13726         of the enumeration to make it easier for GCC to generate
13727         efficient code by using fewer comparisons to check for
13728         ranges of values.
13729         (atom): Take advantage of the reordering.
13731 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13733         dfa: optimize alternation in NFA
13734         Even when similar states exist in alternation, the DFA treats them
13735         as separate items, which may complicate the transition in NFA and
13736         cause slowdown.  This change assembles the states into one.  For
13737         example, ab|ac is changed into a(b|c).  This change speeds-up
13738         matching for many branched patterns.  For example, grep speeds up
13739         more than 30× in:
13741           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13742           time -p env LC_ALL=C grep -vf in in
13744         * lib/dfa.c (prune): New function.
13745         (merge_nfa_state): New function.  It merges similar NFA states.
13746         (dfaoptimize): New function.  It seeks merged and removed nodes.
13747         (dfaanalyze): Call new function.
13748         (dfautf8noss): Change name from dfaoptimize because of addition of new
13749         function.
13750         (dfacomp): Update caller.
13752         dfa: simplify initial state
13753         Simplifying the initial state enables easier optimization of the NFA.
13754         * lib/dfa.c (enum token): Add new element BEG.
13755         (prtok): Adjust due to adding element BEG.
13756         (dfaparse): Put BEG at a head of tokens.
13757         (state_index): Adjust due to adding element BEG.
13758         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13759         build initial state.
13760         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13762 2018-09-18  Bruno Haible  <bruno@clisp.org>
13764         file-has-acl: Fix test failure on Cygwin 2.9.
13765         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13766         * lib/acl-internal.h: Likewise.
13767         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13768         * lib/acl-internal.c: Update comments regarding Cygwin.
13769         * lib/acl_entries.c: Likewise.
13770         * lib/file-has-acl.c: Likewise.
13771         (file_has_acl): For Cygwin, use a different way to determine whether
13772         the "default" ACL of a directory is nontrivial.
13773         * lib/get-permissions.c: Update comments regarding Cygwin.
13774         * lib/set-permissions.c: Likewise.
13776 2018-09-18  Bruno Haible  <bruno@clisp.org>
13778         stat-time tests: Fix test failure on Cygwin.
13779         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13781 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13783         doc: OS X 10.11 lacked ns time functions
13784         According to <https://github.com/zeromq/libzmq/issues/2175>,
13785         nanosecond-resolution timestamp functions were introduced
13786         in macOS 10.12, so document the last version (OS X 10.11)
13787         where they were absent.
13789         gettime: nanotime never existed
13790         Problem reported by Bruno Haible in:
13791         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13792         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13793         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13795 2018-09-18  Bruno Haible  <bruno@clisp.org>
13797         doc: Update statement about target platforms.
13798         Reported by Simon Sobisch.
13799         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13800         restrictions on MSVC versions.
13802 2018-09-18  Bruno Haible  <bruno@clisp.org>
13804         posix_spawn tests: Fix link error on 64-bit Cygwin.
13805         * tests/test-posix_spawn1.c (environ): Remove declaration.
13806         * tests/test-posix_spawn2.c (environ): Likewise.
13807         * tests/test-posix_spawn3.c (environ): Likewise.
13808         * tests/test-posix_spawn4.c (environ): Likewise.
13809         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13810         * modules/posix_spawnp-tests (Depends-on): Likewise.
13812 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13814         timespec: new function current_timespec
13815         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13816         and don’t worry about it failing on a CLOCK_REALTIME arg.
13817         POSIX requires it to succeed and I don’t know of any
13818         counterexamples where the fallbacks would work.
13819         (current_timespec): New function, taken from Emacs.  It is more
13820         convenient than gettime, and can help register allocation.
13821         * lib/timespec.h: Include arg-nonnull.h.
13822         (current_timespec): New declaration.
13823         (gettime, settime): Declare args to be nonnull.
13824         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13826 2018-09-16  Bruno Haible  <bruno@clisp.org>
13828         setlocale: Improve locale handling on macOS 10.12 or newer.
13829         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13830         gl_locale_name_canonicalize.
13831         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13832         and LC_MESSAGES.
13833         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13835 2018-09-16  Bruno Haible  <bruno@clisp.org>
13837         Update list of locale names with scripts on macOS.
13838         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13839         match Mac OS X 10.13 and recent glibc.
13841 2018-09-16  Bruno Haible  <bruno@clisp.org>
13843         gettext: Use newer macOS APIs when possible.
13844         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13845         CFLocaleCopyPreferredLanguages.
13847 2018-09-16  Bruno Haible  <bruno@clisp.org>
13849         localename: Revisit macOS specific code.
13850         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13851         Fix comments about Mac OS X versions.
13853 2018-09-15  Bruno Haible  <bruno@clisp.org>
13855         setlocale: Improve support for locales not supported by libc.
13856         Reported by Dapeng Gao <peter@dpgao.cc> at
13857         <https://savannah.gnu.org/bugs/?54479>.
13858         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13859         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13860         to be set is not supported by libc: Emit warnings instead of failing.
13862 2018-09-15  Bruno Haible  <bruno@clisp.org>
13864         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13865         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13866         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13867         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13869         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13870         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13871         * doc/glibc-functions/strcasestr.texi: Likewise.
13873 2018-09-14  Bruno Haible  <bruno@clisp.org>
13875         doc: Fix bottom of top-level page.
13876         Reported by Akim Demaille <akim.demaille@gmail.com> in
13877         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13878         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13879         mode.
13880         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13881         accordingly.
13883 2018-09-12  Bruno Haible  <bruno@clisp.org>
13885         Add test case from a recent glibc bug.
13886         * tests/test-strstr.c (main): Add test of long needle.
13887         * tests/test-strcasestr.c (main): Likewise.
13888         * tests/test-c-strstr.c (main): Likewise.
13889         * tests/test-c-strcasestr.c (main): Likewise.
13890         * tests/test-memmem.c (main): Likewise.
13892 2018-09-12  Bruno Haible  <bruno@clisp.org>
13894         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13895         * tests/test-c-strstr.c (main): Add the same tests here as well.
13897 2018-09-12  Bruno Haible  <bruno@clisp.org>
13899         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13900         * tests/test-memmem.c (main): Free haystack.
13901         * tests/test-strcasestr.c (main): Likewise.
13902         * tests/test-c-strcasestr.c (main): Likewise.
13904 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13906         xstrtol: fix missing-TYPE_SIGNED typo
13907         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13909 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13911         timespec: fix resolution confusion
13912         In normal usage, clock resolution is given in seconds, but the
13913         code was mistakenly using inverse seconds and calling it
13914         “resolution”.  Fix this, partly by renaming two identifiers.
13915         The old names will be kept for a bit, to ease transition.
13916         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13917         New constants, replacing TIMESPEC_RESOLUTION and
13918         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13919         All uses changed.
13921 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13923         mktime: simplify in prep for glibc merge
13924         * lib/mktime.c, lib/timegm.c [_LIBC]:
13925         Include mktime-internal.h (a small file just for glibc)
13926         instead of using a typedef.
13928 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13930         intprops: minor clarification of code
13931         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13932         Use _GL_INT_CONVERT rather than reinventing it.
13934 2018-09-07  Bruno Haible  <bruno@clisp.org>
13936         Fix a comment.
13937         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13939 2018-09-07  Bruno Haible  <bruno@clisp.org>
13941         posix_spawn_file_actions_addchdir: Add tests.
13942         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13943         * tests/test-posix_spawn4.c: New file.
13944         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13946 2018-09-07  Bruno Haible  <bruno@clisp.org>
13948         posix_spawn_file_actions_addchdir: New module.
13949         Suggested by Eric Blake in
13950         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13951         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13952         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13953         union member 'chdir_action'.
13954         * lib/spawn_faction_addchdir.c: New file.
13955         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13956         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13957         HAVE_WORKING_POSIX_SPAWN.
13958         * lib/spawn_faction_adddup2.c: Likewise.
13959         * lib/spawn_faction_addopen.c: Likewise.
13960         * m4/posix_spawn_faction_addchdir.m4: New file.
13961         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13962         'posix_spawn_file_actions_addchdir' is present and whether
13963         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13964         instead of HAVE_WORKING_POSIX_SPAWN.
13965         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13966         posix_spawn_file_actions_addchdir is declared.
13967         (gl_SPAWN_H_DEFAULTS): Initialize
13968         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13969         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13970         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13971         * modules/spawn (Makefile.am): Substitute
13972         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13973         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13974         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13975         * modules/posix_spawn_file_actions_addchdir: New file.
13976         * modules/posix_spawn_file_actions_addclose (Depends-on,
13977         configure.ac): Test also REPLACE_POSIX_SPAWN.
13978         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
13979         configure.ac): Likewise.
13980         * modules/posix_spawn_file_actions_addopen (Depends-on,
13981         configure.ac): Likewise.
13982         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
13983         signature.
13984         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13985         * doc/posix-functions/posix_spawnp.texi: Likewise.
13987 2018-09-06  Bruno Haible  <bruno@clisp.org>
13989         stddef: Override max_align_t on NetBSD 8.0/x86.
13990         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
13991         the value of __alignof__ (max_align_t).
13992         * doc/posix-headers/stddef.texi: Mention the issue.
13994 2018-09-06  Bruno Haible  <bruno@clisp.org>
13996         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
13997         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
13998         system fcntl.
13999         * doc/posix-functions/fcntl.texi: Document the issue.
14001 2018-09-06  Bruno Haible  <bruno@clisp.org>
14003         count-trailing-zeros tests: Rely on limits-h module.
14004         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14005         definition.
14006         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14008 2018-09-06  Bruno Haible  <bruno@clisp.org>
14010         count-leading-zeros tests: Rely on limits-h module.
14011         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14012         definition.
14013         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14015 2018-09-06  Bruno Haible  <bruno@clisp.org>
14017         count-one-bits tests: Rely on limits-h module.
14018         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14019         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14021 2018-09-06  Bruno Haible  <bruno@clisp.org>
14023         xstrtoll: Rely on limits-h module.
14024         * lib/xstrtol.c: Don't include intprops.h.
14025         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14026         * modules/xstrtol (Depends-on): Remove 'intprops'.
14027         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14029 2018-09-06  Bruno Haible  <bruno@clisp.org>
14031         strtoll, strtoull: Rely on limits-h module.
14032         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14033         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14034         * modules/strtoll (Depends-on): Add limits-h.
14035         * modules/strtoull (Depends-on): Likewise.
14037 2018-09-06  Bruno Haible  <bruno@clisp.org>
14039         intprops tests: Fix compilation error with pre-C99 compiler.
14040         * tests/test-intprops.c (verify_stmt): New macro.
14041         (VERIFY, main): Use it.
14043 2018-09-06  Bruno Haible  <bruno@clisp.org>
14045         limits-h: Provide numerical limits macros.
14046         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14047         IRIX and for GCC.
14048         (WORD_BIT, LONG_BIT): Define.
14049         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14050         <limits.h> does not define LLONG_MAX or WORD_BIT.
14051         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14052         TYPE_MAXIMUM): New macros, from intprops.h.
14053         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14054         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14055         provides.
14057 2018-09-05  Bruno Haible  <bruno@clisp.org>
14059         fcntl: Don't access nonexistent optional argument.
14060         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14061         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14062         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14063         don't consume an argument. For actions that take an 'int' argument,
14064         consume an 'int' argument.
14066 2018-09-05  Eric Blake  <eblake@redhat.com>
14068         doc: mention environ pitfall
14069         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14070         environ is a glibc extension.
14072 2018-09-03  Bruno Haible  <bruno@clisp.org>
14074         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
14075         Reported by Antoine Luong <antoine.luong@c-s.fr> in
14076         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
14077         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
14078         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
14079         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
14081 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14083         mktime: fix unlikely race+overflow bug
14084         Problem reported by Alexandre Oliva in:
14085         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
14086         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
14087         to avoid an unlikely race if the compiler delays a load and
14088         if this cascades into a signed integer overflow.
14090 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14092         mktime, timegm: simplify glibc time64_t
14093         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
14094         Now long int, not time_t, since long int is the longstanding type
14095         for this in glibc and there is no need to change it even if time_t
14096         becomes 64 bits - even int would do, though this would be a change
14097         to the glibc generated code.  When this change is merged into
14098         glibc, it should simplify the time_t vs time64_t situation.
14100         mktime, timegm: simplify merge to glibc
14101         Move code around to make a merge to glibc easier to audit.
14102         This should not change behavior.
14103         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
14104         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
14105         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
14106         simplify later conditionals; default the others to zero.  In uses
14107         of these conditionals, explicitly spell out how _LIBC affects
14108         things, so it’s easier to review from a glibc viewpoint.
14109         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14110         compartmentalize tzset issues.  Move system-dependent tzsettish
14111         code here from mktime.
14112         (mktime): Move tzsettish code to my_tzset, and move
14113         localtime_offset to within mktime so that it doesn’t
14114         need a separate ifdef.
14116 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14118         intprops: avoid evaluation of some expressions
14119         This makes EXPR_SIGNED (e) easier to use, as it no longer
14120         evaluates the expression E.  Formerly, E was required to be free
14121         of side effects.
14122         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14123         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14124         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14126 2018-08-23  Bruno Haible  <bruno@clisp.org>
14128         getcwd: Add cross-compilation guesses.
14129         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14130         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14131         Based on a patch by Paul Eggert.
14132         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14133         guesses for all GNU systems.
14135 2018-08-19  Bruno Haible  <bruno@clisp.org>
14137         glob-h: Formalize side effects from other modules.
14138         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14139         * m4/glob.m4 (gl_GLOB): Invoke it.
14141         fnmatch-h: Formalize side effects from other modules.
14142         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14143         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14145         limits-h: Formalize side effects from other modules.
14146         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14147         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14149 2018-08-19  Bruno Haible  <bruno@clisp.org>
14151         getpass: Move declaration to <unistd.h>.
14152         * lib/unistd.in.h (getpass): New declaration.
14153         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14154         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14155         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14156         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14157         On glibc systems, don't set REPLACE_GETPASS to 1.
14158         * modules/getpass (Depends-on): Add 'unistd'.
14159         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14160         (Include): Specify <unistd.h> instead of "getpass.h".
14161         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14162         (configure.ac): Sync with the configure.ac section of modules/getpass.
14163         (Include): Specify <unistd.h> instead of "getpass.h".
14164         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14165         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14166         REPLACE_GETPASS.
14167         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14168         REPLACE_GETPASS.
14169         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14170         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14171         and musl.
14172         * NEWS: Mention the change.
14174 2018-08-19  Bruno Haible  <bruno@clisp.org>
14176         glob: Fix over-optimization due to attribute __nonnull__.
14177         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14179 2018-08-19  Bruno Haible  <bruno@clisp.org>
14181         glob: Fix another compilation error when glob.h is not replaced.
14182         Reported by Reuben Thomas <rrt@sc3d.org> in
14183         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14184         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14185         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14187 2018-08-18  Bruno Haible  <bruno@clisp.org>
14189         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14190         Reported by Reuben Thomas <rrt@sc3d.org> in
14191         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14192         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14193         in config.h.
14195 2018-08-18  Bruno Haible  <bruno@clisp.org>
14197         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14198         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14199         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14200         Solution proposed by Eli Zaretskii.
14201         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14202         * lib/gettimeofday.c (GetProcAddress): Likewise.
14203         * lib/link.c (GetProcAddress): Likewise.
14204         * lib/physmem.c (GetProcAddress): Likewise.
14205         * lib/poll.c (GetProcAddress): Likewise.
14206         * lib/select.c (GetProcAddress): Likewise.
14207         * lib/stat-w32.c (GetProcAddress): Likewise.
14209 2018-08-18  Bruno Haible  <bruno@clisp.org>
14211         glob: Fix another compilation error when glob.h is not replaced.
14212         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14213         * lib/globfree.c: Include <libc-config.h>.
14215 2018-08-18  Bruno Haible  <bruno@clisp.org>
14217         glob: Fix compilation error when glob.h is not replaced.
14218         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14219         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14220         * lib/glob_pattern_p.c: Include <libc-config.h>.
14221         * modules/glob (Depends-on): Add libc-config.
14223 2018-08-18  Bruno Haible  <bruno@clisp.org>
14225         scratch_buffer: Add tests.
14226         * tests/test-scratch-buffer.c: New file.
14227         * modules/scratch_buffer-tests: New file.
14229 2018-08-18  Bruno Haible  <bruno@clisp.org>
14231         scratch_buffer: Fix include file.
14232         Reported by Reuben Thomas <rrt@sc3d.org> in
14233         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14234         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14235         double-inclusion guard.
14237 2018-08-18  Bruno Haible  <bruno@clisp.org>
14239         glob-h: Revert Paul Eggert's revert.
14240         * m4/glob_h.m4: Revert to previous state.
14241         * modules/glob-h: Likewise.
14243 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14245         glob-h: always build glob.h
14246         This works around a problem reported by Reuben Thomas in:
14247         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14248         This workaround always builds glob.h, even on platforms that
14249         do not need it; perhaps this could be improved someday.
14250         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14251         is always created now.
14252         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14254 2018-08-13  Bruno Haible  <bruno@clisp.org>
14256         monetary: Simplify m4 code.
14257         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14258         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14260 2018-08-13  Bruno Haible  <bruno@clisp.org>
14262         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14263         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14264         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14265         and by Paul J. Lucas <paul@lucasmail.org> in
14266         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14267         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14269 2018-08-11  Bruno Haible  <bruno@clisp.org>
14271         setlocale: Trivial simplification.
14272         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14274 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14276         verify: port 'assume' to traditional tools
14277         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14278         and other tools that use /*NOTREACHED*/ comments.
14280 2018-08-10  Bruno Haible  <bruno@clisp.org>
14282         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14283         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14284         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14285         'fnmatch-gnu' is in use.
14287 2018-08-07  Bruno Haible  <bruno@clisp.org>
14289         glob-h: Add tests.
14290         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14291         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14292         tests/test-glob-h.c.
14293         * modules/glob-h-tests: New file.
14294         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14295         conditions.
14296         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14297         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14299 2018-08-07  Bruno Haible  <bruno@clisp.org>
14301         glob-h: New module.
14302         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14303         replacements.
14304         * lib/glob.c: Include <config.h>.
14305         * m4/glob_h.m4: New file.
14306         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14307         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14308         REPLACE_GLOB_PATTERN_P as appropriate.
14309         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14310         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14311         * modules/glob-h: New file.
14312         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14313         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14314         lstat, sys_stat. Change conditions.
14315         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14316         REPLACE_GLOB_PATTERN_P. Set module indicator.
14317         (Makefile.am): Remove code that is moved to glob-h.
14318         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14319         * modules/posixcheck (Depends-on): Add glob-h.
14321 2018-08-06  Bruno Haible  <bruno@clisp.org>
14323         Force generation of substitute .h file when C++ support is enabled.
14324         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14325         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14326         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14327         FNMATCH_H to non-empty.
14328         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14329         ICONV_H to non-empty.
14330         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14331         MONETARY_H to non-empty.
14332         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14333         non-empty.
14335 2018-08-06  Bruno Haible  <bruno@clisp.org>
14337         fnmatch-h: Fix test compilation error on mingw (regression from today).
14338         * lib/fnmatch.in.h: Fix conditions.
14340 2018-08-06  Bruno Haible  <bruno@clisp.org>
14342         sys_resource: Relicense under LGPLv2+.
14343         John Malmberg's approval is in
14344         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14345         * modules/sys_resource (License): Change to LGPLv2+.
14347 2018-08-06  Bruno Haible  <bruno@clisp.org>
14349         fnmatch-h: Add tests.
14350         * tests/test-fnmatch-h.c: New file.
14351         * modules/fnmatch-h-tests: New file.
14352         * tests/test-fnmatch-h-c++.cc: New file.
14353         * modules/fnmatch-h-c++-tests: New file.
14355 2018-08-06  Bruno Haible  <bruno@clisp.org>
14357         fnmatch-h: New module.
14358         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14359         replacements.
14360         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14361         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14362         'posixcheck' warning.
14363         * m4/fnmatch_h.m4: New file.
14364         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14365         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14366         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14367         as appropriate.
14368         * modules/fnmatch-h: New file.
14369         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14370         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14371         conditions.
14372         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14373         indicator.
14374         (Makefile.am): Remove code that is moved to fnmatch-h.
14375         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14376         REPLACE_FNMATCH.
14377         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14378         * modules/posixcheck (Depends-on): Add fnmatch-h.
14380 2018-08-06  Bruno Haible  <bruno@clisp.org>
14382         Enable more C++ tests.
14383         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14384         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14385         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14386         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14387         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14389 2018-08-06  Bruno Haible  <bruno@clisp.org>
14391         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14392         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14393         getopt.h.
14394         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14396 2018-08-05  Bruno Haible  <bruno@clisp.org>
14398         utime-h: Generate header file when module 'posixcheck' is in use.
14399         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14400         UTIME_H to non-empty.
14402 2018-08-05  Bruno Haible  <bruno@clisp.org>
14404         monetary: Generate header file when module 'posixcheck' is in use.
14405         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14406         use, set MONETARY_H to non-empty.
14408 2018-08-05  Bruno Haible  <bruno@clisp.org>
14410         iconv-h: Generate header file when module 'posixcheck' is in use.
14411         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14412         set ICONV_H to non-empty.
14414 2018-08-05  Bruno Haible  <bruno@clisp.org>
14416         Optimize the "checking whether ... is declared without a macro" checks.
14417         Suggested by Paul Eggert in
14418         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14419         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14420         Gnulib module 'posixcheck' is not in use.
14422 2018-08-05  Bruno Haible  <bruno@clisp.org>
14424         iconv-h: Enable 'posixcheck' warnings.
14425         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14426         iconv_open.
14427         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14429 2018-08-05  Bruno Haible  <bruno@clisp.org>
14431         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14432         * m4/extern-inline.m4: Add more comments.
14433         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14434         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14435         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14437 2018-08-04  Bruno Haible  <bruno@clisp.org>
14439         New module 'posixcheck'.
14440         * modules/posixcheck: New file.
14441         * m4/posixcheck.m4: New file.
14442         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14443         (Which modules?): Reference it.
14445 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14447         dfa: fix memory leak
14448         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14450 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14452         ieee754-h: new module
14453         It looks like Emacs can use this for some NaN processing.
14454         Emacs uses it only on double NaNs so it should be safe.
14455         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14456         * config/srclist.txt: Mention ieee754.h in a comment.
14457         * doc/glibc-headers/ieee754.texi (ieee754.h):
14458         Gnulib now has a substitute that should work
14459         except for long double and for non-IEEE platforms.
14460         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14461         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14463 2018-07-27  Bruno Haible  <bruno@clisp.org>
14465         iswcntrl: Mention minor problem on macOS.
14466         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14468 2018-07-26  Colin Watson  <cjwatson@debian.org>
14470         bootstrap, gnulib-tool: fix translations rsync
14471         Previously, we created files such as $pobase/Makefile.in.in and then the
14472         subsequent rsync would immediately delete them.
14473         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14474         non-.po files in target directory when rsyncing translations.
14475         * gnulib-tool (func_import): Likewise.
14476         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14478 2018-07-25  Jim Meyering  <meyering@fb.com>
14480         bootstrap: reinstate definition fo gnulib_mk.
14481         That variable is used at least by cppi.
14482         * build-aux/bootstrap (gnulib_mk): Restore definition.
14483         This reverts the deletion from v0.1-1844-gc66dba9ba.
14485 2018-07-23  Bruno Haible  <bruno@clisp.org>
14487         doc: For module names, use texinfo markup @code{} or @samp{}.
14488         * doc/alloca.texi: Mark gnulib module names with @code.
14489         * doc/alloca-opt.texi: Likewise.
14490         * doc/quote.texi: Likewise.
14491         * doc/posix-functions/freopen.texi: Likewise.
14492         * doc/posix-functions/open.texi: Likewise.
14493         * doc/posix-functions/readlink.texi: Likewise.
14494         * doc/posix-functions/readlinkat.texi: Likewise.
14495         * doc/posix-functions/stdout.texi: Likewise.
14496         * doc/posix-functions/stderr.texi: Likewise.
14497         * doc/posix-functions/unlink.texi: Likewise.
14498         * doc/posix-functions/unlinkat.texi: Likewise.
14499         * doc/posix-functions/utime.texi: Likewise.
14500         * doc/posix-functions/utimensat.texi: Likewise.
14501         * doc/posix-functions/utimes.texi: Likewise.
14502         * doc/posix-headers/stdint.texi: Likewise.
14503         * doc/glibc-functions/futimesat.texi: Likewise.
14504         * doc/glibc-functions/lutimes.texi: Likewise.
14505         * doc/glibc-functions/memmem.texi: Likewise.
14507 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14509         doc: Avoid some overfull lines in the TeX output.
14510         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14511         @example.
14512         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14513         newline before the long URL.
14514         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14515         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14516         Add line breaks in code snippets.
14518 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14520         hard-locale: simplify by removing hard-locale.m4
14521         * m4/hard-locale.m4: Remove.
14522         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14523         (configure.ac): Do not call gl_HARD_LOCALE.
14525         gnulib-tool: limit line length for git send-email
14526         * gnulib-tool (func_import): Break actioncmd log line
14527         into multiple lines.
14529 2018-07-16  Bruno Haible  <bruno@clisp.org>
14531         ffs: Ensure declaration on mingw.
14532         Reported by Daniel P. Berrangé <berrange@redhat.com>
14533         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14534         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14535         also declared.
14537 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14539         regex-tests: add dependency
14540         * modules/regex-tests (Depends-on): Add gettext-h.
14541         This is needed given the recent changes to regex,
14542         which no longer depends on gettext-h.
14544 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14546         regex: now in sync with glibc
14547         * config/srclist.txt: Gnulib and glibc regex code
14548         are synchronized again.
14550 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14552         renameatu: rename from renameat2
14553         It's looking like Glibc will add a renameat2 function
14554         that is incompatible with Gnulib renameat2; see:
14555         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14556         To help avoid future confusion, rename renameat2 to something else.
14557         Use the name 'renameatu', as the Gnulib function is close to the
14558         Glibc function.  Perhaps someday there will also be a renameat2
14559         Gnulib module, which mimicks the future glibc renameat2, but that
14560         can wait as nobody seems to need such a module now.
14561         * NEWS: Mention this.
14562         * lib/renameatu.c: Rename from lib/renameat2.c.
14563         * lib/renameatu.h: Rename from lib/renameat2.h.
14564         * modules/renameatu: Rename from modules/renameat2.
14565         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14566         All uses of "renameat2" in identifiers or file name
14567         changed to "renameatu", except for two instances in
14568         lib/renameatu.c that deal with the Linux kernel's
14569         renameat2 syscall.
14571 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14573         gnulib-tool: minor tweaks for --gnu-make
14574         * gnulib-tool: Do not allow --gnu-make in test modes,
14575         since they all require automake.
14576         (func_emit_lib_Makefile_am): Don’t emit automake comment
14577         if --gnu-make.
14579         regex: work around conditional-dependencies glitch
14580         * modules/regex (Depends-on): Add langinfo.
14581         Without this change, I had problems building an experimental
14582         version of GNU Emacs.  The symptom of the bug was a message
14583         ‘./configure: line 12726: test: =: unary operator expected’.
14584         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14585         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14586         was unset.  Although gl_FUNC_NL_LANGINFO has
14587         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14588         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14589         --conditional-dependencies sometimes arranges for the
14590         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14591         code.  Since the regex code includes <langinfo.h> it should be
14592         depending on the langinfo module anyway, and this happens to work
14593         around the bug, so install that as a workaround for now.  To
14594         reproduce the original problem, run the following shell script on
14595         the version of Gnulib just before this patch was installed.
14596                 rm -fr foo
14597                 mkdir foo
14598                 cat >foo/configure.ac <<'EOF'
14599                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14600                 gl_EARLY
14601                 gl_INIT
14602                 AC_OUTPUT
14603                 EOF
14604                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14605                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14606                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14607                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14608                 cd foo
14609                 aclocal -I m4
14610                 autoconf
14611                 ./configure --with-included-regex
14613 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14615         wchar: fix bug when checking for ‘inline’
14616         I discovered this when looking into using the regex module
14617         with Emacs.
14618         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14619         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14620         conftest1.c and conftest2.c but these files were not created.
14621         As far as I can see, this check never worked and nobody reported
14622         it until now, which is a bit worrisome.
14624 2018-06-30  Jim Meyering  <meyering@fb.com>
14626         bootstrap: s/--option val/--option=val/
14627         * build-aux/bootstrap (gnulib_tool_options): Change the
14628         spelling of "--option val" pairs to "--option=val", for
14629         aesthetics, and also so that this file no longer triggers
14630         a common help2man syntax-check warning when copied into
14631         projects like grep, gzip, etc.
14633 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14635         manywarnings: omit -Wswitch-default
14636         This should make things more consistent, as we already ignore
14637         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14638         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14639         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14640         Add -Wswitch-default.
14641         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14642         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14643         Remove -Wswitch-default.
14645         regex: revert most trimming
14646         Problems reported by Bruno Haible in:
14647         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14648         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14649         and wctype back in.  lock because regex users shouldn’t
14650         need to know that regex needs locking, and the rest because
14651         gnulib-tool should ordinarily ignore them anyway.
14653 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14655         regex: trim module dependencies
14656         * modules/regex (Depends-on): Remove gettext-h and lock,
14657         since the regex code should work OK without these modules,
14658         and Emacs uses it that way.  Also remove memcmp, memmove,
14659         and wctype, as these modules are obsolete and should not be
14660         needed any more.
14662 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14664         regex: glibc does not use intprops.h
14665         Maybe we can talk glibc into using intprops.h someday, but
14666         now doesn’t seem to be a good time.
14667         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14668         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14669         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14671 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14673         regex: port to recently proposed glibc regex merge
14674         This patch is inspired by Adhemerval Zanella's recent proposal
14675         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14676         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14677         the glibc side, without keeping Gnulib portable.
14678         * lib/regex.h: Fix a problem with glibc installed-header checking,
14679         as follows:
14680         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14681         (_Restrict_arr_): Prefer __restrict_arr if defined,
14682         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14683         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14684         (build_wcs_upper_buffer, build_upper_buffer)
14685         (re_string_translate_buffer, re_string_context_at):
14686         Move decls here from lib/regex_internal.h, for glibc internal tests.
14687         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14688         glibc BZ #18496.
14689         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14690         -Wunused-value.
14691         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14692         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14693         (bitset_mask): Now static inline, and without any __attribute__
14694         ((unused)) decoration, for glibc internal tests.
14696 2018-06-25  Bruno Haible  <bruno@clisp.org>
14698         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14699         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14700         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14701         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14702         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14703         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14704         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14705         / -lthread / -lpth does not get optimized away by a preceding
14706         --as-needed option.
14708 2018-06-25  Bruno Haible  <bruno@clisp.org>
14710         Continue to use spaces for indentation, not tabs.
14711         * MODULES.html.sh: Untabify.
14712         * doc/regex.texi: Likewise.
14713         * lib/acl-internal.c: Likewise.
14714         * lib/dfa.c: Likewise.
14715         * lib/exclude.c: Likewise.
14716         * lib/exclude.h: Likewise.
14717         * lib/get-permissions.c: Likewise.
14718         * lib/gettimeofday.c: Likewise.
14719         * lib/parse-datetime.y: Likewise.
14720         * lib/pselect.c: Likewise.
14721         * lib/set-permissions.c: Likewise.
14722         * lib/time.in.h: Likewise.
14723         * m4/canonicalize.m4: Likewise.
14724         * m4/gc.m4: Likewise.
14725         * m4/gnulib-common.m4: Likewise.
14726         * m4/pthread_sigmask.m4: Likewise.
14727         * m4/vararrays.m4: Likewise.
14728         * tests/test-digest.h: Likewise.
14729         * tests/test-fcntl-h.c: Likewise.
14730         * tests/test-timespec.c: Likewise.
14731         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14733 2018-06-25  Bruno Haible  <bruno@clisp.org>
14735         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14736         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14737         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14738         -Wjump-misses-init.
14740 2018-06-25  Jim Meyering  <meyering@fb.com>
14742         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14743         * lib/acl-internal.h (free_permission_context): Remove that
14744         attribute directive.  Otherwise, it would provoke this from GCC 9:
14745         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14746           returning 'void' [-Werror=attributes]
14748 2018-06-24  Jim Meyering  <meyering@fb.com>
14750         parse-datetime: accommodate gcc-4.8.5
14751         Bruno Haible reported the build failure in
14752         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14753         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14754         on declaration of new local.
14756 2018-06-24  Bruno Haible  <bruno@clisp.org>
14758         af_alg: Fail in continuable manner on Linux/powerpc64le.
14759         Reported by Assaf Gordon <assafgordon@gmail.com>
14760         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14761         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14762         byte send() as the first round.
14764 2018-06-24  Bruno Haible  <bruno@clisp.org>
14766         af_alg: Fix state of stream after sendfile() succeeds.
14767         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14768         the stream is correctly positioned afterwards.
14769         * modules/crypto/af_alg (Depends-on): Add fflush.
14770         * tests/test-digest.h (test_digest_on_files): Verify that after the
14771         operation the stream is positioned at end of file.
14773 2018-06-24  Jim Meyering  <meyering@fb.com>
14775         canon-host: take GCC9's advice rather than ignoring warning
14776         Pádraig Brady suggested not to ignore this GCC9 advice.
14777         * lib/canon-host.c: Undo preceding change.
14778         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14780         parse-datetime.y: avoid spurious GCC 9 warning
14781         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14782         a function local prior to the first "goto fail".  The prior use would
14783         evoke this:
14784         parse-datetime.y: In function 'parse_datetime2':
14785         parse-datetime.y:1791:19: error: jump skips variable initialization \
14786           [-Werror=jump-misses-init]
14787         parse-datetime.y:2385:2: note: label 'fail' defined here
14788         parse-datetime.y:188:43: note: '({anonymous})' declared here
14789         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14791         canon-host.c: avoid spurious GCC 9 warning
14792         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14794         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14795         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14796         * m4/manywarnings.m4: Remove them.
14797         Otherwise, building coreutils, I would see this:
14798         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14799         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14800         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14801           which is also used by default
14802         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14804 2018-06-24  Bruno Haible  <bruno@clisp.org>
14806         af_alg tests: Add another test.
14807         * tests/test-digest.h (test_digest_on_files): Also check a large file
14808         with a skipped header.
14809         * tests/test-md5.c: Include macros.h.
14810         * tests/test-sha1.c: Likewise.
14811         * tests/test-sha256.c: Likewise.
14812         * tests/test-sha512.c: Likewise.
14813         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14814         * modules/crypto/sha1-tests (Files): Likewise.
14815         * modules/crypto/sha256-tests (Files): Likewise.
14816         * modules/crypto/sha512-tests (Files): Likewise.
14818 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14820         maint: clarify comments about sticky EOF
14821         * lib/af_alg.c: Be more direct that we can't
14822         assume stickiness of EOF for portability reasons.
14823         * lib/md5.c: Clarify that this isn't just a glibc issue.
14824         * lib/sha1.c: Likewise.
14825         * lib/sha256.c: Likewise.
14826         * lib/sha512.c: Likewise.
14828 2018-06-24  Bruno Haible  <bruno@clisp.org>
14830         af_alg: Comment and style improvements.
14831         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14832         (afalg_buffer, afalg_stream): Improve comments.
14834 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14836         af_alg: disable kernel hash functions by default
14837         All the kernel routines were seen to be significantly slower
14838         with these relatively recent components on an i3-2310M system:
14839           kernel-4.10.6-200.fc25.x86_64
14840           openssl-1.0.2m-1.fc25.x86_64
14841         sha1 was nearly twice as slow in the kernel for example.
14842         Further considerations why this should not be the default, at:
14843         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14845         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14846         * m4/gl-openssl.m4: Tweak accordingly.
14848 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14850         af_alg: avoid hangs when reading from streams
14851         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14852         and thus avoid doing a fread() when feof() is set.
14853         * lib/md5.c: Ensure feof() is called before fread().
14854         * lib/sha1.c: Likewise.
14855         * lib/sha256.c: Likewise.
14856         * lib/sha512.c: Likewise.
14858 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14860         af_alg: fix error handling when hash not returned
14861         * lib/af_alg.c (afalg_stream): Handle the case where we've
14862         successfully written data to the kernel in the read/write loop,
14863         but the kernel doesn't respond with the hash.
14865 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14867         libc-config: merge from glibc
14868         * lib/cdefs.h (__inline, __restrict):
14869         Copy from current glibc.  This fixes glibc bug 17721,
14870         which Gnulib had already fixed in a different way.
14871         (__nonnull): Lessen the distance from glibc by using the
14872         glibc definition inside an ‘#ifndef __nonnull’.
14873         (__attribute_nonstring__): New macro, copied from
14874         current glibc.
14875         * lib/libc-config.h (__attribute_nonstring__): New undef.
14876         (__restrict): Remove; workaround no longer needed.
14877         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14878         support more compilers than the glibc __inline can.
14880 2018-06-24  Bruno Haible  <bruno@clisp.org>
14882         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14883         * lib/mbrtowc.c (enc_t): New enum type.
14884         (locale_enc, locale_enc_cached): New functions.
14885         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14886         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14887         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14888         instead.
14889         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14890         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14891         * modules/wcwidth (configure.ac): Invoke it.
14893 2018-06-24  Bruno Haible  <bruno@clisp.org>
14895         wchar-single: Fix test failure in wcwidth tests.
14896         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14897         skip the tests in the C locale.
14899 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14901         crypto: mention --without-linux-crypto in --with-openssl --help
14902         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14903         routines take precedence in --with-openssl help output.
14905 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14907         wchar-single: a new module to enable optimizations in wchar replacements
14908         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14909         GNULIB_WCHAR_SINGLE is enabled.
14910         * lib/wcwidth.c (wcwidth): Likewise.
14912 2018-06-23  Bruno Haible  <bruno@clisp.org>
14914         libc-config: Fix conflict with FreeBSD include files.
14915         * lib/cdefs.h (__nonnull): Remove definition.
14916         * lib/libc-config.h (__nonnull): Remove undefinition.
14918 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14920         random_r: do not crash if state is unaligned
14921         Problem reported by Bruce Korb in:
14922         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14923         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14924         with 'cc -O2 -xmemalign=8s'.
14925         * lib/random_r.c: Include string.h, for memcpy.
14926         (get_int32, set_int32): New functions.
14927         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14928         Use them to avoid assumption that state pointer is aligned.
14929         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14930         * tests/test-random_r.c (test_failed): New function.
14931         (main): Use it, to test for alignment bugs.
14933         random_r: omit unnecessary include
14934         * lib/random_r.c: Do not include limits.h.
14936         random, random_r: merge from glibc
14937         * lib/random.c, lib/random_r.c:
14938         Include libc-config.h if !_LIBC, not config.h unilaterally.
14939         * lib/random.c:
14940         Do not include stdint.h or time.h; not needed.
14941         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14942         (unsafe_state): Rename from generator.  All uses changed.
14943         Use C99-style initializers.
14944         (__random, __srandom, __initstate, __setstate): Rename from
14945         non-underscored version, but define it to non-underscored version
14946         on Gnulib.  Add a lock.
14947         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14948         Likewise.
14949         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14950         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14951         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14952         (__random_r): Use uint32 to fix glibc bug 17343.
14953         * modules/random, modules/random_r (Depends-on): Add libc-config.
14954         Depend on stdint only if $HAVE_RANDOM = 0.
14956 2018-06-19  Jim Meyering  <meyering@fb.com>
14958         README-release: also run any check-very-expensive tests
14959         * top/README-release: Adjust instructions so they run the
14960         check-very-expensive tests when there is such a target.
14962 2018-06-18  Bruno Haible  <bruno@clisp.org>
14964         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14965         * m4/pthread_rwlock_rdlock.m4: Add comment.
14966         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14967         are reader-preferring in glibc.
14968         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
14969         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
14971 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14973         crypto: use byteswap
14974         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
14975         * lib/sm3.c: Include <byteswap.h>.
14976         (SWAP): Use its macros rather than reinventing the wheel.
14977         * modules/crypto/md4, modules/crypto/md5-buffer:
14978         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
14979         * modules/crypto/sha512-buffer, modules/crypto/sm3:
14980         (Depends-on): Add byteswap.
14982 2018-06-17  Pádraig Brady  <P@draigBrady.com>
14984         gendocs.sh: fix support for legacy --texi2html
14985         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
14986         to the default makeinfo invocation.
14987         Reported by Bruce Korb
14989 2018-06-17  Bruno Haible  <bruno@clisp.org>
14991         gettext po infrastructure: Update from current gettext git.
14992         Reported by Akim Demaille <akim@lrde.epita.fr>.
14993         * build-aux/po/Makefile.in.in: Update from current gettext git.
14994         * build-aux/po/remove-potcdate.sin: Likewise.
14995         * config/srclist.txt: Temporarily disable sync for these files.
14997 2018-06-17  Bruno Haible  <bruno@clisp.org>
14999         getloadavg: Return 0 on Windows without Cygwin.
15000         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15002 2018-06-17  Paul Smith  <psmith@gnu.org>
15004         getloadavg: Allow building on Windows without Cygwin
15005         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15006         * m4/getloadavg.m4: Check for unistd.h.
15008 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15010         Port crypto/af_alg to GCC 4.8.4
15011         Problem reported by Peter Simons in:
15012         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15013         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15015 2018-05-27  Colin Watson  <cjwatson@debian.org>
15017         bootstrap: document source fetching in --help
15018         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15020 2018-04-09  Colin Watson  <cjwatson@debian.org>
15022         bootstrap: allow non-submodule control of gnulib
15023         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15024         bootstrap.conf when fetching gnulib using "git clone" or via
15025         GNULIB_SRCDIR.
15027 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15029         crypto: omit stream ops Emacs doesn’t need
15030         * lib/md5.c (md5_stream):
15031         * lib/sha1.c (sha1_stream):
15032         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15033         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15034         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15035         defined.  Emacs needs this, as it does not use the stream
15036         operations and doesn’t need all the af_alg stuff we’ve recently
15037         added.  Perhaps a similar change is needed to the other crypto
15038         modules, but this patch changes only those needed for Emacs.
15039         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15040         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15041         New modules, used by Emacs.
15042         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15043         * modules/crypto/sha512: Rewrite to depend on the new modules.
15045 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15047         fts: avoid a memory leak edge case
15048         * lib/fts.c (fts_open): Set an appropriate fts_level
15049         so that an immediate fts_close() will free the allocation.
15050         * tests/test-fts.c (fts_dealloc): Add a test case which
15051         will trigger under valgrind or address sanitizer.
15052         Fixes https://bugs.gnu.org/31439
15054 2018-05-20  Bruno Haible  <bruno@clisp.org>
15056         wcwidth tests: Fix link error.
15057         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15058         $(LIBUNISTRING).
15060 2018-05-20  Bruno Haible  <bruno@clisp.org>
15062         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15063         * modules/regex (Files): Add m4/glibc21.m4.
15065 2018-05-20  Bruno Haible  <bruno@clisp.org>
15067         localcharset: Optimize.
15068         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15069         platforms where these don't matter. This reduces the table size,
15070         which in turn reduces the lookup time.
15072 2018-05-19  Bruno Haible  <bruno@clisp.org>
15074         localcharset: Map the locale encodings found in newer OSes.
15075         * lib/localcharset.c (alias_table): Add mapping for locale encodings
15076         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
15077         IRIX 6.5, Minix 3.3.
15078         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
15080 2018-05-19  Bruno Haible  <bruno@clisp.org>
15082         localcharset: Move mapping tables into the code. Use a binary search.
15083         * lib/localcharset.h: Document the GNU canonical names for character
15084         encodings here.
15085         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
15086         relocatable.h, configmake.h.
15087         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
15088         macros.
15089         (charset_aliases): Remove variable.
15090         (get_charset_aliases): Remove function.
15091         (struct table_entry): New type.
15092         (alias_table, locale_table): New constants.
15093         (locale_charset): Use the alias_table or locale_table to get the
15094         canonicalized encoding name.
15095         * lib/config.charset: Remove file.
15096         * lib/ref-add.sin: Remove file.
15097         * lib/ref-del.sin: Remove file.
15098         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
15099         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
15100         * modules/localcharset (Notice): Remove.
15101         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
15102         glibc21.m4.
15103         (Depends-on): Remove configmake.
15104         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
15105         (Makefile.am): Simplify.
15106         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
15108 2018-05-19  Bruno Haible  <bruno@clisp.org>
15110         localcharset: Add a manual test.
15111         * tests/test-localcharset.c: New file.
15112         * modules/localcharset-tests: New file.
15114 2018-05-19  Bruno Haible  <bruno@clisp.org>
15116         localcharset: Remove support for obsolete platforms.
15117         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15118         Mac OS X 10.2. Comment out dubious entry for Solaris.
15120 2018-05-19  Jim Meyering  <meyering@fb.com>
15122         gnupload: adjust comment
15123         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15124         more likely we'll remove the just-added code in a year or two.
15126 2018-05-19  Bruno Haible  <bruno@clisp.org>
15128         gnupload: Fix "gpg-agent is not available in this session" error.
15129         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15131 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15133         crypto/af_alg: fix --help
15134         * m4/af_alg.m4: Avoid spurious newline in --help output.
15136 2018-05-13  Bruno Haible  <bruno@clisp.org>
15138         nl_langinfo: Fix compilation error on Android.
15139         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15140         INT_CURR_SYMBOL, etc. only if these items are defined.
15142 2018-05-13  Bruno Haible  <bruno@clisp.org>
15144         truncate: Fix compilation error on Android.
15145         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15146         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15147         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15148         HAVE_TRUNCATE.
15149         * modules/truncate: Likewise.
15150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15151         not HAVE_TRUNCATE.
15152         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15153         HAVE_TRUNCATE.
15154         * doc/posix-functions/truncate.texi: Mention the issue.
15156 2018-05-13  Bruno Haible  <bruno@clisp.org>
15158         pthread: Fix compilation error on Android.
15159         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15160         recursive inclusion of this file.
15162 2018-05-13  Bruno Haible  <bruno@clisp.org>
15164         posix_spawn: Fix compilation error on Android.
15165         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15166         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15167         (posix_spawn_file_actions_t): Consider also the case
15168         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15170 2018-05-13  Bruno Haible  <bruno@clisp.org>
15172         tsearch: Move from K&R C to ANSI C.
15173         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15175 2018-05-13  Bruno Haible  <bruno@clisp.org>
15177         tsearch: Fix compilation error on Android.
15178         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15179         is 0.
15180         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15181         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15182         GNULIB_defined_tsearch is true.
15183         (twalk): Define only if GNULIB_defined_twalk is true.
15184         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15185         is 0.
15186         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15187         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15188         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15190 2018-05-13  Bruno Haible  <bruno@clisp.org>
15192         imaxdiv: Fix compilation error on Android.
15193         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15194         is not defined.
15195         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15196         HAVE_DECL_IMAXDIV, is 0.
15197         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15198         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15200 2018-05-13  Bruno Haible  <bruno@clisp.org>
15202         Support selective inclusion mechanism of recent mingw.org header files.
15203         Reported by Eli Zaretskii <eliz@gnu.org>.
15204         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15205         __need_ssize_t, or __need_time_t is defined, just include the system's
15206         <sys/types.h>.
15207         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15208         include the system's <locale.h>.
15210 2018-05-13  Bruno Haible  <bruno@clisp.org>
15212         Avoid compilation error due to 'mmap' on Android.
15213         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15214         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15215         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15216         Undefine on Android.
15218 2018-05-13  Bruno Haible  <bruno@clisp.org>
15220         Add cross-compilation guesses for Linux systems without glibc.
15221         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15223         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15224         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15225         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15226         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15227         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15228         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15229         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15230         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15231         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15232         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15233         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15234         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15235         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15236         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15237         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15238         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15240 2018-05-13  Bruno Haible  <bruno@clisp.org>
15242         getpagesize: Fix compilation error on Android.
15243         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15244         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15245         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15246         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15247         HAVE_GETPAGESIZE accordingly.
15248         * modules/getcwd (Files): Add m4/getpagesize.m4.
15250 2018-05-13  Bruno Haible  <bruno@clisp.org>
15252         tcgetsid: Fix compilation error on Android.
15253         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15254         AC_CHECK_FUNC.
15256 2018-05-13  Bruno Haible  <bruno@clisp.org>
15258         getpass: Fix configure test for Android.
15259         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15260         AC_CHECK_FUNC.
15262 2018-05-13  Bruno Haible  <bruno@clisp.org>
15264         ffs: Fix compilation error on Android.
15265         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15267 2018-05-13  Bruno Haible  <bruno@clisp.org>
15269         mkfifo: Fix compilation error on Android.
15270         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15271         AC_CHECK_FUNC.
15273 2018-05-13  Bruno Haible  <bruno@clisp.org>
15275         c-strtod: Fix configure test for Android.
15276         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15277         AC_CHECK_FUNC.
15279 2018-05-13  Bruno Haible  <bruno@clisp.org>
15281         random: Fix compilation error on Android.
15282         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15283         AC_CHECK_FUNC.
15285 2018-05-13  Bruno Haible  <bruno@clisp.org>
15287         grantpt: Fix compilation error on Android.
15288         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15289         AC_CHECK_FUNC.
15291 2018-05-13  Bruno Haible  <bruno@clisp.org>
15293         stdioext: Fix compilation errors with newer Android headers.
15294         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15295         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15296         fallbacks for Android.
15297         * lib/fpending.c: Update comments.
15298         * lib/fpurge.c: Likewise.
15299         * lib/freadable.h: Likewise.
15300         * lib/freadable.c: Likewise.
15301         * lib/freadahead.c: Likewise.
15302         * lib/freading.h: Likewise.
15303         * lib/freadptr.c: Likewise.
15304         * lib/fseterr.c: Likewise.
15305         * lib/fwritable.h: Likewise.
15306         * lib/fwritable.c: Likewise.
15307         * lib/fwriting.h: Likewise.
15308         * lib/fwriting.c: Likewise.
15310 2018-05-13  Bruno Haible  <bruno@clisp.org>
15312         doc: Add info about Android versions 2.0 to 8.1.
15313         * doc/**/*.texi: Add info about functions in all released versions of
15314         Bionic.
15316 2018-05-12  Bruno Haible  <bruno@clisp.org>
15318         fseeko: On mingw, don't use the hidden function _fseeki64.
15319         Reported by Eli Zaretskii <eliz@gnu.org>.
15320         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15321         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15323 2018-05-12  Bruno Haible  <bruno@clisp.org>
15325         glob: Choose 'dirent_type' in a way that works better on mingw.
15326         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15327         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15329 2018-05-12  Bruno Haible  <bruno@clisp.org>
15331         execute, spawn-pipe: Avoid warning about redefining 'close'.
15332         Reported by Eli Zaretskii <eliz@gnu.org>.
15333         * lib/execute.c: Undefine 'close' before redefining it.
15334         * lib/spawn-pipe.c: Likewise.
15336 2018-05-12  Bruno Haible  <bruno@clisp.org>
15338         nanosleep: Avoid test failure on mingw when it has nanosleep.
15339         Reported by Eli Zaretskii <eliz@gnu.org>.
15340         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15341         If it does not exist, use a simpler test program that does not call
15342         alarm().
15344 2018-05-10  Bruno Haible  <bruno@clisp.org>
15346         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15347         Reported by Devin Hussey <husseydevin@gmail.com>.
15348         Based on a patch by Paul Eggert.
15349         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15350         as witness of libpthread.
15351         * lib/glthread/cond.h (pthread_in_use): Likewise.
15352         * lib/glthread/thread.h (pthread_in_use): Likewise.
15353         * lib/glthread/tls.h (pthread_in_use): Likewise.
15355 2018-05-10  Bruno Haible  <bruno@clisp.org>
15357         cond tests: Fix compilation error on Solaris.
15358         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15359         macro.
15361 2018-05-10  Bruno Haible  <bruno@clisp.org>
15363         doc: Add partial info about Android 4.3.
15364         * doc/*-functions/*.texi: Add info about functions that were added
15365         to Bionic between Android 4.3 and Android 9.0.
15367 2018-05-10  Bruno Haible  <bruno@clisp.org>
15369         doc: Add info about Android 9.0.
15370         * doc/**/*.texi: Add info about functions and headers in Bionic from
15371         Android 9.0.
15373 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15375         af_alg: fix my typo in afalg_buffer
15376         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15377         (afalg_stream): Simplify and avoid the need for a runtime test
15378         at the end.
15380         af_alg: recover better from crypto failures
15381         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15382         input stream is seekable, by repositioning the stream back to
15383         where it was, possibly by just calling sendfile with an offset
15384         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15385         cases, which lets our callers try again with user-mode code.
15386         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15387         instead of on fflush and lseek.
15389         af_alg: distiguish I/O errors better
15390         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15391         not -EIO, if it’s OK for the caller to try again with user-mode code.
15392         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15393         some other error number) if fflush fails, as the caller should not
15394         try again that case.
15396         af_alg: avoid gotos
15397         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15398         gotos, as they were a source of unreliability and made the code a
15399         bit harder to follow.
15401         af_alg: don’t leak file descriptors into children
15402         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15403         This code should be compiled only on recent GNU/Linux platforms
15404         so we shouldn’t have to also depend on the accept4 module.
15406         af_alg: coalesce socket creation
15407         * lib/af_alg.c (alg_socket): New function.
15408         (afalg_buffer, afalg_stream): Use it.  This avoids some
15409         code duplication and gotos.
15411         af_alg: fix file descriptor leak
15412         * lib/af_alg.c (afalg_stream): Close leak.
15414         af_alg: Pacify --enable-gcc-warnings on GCC 8
15415         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15416         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15418 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15420         af_alg: Pacify --enable-gcc-warnings
15421         Problem reported by Assaf Gordon in:
15422         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15423         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15424         gcc -Wjump-misses-init.
15425         * lib/sha512.c (shaxxx_stream): Now static.
15427 2018-05-06  Bruno Haible  <bruno@clisp.org>
15429         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15430         * lib/af_alg.h (afalg_buffer): New declaration.
15431         * lib/af_alg.c (afalg_buffer): New function.
15433 2018-05-06  Bruno Haible  <bruno@clisp.org>
15435         af_alg: Avoid warnings.
15436         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15437         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15439 2018-05-06  Bruno Haible  <bruno@clisp.org>
15441         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15442         * tests/bench-digest.h: New file.
15443         * tests/bench-md5.c: New file.
15444         * tests/bench-sha1.c: New file.
15445         * tests/bench-sha224.c: New file.
15446         * tests/bench-sha256.c: New file.
15447         * tests/bench-sha384.c: New file.
15448         * tests/bench-sha512.c: New file.
15449         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15450         tests/bench-digest.h.
15451         (Depends-on): Add getrusage, gettimeofday.
15452         (Makefile.am): Add variables to build bench-md5.
15453         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15454         tests/bench-digest.h.
15455         (Depends-on): Add getrusage, gettimeofday.
15456         (Makefile.am): Add variables to build bench-sha1.
15457         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15458         tests/bench-sha256.c, tests/bench-digest.h.
15459         (Depends-on): Add getrusage, gettimeofday.
15460         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15461         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15462         tests/bench-sha512.c, tests/bench-digest.h.
15463         (Depends-on): Add getrusage, gettimeofday.
15464         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15466 2018-05-06  Bruno Haible  <bruno@clisp.org>
15468         af_alg: Fix a resource leak.
15469         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15470         New local variable 'result'.
15472 2018-05-06  Bruno Haible  <bruno@clisp.org>
15474         af_alg: Fix bug with streams that are not at position 0.
15475         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15476         assume that the stream is positioned at position 0.
15477         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15478         of the stream.
15479         * lib/md5.h (md5_stream): Likewise.
15480         * lib/sha1.h (sha1_stream): Likewise.
15481         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15482         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15483         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15485         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15486         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15487         stream that is not positioned at the beginning.
15489 2018-05-06  Bruno Haible  <bruno@clisp.org>
15491         af_alg: Add configure option to enable/disable use of Linux crypto API.
15492         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15493         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15494         USE_LINUX_CRYPTO_API.
15495         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15496         * lib/af_alg.c: Likewise.
15498 2018-05-06  Bruno Haible  <bruno@clisp.org>
15500         Followup to 'af_alg: New module.'.
15501         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15502         * modules/crypto/sha1 (Depends-on): Likewise.
15503         * modules/crypto/sha256 (Depends-on): Likewise.
15504         * modules/crypto/sha512 (Depends-on): Likewise.
15506 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15508         crypto/{md5,sha1,sha256,sha512}: simplify
15509         * lib/md5.c (md5_stream):
15510         * lib/sha1.c (sha1_stream):
15511         * lib/sha256.c (shaxxx_stream):
15512         Simplify, partly by assuming C99.
15513         * lib/sha256.c (shaxxx_stream):
15514         New function, which implements both sha256 and sha224.
15515         Simplify, partly by assuming C99.
15516         (sha256_stream, sha224_stream):
15517         Use it to avoid code duplication, removing a FIXME.
15518         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15519         Likewise.
15521         af_alg: Improve comments.
15522         * lib/af_alg.h: Use imperatives and tighten up wording.
15524 2018-05-05  Bruno Haible  <bruno@clisp.org>
15526         af_alg: Improve comments.
15527         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15529 2018-05-05  Bruno Haible  <bruno@clisp.org>
15531         af_alg: New module.
15532         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15533         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15534         * lib/md5.c: Include "af_alg.h" unconditionally.
15535         (md5_stream): Invoke afalg_stream unconditionally.
15536         * lib/sha1.c: Include "af_alg.h" unconditionally.
15537         (sha1_stream): Invoke afalg_stream unconditionally.
15538         * lib/sha256.c: Include "af_alg.h" unconditionally.
15539         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15540         * lib/sha512.c: Include "af_alg.h" unconditionally.
15541         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15542         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15543         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15544         * modules/crypto/af_alg: New file.
15545         * modules/crypto/md5 (Files): Remove files that are now in the
15546         'crypto/af_alg' module.
15547         (Depends-on): Add crypto/af_alg.
15548         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15549         (Makefile.am): Don't mention af_alg.c here.
15550         * modules/crypto/sha1 (Files): Remove files that are now in the
15551         'crypto/af_alg' module.
15552         (Depends-on): Add crypto/af_alg.
15553         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15554         (Makefile.am): Don't mention af_alg.c here.
15555         * modules/crypto/sha256 (Files): Remove files that are now in the
15556         'crypto/af_alg' module.
15557         (Depends-on): Add crypto/af_alg.
15558         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15559         (Makefile.am): Don't mention af_alg.c here.
15560         * modules/crypto/sha512 (Files): Remove files that are now in the
15561         'crypto/af_alg' module.
15562         (Depends-on): Add crypto/af_alg.
15563         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15564         (Makefile.am): Don't mention af_alg.c here.
15566 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15568         crypto tests: pacify GCC
15569         * tests/test-digest.h (test_digest_on_files):
15570         Don’t assume digest size fits in int (!).
15572         af_alg: minor style improvements
15573         * lib/af_alg.c (afalg_stream): Prefer C99 style
15574         decl-after-statement, since we’re already assuming C99.  Clarify
15575         by strengthening the bind test and omit unnecessary assignment.
15577 2018-05-05  Bruno Haible  <bruno@clisp.org>
15579         af_alg: Fix bug on empty files.
15580         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15581         stream is empty.
15583 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15585         sys-limits.h: new file for crypto and safe I/O
15586         * lib/af_alg.c: Include sys-limits.h.
15587         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15588         (afalg_stream): Also reject negative sizes for sendfile; they
15589         should not happen and the code is a bit cleaner and faster this way.
15590         * lib/safe-read.c: Include sys-limits.h.
15591         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15592         * lib/sys-limits.h: New file, with values and commentary derived
15593         from the old safe-read.c and from GNU Emacs sysdep.c.
15594         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15595         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15596         Add lib/sys-limits.h to Files section.
15598 2018-05-05  Bruno Haible  <bruno@clisp.org>
15600         af_alg: Improve function signature.
15601         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15602         * lib/af_alg.c (afalg_stream): Likewise.
15603         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15605 2018-05-05  Bruno Haible  <bruno@clisp.org>
15607         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15608         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15609         * modules/crypto/sha1 (Depends-on): Likewise.
15610         * modules/crypto/sha256 (Depends-on): Likewise.
15611         * modules/crypto/sha512 (Depends-on): Likewise.
15613 2018-05-05  Bruno Haible  <bruno@clisp.org>
15615         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15616         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15617         * modules/crypto/sha1 (Depends-on): Likewise.
15618         * modules/crypto/sha256 (Depends-on): Likewise.
15619         * modules/crypto/sha512 (Depends-on): Likewise.
15621 2018-05-05  Bruno Haible  <bruno@clisp.org>
15623         af_alg: Add documentation.
15624         * lib/af_alg.h: Add comments.
15626 2018-05-05  Bruno Haible  <bruno@clisp.org>
15628         sha512: Add tests.
15629         * tests/test-sha512.c: New file.
15630         * modules/crypto/sha512-tests: New file.
15632 2018-05-05  Bruno Haible  <bruno@clisp.org>
15634         sha256: Add tests.
15635         * tests/test-sha256.c: New file.
15636         * modules/crypto/sha256-tests: New file.
15638 2018-05-05  Bruno Haible  <bruno@clisp.org>
15640         sha1 tests: Add test for sha1_stream.
15641         * tests/test-sha1.c: Include test-digest.h.
15642         (main): Invoke test_digest_on_files on 'sha1_stream'.
15643         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15645 2018-05-05  Bruno Haible  <bruno@clisp.org>
15647         md5 tests: Add test for md5_stream.
15648         * tests/test-digest.h: New file.
15649         * tests/test-md5.c: Include test-digest.h.
15650         (main): Invoke test_digest_on_files on 'md5_stream'.
15651         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15653 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15655         md5sum: Use AF_ALG when available.
15656         * lib/md5.c: Include af_alg.h.
15657         (md5_stream): Use afalg_stream when available.
15658         * modules/crypto/md5 (Files): Add the af_alg files.
15659         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15660         (Makefile.am): Add af_alg.c.
15662 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15664         sha512sum: Use AF_ALG when available.
15665         * lib/sha512.c: Include af_alg.h.
15666         (sha512_stream, sha384_stream): Use afalg_stream when available.
15667         * modules/crypto/sha512 (Files): Add the af_alg files.
15668         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15669         (Makefile.am): Add af_alg.c.
15671 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15673         sha256sum: Use AF_ALG when available.
15674         * lib/sha256.c: Include af_alg.h.
15675         (sha256_stream, sha224_stream): Use afalg_stream when available.
15676         * modules/crypto/sha256 (Files): Add the af_alg files.
15677         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15678         (Makefile.am): Add af_alg.c.
15680 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15682         sha1sum: Use AF_ALG when available.
15683         * lib/af_alg.h: New file.
15684         * lib/af_alg.c: New file.
15685         * lib/sha1.c: Include af_alg.h.
15686         (sha1_stream): Use afalg_stream when available.
15687         * m4/linux-if-alg.m4: New file.
15688         * modules/crypto/sha1 (Files): Add the new files.
15689         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15690         (Makefile.am): Add af_alg.c.
15692 2018-05-05  Bruno Haible  <bruno@clisp.org>
15694         all: Replace more http URLs by https URLs.
15695         * lib/localename.c: Use https: URL.
15696         * lib/timespec.h: Likewise.
15698 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15700         maint: port more modules to GCC 8
15701         * lib/dirname.h (base_name):
15702         * lib/exclude.h (new_exclude):
15703         * lib/xstrndup.h (xstrndup):
15704         Add malloc attribute.
15705         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15706         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15707         This pacifies GCC 8.
15708         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15709         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15711 2018-05-03  Bruno Haible  <bruno@clisp.org>
15713         Simplify code. Drop support for Borland C++ on Windows.
15714         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15715         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15716         'defined _WIN32'.
15717         * lib/canonicalize-lgpl.c: Likewise.
15718         * lib/classpath.c: Likewise.
15719         * lib/clean-temp.c: Likewise.
15720         * lib/csharpexec.c: Likewise.
15721         * lib/ctime.c: Likewise.
15722         * lib/dosname.h: Likewise.
15723         * lib/dup2.c: Likewise.
15724         * lib/errno.in.h: Likewise.
15725         * lib/error.c: Likewise.
15726         * lib/euidaccess.c: Likewise.
15727         * lib/execute.c: Likewise.
15728         * lib/fcntl.in.h: Likewise.
15729         * lib/fcntl.c: Likewise.
15730         * lib/filename.h: Likewise.
15731         * lib/findprog.c: Likewise.
15732         * lib/flock.c: Likewise.
15733         * lib/fopen.c: Likewise.
15734         * lib/freopen.c: Likewise.
15735         * lib/fstat.c: Likewise.
15736         * lib/fsync.c: Likewise.
15737         * lib/gc-gnulib.c: Likewise.
15738         * lib/get-rusage-data.c: Likewise.
15739         * lib/getaddrinfo.c: Likewise.
15740         * lib/getdelim.c: Likewise.
15741         * lib/getdtablesize.c: Likewise.
15742         * lib/gethostname.c: Likewise.
15743         * lib/getlogin.c: Likewise.
15744         * lib/getlogin_r.c: Likewise.
15745         * lib/getopt.c: Likewise.
15746         * lib/getpagesize.c: Likewise.
15747         * lib/getpass.c: Likewise.
15748         * lib/getrusage.c: Likewise.
15749         * lib/gettimeofday.c: Likewise.
15750         * lib/glob.c: Likewise.
15751         * lib/inttypes.in.h: Likewise.
15752         * lib/isapipe.c: Likewise.
15753         * lib/javaexec.c: Likewise.
15754         * lib/link.c: Likewise.
15755         * lib/localcharset.c: Likewise.
15756         * lib/localename.h: Likewise.
15757         * lib/localename.c: Likewise.
15758         * lib/localtime.c: Likewise.
15759         * lib/lseek.c: Likewise.
15760         * lib/mbsinit.c: Likewise.
15761         * lib/mkdir.c: Likewise.
15762         * lib/msvc-nothrow.h: Likewise.
15763         * lib/nanosleep.c: Likewise.
15764         * lib/nl_langinfo.c: Likewise.
15765         * lib/nonblocking.c: Likewise.
15766         * lib/nproc.c: Likewise.
15767         * lib/open.c: Likewise.
15768         * lib/openpty.c: Likewise.
15769         * lib/pathmax.h: Likewise.
15770         * lib/pipe-filter-aux.c: Likewise.
15771         * lib/pipe-filter-gi.c: Likewise.
15772         * lib/pipe-filter-ii.c: Likewise.
15773         * lib/pipe.c: Likewise.
15774         * lib/pipe2.c: Likewise.
15775         * lib/poll.c: Likewise.
15776         * lib/popen.c: Likewise.
15777         * lib/posix_openpt.c: Likewise.
15778         * lib/printf-parse.c: Likewise.
15779         * lib/progreloc.c: Likewise.
15780         * lib/putenv.c: Likewise.
15781         * lib/read.c: Likewise.
15782         * lib/relocatable.c: Likewise.
15783         * lib/rename.c: Likewise.
15784         * lib/same-inode.h: Likewise.
15785         * lib/secure_getenv.c: Likewise.
15786         * lib/select.c: Likewise.
15787         * lib/sethostname.c: Likewise.
15788         * lib/setlocale.c: Likewise.
15789         * lib/sigaction.c: Likewise.
15790         * lib/sigprocmask.c: Likewise.
15791         * lib/sleep.c: Likewise.
15792         * lib/spawn-pipe.h: Likewise.
15793         * lib/spawn-pipe.c: Likewise.
15794         * lib/spawni.c: Likewise.
15795         * lib/stat-time.h: Likewise.
15796         * lib/stat-w32.c: Likewise.
15797         * lib/stat.c: Likewise.
15798         * lib/stdio.in.h: Likewise.
15799         * lib/stdio-impl.h: Likewise.
15800         * lib/stdio-read.c: Likewise.
15801         * lib/stdio-write.c: Likewise.
15802         * lib/stdlib.in.h: Likewise.
15803         * lib/strerror_r.c: Likewise.
15804         * lib/strftime-fixes.c: Likewise.
15805         * lib/sys_stat.in.h: Likewise.
15806         * lib/sys_types.in.h: Likewise.
15807         * lib/sys_wait.in.h : Likewise.
15808         * lib/system-quote.h: Likewise.
15809         * lib/system-quote.c: Likewise.
15810         * lib/tmpdir.c: Likewise.
15811         * lib/tzset.c: Likewise.
15812         * lib/uname.c: Likewise.
15813         * lib/unistd.in.h: Likewise.
15814         * lib/utime.in.h: Likewise.
15815         * lib/utime.c: Likewise.
15816         * lib/utimecmp.c: Likewise.
15817         * lib/utimens.c: Likewise.
15818         * lib/vasnprintf.c: Likewise.
15819         * lib/vma-iter.h: Likewise.
15820         * lib/vma-iter.c: Likewise.
15821         * lib/wait-process.c: Likewise.
15822         * lib/wcsftime.c: Likewise.
15823         * lib/wctype.in.h: Likewise.
15824         * lib/write.c: Likewise.
15825         * tests/nap.h: Likewise.
15826         * tests/test-cloexec.c: Likewise.
15827         * tests/test-dup-safer.c: Likewise.
15828         * tests/test-dup2.c: Likewise.
15829         * tests/test-dup3.c: Likewise.
15830         * tests/test-fcntl.c: Likewise.
15831         * tests/test-get-rusage-data.c: Likewise.
15832         * tests/test-getaddrinfo.c: Likewise.
15833         * tests/test-getlogin.h: Likewise.
15834         * tests/test-isatty.c: Likewise.
15835         * tests/test-localename.c: Likewise.
15836         * tests/test-mbrtowc-w32.c: Likewise.
15837         * tests/test-nonblocking.c: Likewise.
15838         * tests/test-nonblocking-pipe-main.c: Likewise.
15839         * tests/test-nonblocking-socket-main.c: Likewise.
15840         * tests/test-nonblocking-socket.h: Likewise.
15841         * tests/test-pipe.c: Likewise.
15842         * tests/test-pipe2.c: Likewise.
15843         * tests/test-poll.c: Likewise.
15844         * tests/test-pthread_sigmask1.c: Likewise.
15845         * tests/test-select.h: Likewise.
15846         * tests/test-sethostname2.c: Likewise.
15847         * tests/test-sigprocmask.c: Likewise.
15848         * tests/test-spawn-pipe-child.c: Likewise.
15849         * tests/test-stat-time.c: Likewise.
15850         * tests/test-system-quote-main.c: Likewise.
15851         * tests/test-utimens-common.h: Likewise.
15852         * tests/test-wcrtomb-w32.c: Likewise.
15853         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15855         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15856         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15857         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15858         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15859         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15860         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15862         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15863         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15864         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15865         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15866         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15867         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15868         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15870 2018-05-02  Bruno Haible  <bruno@clisp.org>
15872         localename: Fix test failures on mingw.
15873         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15874         native Windows.
15875         (gl_locale_name_posix): Move code specific to native Windows here.
15876         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15877         Accept result without charset suffix, as it appears on mingw.
15879 2018-04-28  Paul Smith  <psmith@gnu.org>
15881         bootstrap: Avoid gnulib operations if not needed
15882         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15883         Set $gnulib_extra_files early so it can be overridden in .conf.
15884         Remove redundant --import flag from $gnulib_tool_options.
15885         Set $use_gnulib to false if no gnulib modules or files are needed.
15886         If $use_gnulib is false, don't do anything related to gnulib.
15887         A lot of this is just whitespace (indentation) changes.
15889 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15891         manywarnings: port to GCC 8.0
15892         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15893         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15894         fact that the GCC help message now mentions operands for
15895         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15896         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15897         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15898         and -Wunused-const-variable.
15899         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15900         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15901         -Wmissing-attributes, -Wmultistatement-macros,
15902         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15903         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15905 2018-04-24  Bruno Haible  <bruno@clisp.org>
15907         sys_socket: Make SO_REUSEPORT available across platforms.
15908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15909         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15910         * doc/posix-headers/sys_socket.texi: Mention the issue.
15911         * tests/test-poll.c (SO_REUSEPORT): Remove.
15912         * tests/test-select.h: Include <sys/socket.h>.
15913         (SO_REUSEPORT): Remove.
15914         * modules/select-tests (Depends-on): Add 'sys_socket'.
15916 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15918         localcharset: short-circuit the search for an alias on a Mac
15919         * lib/localcharset.c (get_charset_aliases): Add a tautological
15920         UTF-8 entry to speed up the search for this case.
15921         Most machines default to a UTF-8 locale nowadays, so begin the
15922         list of aliases with a dummy UTF-8 entry so it will be found
15923         immediately and a time-consuming search through the rest of
15924         the list is avoided.
15926 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15928         fts: add comment
15929         * lib/fts.c (fts_build): Explain why ==, not >.
15930         See remark by Bernhard Voelker in:
15931         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15933         fts: fix bug in find across filesystems
15934         This fixes a bug I introduced last summer.
15935         Problem reported by Kamil Dudka in:
15936         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15937         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15938         (leaf_optimization):
15939         New arg for file descriptor.  All callers changed.
15940         (fts_build): Check for whether inodes should be sorted
15941         before closing the directory.
15943 2018-04-07  Bruno Haible  <bruno@clisp.org>
15945         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15946         Reported by Genki Sky <sky@genki.is>.
15947         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15948         version 0.9.10 or newer.
15949         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15950         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15951         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15952         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15953         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15955 2018-04-07  Bruno Haible  <bruno@clisp.org>
15957         execute: Update comment.
15958         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15960 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15962         fts: treat CIFS like NFS
15963         Problem reported by Kamil Dudka in:
15964         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15965         * lib/fts.c (S_MAGIC_CIFS): New macro.
15966         (dirent_inode_sort_may_be_useful, leaf_optimization):
15967         Treat CIFS like NFS.
15969 2018-03-28  Bruno Haible  <bruno@clisp.org>
15971         c-stack: Fix possible build failure on some platforms.
15972         * lib/c-stack.c (die): Define whenever this function is referenced.
15974 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
15976         time_rz: fix workaround for Mac OS X 10.6 infloop
15977         Problems reported by Charles A. Roelli (Bug#27736#117).
15978         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
15979         Also, discard output, which clutters the 'configure' log.
15981 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15983         havelib: port to Solaris 10 /bin/sh
15984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
15985         instead of '! test EXPR'.
15987 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15989         time_rz: work around Mac OS X 10.6 infloop
15990         * doc/posix-functions/localtime.texi:
15991         * doc/posix-functions/localtime_r.texi: Mention the bug.
15992         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
15993         better to fix localtime and localtime_r instead, but that would be
15994         more work and is not needed to fix the Emacs problem.
15995         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
15997 2018-03-24  Jim Meyering  <meyering@fb.com>
15999         test-version-etc.sh: don't use diff directly: use init.sh's compare
16000         We'd rather not sacrifice readable "diff -u" output even for
16001         "diff -c" output (not supported by busybox) or for even less
16002         readable ed-style "diff" output.  So use init.sh's compare function
16003         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16004         Remove "./" from invocation of test-version-etc, so we use path.
16005         And s/diff/compare/.
16006         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16007         to get init.sh.
16008         Prompted by Eric Blake's comments in
16009         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16011 2018-03-24  Bruno Haible  <bruno@clisp.org>
16013         javacomp-script, javacomp: Add support for Java 10.
16014         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16015         target-version 10.
16016         * lib/javaversion.h: Update comments.
16017         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16018         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16019         TARGET_VERSION_BOUND, target_version_index,
16020         corresponding_classfile_version): Accept source_version 10 and
16021         target_version 10.
16022         * lib/javacomp.h: Update comments accordingly.
16024 2018-03-24  Bruno Haible  <bruno@clisp.org>
16026         javacomp-script, javacomp: Update comments.
16027         * m4/javacomp.m4: Update comments regarding gcj.
16028         * lib/javacomp.h: Likewise.
16030 2018-03-24  Bruno Haible  <bruno@clisp.org>
16032         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16033         * lib/javaversion.h: Update comments.
16034         * lib/javacomp.h: Likewise.
16035         * lib/javacomp.c (default_target_version, source_version_index,
16036         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16037         "1.9".
16038         (TARGET_VERSION_BOUND): Bump to 9.
16039         (target_version_index, corresponding_classfile_version): Recognize "9"
16040         instead of "1.9".
16041         (get_source_version_for_javac): New function.
16042         (is_envjavac_nongcj_usable, is_javac_usable): Add
16043         source_version_for_javac argument.
16044         (compile_java_class): Determine and pass source_version_for_javac.
16045         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16046         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16047         appropriate.
16049 2018-03-23  Jim Meyering  <meyering@fb.com>
16051         test-version-etc.sh: port to diff without -c
16052         * tests/test-version-etc.sh: Don't use diff's -c option.
16053         This caused spurious test failure on Alpine Linux, which
16054         uses busybox's diff. Reported by Assaf Gordon in
16055         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16057 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16059         c-stack: port to recent GCC build
16060         Problem reported by The Fireplace (Bug#30913).
16061         * lib/c-stack.c (die): Define only if used.
16063 2018-03-20  Bruno Haible  <bruno@clisp.org>
16065         euidaccess: Port to native Windows.
16066         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16067         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16069 2018-03-19  Bruno Haible  <bruno@clisp.org>
16071         javacomp: Add support for Java 7, 8, 9.
16072         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16073         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16074         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
16075         and target_version 1,7, 1.8, 1.9.
16076         * lib/javacomp.h: Update comments accordingly.
16078 2018-03-19  Bruno Haible  <bruno@clisp.org>
16080         javacomp-script: Add support for Java 9.
16081         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
16082         target-version 1.9.
16084 2018-03-16  Bruno Haible  <bruno@clisp.org>
16086         glob: Don't compile replacements on recent glibc systems.
16087         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
16088         REPLACE_GLOB is 0, include the system's <glob.h> and use
16089         _GL_CXXALIAS_SYS.
16090         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
16091         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
16092         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
16093         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
16094         Remove snippet/warn-on-use.
16095         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
16096         (Makefile.am): Create glob.h always. Update list of substitutions in
16097         glob.h. Don't depend on $(WARN_ON_USE_H).
16099 2018-03-16  Bruno Haible  <bruno@clisp.org>
16101         glob: Fix link error on native Windows.
16102         * modules/glob (Depends-on): Add 'lstat'.
16104 2018-03-15  Bruno Haible  <bruno@clisp.org>
16106         glob: Fix compilation error in C++ mode.
16107         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16109 2018-03-15  Bruno Haible  <bruno@clisp.org>
16111         host-cpu-c-abi: Support for RISC-V CPU.
16112         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16113         riscv32 and riscv64 ABIs.
16114         References:
16115         https://github.com/riscv/riscv-toolchain-conventions
16116         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16117         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16119 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16121         fflush: be more paranoid about libio.h change
16122         Suggested by Eli Zaretskii in:
16123         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16124         * lib/fbufmode.c (fbufmode):
16125         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16126         (disable_seek_optimization, rpl_fflush):
16127         * lib/fpending.c (__fpending):
16128         * lib/fpurge.c (fpurge):
16129         * lib/freadable.c (freadable):
16130         * lib/freadahead.c (freadahead):
16131         * lib/freading.c (freading):
16132         * lib/freadptr.c (freadptr):
16133         * lib/freadseek.c (freadptrinc):
16134         * lib/fseeko.c (fseeko):
16135         * lib/fseterr.c (fseterr):
16136         * lib/fwritable.c (fwritable):
16137         * lib/fwriting.c (fwriting):
16138         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16140 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16142         maint: write-file-hooks -> before-save-hook
16143         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16144         it's time to use the recommended replacement.
16145         Problem reported by Glenn Morris in:
16146         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16147         * build-aux/announce-gen, build-aux/bootstrap:
16148         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16149         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16150         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16151         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16152         * build-aux/update-copyright, build-aux/useless-if-before-free:
16153         * build-aux/vc-list-files:
16154         Update hook usage for files where Gnulib is the canonical source.
16156 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16158         binary-io: pacify gcc -Wunused-parameter
16159         Problem reported by Reuben Thomas in:
16160         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16161         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16162         Use _GL_UNUSED where appropriate.
16164         fflush: adjust to glibc 2.28 libio.h removal
16165         Problem reported by Daniel P. Berrangé in:
16166         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16167         * lib/fbufmode.c (fbufmode):
16168         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16169         (disable_seek_optimization, rpl_fflush):
16170         * lib/fpending.c (__fpending):
16171         * lib/fpurge.c (fpurge):
16172         * lib/freadable.c (freadable):
16173         * lib/freadahead.c (freadahead):
16174         * lib/freading.c (freading):
16175         * lib/freadptr.c (freadptr):
16176         * lib/freadseek.c (freadptrinc):
16177         * lib/fseeko.c (fseeko):
16178         * lib/fseterr.c (fseterr):
16179         * lib/fwritable.c (fwritable):
16180         * lib/fwriting.c (fwriting):
16181         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16182         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16183         Define if not already defined.
16185 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16187         environ: fix link error on 32-bit Cygwin
16188         Problem reported for GNU Emacs by Ken Brown in:
16189         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16190         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16192 2018-02-24  Bruno Haible  <bruno@clisp.org>
16194         mbrtowc tests: Fix regression on glibc.
16195         Reported by Bernhard Voelker.
16196         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16198 2018-02-24  Bruno Haible  <bruno@clisp.org>
16200         striconveha, uniconv/*: Avoid test failures on musl libc.
16201         * tests/iconvsupport.c: New file.
16202         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16203         does not support the ISO-2022-JP-2 encoding.
16204         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16205         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16206         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16207         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16208         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16209         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16210         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16211         (Makefile.am): Link test-striconveha with iconvsupport.o.
16212         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16213         tests/iconvsupport.c.
16214         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16215         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16216         tests/iconvsupport.c.
16217         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16218         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16219         tests/iconvsupport.c.
16220         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16221         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16222         tests/iconvsupport.c.
16223         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16224         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16225         tests/iconvsupport.c.
16226         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16227         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16228         tests/iconvsupport.c.
16229         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16231 2018-02-24  Bruno Haible  <bruno@clisp.org>
16233         localename: Add support for musl libc.
16234         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16235         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16236         on Linux platforms which define NL_LOCALE_NAME.
16238 2018-02-24  Bruno Haible  <bruno@clisp.org>
16240         mbrtowc tests: Don't make assumptions about the charset the C locale.
16241         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16242         particular mapping in the C locale.
16244 2018-02-24  Bruno Haible  <bruno@clisp.org>
16246         ptsname_r: Don't expect that this function sets errno.
16247         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16248         from ptsname_r().
16249         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16251 2018-02-23  Bruno Haible  <bruno@clisp.org>
16253         xmalloca: pacify gcc -Wbad-function-cast
16254         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16256 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16258         nl_langinfo: pacify gcc -Wunused-function
16259         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16260         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16261         this case.  Without this change, I got a diagnostic when building
16262         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16264         same: pacify gcc -Wunused-variable
16265         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16266         Omit unused variable.
16268         malloca: pacify gcc -Wbad-function-cast
16269         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16270         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16271         To pacify GCC, I had to cast alloca’s result to some type other
16272         than void * before casting that to uintptr_t.
16274 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16276         utimecmp: new function utimecmpat
16277         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16278         Do not include utimens.h.
16279         (utimecmpat): New function, generalizing utimecmp.
16280         (utimecmp): Now a thin layer around utimecmpat.
16281         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16282         utimensat instead of on lstat and utimens.
16284         same: new function same_nameat
16285         * lib/same.c: Include fcntl.h.
16286         * lib/same.c (same_nameat): New function, generalizing same_name.
16287         (same_name): Now a thin layer around same_nameat.
16288         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16289         * modules/same (Depends-on): Depend on fstatat, openat.
16291 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16293         warnings: Add support for Objective C.
16294         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16295         macro.
16297 2018-02-17  Bruno Haible  <bruno@clisp.org>
16299         lock: Fix test-once1 crash on FreeBSD11.
16300         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16301         'pthread_create', not 'pthread_cancel'.
16303 2018-02-17  Bruno Haible  <bruno@clisp.org>
16305         lock: Add test of gl_once.
16306         * tests/test-once.c: New file.
16307         * modules/lock-tests (Files): Add it.
16308         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16310 2018-02-17  Bruno Haible  <bruno@clisp.org>
16312         thread: Fix compilation error on IRIX.
16313         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16314         needed; include it outside the C++ extern "C" {} block.
16315         * doc/posix-headers/pthread.texi: Mention the problem with
16316         pthread_atfork on IRIX.
16318 2018-02-04  Bruno Haible  <bruno@clisp.org>
16320         nl_langinfo: Override the system's nl_langinfo() when needed.
16321         Reported by Jim Meyering.
16322         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16323         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16325 2018-02-04  Bruno Haible  <bruno@clisp.org>
16327         signal-h, monetary, strings: Fix build failure in some cases.
16328         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16329         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16330         as delimiter in sed command, not '|'.
16331         * modules/monetary (Makefile.am): Likewise.
16332         * modules/strings (Makefile.am): Likewise.
16334 2018-02-03  Jim Meyering  <meyering@fb.com>
16336         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16337         * top/maint.mk (sc_file_system): Don't complain about
16338         "/proc/filesystems".
16340 2018-02-03  Bruno Haible  <bruno@clisp.org>
16342         stdlib: Fix compilation error on OpenIndiana.
16343         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16344         <sys/time.h>.
16345         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16346         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16348 2018-02-03  Bruno Haible  <bruno@clisp.org>
16350         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16351         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16352         and use $EGREP instead of 'grep -E'.
16353         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16354         'grep -E'.
16356 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16358         malloca: Add a compile-time verification.
16359         * lib/malloca.c (small_t): Verify that it is wide enough.
16360         * modules/malloca (Depends-on): Add verify.
16362 2018-02-02  Bruno Haible  <bruno@clisp.org>
16364         malloca: Add an argument check.
16365         Suggested by Paul Eggert.
16366         * lib/malloca.c (freea): Check against an invalid argument.
16368 2018-02-02  Bruno Haible  <bruno@clisp.org>
16370         localename: Add support for OpenIndiana.
16371         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16372         Solaris 11 variants with uselocale() but without getlocalename_l().
16374 2018-02-02  Bruno Haible  <bruno@clisp.org>
16376         malloca, xmalloca: Make multithread-safe.
16377         Reported by Florian Weimer <fweimer@redhat.com>.
16378         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16379         * lib/malloca.h (malloca): In the stack allocation case, return a
16380         pointer that is a multiple of 2 * sa_alignment_max.
16381         (sa_increment): Remove enum item.
16382         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16383         a pointer that is a multiple of 2 * sa_alignment_max.
16384         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16385         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16386         HASH_TABLE_SIZE, mmalloca_results): Remove.
16387         (small_t): New type.
16388         (mmalloca, free): Rewritten.
16389         * lib/malloca.valgrind: Remove file.
16390         * modules/malloca (Files): Remove it.
16391         (Depends-on): Remove verify.
16393 2018-01-31  Bruno Haible  <bruno@clisp.org>
16395         environ: Fix link error on 64-bit Cygwin.
16396         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16397         __declspec(dllimport) attribute.
16398         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16400 2018-01-30  Bruno Haible  <bruno@clisp.org>
16402         get-rusage-data: Add support for Minix 3.
16403         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16405 2018-01-30  Bruno Haible  <bruno@clisp.org>
16407         vma-iter: Add support for Minix 3.
16408         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16409         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16411 2018-01-27  Bruno Haible  <bruno@clisp.org>
16413         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16414         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16416         _HPUX_ALT_XOPEN_SOCKET_API.
16417         * modules/accept (Depends-on): Add 'extensions'.
16418         * modules/getpeername (Depends-on): Likewise.
16419         * modules/getsockname (Depends-on): Likewise.
16420         * modules/getsockopt (Depends-on): Likewise.
16421         * modules/recvfrom (Depends-on): Likewise.
16422         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16423         * doc/posix-functions/getpeername.texi: Likewise.
16424         * doc/posix-functions/getsockname.texi: Likewise.
16425         * doc/posix-functions/getsockopt.texi: Likewise.
16426         * doc/posix-functions/recvfrom.texi: Likewise.
16428 2018-01-27  Bruno Haible  <bruno@clisp.org>
16430         getsockname tests: More tests.
16431         * tests/test-getsockname.c (open_server_socket): New function, mostly
16432         copied from test-poll.c.
16433         (main): Check that getsockname fills in addr.
16434         * modules/getsockname-tests (Depends-on): Add the necessary
16435         dependencies.
16436         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16438 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16440         manywarnings: fix maintainer comment
16441         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16442         it does not mistakenly think that ‘-1)’ is an option.
16444 2018-01-26  Bruno Haible  <bruno@clisp.org>
16446         langinfo: Fix last commit.
16447         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16448         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16450 2018-01-24  Bruno Haible  <bruno@clisp.org>
16452         langinfo, nl_langinfo: Add support for alternative month names.
16453         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16454         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16455         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16456         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16457         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16458         * doc/posix-functions/nl_langinfo.texi: Likewise.
16460 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16462         Merge strftime.c changes from glibc
16463         This incorporates:
16464         2017-11-14 [BZ #10871] Implement alternative month names
16465         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16466         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16467         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16468         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16469         Use locale_t, not __locale_t.
16470         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16471         (__strftime_internal): Add support for alternate months.
16473 2018-01-23  Bruno Haible  <bruno@clisp.org>
16475         doc: Mention another prerequisite for using Gnulib.
16476         Reported at <https://stackoverflow.com/questions/48378214/>.
16477         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16478         AC_CONFIG_HEADERS.
16480 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16482         build: GuixSD doesn't have /bin/bash
16483         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16485 2018-01-21  Bruno Haible  <bruno@clisp.org>
16487         Avoid test failures on Microsoft Windows Subsystem for Linux.
16488         * tests/test-fcntl.c (main): Allow a different errno.
16489         * tests/test-rename.h (test_rename): Likewise.
16490         * tests/test-renameat.c (main): Likewise.
16491         * tests/test-renameat2.c (main): Likewise.
16493 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16495         filenamecat: make base a suffix of result
16496         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16497         (mfile_name_concat): Always make BASE a suffix of the result, as
16498         cp expects this.  To implement this, separate with '.' instead of
16499         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16500         * tests/test-filenamecat.c (main): Adjust tests to match
16501         current behavior.  Check that BASE_IN_RESULT points to
16502         a copy of BASE and is a suffix of the resultk, and that DIR
16503         is a prefix of the result that is no longer than the prefix
16504         indicated by BASE_IN_RESULT.
16506 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16508         update-copyright: Handle use of ©
16509         * build-aux/update-copyright ($circle_c_re): Update regex to
16510         handle use of © in headers.
16512 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16514         Fix -Wundef warning in user-included header lib/cdefs.h.
16515         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16517 2018-01-04  Bruno Haible  <bruno@clisp.org>
16519         pthread_sigmask: Avoid compilation error on mingw.
16520         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16521         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16522         macro.
16524 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16526         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16527         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16528         Suggested by Bob Proulx (Bug#29968).
16529         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16531 2018-01-02  Eric Blake  <eblake@redhat.com>
16533         stat-time: silence -Wunused-parameter regression
16534         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16535         Prefer attribute over cast-to-void.
16536         (stat_time_normalize): Mark st as potentially unused.
16538 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16540         test-framework-sh: avoid netstat
16541         Problem reported by Kristýna Streitová (Bug#29947).
16542         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16543         deprecated on SuSE and it's not that important anyway.
16545 2018-01-01  Jim Meyering  <meyering@fb.com>
16547         update-copyright: add code to handle more special cases
16548         After running "make update-copyright" this year, five files
16549         required additional manual changes.  Automate those adjustments
16550         for next year.
16551         * Makefile (_year_and_prev): Define.
16552         (update-copyright): Add perl commands to induce this year's post-
16553         update-copyright adjustments.
16555 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16557         version-etc: new year
16558         * build-aux/gendocs.sh (version):
16559         * doc/gendocs_template:
16560         * doc/gendocs_template_min:
16561         * doc/gnulib.texi:
16562         * lib/version-etc.c (COPYRIGHT_YEAR):
16563         Update copyright dates by hand in templates and the like.
16565         maint: fix 'make update-copyright'
16566         * Makefile (update-copyright): Adjust to 2016-11-23 change
16567         to config/srclist-update, which changed the format of srclist.txt.
16569 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16571         chdir-safer: remove this module
16572         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16573         * NEWS: Document removal.
16574         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16575         * modules/chdir-safer: Remove these files.
16577 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16579         Add cross-compilation results for GNU/Hurd.
16580         * m4/calloc.m4: Add GNU/Hurd guess.
16581         * m4/cbrtl.m4: Likewise.
16582         * m4/ceil.m4: Likewise.
16583         * m4/ceilf.m4: Likewise.
16584         * m4/ceill.m4: Likewise.
16585         * m4/chown.m4: Likewise.
16586         * m4/duplocale.m4: Likewise.
16587         * m4/exp2l.m4: Likewise.
16588         * m4/expm1.m4: Likewise.
16589         * m4/fchdir.m4: Likewise.
16590         * m4/floor.m4: Likewise.
16591         * m4/floorf.m4: Likewise.
16592         * m4/fmod.m4: Likewise.
16593         * m4/fmodf.m4: Likewise.
16594         * m4/fmodl.m4: Likewise.
16595         * m4/getcwd.m4: Likewise.
16596         * m4/getgroups.m4: Likewise.
16597         * m4/gettimeofday.m4: Likewise.
16598         * m4/hypot.m4: Likewise.
16599         * m4/hypotf.m4: Likewise.
16600         * m4/hypotl.m4: Likewise.
16601         * m4/link-follow.m4: Likewise.
16602         * m4/link.m4: Likewise.
16603         * m4/linkat.m4: Likewise.
16604         * m4/log.m4: Likewise.
16605         * m4/log10.m4: Likewise.
16606         * m4/log10f.m4: Likewise.
16607         * m4/log1p.m4: Likewise.
16608         * m4/log1pf.m4: Likewise.
16609         * m4/log1pl.m4: Likewise.
16610         * m4/log2.m4: Likewise.
16611         * m4/log2f.m4: Likewise.
16612         * m4/logf.m4: Likewise.
16613         * m4/lstat.m4: Likewise.
16614         * m4/malloc.m4: Likewise.
16615         * m4/mbrlen.m4: Likewise.
16616         * m4/mbrtowc.m4: Likewise.
16617         * m4/mkdir.m4: Likewise.
16618         * m4/mkfifo.m4: Likewise.
16619         * m4/mknod.m4: Likewise.
16620         * m4/mkstemp.m4: Likewise.
16621         * m4/modf.m4: Likewise.
16622         * m4/modff.m4: Likewise.
16623         * m4/modfl.m4: Likewise.
16624         * m4/printf.m4: Likewise.
16625         * m4/pselect.m4: Likewise.
16626         * m4/ptsname.m4: Likewise.
16627         * m4/putenv.m4: Likewise.
16628         * m4/readlink.m4: Likewise.
16629         * m4/realloc.m4: Likewise.
16630         * m4/remainder.m4: Likewise.
16631         * m4/remainderf.m4: Likewise.
16632         * m4/remainderl.m4: Likewise.
16633         * m4/rmdir.m4: Likewise.
16634         * m4/round.m4: Likewise.
16635         * m4/roundf.m4: Likewise.
16636         * m4/roundl.m4: Likewise.
16637         * m4/select.m4: Likewise.
16638         * m4/setenv.m4: Likewise.
16639         * m4/signbit.m4: Likewise.
16640         * m4/sleep.m4: Likewise.
16641         * m4/stat.m4: Likewise.
16642         * m4/strerror.m4: Likewise.
16643         * m4/strtok_r.m4: Likewise.
16644         * m4/symlink.m4: Likewise.
16645         * m4/symlinkat.m4: Likewise.
16646         * m4/trunc.m4: Likewise.
16647         * m4/truncf.m4: Likewise.
16648         * m4/truncl.m4: Likewise.
16649         * m4/tzset.m4: Likewise.
16650         * m4/ungetc.m4: Likewise.
16651         * m4/usleep.m4: Likewise.
16652         * m4/wcwidth.m4: Likewise.
16654 2017-12-28  Bruno Haible  <bruno@clisp.org>
16656         gnulib-tool: Make --conditional-dependencies work better.
16657         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16658         * gnulib-tool (Options): Don't reject the combination of
16659         --conditional-dependencies with --with-tests.
16660         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16661         Don't reference $modules.
16662         (func_import, func_create_testdir): Pass it.
16664 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16666         regex: use re_malloc etc. consistently
16667         Problem and original patch reported by Arnold Robbins in:
16668         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16669         * lib/regcomp.c (re_comp):
16670         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16671         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16673 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16674             Paul Eggert  <eggert@cs.ucla.edu>
16676         glob: Silence warning about void pointer arithmetic.
16677         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16678         arithmetic.
16680 2017-12-15  Bruno Haible  <bruno@clisp.org>
16682         spawn-pipe: Silence a clang warning.
16683         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16684         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16685         in this file.
16687 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16689         explicit_bzero: port to macOS + Clang 9.0.0
16690         Problem reported by Marcus Johnson (Bug#29658).
16691         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16692         Don’t use asm.
16694 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16696         doc: Improve explanation of supporting relocatable libraries.
16697         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16698         properly how to build the relocatable module for
16699         libraries. (Method and example code from Bruno Haible.)
16701 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16703         doc: Use better texinfo tags in a few cases.
16704         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16705         instead of @samp in a few places.
16707 2017-12-11  Bruno Haible  <bruno@clisp.org>
16709         unistr/base: Update comment.
16710         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16712 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16714         test-faccessat.c: unlink temp file to avoid subsequent test failure
16715         * tests/test-faccessat.c: Remove the file to avoid failure
16716         to open the file on subsequent runs due to being created
16717         with no permissions.
16719 2017-12-10  Bruno Haible  <bruno@clisp.org>
16721         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16722         * doc/gnulib-tool.texi (Modified build rules): New node.
16724 2017-12-10  Bruno Haible  <bruno@clisp.org>
16726         doc: Tweak wording.
16727         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16728         "binaries".
16730 2017-12-05  Sam Steingold  <sds@gnu.org>
16731             Bruno Haible  <bruno@clisp.org>
16733         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16734         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16735         AC_EGREP_CPP pattern.
16737 2017-12-03  Bruno Haible  <bruno@clisp.org>
16739         all: Replace more http URLs by https URLs.
16740         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16741         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16742         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16743         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16745 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16747         Port better to CentOS 5
16748         Problems reported by Tom G. Christensen in:
16749         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16750         * doc/glibc-functions/strverscmp.texi (strverscmp):
16751         Document strverscmp bug with glibc 2.9 and earlier.
16752         * doc/posix-functions/tzset.texi (tzset):
16753         Document that TZ with angle brackets is POSIX-2001 and later.
16754         * tests/test-nstrftime.c: Include unistd.h.
16755         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16756         (TZ): Use it to skip tests with angle brackets in TZ,
16757         for older systems.
16759         stat: add missing module dependencies
16760         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16761         Add stat-time.
16763 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16765         stat: fix compilation failure on macOS Sierra
16766         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16767         https://savannah.gnu.org/bugs/?52546
16768         * lib/stat.c: Add missing include of stat-time.h.
16770 2017-11-28  Jim Meyering  <meyering@fb.com>
16772         test-faccessat.c: correct BASE definition to avoid parallel test failure
16773         * tests/test-faccessat.c (BASE): Define using this file's name, not
16774         that of test-lstat.c.  Using the latter caused this test to fail
16775         sometimes when run concurrently with test-lstat.
16777 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16779         unicase: fix VPATH build
16780         * modules/unicase/special-casing (Makefile.am): Ensure that the
16781         base directory is created when generating
16782         unicase/special-casing.h.
16784 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16786         libunistring: update to Unicode 9.0.0
16787         * lib/gen-uni-tables.c (fill_properties): Recognize
16788         Sentence_Terminal and Prepended_Concatenation_Mark.
16789         (is_property_default_ignorable_code_point): Exclude U+08E2.
16790         (fill_arabicshaping): Allow missing whitespace when parsing;
16791         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16792         (output_blocks): Increase the element size of the level1 table to
16793         accommodate more blocks.
16794         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16795         Update each class according to the standard.
16796         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16797         E_Base_GAZ characters.
16798         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16799         Glue_After_Zwj, and E_Base_GAZ characters.
16800         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16801         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16802         enum value.
16803         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16804         value.
16805         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16806         LBP_ZWJ, LBP_EB, and LBP_EM.
16807         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16808         enum value.
16809         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16810         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16811         declaration.
16812         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16813         (uniwbrk_table): Implement WB14.
16814         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16815         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16816         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16817         uc-is-grapheme-break.
16818         * modules/unigbrk/uc-grapheme-breaks: New module.
16819         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16820         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16821         enum value.
16822         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16823         * lib/unigbrk/u-grapheme-breaks.h: New file.
16824         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16825         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16826         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16827         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16828         29.
16829         * tests/unigbrk/test-uc-gbrk-prop.c
16830         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16831         GBP_GAZ, and GBP_EBG.
16832         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16833         * tests/unigbrk/test-uc-is-grapheme-break.c
16834         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16835         GBP_GAZ, and GBP_EBG.
16836         (main): Skip unsupported rules involving 3 or more characters,
16837         namely GB10, GB12, and GB13.
16838         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16839         * all generated files under lib/uni* and tests/uni*: Regenerate.
16840         * all the affected modules: Bump version.
16842 2017-11-26  Bruno Haible  <bruno@clisp.org>
16844         strfmon_l: Fix compilation error with glibc 2.5.
16845         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16846         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16847         * lib/monetary.in.h: Include also <locale.h>.
16849 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16851         posixtm: remove PDS_LEADING_YEAR
16852         This changes the API slightly, in a hopefully-innocuous way.
16853         Without this change the code had undefined behavior when a
16854         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16855         Problem reported by Pádraig Brady in:
16856         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16857         * NEWS: Mention this.
16858         * lib/posixtm.c (posix_time_parse): Treat the absence of
16859         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16860         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16861         present, but define it as zero, for compatibility with existing
16862         source code).  All other PDS_* values moved up.
16863         * tests/test-posixtm.c (LY): New macro.
16864         (T): Use it.  Do not expect a particular numeric encoding
16865         for PDS_CENTURY etc.
16867 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16869         stat: work around Solaris bug with tv_nsec < 0
16870         * doc/posix-functions/fstat.texi (fstat):
16871         * doc/posix-functions/fstatat.texi (fstatat):
16872         * doc/posix-functions/lstat.texi (lstat):
16873         * doc/posix-functions/stat.texi (stat):
16874         Mention Solaris 11 bug.
16875         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16876         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16877         * lib/lstat.c (rpl_lstat):
16878         * lib/stat.c (rpl_stat):
16879         Normalize resulting timestamps.
16880         * lib/fstatat.c (normal_fstatat): New function.
16881         (rpl_fstatat): Use it.
16882         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16883         (stat_time_normalize): New function.
16884         * m4/fstat.m4 (gl_FUNC_FSTAT):
16885         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16886         * m4/lstat.m4 (gl_FUNC_LSTAT):
16887         * m4/stat.m4 (gl_FUNC_STAT):
16888         Replace on Solaris.
16889         * modules/fstat (Depends-on):
16890         * modules/fstatat (Depends-on):
16891         Add stat-time.
16892         * modules/stat-time (Depends-on): Add errno, intprops.
16894 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16896         regex: merge from glibc
16897         * lib/regcomp.c (init_word_char): Add comments.
16899 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16901         regex: merge from glibc
16902         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16903         * lib/regex_internal.h (internal_function): Remove.
16904         All uses removed.
16906 2017-11-20  Bruno Haible  <bruno@clisp.org>
16908         crypto/gc-sm3: Fix buffer overrun.
16909         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16910         Reported by Coverity.
16912 2017-11-12  Jim Meyering  <meyering@fb.com>
16914         maint: shorten https://lists.gnu.org/archive/html/... links
16915         Each /archive/html/ part can be replace with /r/.
16916         Run this to induce the change:
16917         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16918         * ChangeLog: Perform that substitution.
16919         * Makefile: Likewise.
16920         * STATUS-libposix: Likewise.
16921         * build-aux/bootstrap: Likewise.
16922         * doc/maintain.texi: Likewise.
16923         * gnulib-tool: Likewise.
16924         * lib/allocator.h: Likewise.
16925         * lib/argp-ba.c: Likewise.
16926         * lib/argp-pv.c: Likewise.
16927         * lib/canon-host.c: Likewise.
16928         * lib/canonicalize-lgpl.c: Likewise.
16929         * lib/float.in.h: Likewise.
16930         * lib/fstat.c: Likewise.
16931         * lib/getdelim.c: Likewise.
16932         * lib/getprogname.c: Likewise.
16933         * lib/glthread/thread.h: Likewise.
16934         * lib/intprops.h: Likewise.
16935         * lib/mbsrtowcs-state.c: Likewise.
16936         * lib/safe-read.c: Likewise.
16937         * lib/signal.in.h: Likewise.
16938         * lib/stat.c: Likewise.
16939         * lib/stdbool.in.h: Likewise.
16940         * lib/stdio-impl.h: Likewise.
16941         * lib/stdio.in.h: Likewise.
16942         * lib/sysexits.in.h: Likewise.
16943         * lib/timespec.h: Likewise.
16944         * lib/wcsrtombs-state.c: Likewise.
16945         * m4/alloca.m4: Likewise.
16946         * m4/extern-inline.m4: Likewise.
16947         * m4/fstatat.m4: Likewise.
16948         * m4/gnulib-common.m4: Likewise.
16949         * m4/lib-ignore.m4: Likewise.
16950         * m4/printf.m4: Likewise.
16951         * m4/regex.m4: Likewise.
16952         * m4/stat-size.m4: Likewise.
16953         * m4/std-gnu11.m4: Likewise.
16954         * m4/stdbool.m4: Likewise.
16955         * m4/sys_types_h.m4: Likewise.
16956         * m4/threadlib.m4: Likewise.
16957         * m4/vararrays.m4: Likewise.
16958         * pygnulib/GLImport.py: Likewise.
16959         * tests/test-exp.h: Likewise.
16960         * tests/test-exp2.h: Likewise.
16961         * tests/test-expm1.h: Likewise.
16962         * tests/test-fflush2.c: Likewise.
16963         * tests/test-getopt_long.h: Likewise.
16964         * tests/test-intprops.c: Likewise.
16965         * tests/test-log.h: Likewise.
16966         * tests/test-log10.h: Likewise.
16967         * tests/test-log1p.h: Likewise.
16968         * tests/test-log2.h: Likewise.
16969         * tests/test-printf-posix.h: Likewise.
16970         * tests/test-regex.c: Likewise.
16971         * tests/test-snprintf-posix.h: Likewise.
16972         * tests/test-sprintf-posix.h: Likewise.
16973         * tests/test-stdalign.c: Likewise.
16974         * tests/test-stdbool.c: Likewise.
16975         * tests/test-vasnprintf-posix.c: Likewise.
16976         * tests/test-vasprintf-posix.c: Likewise.
16977         * top/maint.mk: Likewise.
16979 2017-11-12  Bruno Haible  <bruno@clisp.org>
16981         faccessat: Make the last change more robust.
16982         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
16983         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
16985 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16987         faccessat: port to macOS (Bug#29231)
16988         macOS faccessat has the same bug that lstat does: if the file
16989         name ends in '/' it ignores the trailing slash.
16990         Problem reported for Emacs by Vincent Zhang.
16991         * doc/posix-functions/faccessat.texi (faccessat): Document this.
16992         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
16993         around the initial includes.  Include errno.h, string.h, sys/stat.h.
16994         (orig_faccessat) [HAVE_FACCESSAT]: New function.
16995         Include "unistd.h" after defining it.
16996         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
16997         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
16998         Handle in the usual way.
16999         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17000         lstat dereferences symlinks, since faccessat is likely to
17001         have the same problem.
17002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17003         * modules/faccessat (Depends-on): Add fstatat.
17004         Depend if REPLACE_FACCESSAT is 1, too.
17005         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17006         * modules/faccessat-tests (Depends-on): Add symlink.
17007         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17008         * tests/test-faccessat.c (main): Test for the bug.
17010 2017-11-11  Bruno Haible  <bruno@clisp.org>
17012         getprogname: Fix compilation error on IRIX.
17013         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17014         'namesize'.
17016 2017-11-11  Bruno Haible  <bruno@clisp.org>
17018         year2038: Tweak last patch.
17019         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17021 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17023         year2038: be more insistent about 64-bit time_t
17024         Applications requiring access to arbitrary files should not be
17025         built with 32-bit time_t on hosts that have 64-bit timestamps,
17026         as this can lead to real trouble at runtime.
17027         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17028         Check on all systems, not just MinGW.  Use a heuristic involving
17029         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17030         output a failure or just a warning, to make it more likely that
17031         builders will select 64-bit time_t.
17033 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17035         havelib: fix typo in previous change
17036         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17038         Don’t use AC_EGREP_CPP if affected by CFLAGS
17039         * m4/float_h.m4 (gl_FLOAT_H):
17040         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17041         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17042         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17043         * m4/year2038.m4 (gl_YEAR2038):
17044         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17045         likely to be affected by the choice of CFLAGS, since CFLAGS are
17046         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17047         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17049         fstatat: pacify GCC on unusual platform
17050         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17051         Omit, as it’s unused in this case.
17053 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17055         timespec: prefer ‘assume’ to ‘assure’
17056         This avoids some runtime tests.  The rest of the module makes
17057         similar assumptions and there is little point to testing here.
17058         * lib/timespec.h: Include verify.h instead of assure.h.
17059         (timespec_cmp): Use ‘assume’, not ‘assure’.
17060         Also, remove an unnecessary cast to ‘int’, as lots of other
17061         code in this module now causes -Wconversion to complain, and
17062         this is a problem with -Wconversion not with the code.
17064         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17066         Port recent gnulib-tool change to Dash
17067         * gnulib-tool (func_create_testdir): Don't assume that the shell
17068         retokenizes after expanding "$@" inside the call to
17069         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17071 2017-10-27  Jim Meyering  <meyering@fb.com>
17073         timespec.h: use "assure" to avoid a spurious warning
17074         * lib/timespec.h: Include "assure.h" and use it to help
17075         gcc7's -Wstrict-overflow avoid a false positive warning
17076         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
17077         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
17078         * modules/timespec (Depends-on): Add assure.
17080 2017-10-29  Bruno Haible  <bruno@clisp.org>
17082         Avoid several test failures with traditional locales on Haiku.
17083         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
17084         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
17085         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
17086         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
17087         LOCALE_ZH_CN=none.
17089 2017-10-29  Bruno Haible  <bruno@clisp.org>
17091         strerror_r-posix: Fix behaviour and test failure on Haiku.
17092         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
17093         are positive. Work around return value 0 instead of ERANGE on Haiku.
17094         For unknown error numbers, use a format string consistent with perror().
17095         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
17096         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
17097         are positive.
17099 2017-10-29  Bruno Haible  <bruno@clisp.org>
17101         get-rusage-data: Avoid crash on Haiku.
17102         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
17104 2017-10-29  Bruno Haible  <bruno@clisp.org>
17106         get-rusage-as: Avoid crash on Haiku.
17107         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17109 2017-10-29  Bruno Haible  <bruno@clisp.org>
17111         ilogbl: Ensure replacement on Haiku.
17112         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17113         REPLACE_ILOGBL if ilogbl does not work.
17114         (gl_FUNC_ILOGBL_WORKS): New macro.
17115         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17117         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17118         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17119         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17121 2017-10-29  Bruno Haible  <bruno@clisp.org>
17123         expl: Ensure replacement on Haiku.
17124         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17125         zero.
17126         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17128 2017-10-29  Bruno Haible  <bruno@clisp.org>
17130         math: Fix test failure on Haiku.
17131         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17132         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17133         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17134         * doc/posix-headers/math.texi: Mention the Haiku problem.
17136 2017-10-29  Bruno Haible  <bruno@clisp.org>
17138         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17139         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17140         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17142 2017-10-29  Bruno Haible  <bruno@clisp.org>
17144         crypto/*: Verify that the header file is self-contained.
17145         * tests/test-gc-*.c: Include the module's header file immediately after
17146         <config.h>.
17147         * tests/test-hmac-*.c: Likewise.
17148         * tests/test-arcfour.c: Likewise.
17149         * tests/test-arctwo.c: Likewise.
17150         * tests/test-des.c: Likewise.
17151         * tests/test-md2.c: Likewise.
17152         * tests/test-md4.c: Likewise.
17153         * tests/test-md5.c: Likewise.
17154         * tests/test-rijndael.c: Likewise.
17155         * tests/test-sha1.c: Likewise.
17156         * tests/test-sm3.c: Likewise.
17158 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17159             Bruno Haible  <bruno@clisp.org>
17161         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17162         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17164 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17166         New module: crypto/gc-sm3
17167         * lib/gc.h: Declare SM3-related stuffs.
17168         * lib/gc-gnulib.c: Support sm3 in internal functions.
17169         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17170         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17171         * modules/crypto/gc-sm3: Define gc-sm3 module.
17172         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17173         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17174         * MODULES.html.sh: List gc-sm3 module.
17176 2017-10-29  Bruno Haible  <bruno@clisp.org>
17178         random, random_r: Mention different prototypes on Haiku.
17179         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17180         * doc/glibc-functions/random_r.texi: Likewise.
17181         * doc/glibc-functions/initstate_r.texi: Likewise.
17182         * doc/glibc-functions/setstate_r.texi: Likewise.
17184 2017-10-28  Bruno Haible  <bruno@clisp.org>
17186         posix_spawn: Avoid spurious message in configure output.
17187         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17188         'cmp' command.
17190 2017-10-28  Bruno Haible  <bruno@clisp.org>
17192         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17193         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17196 2017-10-28  Bruno Haible  <bruno@clisp.org>
17198         ioctl: Override non-POSIX declaration on Haiku.
17199         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17200         * lib/sys_ioctl.in.h: Add comment about Haiku.
17201         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17202         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17204 2017-10-28  Bruno Haible  <bruno@clisp.org>
17206         crypto/sm3: Add overview documentation to the .h file.
17207         * lib/sm3.h: Add comments.
17209 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17211         New module: crypto/sm3
17212         This new module can be used to compute SM3 message digest of files or
17213         memory blocks according to the specification GM/T 004-2012
17214         Cryptographic Hash Algorithm SM3, published by State Cryptography
17215         Administration, China.
17216         The official SM3 cryptographic hash algorithm specification is
17217         available at
17218         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17219         * lib/sm3.h: Declare the APIs of sm3 module.
17220         * lib/sm3.c: Implement SM3 hash algorithm.
17221         * m4/sm3.m4: m4 file for sm3 module.
17222         * modules/crypto/sm3: Define sm3 module.
17223         * tests/test-sm3.c: Implement SM3 test case.
17224         * modules/crypto/sm3-tests: Define sm3 test module.
17225         * MODULES.html.sh: List sm3 module.
17227 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17229         gc-libgcrypt: fix undefined enum type in switch statement
17230         Resolve the following build failure:
17231         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17232         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17233         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17234              case 0:
17235              ^~~~
17236         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17237         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17239 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17241         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17242         Resolve the following build failure:
17243         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17244         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17245         in signedness [-Werror=pointer-sign]
17246             digest = gcry_md_read (ctx->gch, 0);
17247                    ^
17248         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17250 2017-10-26  Bruno Haible  <bruno@clisp.org>
17252         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17253         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17254         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17256 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17258         glob: fix another heap buffer overflow
17259         Problem reported by Tim Rühsen in:
17260         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17261         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17263 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17265         quotearg: pacify compiler re unsigned
17266         * lib/quotearg.c (quotearg_n_options):
17267         Rewrite to avoid diagnostic from overly-picky compiler.
17268         Problem reported by Sami Kerola in:
17269         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17271         glob: fix heap buffer overflow
17272         * lib/glob.c (glob): Fix off-by-one error introduced into
17273         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17274         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17275         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17276         Fix suggested by Bruno Haible.
17278 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17280         glob: pacify fuzzer for mempcpy
17281         Problem reported by Tim Rühsen in:
17282         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17283         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17285 2017-10-12  Bruno Haible  <bruno@clisp.org>
17287         doc: Fix syntax error (regression from 2017-10-03).
17288         * doc/posix-functions/strncpy.texi: Fix syntax error.
17290 2017-10-12  Bruno Haible  <bruno@clisp.org>
17292         doc: Update for Solaris 11.3.
17293         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17294         mention Solaris 11.3.
17295         * m4/log2.m4: Fix comments.
17296         * m4/log2f.m4: Likewise.
17297         * m4/printf.m4: Update comments.
17298         * m4/rename.m4: Likewise.
17299         * m4/strncat.m4: Likewise.
17301         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17303 2017-10-10  Bruno Haible  <bruno@clisp.org>
17305         doc: Improve doc about ioctl.
17306         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17307         prototype.
17309 2017-10-09  Bruno Haible  <bruno@clisp.org>
17311         wcwidth: Don't use obsolete syntax of 'test'.
17312         Reported by Eric Blake.
17313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17314         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17316 2017-10-09  Bruno Haible  <bruno@clisp.org>
17318         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17319         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17320         and Daniel P. Berrange <berrange@redhat.com>.
17321         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17322         on glibc systems. The getopt-pfx-core.h file declares exactly what
17323         unistd.h needs, nothing more.
17325 2017-10-08  Bruno Haible  <bruno@clisp.org>
17327         vma-iter: Improve support for FreeBSD.
17328         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17329         vma_iterate.
17330         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17332 2017-10-08  Bruno Haible  <bruno@clisp.org>
17334         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17335         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17337 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17339         test-framework-sh: Fix 'invalid path dir' error.
17340         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17341         separator between a drive letter and directory parts.
17342         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17343         treated as an invalid path dir.
17344         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17345         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17346         instead of hard coded ':'.
17348 2017-10-07  Bruno Haible  <bruno@clisp.org>
17350         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17351         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17352         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17353         (rof_open): On Linux, do multiple read() calls and make sure
17354         MIN_LEFTOVER bytes are left when read() returns.
17356 2017-10-07  Bruno Haible  <bruno@clisp.org>
17358         vma-iter: Improve support for GNU/Hurd.
17359         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17360         API, not the /proc file system.
17362 2017-10-07  Bruno Haible  <bruno@clisp.org>
17364         test-framework-sh: Don't require bash on Windows and OS/2.
17365         Reported by KO Myung-Hun.
17366         * tests/test-init.sh: Use 'shopt' only when running in bash.
17368 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17370         wcwidth: check a macro version of wcwidth () as well
17371         * lib/wchar.in.h: Revert commit from 2016-01-14.
17372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17374 2017-10-06  Bruno Haible  <bruno@clisp.org>
17376         getopt-posix: Clarify copyright header.
17377         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17378         * lib/getopt-pfx-core.h: Likewise.
17379         * lib/getopt-pfx-ext.h: Likewise.
17380         * lib/getopt-cdefs.in.h: Likewise.
17382 2017-10-03  Bruno Haible  <bruno@clisp.org>
17384         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17385         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17386         gl_HOST_CPU_C_ABI.
17388 2017-10-03  Bruno Haible  <bruno@clisp.org>
17390         doc: warn about misuse of strncpy and wcsncpy.
17391         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17392         memory allocation.
17393         * doc/posix-functions/wcscpy.texi: Likewise.
17394         * doc/posix-functions/strncpy.texi: Describe what this function is not
17395         useful for.
17396         * doc/posix-functions/wcsncpy.texi: Likewise.
17398 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17400         fsuage: fix typo in previous change
17401         * lib/fsusage.c: Remove stray include of full-read.h.
17402         Problem reported by Sam Steingold for macOS (Bug#28669).
17404 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17406         fsusage: remove SVR2 support
17407         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17408         and its code was getting in the way of use of this module by
17409         Emacs, which has its own ‘read’ function anyway.
17410         * lib/fsusage.c: Do not include sys/filsys.h.
17411         (get_fs_usage): Remove SVR2-specific code.
17412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17413         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17414         * modules/fsusage (Depends-on): Do not depend on full-read.
17416         Simplify autoupdate of licenses
17417         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17418         place.
17420 2017-10-01  Bruno Haible  <bruno@clisp.org>
17422         vma-iter: Add support for GNU/Hurd.
17423         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17424         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17426 2017-09-30  Bruno Haible  <bruno@clisp.org>
17428         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17429         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17430         fail when module 'largefile' is in use.
17431         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17432         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17433         Don't test HAVE_SYS_PROCFS_H.
17435 2017-09-30  Bruno Haible  <bruno@clisp.org>
17437         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17438         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17439         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17440         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17442 2017-09-30  Bruno Haible  <bruno@clisp.org>
17444         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17445         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17446         scope of local variables.
17448 2017-09-28  Bruno Haible  <bruno@clisp.org>
17450         string: code style
17451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17452         substitutable variables.
17453         * modules/string (Makefile.am): Likewise.
17455 2017-09-26  Bruno Haible  <bruno@clisp.org>
17457         uniname/uniname-tests: Tighten code.
17458         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17459         local variables into one.
17461 2017-09-26  Bruno Haible  <bruno@clisp.org>
17463         vma-iter: Improvements for Linux and BSD platforms.
17464         - Add support for DragonFly BSD.
17465         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17466         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17467         Read the entire file into memory in a single system call.
17468         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17469         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17471 2017-09-26  Bruno Haible  <bruno@clisp.org>
17473         vma-iter: Provide the protection flags on FreeBSD.
17474         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17475         skip three fields between the addresses and the protection flags.
17477 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17479         glob: remove bogus extern decl
17480         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17481         extern declaration.  Problem reported by Adhemerval Zanella in:
17482         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17484 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17486         uniname/uniname-tests: integer overflow fix
17487         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17488         Check for integer overflow.
17490         duplocale-tests: fix unlikely crash
17491         * tests/test-duplocale.c (get_locale_dependent_values):
17492         Don’t crash with absurdly long month names.
17494         maint: fix overflow checking in nap.h
17495         * modules/chown-tests:
17496         * modules/fchownat-tests, modules/fdutimensat-tests:
17497         * modules/futimens-tests, modules/lchown-tests:
17498         * modules/stat-time-tests, modules/utime-tests:
17499         * modules/utimens-tests, modules/utimensat-tests:
17500         Depend on intprops.
17501         * tests/nap.h: Include intprops.h.
17502         (diff_timespec): Handle overflow properly.
17504         sys_types: update URL
17505         * m4/sys_types_h.m4: Use https: URL.
17507         parse-datetime: fix dependency
17508         * modules/parse-datetime (Depends-on): Depend
17509         on nstrftime, not strftime.
17511         parse-datetime, posixtm: avoid uninit access
17512         * lib/parse-datetime.y (parse_datetime2):
17513         * lib/posixtm.c (posixtime):
17514         Do not access uninitialized storage, even though the resulting
17515         value is never used.
17517 2017-09-25  Bruno Haible  <bruno@clisp.org>
17519         vma-iter: Improvements for BSD platforms.
17520         - Add support for GNU/kFreeBSD.
17521         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17522         - Speed up on OpenBSD.
17523         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17524         (vma_iterate_bsd): New function.
17525         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17526         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17527         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17528         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17530 2017-09-23  Bruno Haible  <bruno@clisp.org>
17532         strfmon_l: New module.
17533         * modules/strfmon_l: New file.
17534         * lib/strfmon_l.c: New file.
17535         * m4/strfmon_l.m4: New file.
17536         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17537         * modules/strfmon_l-tests: New file.
17538         * tests/test-strfmon_l.c: New file.
17540         monetary: New module.
17541         * modules/monetary: New file.
17542         * lib/monetary.in.h: New file.
17543         * m4/monetary_h.m4: New file.
17544         * doc/posix-headers/monetary.texi: Mention the new module.
17545         * modules/monetary-tests: New file.
17546         * tests/test-monetary.c: New file.
17547         * modules/monetary-c++-tests: New file.
17548         * tests/test-monetary-c++.cc: New file.
17549         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17551 2017-09-23  Bruno Haible  <bruno@clisp.org>
17553         duplocale tests: Fix test crash on Linux/x86.
17554         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17555         locale from the current thread before freeing it.
17557 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17559         mktime: port to OpenVMS
17560         Problem reported by John E. Malmberg in:
17561         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17562         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17564 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17566         manywarnings: port to GCC on 64-bit MS-Windows
17567         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17568         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17569         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17571 2017-09-13  Bruno Haible  <bruno@clisp.org>
17573         all: Replace many more http URLs by https URLs. Update stale URLs.
17574         * users.txt: Remove mention of 'newts'.
17575         * lib/localename.c: Update comment about LANG_SOTHO.
17577 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17579         all: Replace many http URLs by https URLs.
17581 2017-09-12  Bruno Haible  <bruno@clisp.org>
17583         doc: Prefer https URLs where possible.
17584         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17585         * doc/ld-output-def.texi: Remove unavailable URL.
17587 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17589         maintainer-makefile: FTP -> HTTPS
17590         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17591         of FTP, which is planned to be decommissioned on 2017-11-01.
17593 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17595         libc-config: Fix __GNUC_PREREQ macro.
17596         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17597         __GNUC_MINOR.
17599 2017-09-09  Bruno Haible  <bruno@clisp.org>
17601         gnulib-tool: Simplify commit from 2015-08-20.
17602         * gnulib-tool (func_add_or_update): Remove local variable
17603         is_binary_file.
17605 2017-09-08  Bruno Haible  <bruno@clisp.org>
17607         stddef: Avoid conflict with system-defined max_align_t.
17608         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17609         Reported by Werner Lemberg <wl@gnu.org> in
17610         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17611         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17612         (max_align_t): Define as a macro.
17613         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17614         definitions of rpl_max_align_t in different copies of gnulib-generated
17615         <stddef.h>.
17617 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17619         libc-config: port to MSVC
17620         Problems reported by Gisle Vanem in:
17621         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17622         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17623         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17624         * m4/__inline.m4: New file.
17625         * modules/libc-config (Files): Add it.
17626         (Depends-on): Use it.
17628         glob: Use enum for __glob_pattern_type result
17629         From a patch proposed by Adhemerval Zanella in:
17630         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17631         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17632         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17633         * lib/glob_internal.h (__glob_pattern_type):
17634         * lib/glob.c (glob):
17635         * lib/glob_pattern_p.c (__glob_pattern_p):
17636         Use them.
17638         glob: fix for use in glibc
17639         Problem reported by Adhemerval Zanella in:
17640         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17641         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17642         Do not redefine if _LIBC.
17644 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17646         glob: fix bugs with long login names
17647         Problem reported by Adhemerval Zanella in:
17648         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17649         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17650         (glob): Use the same scratch buffer for both getlogin_r and
17651         getpwnam_r.  Don’t require preallocation of the login name.  This
17652         simplifies storage allocation, and corrects the handling of
17653         long login names.
17655 2017-09-02  Bruno Haible  <bruno@clisp.org>
17657         dirent: Update doc.
17658         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17660 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17662         glob: fix getpwnam_r errno typo
17663         * lib/glob.c (glob): Fix longstanding misuse of errno after
17664         getpwnam_r, which returns an error number rather than setting
17665         errno.
17667         glob: fix typo in recent change
17668         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17669         Fix recently-introduced typo.
17671 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17673         glob: don't save and restore errno unnecessarily
17674         * lib/glob.c (glob): Don't save and restore errno
17675         merely because we have getpwnam_r.
17677         glob: don't assume getpwnam_r
17678         * lib/glob.c (glob): Port recent patches to platforms
17679         lacking getpwnam_r.
17681         scratch_buffer: don’t use private glibc API
17682         Suggested by Florian Weimer in:
17683         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17684         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17685         * lib/scratch_buffer_grow.c: Rename to
17686         lib/malloc/scratch_buffer_grow.c.
17687         * lib/scratch_buffer_grow_preserve.c: Rename to
17688         lib/malloc/scratch_buffer_grow_preserve.c.
17689         * lib/scratch_buffer_set_array_size.c: Rename to
17690         lib/malloc/scratch_buffer_set_array_size.c.
17691         * lib/scratch_buffer.h: New file.
17692         * modules/scratch_buffer (Files, Makefile.am):
17693         Adjust to source-file renaming.
17695 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17697         glob: use scratch_buffer instead of extend_alloca
17698         Much of the lib/glob.c part of this patch comes from a glibc patch
17699         proposed by Adhemerval Zanella in:
17700         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17701         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17702         included via glob.h, does this for us now.
17703         (__set_errno): Remove, as libc-config does this for us now.
17704         Include <scratch_buffer.h>.
17705         (GETPW_R_SIZE_MAX): Remove.
17706         (glob): Use struct scratch_buffer instead of extend_alloca.
17707         * lib/glob.in.h: Include libc-config.h rather than
17708         including <sys/cdefs.h> conditionally.
17709         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17710         (__glibc_unlikely, __restrict, weak_alias):
17711         Remove, as libc-config does this for us now.
17712         * m4/glob.m4 (gl_PREREQ_GLOB):
17713         Remove sys/cdefs.h tests; no longer needed.
17714         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17715         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17717         scratch_buffer: new module
17718         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17719         * lib/scratch_buffer_grow_preserve.c:
17720         * lib/scratch_buffer_set_array_size.c:
17721         New files, copied from glibc with very minor changes that can be
17722         copied back.
17723         * modules/scratch_buffer: New file.
17725         libc-config: new module
17726         * MODULES.html.sh: Add libc-config.
17727         * lib/cdefs.h: New file, copied from the GNU C Library with very
17728         minor changes that can be copied back.
17729         * lib/libc-config.h, modules/libc-config: New files.
17731 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17733         glob: match dangling symlinks
17734         This fixes a bug I inadvertently introduced to Gnulib when I
17735         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17736         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17737         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17738         * doc/posix-functions/glob.texi: Update list of affected platforms.
17739         * lib/glob.c (__lstat64): New macro.
17740         (is_dir): New function.
17741         (glob, glob_in_dir): Match symlinks even if they are dangling.
17742         (link_stat, link_exists_p): Remove.  All uses removed.
17743         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17744         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17745         * modules/glob-tests (Depends-on): Add symlink.
17746         * tests/test-glob.c: Include errno.h, unistd.h.
17747         (BASE): New macro.
17748         (main): Test dangling symlinks, if symlinks are supported.
17750         glob, backupfile: inode 0 is a valid inode number
17751         * doc/posix-functions/readdir.texi (readdir):
17752         * doc/posix-headers/dirent.texi (dirent.h):
17753         Document more readdir portability issues.
17754         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17755         (numbered_backup): Don’t treat inode 0 any differently from
17756         other inode values.
17757         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17758         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17759         All uses removed.
17760         * modules/glob (Depends-on): Remove d-ino.
17762         glob: simplify symlink detection
17763         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17764         uint8_t, as C99 does not require uint8_t.
17765         (struct readdir_result): Use it.  Do not define skip_entry unless
17766         it is needed; this saves a byte on platforms lacking d_ino.
17767         (readdir_result_type, readdir_result_skip_entry):
17768         New functions, replacing ...
17769         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17770         ... these functions, which were removed.  This makes the callers
17771         easier to read.  All callers changed.
17772         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17774 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17776         fts-tests: tag as a longrunning-test so not included by default
17777         * modules/fts-tests: This test takes about 20s on current systems,
17778         and uses about 285M of space on ext4.
17780 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17782         renameat2: fix compilation on alpine linux
17783         * m4/renameat.m4: Check for <linux/fs.h> presence.
17784         * lib/renameat2.h: Only include <linux/fs.h> if present.
17785         Reported by Assaf Gordon on Alpine Linux.
17787 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17789         glob: try to port recent changes to MS-Windows
17790         Problem reported by Bruno Haible in:
17791         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17792         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17793         * lib/glob.in.h (__glob_pattern_p): ... to here.
17795 2017-08-24  Eric Blake  <eblake@redhat.com>
17797         warnings: fix compilation with old autoconf
17798         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17799         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17800         AC_DEFUN.
17801         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17802         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17804 2017-08-24  Bruno Haible  <bruno@clisp.org>
17806         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17807         * modules/glob (Depends-on): Add c99.
17809 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17811         glob: fix typo that broke platforms lacking d_ino
17812         This typo also hurt performance on GNU/Linux and similar hosts.
17813         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17814         in previous change.
17816 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17818         glob: merge from glibc with Zanella glob changes
17819         Merge glob from glibc, with changes for glob proposed
17820         by Adhemerval Zanella in the thread starting here:
17821         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17822         plus some fixes for this merge.
17823         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17824         New files, ported from glibc.
17825         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17826         with __restrict.
17827         (__size_t): Remove.  All uses replaced by size_t.
17828         (size_t): Define by defining __need_size_t and including <stddef.h>.
17829         This should work even in non-glibc platforms, where any name
17830         pollution is OK.
17831         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17832         (struct stat64): Don’t worry about __GLOB_GNULIB.
17833         (glob, globfree, glob_pattern_p): Remove macros for
17834         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17835         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17836         but set errno.
17837         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17838         removed since the glibc behavior works on null pointers.
17839         Do not include stdio.h; old SunOS is irrelevant now.
17840         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17841         Include glob_internal.h.
17842         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17843         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17844         worked only coincidentally.
17845         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17846         Remove macros; now done in glob.in.h.
17847         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17848         (glob): Properly initialize glob structure with
17849         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17850         Remove old code using SHELL since Bash no longer
17851         uses this.
17852         (glob, prefix_array): Separate MS code better.
17853         (glob, glob_in_dir): Use C99 decls before statements when glibc
17854         does.
17855         (glob_in_dir): Remove old Amiga and VMS code.
17856         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17857         separate files.
17858         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17859         (__glibc_unlikely):
17860         Move here from glob.c.
17861         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17862         (weak_alias): New macro.
17863         (__size_t): Remove.  All uses replaced by size_t.
17864         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17865         * modules/glob (Files): Add +lib/glob_internal.h,
17866         lib/glob_pattern_p.c, lib/globfree.c.
17867         (Depends-on): Remove snippet/arg-nonnull.
17869 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17871         glob: port to clang's Undefined Sanitizer
17872         Problem reported by Tim Rühsen in:
17873         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17874         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17875         (glob_in_dir): Do not rely on undefined behavior in accessing
17876         struct members beyond their bounds.  Use a flexible array member
17877         instead.
17879 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17881         vc-list-files: port to Solaris 10
17882         * build-aux/vc-list-files: Don't assume test -e works.
17884 2017-08-21  Karl Berry  <karl@freefriends.org>
17886         * doc/posix-functions/srandom.texi (srandom): typo }.
17888 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17890         git-version-gen: port to Solaris 10
17891         Problem reported by Dagobert Michelsen in:
17892         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17893         * build-aux/git-version-gen (v_from_git):
17894         Use expr instead of shell substitution.
17896 2017-08-19  Bruno Haible  <bruno@clisp.org>
17898         host-cpu-c-abi: Improve detection of MIPS ABI.
17899         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17900         _MIPS_SIM.
17902 2017-08-17  Bruno Haible  <bruno@clisp.org>
17904         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17905         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17907 2017-08-17  Bruno Haible  <bruno@clisp.org>
17909         float: Fix LDBL_MIN value on FreeBSD/x86.
17910         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17912 2017-08-17  Bruno Haible  <bruno@clisp.org>
17914         random: Fix test compilation failure on Cygwin 1.5.25.
17915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17916         HAVE_DECL_SETSTATE.
17917         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17918         declared.
17919         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17920         HAVE_DECL_SETSTATE.
17921         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17922         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17923         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17924         * doc/posix-functions/random.texi: Likewise.
17925         * doc/posix-functions/setstate.texi: Likewise.
17926         * doc/posix-functions/srandom.texi: Likewise.
17928 2017-08-16  Bruno Haible  <bruno@clisp.org>
17930         stdnoreturn: Fix test compilation failure on Cygwin.
17931         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17932         <stdnoreturn.h> replacement.
17933         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17934         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17936 2017-08-16  Bruno Haible  <bruno@clisp.org>
17938         thread: Fix conflict with pthread_sigmask module.
17939         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17940         it's defined as a macro.
17941         * modules/thread (Depends-on): Add pthread_sigmask.
17943 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17945         rename: port better to NetBSD
17946         * doc/posix-functions/rename.texi (rename): NetBSD 7
17947         does not have the link-count bug.
17948         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17949         broken merely because rename ("a", "b") removes "a" when the two
17950         names are hard links to the same file.
17952 2017-08-16  Bruno Haible  <bruno@clisp.org>
17954         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17955         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17956         the target file names with '$(srcdir)/'.
17957         * modules/unicase/locale-language (Makefile.am): Likewise.
17958         * modules/unicase/special-casing (Makefile.am): Likewise.
17959         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17960         * modules/unictype/category-byname (Makefile.am): Likewise.
17961         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17962         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17963         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17964         * modules/unictype/property-byname (Makefile.am): Likewise.
17965         * modules/unictype/scripts (Makefile.am): Likewise.
17966         * modules/uninorm/composition (Makefile.am): Likewise.
17968 2017-08-16  Bruno Haible  <bruno@clisp.org>
17970         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
17971         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
17972         value for OpenBSD.
17974 2017-08-16  Bruno Haible  <bruno@clisp.org>
17976         rename, renameat: Update doc regarding NetBSD.
17977         * doc/posix-functions/rename.texi: Clarify that when using
17978         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
17979         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
17980         version.
17982 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17984         renameat2: port better to macOS
17985         * lib/renameat2.c (renameat2): Use renameatx_np if available.
17987         futimens: don’t assume struct timespec layout
17988         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
17989         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
17990         * tests/test-fdutimensat.c (main):
17991         * tests/test-futimens.h (test_futimens):
17992         * tests/test-lutimens.h (test_lutimens):
17993         * tests/test-utimens.h (test_utimens):
17994         * tests/test-utimensat.c (main):
17995         Don’t assume that struct timespec is a two-member structure in
17996         tv_sec, tv_nsec order.  Although this is true on all platforms we
17997         know about, POSIX does not guarantee it.
17999         rename: document+test NetBSD rename
18000         Test failure reported by Bruno Haible in:
18001         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18002         This is an area where NetBSD is better-behaved than POSIX,
18003         so allow the NetBSD behavior in tests.
18004         * doc/posix-functions/rename.texi:
18005         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18006         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18008 2017-08-15  Bruno Haible  <bruno@clisp.org>
18010         renameat: Ensure declaration in <stdio.h> on NetBSD.
18011         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18012         * doc/posix-functions/renameat.texi: Mention this problem.
18014 2017-08-15  Bruno Haible  <bruno@clisp.org>
18016         duplocale: Work around NetBSD 7.0 bug.
18017         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18018         * lib/duplocale.c: Add comment about NetBSD problem.
18019         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18021 2017-08-15  Bruno Haible  <bruno@clisp.org>
18023         duplocale tests: Verify use with *_l functions.
18024         * modules/duplocale-tests (configure.ac): Test for uselocale and
18025         some *_l functions.
18026         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18027         from main.
18028         (get_locale_dependent_values_from, test_with_locale_parameter): New
18029         functions.
18030         (main): Test both test_with_uselocale and test_with_locale_parameter.
18032 2017-08-15  Bruno Haible  <bruno@clisp.org>
18034         extensions: Enable NetBSD specific extensions.
18035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18037 2017-08-14  Bruno Haible  <bruno@clisp.org>
18039         open, openat: Update doc about O_CLOEXEC.
18040         * doc/posix-functions/open.texi: More concrete list of platforms.
18041         * doc/posix-functions/openat.texi: Likewise.
18043 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18045         open: support O_CLOEXEC
18046         * NEWS, doc/posix-functions/open.texi:
18047         * doc/posix-functions/openat.texi: Document this.
18048         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18049         (GNULIB_defined_O_CLOEXEC): New symbol.
18050         * lib/open.c: Include cloexec.h.
18051         (open): Support O_CLOEXEC.
18052         * lib/openat.c: Include cloexec.h.
18053         (rpl_openat): Support O_CLOEXEC.
18054         * lib/popen-safer.c: Do not include cloexec.h.
18055         (open_noinherit): Remove.
18056         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18057         * lib/save-cwd.c: Do not include cloexec.h.
18058         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18059         * m4/open-cloexec.m4: New file.
18060         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18061         Replace 'open' if O_CLOEXEC is not present.
18062         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18063         Replace 'openat' if O_CLOEXEC is not present.
18064         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18065         * modules/open (Files): Add m4/open-cloexec.m4.
18066         (Depends-on): Depend on cloexec if replacing 'open'.
18067         * modules/openat (Files): Add m4/open-cloexec.m4.
18068         (Depends-on): Depend on cloexec if replacing openat.
18069         * modules/popen-safer (Depends-on): Remove cloexec.
18070         * modules/save-cwd (Depends-on): Remove cloexec, and add
18071         fd-safer-flag and 'open'.
18073 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18075         reallocarray: minor fixes
18076         * doc/glibc-functions/reallocarray.texi: Update version numbers.
18077         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
18078         * modules/reallocarray (License): Change from GPL to LGPL.
18079         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
18080         Indent properly and don't use tabs.
18082 2017-08-13  Darshit Shah  <darnir@gnu.org>
18084         reallocarray: New module
18085         reallocarray is a new function in glibc 2.26 to safely allocate an array
18086         of memory locations with integer overflow protection.
18087         * MODULES.html.sh: Add reallocarray.
18088         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
18089         * lib/reallocarray.c: New file to implement module reallocarray.
18090         * lib/stdlib.in.h: Add function declarations for reallocarray.
18091         * m4/reallocarray.m4: New file.
18092         * m4/stdlib_h.m4: Declare reallocarray.
18093         * modules/reallocarray: New file.
18094         * modules/reallocarray-test: New file.
18095         * modules/stdlib: Coerce stdlib.h to export reallocarray.
18096         * tests/test-reallocarray.c: New test.
18098 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
18100         dirent-safer: fix cloexec race
18101         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
18102         (opendir_safer): Use F_DUPFD_CLOEXEC.
18103         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
18104         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
18105         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
18106         instead of dup_safer.
18108         fts: fix cloexec races
18109         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18110         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18111         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18112         (fd_ring_check): Set cloexec flag on new file descriptors.
18113         (fts_build, fd_ring_check): While we’re at it, make sure the
18114         resulting file descriptor is not 0, 1, or 2, since that is easy.
18116 2017-08-11  Bruno Haible  <bruno@clisp.org>
18118         fts tests: Fix link error.
18119         Reported by Tom G. Christensen in
18120         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18121         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18123 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18125         fts: port recent changes to CentOS 6
18126         Problem reported by Tom G. Christensen in:
18127         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18128         * lib/fts.c (fsword): New type.
18129         (struct dev_type, filesystem_type): Use it.
18130         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18131         Also, check for f_type only if fstatfs and sys/vfs.h work.
18133 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18135         tempname: do not depend on secure_getenv
18136         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18137         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18138         * modules/tempname (Depends-on): Remove secure_getenv.
18140 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18142         extensions: add _OPENBSD_SOURCE
18143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18145 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18146             Bruno Haible  <bruno@clisp.org>
18148         manywarnings: Add support for C++.
18149         * build-aux/g++-warning.spec: New file.
18150         * m4/manywarnings-c++.m4: New file.
18151         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18152         redirects to manywarnings-c++.m4.
18153         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18155 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18157         git-version-gen: another fix for tags with "-"
18158         * build-aux/git-version-gen: Improve fix for tags containing "-".
18159         Suggested by Markus Armbruster in:
18160         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18162 2017-08-06  Bruno Haible  <bruno@clisp.org>
18164         warnings, manywarnings: Add support for multiple languages, not just C.
18165         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18166         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18167         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18168         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18169         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18170         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18171         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18172         of the current language. If C++ is the current language, modify
18173         WARN_CXXFLAGS instead of WARN_CFLAGS.
18174         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18175         gl_MANYWARN_ALL_GCC.
18176         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18178 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18180         git-version-gen: Fix for tags containing '-'
18182         Really old versions of git-describe (before v1.5.0, Feb 2007)
18183         don't have the number of commits in their long format output,
18184         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18185         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18186         recognizes both patterns, and normalizes the old format to the new one.
18188         Unfortunately, this normalization code gets confused when the tag
18189         contains '-'.  Reproducer:
18191             $ git-tag -m test v0.2-rc1
18192             $ build-aux/git-version-gen .tarball-version; echo
18193             build-aux/git-version-gen: WARNING: git rev-list failed
18194             UNKNOWN
18196         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18197         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18198         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18200         * git-version-gen: We could perhaps drop support for versions from
18201         more than a decade ago.  But tightening the pattern match is easy
18202         enough, so do that.  Still breaks when you use version tags ending in
18203         something matching -g????, but you arguably get what you deserve then.
18205 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18207         valgrind-tests: use ls, and cache
18208         * m4/valgrind-tests.m4: Test ls, not bash.
18209         Problem reported by Reuben Thomas.
18210         Also, cache the result so that it can be overridden.
18212 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18214         manywarnings: port to 64-bit GCC builds of Emacs
18215         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18216         object size rather than hardwiring 2147483647.  This is needed to
18217         build GNU Emacs, which has one conditional (and used
18218         only-in-theory) call to malloc with a literal greater than
18219         2147483647.
18221 2017-08-04  Bruno Haible  <bruno@clisp.org>
18223         Relax the license of some modules with no runtime code.
18224         * modules/std-gnu11 (License): Set to 'unlimited'.
18225         * modules/c99 (License): Likewise.
18226         Reported by Reuben Thomas <rrt@sc3d.org>.
18227         * modules/d-ino (License): Set to 'LGPL'.
18228         * modules/host-os (License): Likewise.
18229         * modules/longlong (License): Likewise.
18231 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18233         renameat2: port to RHEL 7 + NFS
18234         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18235         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18236         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18238 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18240         renameat2: port to non-renameat platforms
18241         Problem reported for MSVC-2015 by Gisle Vanem in:
18242         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18243         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18244         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18246 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18248         manywarnings: port to 32-bit GCC bug
18249         Problem reported by Pino Toscano in:
18250         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18251         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18252         not 2**63 - 1, to work around the following GCC bug:
18253         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18255 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18257         backupfile: new function to validate backup suffix
18258         * lib/backupfile.c (set_simple_backup_suffix): New function.
18259         (backupfile_internal): Use it.
18261         canonicalize: fix EOVERFLOW commentary
18262         Problem reported by Bruno Haible in:
18263         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18264         * lib/canonicalize.c (canonicalize_filename_mode):
18265         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18267         Don't interpret EOVERFLOW to mean nonexistence
18268         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18269         may be EOVERFLOW; this is likely more useful than reporting the
18270         stat errno.
18271         * lib/glob.c (link_stat): Rename from link_exists2_p and
18272         return -1/0 instead of 0/1.  Caller changed.
18273         * lib/glob.c (link_exists_p):
18274         * lib/renameat2.c (rename_noreplace, renameat2):
18275         * lib/tempname.c (try_nocreate):
18276         If errno == EOVERFLOW then the directory entry exists, so do not
18277         act as if it does not exist.
18279         backup-rename: new module
18280         It is like backupfile, except it avoids some race conditions,
18281         and it does not output to stderr or exit.
18282         * MODULES.html.sh: Add backup-rename.
18283         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18284         * modules/backup-rename: New files.
18285         * lib/backupfile.c: Turn this into an internals file, which
18286         contains code common to backupfile and backup_rename.  Include
18287         backupfile-internal.h instead of backupfile.h.  Do not include
18288         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18289         renameat2.h and fcntl.h.
18290         (BACKUP_NOMEM): New constant.
18291         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18292         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18293         (backupfile_internal): Rename from find_backup_file_name.
18294         Support new arg RENAME.
18295         (backup_args, backup_types, get_version, xget_version):
18296         Move to lib/backup-find.c.
18297         * lib/backupfile.h (backup_file_rename): New decl.
18298         * modules/backupfile (Files): Add lib/backup-internal.h,
18299         lib/backup-find.c.
18300         (Depends-on): Add dirfd, fcntl, renameat2.
18301         (lib_SOURCES): Add backup-find.c.
18303         renameat2: port better to older Solaris
18304         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18305         Add goto to use a label, to silence picky compilers.
18307         fts-tests: port to gcc -Wwrite-strings
18308         * tests/test-fts.c (base, base_d): New static vars.
18309         (argv, remove_tree, main): Use them.
18311 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18313         relocatable-lib{,-lgpl}: improve documentation
18314         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18315         Various other updates.
18317 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18318             Bruno Haible  <bruno@clisp.org>
18320         relocatable-lib{,-lgpl}: add Valgrind suppressions
18321         * lib/relocatable.valgrind: New file.
18322         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18323         * modules/relocatable-lib-lgpl: Likewise.
18325 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18327         relocatable: Make the license on the sources the GPL.
18328         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18329         LGPL, which was a special case so that the relocatable source files
18330         could be used without gnulib-tool, to GPL. They can still be used under
18331         the LGPL, using the --lgpl option to gnulib-tool.
18333 2017-07-30  Bruno Haible  <bruno@clisp.org>
18335         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18336         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18337         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18338         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18339         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18341 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18343         faccessat: document AT_SYMLINK_NOFOLLOW issue
18344         * doc/posix-functions/faccessat.texi: Modernize platform list.
18345         Document AT_SYMLINK_NOFOLLOW limitation.
18347         renameat2: port to Solaris 10
18348         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18349         with AT_SYMLINK_NOFOLLOW (which is not portable).
18350         (renameat): Undef before using, to avoid endless recursion when
18351         the replacement renameat calls renameat2 which calls the
18352         replacement renameat.
18353         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18354         * modules/renameat2 (Depends-on): Remove faccessat.
18355         * modules/renameat-tests (test_renameat_LDADD):
18356         * modules/renameat2-tests (test_renameat2_LDADD):
18357         Remove $(LIB_EACCESS).
18359         renameat2: new module
18360         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18361         useful to have access to its RENAME_NOREPLACE flag.
18362         * MODULES.html.sh (func_all_modules): Add renameat2.
18363         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18364         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18365         * lib/renameat.c (renameat): Move most of the implementation
18366         to renameat2, and just call renameat2.
18367         * modules/renameat (Files): Remove lib/at-func2.c.
18368         (Depends-on): Depend only on renameat2.
18369         (Include): Remove <fcntl.h>.
18370         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18371         since renameat (via renameat2) might use faccessat.
18373 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18375         vc-list-files: Adjust the script to support git worktrees
18376         * build-aux/vc-list-files: Require existence, not directory.
18378 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18380         doc: bring MODULES.html.sh up to date
18381         Somehow a few months ago we stopped updating MODULES.html.sh.
18382         I don’t recall explicitly deciding this, so I updated it now.
18383         Alternatively I suppose we could remove it.
18384         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18385         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18386         truncate, utime, utime-h, windows-stat-inodes,
18387         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18389 2017-07-26  Jim Meyering  <meyering@fb.com>
18391         fprintftime: fix build-break caused by recent renaming
18392         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18393         "strftime.c".
18394         * modules/fprintftime: Depend directly on nstrftime.
18396 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18398         regex: work with GCC7's -Werror=implicit-fallthrough=
18399         * lib/regex_internal.h (FALLTHROUGH): New macro.
18400         * lib/regcomp.c (peek_token_bracket, parse_expression):
18401         * lib/regexec.c (check_node_accept): Use it.
18403 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18405         fts: simplify fts_build
18406         * lib/fts.c (fts_build): Simplify, and be lazier about
18407         calling leaf_optimization.
18409         fts: three levels of leaf optimization
18410         * lib/fts.c (enum leaf_optimization): New type with three values.
18411         (S_MAGIC_AFS): New macro.  Sort them.
18412         (leaf_optimization): Rename from leaf_optimization_applies, and
18413         return enum leaf_optimization instead of bool.  All uses changed.
18414         Add cases for unknown type and for AFS.
18415         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18417         fts: cache dirent_inode_sort_may_be_useful too
18418         * lib/fts.c (struct dev_type): New struct.
18419         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18420         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18421         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18422         Now takes FTSENT const *, not int.  All uses changed.  Use
18423         filesystem_type to cache.
18424         (link_count_optimize_ok): Remove.  Caller changed to use
18425         leaf_optimization_applies, which now uses shared cache.
18427         fts: introduce MIN_DIR_NLINK
18428         * lib/fts.c (MIN_DIR_NLINK): New constant.
18429         Use it instead of 2, whenever we are talking about link counts.
18431         fts: nlink_t signedness fixups
18432         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18433         so that root need not be a special case later.
18434         (fts_read): Remove now-redundant test for fts_level.
18435         Do not assume that nlink_t is signed.
18436         (fts_build): Remove useless decrement of nlinks.
18437         (fts_stat): Avoid unlikely signed integer overflow later, if
18438         nlink_t is signed.
18440         fts-tests: new module
18441         * modules/fts-tests, tests/test-fts.c: New files.
18443 2017-07-23  Bruno Haible  <bruno@clisp.org>
18445         Rename module 'strftime' to 'nstrftime'.
18446         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18447         * lib/nstrftime.c: Renamed from lib/strftime.c.
18448         * modules/nstrftime: Renamed from modules/strftime.
18449         (Files, Makefile.am): Update.
18450         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18451         Fix comment.
18452         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18453         (Files, Makefile.am): Update.
18454         * modules/strftime: New file, an obsolete indirection.
18455         * doc/posix-functions/strftime.texi: Update reference.
18456         * config/srclist.txt: Update info.
18457         * NEWS: Mention the change.
18459 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18461         malloca: Silence a warning from clang's memory sanitizer.
18462         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18463         (freea): Use it.
18465 2017-07-18  Bruno Haible  <bruno@clisp.org>
18467         host-cpu-c-abi: Fix detection of MIPS ABI.
18468         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18469         ABI, not the CPU instruction set.
18471 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18473         explicit_bzero: new module
18474         The explicit_bzero function has been added to glibc.
18475         This module is intended to supports its use in GNU programs.
18476         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18477         * m4/explicit_bzero.m4, modules/explicit_bzero:
18478         New files.
18479         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18480         * lib/string.in.h (explicit_bzero): Declare.
18481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18482         * modules/string (string.h): Substitute its vars.
18484 2017-07-16  Bruno Haible  <bruno@clisp.org>
18486         threadlib: Support static linking.
18487         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18488         set gl_cv_have_weak to 'no'.
18490 2017-07-16  Bruno Haible  <bruno@clisp.org>
18492         unicase/locale-language: Fix link dependencies.
18493         * modules/unicase/locale-language (Link): New section.
18494         * modules/unicase/locale-language-tests (Makefile.am): Link
18495         test-locale-language program with $(LIBTHREAD).
18497 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18499         sys_socket: Add support for OpenVMS.
18500         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18501         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18503 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18505         sys_resource: Add support for OpenVMS.
18506         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18507         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18509 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18510             Bruno Haible  <bruno@clisp.org>
18512         math: Add support for OpenVMS.
18513         * lib/math.in.h [__VMS]: Include <fp.h>.
18514         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18516 2017-07-15  Bruno Haible  <bruno@clisp.org>
18518         getdtablesize: Add minimal support for OpenVMS.
18519         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18520         * modules/getdtablesize (Description): Fix.
18521         * lib/getdtablesize.c: Fix comment.
18522         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18523         getdtablesize() function, even though the test fails.
18524         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18525         limitation on OpenVMS.
18527 2017-07-13  Bruno Haible  <bruno@clisp.org>
18529         Revisit cross-compilation guesses.
18530         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18532 2017-07-13  Bruno Haible  <bruno@clisp.org>
18534         Improve cross-compilation guesses for native Windows.
18535         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18536         Windows.
18537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18538         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18539         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18540         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18541         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18542         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18543         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18544         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18545         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18546         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18547         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18548         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18549         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18550         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18551         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18552         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18553         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18555         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18556         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18557         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18558         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18559         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18560         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18561         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18562         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18563         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18564         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18565         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18566         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18567         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18569         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18570         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18571         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18572         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18573         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18574         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18575         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18576         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18577         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18579         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18580         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18581         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18582         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18583         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18584         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18585         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18586         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18587         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18588         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18589         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18590         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18591         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18592         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18593         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18594         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18595         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18596         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18598         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18599         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18600         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18601         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18603         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18604         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18605         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18606         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18607         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18608         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18609         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18610         * m4/regex.m4 (gl_REGEX): Likewise.
18611         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18612         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18613         gl_FUNC_REMAINDERF_WORKS): Likewise.
18614         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18615         gl_FUNC_REMAINDERL_WORKS): Likewise.
18616         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18617         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18619         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18621         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18622         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18623         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18624         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18625         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18626         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18627         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18628         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18629         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18630         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18631         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18632         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18634         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18635         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18636         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18637         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18638         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18639         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18640         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18641         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18642         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18643         Likewise.
18644         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18645         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18646         Windows. Enable also on Autoconf 2.70.
18647         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18648         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18649         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18650         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18651         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18652         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18653         for native Windows.
18654         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18655         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18657 2017-07-13  Bruno Haible  <bruno@clisp.org>
18659         Improve cross-compilation guesses for native Windows.
18660         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18661         Windows.
18662         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18663         memchr.m4.
18664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18666 2017-07-13  Bruno Haible  <bruno@clisp.org>
18668         Improve cross-compilation guesses for native Windows.
18669         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18670         native Windows.
18671         (gl_FUNC_FFLUSH): Update accordingly.
18672         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18673         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18675 2017-07-11  Bruno Haible  <bruno@clisp.org>
18677         More systematic m4 quoting and indentation.
18678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18679         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18680         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18681         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18682         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18683         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18684         gl_WINSIZE_IN_PTEM): Likewise.
18685         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18686         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18687         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18688         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18689         Correct indentation.
18690         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18691         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18692         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18693         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18694         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18695         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18697 2017-07-10  Bruno Haible  <bruno@clisp.org>
18699         round, roundf: Avoid compiler warning in configure test.
18700         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18703 2017-07-10  Bruno Haible  <bruno@clisp.org>
18705         getlogin tests: Avoid #ifdefs when sharing code between modules.
18706         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18707         * modules/getlogin-tests (Files): Likewise. Remove
18708         tests/test-getlogin_r.c.
18709         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18710         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18711         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18712         getlogin().
18714 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18716         getlogin: don’t assume one name per uid
18717         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18718         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18719         (ttyname): Remove test.
18720         * modules/getlogin_r-tests (ttyname): Remove test.
18721         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18722         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18723         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18724         getlogin rather than getlogin_r.  This avoids code duplication.
18725         (main): Use isatty and fstat rather than ttyname and stat.
18726         Use getpwnam instead of getpwuid, to be portable to test platforms
18727         that have multiple login names for the same uid.
18729 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18730             Bruno Haible  <bruno@clisp.org>
18732         glob: Fix more memory leaks.
18733         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18734         returning.
18735         Reported by Tim Rühsen.
18737 2017-07-10  Bruno Haible  <bruno@clisp.org>
18739         Make sure $host and $host_os are defined when used.
18740         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18741         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18742         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18743         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18744         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18745         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18746         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18747         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18748         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18749         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18750         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18751         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18752         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18753         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18754         m4_ifdef block.
18756 2017-07-09  Bruno Haible  <bruno@clisp.org>
18758         *printf: Fix cross-compilation guess for Solaris.
18759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18760         2010-12-21.
18762 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18763             Bruno Haible  <bruno@clisp.org>
18765         vasnprintf: port to macOS 10.13
18766         Problem reported by comex in:
18767         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18768         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18770 2017-07-06  Bruno Haible  <bruno@clisp.org>
18772         imaxdiv tests: Fix logic.
18773         * tests/test-imaxdiv.c (main): Use == instead of =.
18774         Reported by Coverity.
18776 2017-07-06  Bruno Haible  <bruno@clisp.org>
18778         uninorm/filter: Fix use-after-free bug.
18779         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18780         sortbuf == filter->sortbuf invariant.
18781         Reported by Coverity.
18783 2017-07-06  Bruno Haible  <bruno@clisp.org>
18785         glob: Fix more memory leaks.
18786         * lib/glob.c (glob): Free dirname before returning.
18787         Reported by Coverity and Tim Rühsen.
18789 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18791         parse-datetime: fix uninit var bug
18792         Reported by Bruno Haible in:
18793         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18794         * lib/parse-datetime.y (parse_datetime2): Do not use
18795         uninitialized.
18797 2017-07-05  Bruno Haible  <bruno@clisp.org>
18799         doc: Update for MSVC 14.
18800         * doc/posix-headers/*.texi: Add info about MSVC 14.
18801         * doc/posix-functions/*.texi: Likewise.
18802         * doc/pastposix-functions/*.texi: Likewise.
18803         * doc/glibc-headers/*.texi: Likewise.
18804         * doc/glibc-functions/*.texi: Likewise.
18806 2017-07-05  Bruno Haible  <bruno@clisp.org>
18808         sched: Fix build failure on native Windows (regression from 2017-06-19).
18809         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18811 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18813         stdioext: Port to OpenVMS.
18814         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18815         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18816         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18817         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18818         * lib/fpurge.c (fpurge): Likewise.
18819         * lib/freadable.c (freadable): Likewise.
18820         * lib/freadahead.c (freadahead): Likewise.
18821         * lib/freading.c (freading): Likewise.
18822         * lib/freadptr.c (freadptr): Likewise.
18823         * lib/freadseek.c (freadseek): Likewise.
18824         * lib/fseeko.c (fseeko): Likewise.
18825         * lib/fseterr.c (fseterr): Likewise.
18826         * lib/fwritable.c (fwriteable): Likewise.
18827         * lib/fwriting.c (fwriting): Likewise.
18829 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18831         glob: Declare variables at the very start of their scope.
18832         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18833         its separate scope, so the functions will compile on Haiku.
18835 2017-07-01  Bruno Haible  <bruno@clisp.org>
18837         logbl: Work around a glibc bug on PowerPC64LE.
18838         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18839         numbers.
18840         * doc/posix-functions/logbl.texi: Update.
18842 2017-06-29  Bruno Haible  <bruno@clisp.org>
18844         stat, fstat: Compile stat-w32.c only on platforms that need it.
18845         Suggested by Paul Eggert.
18846         * modules/stat (configure.ac): Request stat-w32.o only on native
18847         Windows.
18848         * modules/fstat (configure.ac): Likewise.
18850 2017-06-25  Bruno Haible  <bruno@clisp.org>
18852         stat: Improve last change.
18853         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18855 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18857         stat: port to xlc 12.01
18858         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18859         12.01 complains "Compilation unit is empty."
18861 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18863         xalloc-oversized: port to icc
18864         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18865         __builtin_mul_overflow if ICC is defined, as this results in
18866         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18867         20170213.
18869 2017-06-19  Bruno Haible  <bruno@clisp.org>
18871         classpath: Avoid including config.h twice, as it produces warnings.
18872         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18873         * lib/classpath.h: Conditionalize the include of config.h.
18875 2017-06-19  Bruno Haible  <bruno@clisp.org>
18876             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18878         sched: Fix compilation failure on OpenVMS.
18879         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18880         test whether <pthread.h> exists and defines struct sched_param.
18881         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18883 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18885         diffseq: port to GCC 7 with --enable-gcc-warnings
18886         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18887         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18888         not complain about big_snake being defined but not used.
18890 2017-06-15  Bruno Haible  <bruno@clisp.org>
18892         gettext-h: Update theoretical condition for use of variable size arrays.
18893         Reported by Paul Eggert.
18894         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18895         to include the theoretical condition for availability of variable size
18896         arrays, if we could trust the value of __STDC_VERSION__.
18898 2017-06-12  Bruno Haible  <bruno@clisp.org>
18900         Relicense some modules under LGPLv2+.
18901         Daiki Ueno's approval is in
18902         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18903         * modules/uniwidth/base (License): Change to LGPLv2+.
18904         * modules/uniwidth/width (License): Likewise.
18906 2017-06-11  Bruno Haible  <bruno@clisp.org>
18908         localename: Fix test failure on DragonFly BSD.
18909         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18910         like FreeBSD.
18912 2017-06-11  Bruno Haible  <bruno@clisp.org>
18914         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18915         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18916         * lib/float.in.h: Likewise.
18917         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18919 2017-06-11  Bruno Haible  <bruno@clisp.org>
18921         gnulib-tool: Clean up after autotools.
18922         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18923         useless directory left over by the Autotools.
18925 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18927         getopt-posix: port to glibc 2.25.90
18928         Problem reported by Daniel P. Berrange in:
18929         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18930         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18931         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18932         #undef if __GETOPT_PREFIX is defined.
18934 2017-06-11  Bruno Haible  <bruno@clisp.org>
18936         strtod-obsolete: Fix license.
18937         * modules/strtod-obsolete (License): Change to LGPL.
18939 2017-06-10  Jim Meyering  <meyering@fb.com>
18941         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18942         * lib/savewd.c (FALLTHROUGH): Define.
18943         (savewd_save, savewd_restore): Use this, rather than a comment,
18944         whenever one switch case falls through into the next.
18946 2017-06-08  Bruno Haible  <bruno@clisp.org>
18948         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18949         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18950         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18951         case.
18953 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18955         doc: remove robots, add prereqs
18956         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18957         builds.  Simon's robot site does not seem to be up, so remove
18958         mentions of it for now.
18960 2017-06-08  Bruno Haible  <bruno@clisp.org>
18962         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18963         * gnulib-tool (func_symlink_target): New function, extracted from
18964         func_symlink.
18965         (func_symlink, func_symlink_if_changed): Use it.
18967 2017-06-08  Bruno Haible  <bruno@clisp.org>
18969         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
18970         * gnulib-tool (func_ln_s): Determine cp_src correctly.
18972 2017-06-07  Bruno Haible  <bruno@clisp.org>
18974         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
18975         Reported by John E. Malmberg <wb8tyw@gmail.com> in
18976         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
18977         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
18978         override, pass 2 arguments to getcwd, not 3.
18980 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18982         same-inode: port better to VMS 8.2 and later
18983         Problem reported by John E. Malmberg in:
18984         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
18985         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
18986         Use the usual POSIX definition.
18987         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
18989 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18991         error: fix POSIX violation for va_end
18992         Problem reported by Bruno Haible in:
18993         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
18994         * lib/error.c (error_tail): Do not call va_end here.
18995         (error, error_at_line): Call it here instead.
18997 2017-05-28  Bruno Haible  <bruno@clisp.org>
18999         c-strtod: Make it usable in C++ mode.
19000         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19002 2017-05-25  Jim Meyering  <meyering@fb.com>
19004         quotearg: fix compilation failure due to FALLTHROUGH misuse
19005         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19006         macro back to /* fall through */ comment.  The macro can apply only
19007         to a following case statement.  Reported by Assaf Gordon.
19009 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19011         intprops: port to recent icc
19012         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19013         but does not support __builtin_add_overflow etc.
19014         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19015         Define to 0.
19017 2017-05-23  Karl Berry  <karl@freefriends.org>
19019         * config/srclist.txt (iconv.m4): sync broken, comment out
19020         until (hopefully) the next gettext release.
19022 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19024         Remove repeated words in comments.
19026 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19028         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19029         quotearg.c: Reinstate this instance which is significant
19030         when the if branch is not taken.
19032 2017-05-21  Bruno Haible  <bruno@clisp.org>
19034         gnulib-tool: Add options to create hard links.
19035         * gnulib-tool (func_usage): Document options --hardlink,
19036         --local-hardlink, --more-hardlinks.
19037         (func_symlink): Renamed from func_ln.
19038         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19039         (func_hardlink): New function.
19040         (copymode, lcopymode): New variables.
19041         (symbolic, lsymbolic): Remove variables.
19042         (Options): Implement options --hardlink, --local-hardlink,
19043         --more-hardlinks.
19044         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19045         (func_add_file, func_update_file): Update invocation of
19046         func_should_link. Invoke func_hardlink when appropriate.
19047         (func_import): Update comments.
19048         (func_create_testdir): Update invocation of func_should_link. Invoke
19049         func_hardlink when appropriate.
19050         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19051         the hard links on git.
19053 2017-05-20  Bruno Haible  <bruno@clisp.org>
19055         argp: Simplify bit manipulation.
19056         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19057         on a signed integer type.
19059 2017-05-20  Bruno Haible  <bruno@clisp.org>
19061         Avoid wrong configure results with gcc -fsanitize=address.
19062         This completes the work done on 2016-02-06 on this topic.
19063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19064         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19066         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19067         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19068         returning.
19069         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19070         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19071         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19072         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19073         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19074         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19075         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
19076         free allocated memory before returning.
19077         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
19079         objects before returning.
19080         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
19081         returning.
19083 2017-05-20  Bruno Haible  <bruno@clisp.org>
19085         gnulib-tool: Don't create hard links between gnulib and its testdirs.
19086         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
19088 2017-05-20  Bruno Haible  <bruno@clisp.org>
19090         argp, tsearch tests: Fix file list.
19091         * modules/argp-tests (Files): Add tests/macros.h.
19092         * modules/tsearch-tests (Files): Likewise.
19094 2017-05-20  Bruno Haible  <bruno@clisp.org>
19096         getopt-posix tests: Remove redundant include.
19097         * tests/test-getopt.h: Don't include "macros.h". It's already included
19098         by tests/test-getopt-main.h.
19100 2017-05-19  Jim Meyering  <meyering@fb.com>
19102         dfa: two small simplifications
19103         * lib/dfa.c (build_state): Avoid repeating longer expressions.
19105 2017-05-18  Jim Meyering  <meyering@fb.com>
19107         fallthrough: update for GCC 7/8
19108         * lib/quotearg.c (FALLTHROUGH): New macro.
19109         Use it whenever one switch case falls through into the next,
19110         replacing "/* Fall through */" comments.  This exposed one
19111         instance of an unwarranted "fall through" comment: unwarranted
19112         because it preceded a "goto" label not a case statement.
19113         * lib/freopen-safer.c (freopen_safer): Likewise.
19114         * lib/fts.c (leaf_optimization_applies): Likewise.
19115         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19116         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19117         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19118         tests/macros.h for the definition.
19119         * tests/test-argp.c (group1_parser): Likewise.
19120         * tests/test-getopt.h (getopt_loop): Likewise.
19122 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19124         argp: fix shift bug
19125         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19126         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19128         argp: fix pointer-subtraction bug
19129         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19130         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19131         See the thread containing Bruno Haible’s report in:
19132         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19134 2017-05-19  Bruno Haible  <bruno@clisp.org>
19136         printf-posix tests: Avoid test failure with "gcc --coverage".
19137         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19138         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19139         than 5000000.
19140         * tests/test-fprintf-posix2.c (main): Likewise.
19142 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19144         closeout: don’t close stderr when sanitizing
19145         * NEWS: Document this.
19146         * lib/closeout.c (__has_feature): New macro, if not already defined.
19147         (SANITIZE_ADDRESS): New constant.
19148         (close_stdout): Don’t close stderr if sanitizing addresses.
19150 2017-05-19  Bruno Haible  <bruno@clisp.org>
19152         get-rusage-data tests: Avoid failure on Linux/glibc.
19153         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19154         on glibc systems.
19156 2017-05-18  Bruno Haible  <bruno@clisp.org>
19158         localename: Include necessary header files on Cygwin.
19159         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19160         where NL_LOCALE_NAME is defined.
19162 2017-05-18  Bruno Haible  <bruno@clisp.org>
19164         gettext: Update macros from gettext git.
19165         * m4/intldir.m4: Require Autoconf >= 2.60.
19166         * m4/progtest.m4: Fix typos in copyright notice.
19168 2017-05-18  Bruno Haible  <bruno@clisp.org>
19170         copy-file tests: Fix link error (regression from 2017-05-01).
19171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19172         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19173         $(LIB_CLOCK_GETTIME).
19175 2017-05-18  Bruno Haible  <bruno@clisp.org>
19177         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19178         (regression from 2017-02-13).
19179         * lib/unicase/special-casing.in.h: Renamed from
19180         lib/unicase/special-casing.h.
19181         * modules/unicase/special-casing (Files): Add
19182         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19183         (Makefile.am): Add rule for generating unicase/special-casing.h.
19184         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19185         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19186         not "special-casing.h".
19187         * lib/unicase/u*.c: Likewise.
19189 2017-05-17  Bruno Haible  <bruno@clisp.org>
19191         README: Don't ask people to read a TeXinfo file.
19192         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19193         * README: Tell people how to read the HTML formatted manual.
19195 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19197         parse-datetime: Fix memleak
19198         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19199         localtime_rz() failure.
19201 2017-05-16  Bruno Haible  <bruno@clisp.org>
19203         javacomp: Fix handle leak.
19204         Found by Coverity.
19205         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19207 2017-05-16  Bruno Haible  <bruno@clisp.org>
19209         relocate: Make it easier to reclaim allocated memory.
19210         * lib/relocatable.h (relocate2): New declaration/macro.
19211         * lib/relocatable.c (relocate2): New function.
19212         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19213         relocate2 function.
19214         * lib/localcharset.c (relocate2): Define fallback.
19215         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19216         allocated memory.
19217         * lib/javaversion.c (relocate2): Define fallback.
19218         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19219         allocated memory.
19221 2017-05-16  Bruno Haible  <bruno@clisp.org>
19223         relocate: Simplify EMX specific code.
19224         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19225         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19227 2017-05-16  Bruno Haible  <bruno@clisp.org>
19229         sigpipe tests: Fix file list.
19230         * modules/sigpipe-tests (Files): Add tests/macros.h.
19232 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19234         manywarnings: update for GCC 7
19235         * build-aux/gcc-warning.spec:
19236         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19237         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19238         requires a non-comment fallthrough attribute.  This is a bit
19239         cleaner than the comment versions.
19240         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19241         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19242         Use it whenever one switch case falls through into the next.
19243         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19244         Use FALLTHROUGH macro.
19246 2017-05-15  Bruno Haible  <bruno@clisp.org>
19248         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19249         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19250         @ALLOCA@, not @LTALLOCA@.
19252 2017-05-15  Bruno Haible  <bruno@clisp.org>
19254         sys_select: Avoid "was expanded before it was required" warning.
19255         * modules/sys_select (configure.ac): Require, not invoke,
19256         gl_HEADER_SYS_SELECT.
19258 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19260         gnulib-tool: improve GNU Make debugging
19261         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19262         Report autoconf diagnostics when it fails, in the output makefile.
19264 2017-05-14  Bruno Haible  <bruno@clisp.org>
19266         stat-time tests: Improve comment.
19267         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19269 2017-05-14  Bruno Haible  <bruno@clisp.org>
19271         same-inode: Adapt for windows-stat-inodes.
19272         * lib/same-inode.h: Include <sys/types.h>.
19273         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19274         * modules/same-inode (Depends-on): Add sys_types.
19276 2017-05-14  Bruno Haible  <bruno@clisp.org>
19278         windows-stat-inodes: New module.
19279         * m4/windows-stat-inodes.m4: New file.
19280         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19281         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19282         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19283         (_GL_WINDOWS_STAT_INODES): New macro.
19284         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19285         (GetFileInformationByHandleExFunc): New variable.
19286         (initialize): Initialize it.
19287         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19288         st_ino appropriately.
19289         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19290         a fallback, because it does not provide st_dev and st_ino values.
19291         * modules/fstat (Depends-on): Add 'verify'.
19292         * modules/windows-stat-inodes: New file.
19293         * doc/windows-stat-inodes.texi: New file.
19294         * doc/gnulib.texi: Include it.
19295         * doc/posix-headers/sys_stat.texi: Mention the new module.
19297 2017-05-14  Bruno Haible  <bruno@clisp.org>
19299         stat-time tests: Workaround for native Windows.
19300         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19301         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19302         New variables.
19303         (initialize_filenames): New function.
19304         (main): Invoke it.
19305         (cleanup, prepare_test): Update.
19307 2017-05-14  Bruno Haible  <bruno@clisp.org>
19309         stat-time: Adapt for windows-stat-timespec.
19310         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19311         entire st_ctim field.
19313 2017-05-13  Jim Meyering  <meyering@fb.com>
19315         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19316         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19317         file that uses the assume macro, claiming that verify.h is unused.
19319 2017-05-13  Bruno Haible  <bruno@clisp.org>
19321         Use symbolic values for _WIN32_WINNT.
19322         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19323         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19325 2017-05-13  Bruno Haible  <bruno@clisp.org>
19327         year2038: New module.
19328         * m4/year2038.m4: New file.
19329         * modules/year2038: New file.
19330         * doc/year2038.texi: New file.
19331         * doc/gnulib.texi: Include it.
19333 2017-05-13  Bruno Haible  <bruno@clisp.org>
19335         largefile: Simplify.
19336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19337         of _GL_WINDOWS_64_BIT_ST_SIZE.
19339 2017-05-13  Bruno Haible  <bruno@clisp.org>
19341         largefile: Improve and document.
19342         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19343         the mingw headers already define 'stat' appropriately.
19344         * modules/largefile (Description): Clarify.
19345         * doc/largefile.texi: New file.
19346         * doc/gnulib.texi: Include it.
19347         * doc/posix-headers/sys_types.texi: Update.
19349 2017-05-13  Bruno Haible  <bruno@clisp.org>
19351         truncate: New module.
19352         * lib/unistd.in.h (truncate): New declaration.
19353         * lib/truncate.c: New file.
19354         * m4/truncate.m4: New file.
19355         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19356         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19357         REPLACE_TRUNCATE.
19358         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19359         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19360         * modules/truncate: New file.
19361         * tests/test-unistd-c++.cc (truncate): Test signature.
19362         * doc/posix-functions/truncate.texi: Mention the new module.
19364         * tests/test-truncate.c: New file.
19365         * modules/truncate-tests: New file.
19367 2017-05-13  Bruno Haible  <bruno@clisp.org>
19369         windows-stat-timespec: New module.
19370         * modules/windows-stat-timespec: New file.
19371         * m4/windows-stat-timespec.m4: New file.
19372         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19373         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19374         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19375         fields st_atim, st_mtim, st_ctim.
19376         (st_atime, st_mtime, st_ctime): Define as macros.
19377         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19378         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19379         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19380         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19381         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19382         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19383         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19384         FILETIME to 'struct timespec', not 'time_t'.
19385         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19386         FILETIME to 'struct timespec', not 'time_t'.
19387         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19388         _GL_WINDOWS_STAT_TIMESPEC.
19389         * doc/windows-stat-timespec.texi: New file.
19390         * doc/gnulib.texi: Include it.
19392 2017-05-13  Bruno Haible  <bruno@clisp.org>
19394         windows-stat-override: New module.
19395         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19396         definition. Define GNULIB_defined_struct_stat.
19397         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19398         link error if this symbol is used and the corresponding module is not
19399         in use.
19400         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19401         GNULIB_OVERRIDES_STRUCT_STAT.
19402         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19403         GNULIB_OVERRIDES_STRUCT_STAT.
19404         * modules/sys_stat (Makefile.am): Substitute
19405         GNULIB_OVERRIDES_STRUCT_STAT.
19406         * modules/windows-stat-override: New file.
19408 2017-05-13  Bruno Haible  <bruno@clisp.org>
19410         fstat: Fix module dependency conditions.
19411         * modules/fstat (Depends-on): Fix typo.
19413 2017-05-13  Bruno Haible  <bruno@clisp.org>
19415         stat, fstat: Complete removal of old native Windows code.
19416         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19417         * lib/fstat.c: Likewise.
19418         * lib/stat-w32.c: Likewise.
19420 2017-05-13  Bruno Haible  <bruno@clisp.org>
19422         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19423         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19425 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19427         getopt-posix: port to mingw
19428         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19429         Problem reported by Daniel P. Berrage in:
19430         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19432 2017-05-11  Bruno Haible  <bruno@clisp.org>
19434         gettimeofday: Increase precision on mingw.
19435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19436         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19437         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19438         GetSystemTimePreciseAsFileTime based implementation always.
19439         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19440         mingw.
19442 2017-05-11  Bruno Haible  <bruno@clisp.org>
19444         poll: Fix confusion between SOCKETs and FDs on native Windows.
19445         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19446         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19448 2017-05-11  Bruno Haible  <bruno@clisp.org>
19450         doc: Clarify doc about socket functions on native Windows.
19451         This reworks doc that was added on 2008-09-29.
19452         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19453         clearer wording.
19454         * doc/posix-functions/accept.texi: Use clearer wording.
19455         * doc/posix-functions/bind.texi: Likewise.
19456         * doc/posix-functions/connect.texi: Likewise.
19457         * doc/posix-functions/getpeername.texi: Likewise.
19458         * doc/posix-functions/getsockname.texi: Likewise.
19459         * doc/posix-functions/getsockopt.texi: Likewise.
19460         * doc/posix-functions/ioctl.texi: Likewise.
19461         * doc/posix-functions/listen.texi: Likewise.
19462         * doc/posix-functions/recv.texi: Likewise.
19463         * doc/posix-functions/recvfrom.texi: Likewise.
19464         * doc/posix-functions/send.texi: Likewise.
19465         * doc/posix-functions/sendto.texi: Likewise.
19466         * doc/posix-functions/setsockopt.texi: Likewise.
19467         * doc/posix-functions/shutdown.texi: Likewise.
19468         * doc/posix-functions/socket.texi: Likewise.
19470 2017-05-10  Bruno Haible  <bruno@clisp.org>
19472         poll: Fix link error on native Windows.
19473         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19475 2017-05-10  Bruno Haible  <bruno@clisp.org>
19477         time: Fix missing initialization of HAVE_TIMEZONE_T.
19478         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19479         here...
19480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19481         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19482         gl_HEADER_SYS_TIME_H_DEFAULTS.
19483         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19484         (configure.ac): Remove useless quoting.
19486 2017-05-10  Bruno Haible  <bruno@clisp.org>
19488         Implement a way to opt out from MSVC support, part 2.
19489         * modules/msvc-inval (Include): Document recommended idiom.
19490         * modules/msvc-nothrow (Include): Likewise.
19492         Implement a way to opt out from MSVC support.
19493         This is useful for Emacs.
19494         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19495         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19496         * lib/error.c: Likewise.
19497         * lib/fcntl.c: Likewise.
19498         * lib/flock.c: Likewise.
19499         * lib/fstat.c: Likewise.
19500         * lib/fsync.c: Likewise.
19501         * lib/ioctl.c: Likewise.
19502         * lib/isapipe.c: Likewise.
19503         * lib/lseek.c: Likewise.
19504         * lib/nonblocking.c: Likewise.
19505         * lib/poll.c: Likewise.
19506         * lib/select.c: Likewise.
19507         * lib/sockets.h: Likewise.
19508         * lib/sockets.c: Likewise.
19509         * lib/stdio-read.c: Likewise.
19510         * lib/stdio-write.c: Likewise.
19511         * lib/utimens.c: Likewise.
19512         * lib/w32sock.h: Likewise.
19513         * lib/w32spawn.h: Likewise.
19514         * tests/test-cloexec.c: Likewise.
19515         * tests/test-dup-safer.c: Likewise.
19516         * tests/test-dup2.c: Likewise.
19517         * tests/test-dup3.c: Likewise.
19518         * tests/test-fcntl.c: Likewise.
19519         * tests/test-pipe.c: Likewise.
19520         * tests/test-pipe2.c: Likewise.
19521         * lib/ftruncate.c: Likewise.
19522         (chsize_nothrow): Renamed from chsize.
19523         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19524         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19525         * lib/close.c: Likewise.
19526         * lib/dup.c: Likewise.
19527         * lib/fclose.c: Likewise.
19528         * lib/raise.c: Likewise.
19529         * tests/test-fgetc.c: Likewise.
19530         * tests/test-fputc.c: Likewise.
19531         * tests/test-fread.c: Likewise.
19532         * tests/test-fwrite.c: Likewise.
19533         * lib/getdtablesize.c: Likewise.
19534         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19535         * lib/isatty.c: Don't include msvc-inval.h if
19536         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19537         Include <io.h> as an alternative to msvc-nothrow.h.
19538         * lib/read.c: Likewise.
19539         * lib/write.c: Likewise.
19540         * lib/dup2.c: Likewise.
19541         (dup2_nothrow): New function.
19542         (ms_windows_dup2): Use it.
19543         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19544         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19545         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19546         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19547         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19548         * m4/read.m4 (gl_FUNC_READ): Likewise.
19549         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19550         * doc/windows-without-msvc.texi: New file.
19551         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19552         section.
19554 2017-05-10  Bruno Haible  <bruno@clisp.org>
19556         wait-process: Adjust native Windows support.
19557         * lib/wait-process.c: Use the usual condition for recognizing a native
19558         Windows platform.
19560 2017-05-10  Bruno Haible  <bruno@clisp.org>
19562         doc: New chapter "Native Windows Support".
19563         * doc/gnulib.texi (Native Windows Support): New chapter.
19564         * doc/windows-libtool.texi: Small wording changes.
19565         * doc/windows-sockets.texi: Small wording and formatting changes.
19567 2017-05-10  Bruno Haible  <bruno@clisp.org>
19569         doc: Move section "Library version handling".
19570         * doc/gnulib.texi: Move section "Library version handling"
19571         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19573 2017-05-10  Bruno Haible  <bruno@clisp.org>
19575         doc: Move section "Running self-tests under valgrind".
19576         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19577         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19579 2017-05-10  Bruno Haible  <bruno@clisp.org>
19581         doc: New chapter "Build Infrastructure Modules".
19582         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19584 2017-05-10  Bruno Haible  <bruno@clisp.org>
19586         Prepare for reordering sections in the manual.
19587         * doc/gnulib.texi: Move several sections to separate files. Include
19588         these files.
19589         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19590         * doc/obsolete.texi: Likewise.
19591         * doc/extra-tests.texi: Likewise.
19592         * doc/transversal.texi: Likewise.
19593         * doc/namespace.texi: Likewise.
19594         * doc/check-version.texi: Likewise.
19595         * doc/windows-sockets.texi: Likewise.
19596         * doc/windows-libtool.texi: Likewise.
19597         * doc/licenses-texi.texi: Likewise.
19598         * doc/build-automation.texi: Likewise.
19599         * doc/c-locale.texi: Likewise.
19601 2017-05-10  Bruno Haible  <bruno@clisp.org>
19603         Fix instructions how to update manual on www.gnu.org.
19604         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19606 2017-05-09  Bruno Haible  <bruno@clisp.org>
19608         tzset: Expand comment about TZ problem on native Windows.
19609         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19610         Paul Eggert.
19611         * lib/ctime.c (rpl_ctime): Likewise.
19612         * lib/localtime.c (rpl_localtime): Likewise.
19613         * lib/mktime.c (mktime): Likewise.
19614         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19615         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19617 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19619         intprops: don’t depend on ‘verify’
19620         Problem reported by Ævar Arnfjörð Bjarmason in:
19621         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19622         * lib/intprops.h: Do not include verify.h, and move compile-time
19623         checks from here ...
19624         * tests/test-intprops.c (main): ... to here, if they’re not here
19625         already.  Check widths of other standard integer types.
19626         * modules/intprops (Depends-on): Remove ‘verify’.
19628 2017-05-07  Bruno Haible  <bruno@clisp.org>
19630         utimens: On native Windows, support 100ns resolution also if fd < 0.
19631         * lib/utime.in.h: Include <time.h>.
19632         (_gl_utimens_windows): New declaration.
19633         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19634         (utime): Invoke it.
19635         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19636         instead of utime.
19637         * modules/utime (Depends-on): Add 'time'.
19639 2017-05-07  Bruno Haible  <bruno@clisp.org>
19641         utimens: Improve error code on native Windows.
19642         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19643         error code EACCES, not EINVAL.
19645 2017-05-07  Bruno Haible  <bruno@clisp.org>
19647         utime: Handle more Windows error codes.
19648         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19649         Based on explanations by Billy O'Neal.
19651 2017-05-05  Bruno Haible  <bruno@clisp.org>
19653         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19654         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19655         union.
19656         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19657         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19658         value of cipher->IV.
19660 2017-05-05  Bruno Haible  <bruno@clisp.org>
19662         wctype-h-c++-tests: Update.
19663         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19665 2017-05-05  Bruno Haible  <bruno@clisp.org>
19667         wchar-c++-tests: Update.
19668         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19670 2017-05-05  Bruno Haible  <bruno@clisp.org>
19672         utime-h-c++-tests: New module.
19673         * tests/test-utime-h-c++.cc: New file.
19674         (utime): Declare, missing since 2017-04-30.
19675         * modules/utime-h-c++-tests: New file.
19677 2017-05-05  Bruno Haible  <bruno@clisp.org>
19679         unistd-c++-tests: Update.
19680         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19681         (read): Declare, missing since 2011-04-15.
19682         (sethostname): Declare, missing since 2011-12-03.
19684 2017-05-05  Bruno Haible  <bruno@clisp.org>
19686         time-c++-tests: Update.
19687         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19688         (localtime, gmtime): Declare, missing since 2017-04-30.
19689         (ctime): Declare, missing since 2017-04-30.
19690         (strftime): Declare, missing since 2017-04-30.
19691         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19692         2015-07-24.
19694 2017-05-05  Bruno Haible  <bruno@clisp.org>
19696         sys_resource-c++-tests: New module.
19697         * tests/test-sys_resource-c++.cc: New file.
19698         (getrusage): Declare, missing since 2012-04-13.
19699         * modules/sys_resource-c++-tests: New file.
19701 2017-05-05  Bruno Haible  <bruno@clisp.org>
19703         strings-c++-tests: New module.
19704         * tests/test-strings-c++.cc: New file.
19705         (ffs): Declare, missing since 2011-07-12.
19706         * modules/strings-c++-tests: New file.
19708 2017-05-05  Bruno Haible  <bruno@clisp.org>
19710         string-c++-tests: Update.
19711         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19712         (ffsll): Declare, missing since 2011-07-15.
19714 2017-05-05  Bruno Haible  <bruno@clisp.org>
19716         stdlib-c++-tests: Update.
19717         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19718         2011-10-18.
19719         (ptsname_r): Declare, missing since 2011-11-07.
19720         (qsort_r): Declare, missing since 2014-08-29.
19721         (random, srandom, initstate, setstate): Declare, missing since
19722         2012-01-14.
19723         (secure_getenv): Declare, missing since 2013-02-05.
19725 2017-05-05  Bruno Haible  <bruno@clisp.org>
19727         stdio-c++-tests: Update.
19728         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19730 2017-05-05  Bruno Haible  <bruno@clisp.org>
19732         signal-h-c++-tests: Update.
19733         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19735 2017-05-05  Bruno Haible  <bruno@clisp.org>
19737         math-c++-tests: Update.
19738         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19739         (fma): Declare, missing since 2011-10-17.
19740         (fmal): Declare, missing since 2011-10-17.
19742 2017-05-05  Bruno Haible  <bruno@clisp.org>
19744         locale-c++-tests: Update.
19745         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19746         2012-03-25.
19748 2017-05-05  Bruno Haible  <bruno@clisp.org>
19750         inttypes-c++-tests: New module.
19751         * tests/test-inttypes-c++.cc: New file.
19752         (strtoimax): Declare, missing since 2012-01-05.
19753         (strtoumax): Declare, missing since 2012-01-05.
19754         * modules/inttypes-c++-tests: New file.
19756 2017-05-05  Bruno Haible  <bruno@clisp.org>
19758         dirent-c++-tests: Update.
19759         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19760         (rewinddir): Declare, missing since 2011-09-13.
19761         (dirfd): Declare, missing since 2010-03-08.
19763 2017-05-04  Bruno Haible  <bruno@clisp.org>
19765         argp: Fix mistake in 2017-04-23 commit.
19766         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19767         assume that strerror_r returns 'int', not 'char *'.
19769 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19771         argp: Fix typo.
19772         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19774 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19776         utimens: port to Emacs + MS-Windows
19777         Skip the new MS-Windows-specific code if Emacs.
19778         * lib/utimens.c [EMACS_CONFIGUATION]:
19779         Avoid new MS-Windows-specific code.
19780         (USE_SETFILETIME): New macro.
19781         (fdutimens): Use it.
19783 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19785         tzset: update doc for TZ problems on MS-Windows
19786         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19787         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19788         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19789         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19790         * doc/posix-functions/wcsftime.texi:
19791         Mention some issues with TZ under MS-Windows.
19793 2017-05-01  Bruno Haible  <bruno@clisp.org>
19795         copy-file: Fix build error on mingw.
19796         * modules/copy-file (Depends-on): Add 'close'.
19798 2017-05-01  Bruno Haible  <bruno@clisp.org>
19800         tzset: Work around TZ problem on native Windows.
19801         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19802         Windows, set REPLACE_TZSET to 1.
19803         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19804         invoke '_tzset' instead of 'tzset'.
19805         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19807         * modules/time_rz (Depends-on): Add tzset.
19808         * lib/time_rz.c (tzset): Remove fallback definition.
19809         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19811 2017-05-01  Bruno Haible  <bruno@clisp.org>
19813         mktime: Fix dependencies.
19814         * modules/mktime (Depends-on): Add 'time'.
19816 2017-05-01  Bruno Haible  <bruno@clisp.org>
19818         New module 'localtime-buffer', split off from module 'gettimeofday'.
19819         * lib/localtime-buffer.h: New file.
19820         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19821         * lib/time.in.h (tzset): New declaration.
19822         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19823         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19824         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19825         moved to lib/localtime-buffer.c or lib/tzset.c.
19826         * m4/localtime-buffer.m4: New file.
19827         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19828         HAVE_TZSET, REPLACE_TZSET.
19829         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19830         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19831         gl_LOCALTIME_BUFFER_NEEDED.
19832         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19833         since 2007-01-18.
19834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19835         tzset.
19836         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19837         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19838         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19839         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19840         * modules/localtime-buffer: New file.
19841         * modules/time (Depends-on): Remove 'gettimeofday'.
19842         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19843         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19844         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19845         (Files): Add lib/tzset.c.
19846         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19847         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19848         gl_TIME_MODULE_INDICATOR.
19849         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19851 2017-05-01  Bruno Haible  <bruno@clisp.org>
19853         copy-file: Preserve sub-second time stamps.
19854         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19855         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19856         transport the time stamps from the original file to the destination
19857         file.
19858         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19859         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19860         utime-h.
19862 2017-05-01  Bruno Haible  <bruno@clisp.org>
19864         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19865         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19866         also on MSVC.
19867         Reported by Eli Zaretskii <eliz@gnu.org>.
19869 2017-05-01  Bruno Haible  <bruno@clisp.org>
19871         wchar: Fix compilation error with the original mingw.org mingw.
19872         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19873         <stddef.h> instead.
19874         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19875         gl_WCTYPE_H.
19876         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19877         gl_TYPE_WINT_T_PREREQ instead.
19878         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19879         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19880         Reported by Eli Zaretskii <eliz@gnu.org>.
19882 2017-04-30  Bruno Haible  <bruno@clisp.org>
19884         utimecmp: Add support for native Windows.
19885         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19887 2017-04-30  Bruno Haible  <bruno@clisp.org>
19889         utimens: Add support for native Windows.
19890         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19891         (fdutimens): Provide a native Windows implementation, like utime.c with
19892         added tv_nsec support.
19893         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19894         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19896 2017-04-30  Bruno Haible  <bruno@clisp.org>
19898         wcsftime: New module.
19899         * lib/wchar.in.h (wcsftime): New declaration.
19900         * lib/wcsftime.c: New file.
19901         * m4/wcsftime.m4: New file.
19902         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19903         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19904         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19906         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19907         * modules/wcsftime: New file.
19908         * doc/posix-functions/wcsftime.texi: Mention the new module.
19910 2017-04-30  Bruno Haible  <bruno@clisp.org>
19912         strftime-fixes: New module.
19913         * lib/time.in.h (strftime): New declaration.
19914         * lib/strftime-fixes.c: New file.
19915         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19916         (gl_FUNC_STRFTIME): Remove macro.
19917         * m4/strftime-fixes.m4: New file.
19918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19919         REPLACE_STRFTIME.
19920         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19921         REPLACE_STRFTIME.
19922         * modules/strftime-fixes: New file.
19923         * doc/posix-functions/strftime.texi: Mention the new module.
19925 2017-04-30  Bruno Haible  <bruno@clisp.org>
19927         mktime: Work around TZ problem on native Windows.
19928         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19929         from the native Windows workaround.
19930         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19931         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19932         'guessing no'.
19933         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19934         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19935         NEED_MKTIME_WINDOWS.
19936         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19937         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19938         NEED_MKTIME_INTERNAL.
19939         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19940         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19941         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19942         not REPLACE_MKTIME.
19943         * doc/posix-functions/mktime.texi: Mention the native Windows
19944         workaround.
19946 2017-04-30  Bruno Haible  <bruno@clisp.org>
19948         localtime: New module.
19949         * lib/time.in.h (localtime): Declare also if requested by module
19950         'localtime'.
19951         * lib/localtime.c: New file.
19952         * m4/localtime.m4: New file.
19953         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19954         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19955         * modules/localtime: New file.
19956         * doc/posix-functions/localtime.texi: Mention the new module.
19958 2017-04-30  Bruno Haible  <bruno@clisp.org>
19960         ctime: New module.
19961         * lib/time.in.h (ctime): New declaration.
19962         * lib/ctime.c: New file.
19963         * m4/ctime.m4: New file.
19964         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19965         REPLACE_CTIME.
19966         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19967         * modules/ctime: New file.
19968         * doc/posix-functions/ctime.texi: Mention the new module.
19970 2017-04-30  Bruno Haible  <bruno@clisp.org>
19972         gettimeofday: Provide higher resolution on native Windows.
19973         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
19974         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
19975         (initialize): Initialize it.
19976         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
19977         'struct timeval'. Don't use _ftime().
19978         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
19979         <sys/timeb.h> and _ftime.
19981 2017-04-30  Bruno Haible  <bruno@clisp.org>
19983         Document the problem with the Cygwin environment variable TZ.
19984         * doc/posix-functions/tzset.texi: Add note about TZ.
19985         * doc/posix-functions/ctime.texi: Likewise.
19986         * doc/posix-functions/localtime.texi: Likewise.
19987         * doc/posix-functions/mktime.texi: Likewise.
19988         * doc/posix-functions/strftime.texi: Likewise.
19989         * doc/posix-functions/wcsftime.texi: Likewise.
19990         * doc/pastposix-functions/ftime.texi: Likewise.
19992 2017-04-30  Bruno Haible  <bruno@clisp.org>
19994         utime-tests: New module.
19995         * tests/test-utime.c: New file, based on tests/test-utimens.h.
19996         * tests/test-utimens-common.h: Include <sys/stat.h>.
19997         * modules/utime-tests: New file.
19999 2017-04-29  Bruno Haible  <bruno@clisp.org>
20001         utime: New module.
20002         * lib/utime.in.h: Add comment for snippets.
20003         (utime): New declaration.
20004         * lib/utime.c: New file.
20005         * m4/utime.m4: New file.
20006         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20007         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20008         REPLACE_UTIME.
20009         * modules/utime-h (Depends-on): Add snippets.
20010         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20011         Insert snippets.
20012         * modules/utime: New file.
20013         * doc/posix-functions/utime.texi: Mention the new module.
20015 2017-04-29  Bruno Haible  <bruno@clisp.org>
20017         utime-h: Modernize handling of 'struct utimbuf'.
20018         * lib/utime.in.h: Include next <utime.h> if it exists.
20019         (utimbuf): Define to _utimbuf on native Windows.
20020         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20021         Set UTIME_H on native Windows.
20022         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20023         * modules/utime-h (Depends-on): Add include_next.
20024         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20025         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20027         * lib/utimens.c (utimbuf): Remove fallback definition.
20028         * m4/utimens.m4 (gl_UTIMENS): Don't require
20029         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20030         * m4/utimbuf.m4: Remove file.
20031         * modules/utimens (Files): Remove m4/utimbuf.m4.
20033 2017-04-29  Bruno Haible  <bruno@clisp.org>
20035         Make use of module 'utime-h'.
20036         * modules/copy-file (Depends-on): Add utime-h.
20037         * lib/copy-file.c: Assume that <utime.h> exists.
20038         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20040         * modules/utimens (Depends-on): Add utime-h.
20041         * lib/utimens.c: Assume that <utime.h> exists.
20043 2017-04-29  Bruno Haible  <bruno@clisp.org>
20045         utime-h: New module.
20046         * m4/utime_h.m4: New file.
20047         * lib/utime.in.h: New file.
20048         * modules/utime-h: New file.
20049         * doc/posix-headers/utime.texi: Mention the new module.
20051         * tests/test-utime-h.c: New file.
20052         * modules/utime-h-tests: New file.
20054 2017-04-30  Bruno Haible  <bruno@clisp.org>
20056         Fix a few typos.
20057         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20058         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20059         * doc/posix-functions/fstat.texi: Fix a plural typo.
20060         * doc/posix-functions/stat.texi: Likewise.
20061         * m4/include_next.m4: Update comments.
20063 2017-04-29  Bruno Haible  <bruno@clisp.org>
20065         error: Fix mistake in 2017-04-23 commit.
20066         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20067         assume that strerror_r returns 'int', not 'char *'.
20069 2017-04-29  Bruno Haible  <bruno@clisp.org>
20071         stat: Fix time_t values and other problems on native Windows platforms.
20072         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20073         implementations of stat().
20074         * lib/stat.c: Include filename.h instead of dosname.h. Include
20075         malloca.h, stat-w32.h.
20076         (is_unc_root): New function.
20077         (rpl_stat): New implementation for native Windows. Remove
20078         REPLACE_FUNC_STAT_DIR code.
20079         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
20080         Don't define REPLACE_FUNC_STAT_DIR.
20081         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
20082         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20083         (Depends-on): Remove dosname. Add filename, malloca.
20084         (configure.ac): Also compile lib/stat-w32.c.
20086 2017-04-29  Bruno Haible  <bruno@clisp.org>
20088         fstat: Fix time_t values on native Windows platforms.
20089         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
20090         * lib/stat-w32.h: New file.
20091         * lib/stat-w32.c: New file.
20092         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
20093         stat-w32.h instead.
20094         (fstat_nothrow): Remove function.
20095         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
20096         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
20097         always.
20098         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
20099         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
20100         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
20101         (configure.ac): Also compile lib/stat-w32.c.
20103 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20105         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
20106         Problem reported by Assaf Gordon and Gavin Smith in:
20107         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
20108         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20109         #define this, too.
20111 2017-04-29  Bruno Haible  <bruno@clisp.org>
20113         strerror_r-posix: Fixes for MSVC 14.
20114         * lib/strerror_r.c: Include <stdarg.h>.
20115         (strerror_r): Provide error messages for errno values 100...140.
20116         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20118 2017-04-28  Bruno Haible  <bruno@clisp.org>
20120         noreturn: New module.
20121         * lib/noreturn.h: New file.
20122         * modules/noreturn: New file.
20123         * tests/test-noreturn.c: New file.
20124         * modules/noreturn-tests: New file.
20125         * tests/test-noreturn-c++.cc: New file.
20126         * modules/noreturn-c++-tests: New file.
20128 2017-04-27  Bruno Haible  <bruno@clisp.org>
20130         wctype-h: Fix compilation error with the original mingw.org mingw.
20131         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20132         HAVE_CRTDEFS_H.
20133         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20134         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20135         <stddef.h> instead.
20136         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20138 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20140         nap.h: Fix compilation on non windows platforms
20141         * tests/nap.h: Move misplaced endif.
20143 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20144         and Paul Eggert  <eggert@cs.ucla.edu>
20146         time_rz: fix heap buffer overflow vulnerability
20147         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20148         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20149         whether there is enough buffer space available, thus avoiding
20150         the problematic promotion of signed to unsigned causing an invalid
20151         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20152         the start of the buffer.
20153         * tests/test-parse-datetime.c (main): Add a test case written by
20154         Paul Eggert, which overwrites enough of the heap so that
20155         standard glibc will fail with "free(): invalid pointer"
20156         without the patch applied.
20158 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20160         xalloc: add missing integer overflow check
20161         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20162         overflow when P is null.
20164 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20166         parse-datetime: make it standalone
20167         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20168         (_GL_ATTRIBUTE_FORMAT): New macro.
20169         These are needed to get './gnulib-tool --test parse-datetime' to work.
20171 2017-04-23  Bruno Haible  <bruno@clisp.org>
20173         nap.h: Port to native Windows.
20174         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20175         use nap_fd instead. On native Windows, close and reopen nap_fd.
20176         (nap_works): Don't compare the ctimes, because on native Windows, these
20177         are the creation times.
20178         (nap): Update.
20180 2017-04-23  Bruno Haible  <bruno@clisp.org>
20182         nap.h: Fix logic.
20183         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20185 2017-04-23  Bruno Haible  <bruno@clisp.org>
20187         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20188         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20189         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20190         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20191         * lib/argp-help.c (__argp_failure): Likewise.
20193 2017-04-23  Bruno Haible  <bruno@clisp.org>
20195         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20196         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20197         * lib/strerror_r.c: Likewise.
20199 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20201         Target a C99 subset, not a C89 subset
20202         For many years Gnulib has targeted C89 and has resisted using C99
20203         features, as some Gnulib-using programs still wanted to target
20204         C89.  As this no longer seems to be the case, relax the porting
20205         requirements to allow some C99 features.  This is merely a change
20206         to the documentation, to give other Gnulib developers a chance to
20207         weigh in on the topic.
20208         * doc/extern-inline.texi (extern inline):
20209         * doc/gnulib-readme.texi (Portability guidelines):
20210         * doc/gnulib-tool.texi (Initial import):
20211         * doc/gnulib.texi (Header files):
20212         Modernize to talk about C99 and C11 instead of C89 and C99.
20213         * doc/gnulib-readme.texi (Portability guidelines):
20214         Now a section, not merely a subsection, so that it
20215         can be split up.  Modernize a bit.
20216         (C language versions, C99 features assumed)
20217         (C99 features avoided):
20218         New sections.
20220 2017-04-23  Bruno Haible  <bruno@clisp.org>
20222         doc: New section "Modules that modify the way other modules work".
20223         * doc/gnulib.texi (Modules that modify the way other modules work): New
20224         section.
20226 2017-04-23  Bruno Haible  <bruno@clisp.org>
20228         stat-time: Update comments.
20229         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20230         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20231         Windows.
20233 2017-04-01  Bruno Haible  <bruno@clisp.org>
20235         glob: Fix more memory leaks.
20236         * lib/glob.c (glob): Free allocated memory before returning.
20237         Reported by Coverity via Tim Rühsen.
20239 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20241         poll: improve fast check for out-of-range NFD
20242         * lib/poll.c: Do not include intprops.h.
20243         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20244         * modules/poll (Depends-on): Remove intprops.
20246         ftoastr: cite a newer paper
20247         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20248         instead of Loitsch 2010.
20250 2017-04-22  Bruno Haible  <bruno@clisp.org>
20252         poll: Enable argument check also in the Windows implementation.
20253         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20254         Reported by Paul Eggert.
20256 2017-04-22  Bruno Haible  <bruno@clisp.org>
20258         getlogin_r: Work around bug in Mac OS X 10.12.
20259         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20260         bug.
20261         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20262         given size minus 1, call getlogin_r a second time, on a larger buffer.
20263         * modules/getlogin_r (Depends-on): Add malloca.
20264         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20266 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20268         parse-datetime: fix %z and prefer signed int
20269         %z problem reported by Pádraig Brady in:
20270         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20271         While fixing it, I decided to prefer signed ints to size_t, as
20272         they are less error-prone (e.g., ubsan catches overflow).
20273         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20274         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20275         counts, since signed integers make for better debugging.
20276         (date): Don’t assume %z works in printf formats.
20277         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20278         sizes of buffers known to be small, e.g., because we’re using snprintf.
20279         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20281 2017-04-22  Bruno Haible  <bruno@clisp.org>
20283         *printf: Work around rounding bug on Mac OS X.
20284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20285         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20286         Mac OS X and FreeBSD.
20287         * doc/glibc-functions/*printf.texi: Likewise.
20289 2017-04-22  Bruno Haible  <bruno@clisp.org>
20291         vasnprintf tests: Avoid warnings.
20292         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20293         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20294         test.
20296 2017-04-22  Bruno Haible  <bruno@clisp.org>
20298         sys_file tests: Avoid warning.
20299         * tests/test-sys_file.c (main): Add a default clause to the switch
20300         statement.
20302 2017-04-22  Bruno Haible  <bruno@clisp.org>
20304         sethostname: Update doc.
20305         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20306         Mac OS X.
20308 2017-04-22  Bruno Haible  <bruno@clisp.org>
20310         quotearg tests: Avoid warnings.
20311         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20312         false.
20314 2017-04-22  Bruno Haible  <bruno@clisp.org>
20316         poll: Enable argument check.
20317         * lib/poll.c: Include intprops.h.
20318         (poll): Check value of nfd correctly.
20319         * modules/poll (Depends-on): Add intprops.
20321 2017-04-22  Bruno Haible  <bruno@clisp.org>
20323         get-rusage-data: Avoid warnings on Mac OS X.
20324         * lib/get-rusage-data.c: On Mac OS X, don't define
20325         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20326         (get_rusage_data) [Mac OS X]: Just return 0.
20328 2017-04-22  Bruno Haible  <bruno@clisp.org>
20330         xbinary-io: Fix build error.
20331         * modules/xbinary-io (Depends-on): Add gettext-h.
20332         * lib/xbinary-io.c: Include gettext.h and define _().
20333         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20334         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20336 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20338         parse-datetime: overflow and debug cleanups
20339         This long patch was triggered by this bug report from Ruediger Meier:
20340         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20341         I fixed the bug he noted, then found some others nearby, and then
20342         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20343         up some of the code to follow GNU standards while I was at it.
20344         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20345         use c_isdigit.
20346         (EPOCH_YEAR): Remove; unused.
20347         (TM_YEAR_BASE): Now an enum rather than a macro.
20348         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20349         time zone offset, since timezones now are in terms of seconds and
20350         not minutes.
20351         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20352         appropriate.  Verify that intmax_t is wide enough.
20353         (time_overflow, time_zone_str): New functions, used to deal
20354         more reliably with overflow.
20355         (dbg_printf): Add printf attribute, to help catch integer width errors.
20356         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20357         (%union, to_hour, yylex, parse_datetime2):
20358         Use intmax_t instead of long int and/or long_time_t.
20359         All uses changed.
20360         (DBGBUFSIZE): Move earlier.
20361         (relative_time, set_hhmmss, parser_control):
20362         Just use int for nanoseconds and for time zones; that’s wide enough.
20363         (parser_control): Use bool for members like year_seen that can
20364         be booleans instead of counters.  All uses changed.
20365         Remove debug_default_input_timezone; no longer needed.
20366         All uses removed.
20367         (apply_relative_time): Return a bool overflow flag.
20368         All uses changed to check for overflow.
20369         (apply_relative_time, zone, date, relunit, relunit_snumber)
20370         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20371         Check for integer overflow portably.
20372         (str_days): Use just int for N, as it’s wide enough.
20373         Prefer 2D char arrays to arrays of char * when it looks like
20374         2D is a win on typical platforms.
20375         Prefer snprintf to strncpy/strncat, for simplicity;
20376         all buffers are smaller than INT_MAX so this is safe.
20377         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20378         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20379         as this is not true on x32.  Output "." before any nanoseconds.
20380         (debug_print_current_time, parse_datetime2):
20381         Output local zones using a more-consistent format.
20382         (debug_print_current_time, date, parse_datetime2):
20383         (main) [TEST]:
20384         Don’t assume time_t is the same width as long.
20385         (print_rel_part): New function, replacing ...
20386         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20387         (debug_print_relative_time): Use bool for boolean.
20388         (local_zone): dsts_seen now counts only tDST instances.
20389         (date): Fix printf of size_t to use %z.  Do not assume numeric
20390         tokens have negative values merely because the context suggests
20391         a syntax with "-" separating tokens.
20392         (time_zone_hhmm): Return bool success indicator, which checks for
20393         overflow.  Store result into PC->time_zone instead.  All callers
20394         changed.
20395         (tm_year_str): New function.  Return a bool success indicator and
20396         store the result into a buffer.  All callers changed.  Output the
20397         numerically correct string even if adding 1900 to the year would
20398         overflow.
20399         (to_tm_year): New function, replacing the old to_year.  All
20400         callers changed.
20401         (tm_diff): Sync with glibc.
20402         (lookup_word): Use to_uchar instead of doing it by hand.
20403         (TZBUFSIZE): Now local to the only function that needs it.
20404         (debug_strfdatetime): Simplify now that time zones are int seconds.
20405         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20406         (get_effective_timezone): Remove.  All uses removed.
20407         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20408         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20409         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20410         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20411         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20412         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20413         * modules/parse-datetime (Depends-on): Add inttypes.
20415 2017-04-21  Bruno Haible  <bruno@clisp.org>
20417         gettext-h: Avoid -Wundef warning.
20418         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20419         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20420         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20422 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20424         error: Avoid "function declaration isn't a prototype" warning.
20425         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20427 2017-04-21  Bruno Haible  <bruno@clisp.org>
20429         vasnprintf: Fix for MSVC 14.
20430         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20431         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20432         of !HAVE_SNPRINTF_RETVAL_C99.
20434 2017-04-21  Bruno Haible  <bruno@clisp.org>
20436         mbrtowc tests: Fix test failures on MSVC 14.
20437         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20438         behaviour for invalid input.
20440 2017-04-21  Bruno Haible  <bruno@clisp.org>
20442         mbsinit: Fix for MSVC 14.
20443         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20444         implementation that is in sync with mbrtowc.c. On other platforms, use
20445         an adequate ad-hoc implementation.
20447 2017-04-21  Bruno Haible  <bruno@clisp.org>
20449         Fix test-mbrtowc5.sh failure on native Windows.
20450         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20451         "C".
20453 2017-04-21  Bruno Haible  <bruno@clisp.org>
20455         Avoid accidental use of native Windows APIs on Cygwin.
20456         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20457         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20458         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20460 2017-04-20  Bruno Haible  <bruno@clisp.org>
20462         Remove red warnings from the generated MODULES.html.
20463         * modules/fcntl (Description): Disambiguate function references.
20464         * modules/getcwd-lgpl (Description): Likewise.
20465         * modules/hostent (Description): Likewise.
20466         * modules/servent (Description): Likewise.
20467         * modules/tempname (Description): Likewise.
20469 2017-04-20  Bruno Haible  <bruno@clisp.org>
20471         verify tests: Fix spurious failure with parallel make.
20472         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20473         EXTRA_PROGRAMS.
20474         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20475         * tests/test-verify-try.c: New file.
20476         * modules/verify-tests (Files): Add it.
20477         (EXTRA_PROGRAMS): Add test-verify-try.
20478         (MOSTLYCLEANFILES): Update accordingly.
20479         Reported by Adam James Stewart <ajstewart@anl.gov>.
20481 2017-04-18  Bruno Haible  <bruno@clisp.org>
20483         vma-iter: Fix compilation error on Solaris 7.
20484         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20485         like on IRIX, OSF/1.
20486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20488 2017-04-18  Bruno Haible  <bruno@clisp.org>
20490         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20491         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20492         included.
20493         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20494         <sys/procfs.h>.
20495         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20496         <sys/procfs.h> cannot be included.
20497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20499 2017-04-18  Bruno Haible  <bruno@clisp.org>
20501         getopt-gnu: Add comments.
20502         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20503         * modules/getopt-gnu (configure.ac): Likewise.
20505 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20507         regex: port better to Solaris 10
20508         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20509         gettext, and this causes a double #define.
20510         Problem reported by Gavin Smith in:
20511         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20512         * lib/regex_internal.h (gettext): #undef before #defining.
20514 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20516         intprops: improve comments
20517         * lib/intprops.h: Improve and shorten commentary.
20518         For the record, if we ever run into a pedantic compiler that
20519         behaves differently from GCC when converting an out-of-range value
20520         to a signed integer, we can work around the problem with something
20521         like the following code, where UCT is the signed counterpart of T
20522         (UCT is sometimes narrower than UT) and all callers are changed
20523         accordingly:
20524         #if __SUNPRO_C <= 0x5120
20525         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20526            ((t) ((ut) (a) op (ut) (b)))
20527         #else
20528         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20529            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20530             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20531                + TYPE_MINIMUM (t)) \
20532             : (t) (uct) ((ut) (a) op (ut) (b)))
20533         #endif
20535 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20537         intprops: try to avoid tickling similar bugs
20538         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20539         needs to be the same width as T; it can be wider.
20540         Change callers so that UT is at least as wide as unsigned int,
20541         as I suspect that this is less likely to run into compiler bugs.
20543         intprops: port to Oracle Studio 12.3 x86
20544         Problem reported by Gavin Smith in:
20545         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20546         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20547         Convert unsigned to signed via the usual rather than the standard way,
20548         to avoid a compiler bug in Oracle Studio 12.3 x86.
20550 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20552         getopt: prefer - to _ in new file names
20553         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20554         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20555         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20556         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20557         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20558         All uses changed.
20560         getopt: port recent getopt changes to macOS
20561         Problem reported by Harald Maier (Bug#26398).
20562         The macOS C compiler uses __nonnull for its own purposes and that
20563         clashes with glibc's __nonnull.
20564         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20565         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20566         * lib/getopt_core.h (getopt):
20567         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20568         Use _GL_ARG_NONNULL, not __nonnull.
20569         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20570         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20571         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20572         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20574 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20576         getopt-gnu: omit some duplicate code
20577         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20578         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20579         gnulib-tool already does this.
20580         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20581         getopt-posix, which we depend on.
20583         getopt-posix: use angle-bracket include
20584         * lib/getopt1.c: Include <config.h>, not "config.h".
20586 2017-04-06  Zack Weinberg  <zackw@panix.com>
20588         getopt: annotate files with relationship to glibc
20590         As the final act in this patchset, adjust the message at the top of
20591         each file to indicate which files are synced with glibc.  (This has
20592         already been done for most of the headers.)
20594         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20595         Mention in top-of-file boilerplate that these files are shared
20596         between glibc and gnulib.
20599         getopt: split up getopt.in.h and eliminate __need_getopt
20601         Over in glibc, all of the __need macros are being phased out in favor
20602         of small headers that declare only the necessary components, as this
20603         is much simpler and less prone to bugs.  As getopt is shared with
20604         glibc, gnulib needs to do the same for __need_getopt.
20606         __need_getopt is misnamed; what it really means is "we want only the
20607         getopt features specified in POSIX, not the GNU extensions".  glibc
20608         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20609         these files can be shared verbatim with gnulib.  The portability
20610         wrapper, on the other hand, they have renounced altogether; glibc's
20611         getopt.h will no longer be shared with gnulib at all.  In exchange,
20612         certain glibc-specific quirks (having to do with __posix_getopt) no
20613         longer need appear in gnulib's headers at all.
20615         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20616         splits up the current gnulib-side portability wrapper into three
20617         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20618         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20619         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20620         unistd.in.h just use them.  All new files are clearly marked with
20621         whether they are shared with glibc.
20623         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20624         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20625         with glibc, and ...
20626         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20627         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20628         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20629         instead of defining __need_getopt and including the full getopt.h.
20631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20632         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20633         * modules/getopt-posix (Files): Add new headers and sort list.
20634         (Depends-on): No longer need snippet/arg-nonnull.
20635         (Makefile.am): Generate getopt_cdefs.h.
20638         getopt: better handling of ambiguous options
20640         glibc's getopt uses alloca to construct a linked list of possibilities
20641         for an "ambiguous" long option.  In gnulib, malloc should be used
20642         instead.  Providing for both cases complicates things a fair bit.
20644         This patch rewrites ambiguous-option handling to use a boolean vector
20645         instead of a linked list.  There is then only one allocation that
20646         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20647         and in gnulib we define __libc_use_alloca to always be false, so we
20648         don't need ifdefs in the middle of the function.  This should also be
20649         slightly more efficient in the normal case of long options being fully
20650         spelled out -- I think most people aren't even aware they _can_
20651         sometimes abbreviate long options.
20653         One interesting consequence is that the list of possibilities is now
20654         printed in exactly the order they appear in the list of long options,
20655         instead of the first possibility being shuffled to the end.
20657         (The patch looks bigger than it really is because there's a fair bit
20658         of reindentation and code rearrangement.)
20660         * lib/getopt.c: When used standalone, define __libc_use_alloca
20661         as always false and alloca to abort if called.
20662         (process_long_option): Rewrite handling of ambiguous long options
20663         to use a single boolean vector, not a linked list; use
20664         __libc_use_alloca to decide whether to allocate this using alloca.
20667         getopt: refactor long-option handling
20669         There were two copies of the bulk of the code to handle long options.
20670         Now there is only one.
20672         This change temporarily removes the logic to avoid using alloca when
20673         standalone; the next patch in the series will restore it.
20675         * lib/getopt.c (process_long_option): New function split out
20676         from _getopt_internal_r.
20677         (_getopt_internal_r): Replace both copies of the long-option
20678         processing code with calls to process_long_option.
20681         getopt: tidy up _getopt_initialize a bit
20683         _getopt_data.__posixly_correct is completely redundant to
20684         _getopt_data.__ordering, and some work that logically belongs in
20685         _getopt_initialize was being done by _getopt_internal_r, making the
20686         code harder to understand.
20688         As a side effect, getenv will no longer be called if the first
20689         character of the options string is '+' or '-', which is probably a
20690         Good Thing.  (Perhaps we should have a flag character that
20691         specifically asks for the permutation behavior?)
20693         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20694         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20695         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20698         getopt: merge from glibc: repetition reduction
20700         The definitions of the entry point functions 'getopt' and
20701         '__posix_getopt' can be made substantially less repetitive with a
20702         helper macro.
20704         While I was merging the const-correctness changes from gnulib into
20705         glibc I noticed there are still some unnecessary casts in
20706         _getopt_internal_r.
20708         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20709         a macro.  Consistently cast 'argv' to 'char **' when calling
20710         _getopt_internal.
20711         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20714         getopt: clean up error reporting
20716         getopt can print a whole bunch of error messages, and when used
20717         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20718         cancellation point and getopt isn't, and also applying fprintf to a
20719         stream in wide-character mode is not allowed.  So every single error
20720         reporting case has an #ifdef _LIBC block in which it calls internal
20721         libc functions instead.  The counterpart patch series in glibc makes
20722         it possible to simplify all of that down to a set of #defines at the
20723         top of the file; core code is written as if it is safe to just call
20724         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20725         call any *other* stdio functions.)
20727         * lib/getopt.c: When _LIBC is defined, define fprintf to
20728         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20729         to _IO_funlockfile.  When neither _LIBC nor
20730         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20731         funlockfile as no-ops.
20732         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20733         standalone error-printing code can now be used for libc as well.
20734         Add an flockfile/funlockfile pair around one case where the error
20735         message is printed in several chunks.  Don't use fputc.
20738         getopt: fix fencepost error in ambiguous-W-option handling
20740         getopt_long contains an undocumented (AFAICT) feature in which, if you
20741         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20742         treated as equivalent to '--foo'.  This is implemented with a partial
20743         second copy of the code for handling long options, and that code
20744         increments optind one too many times when recovering from an ambiguous
20745         abbreviated option, which can cause the main loop to walk past the end
20746         of argv and crash.
20748         I discovered this while writing a test case that tries to exercise all
20749         of getopt's error reporting paths; I wouldn't be surprised to learn
20750         that this feature is never used by real applications.
20752         * lib/getopt.c (_getopt_internal_r): Don't increment
20753         d->optind a second time when reporting ambiguous -W options.
20756         getopt: clean up getopt.c and getopt1.c file headers
20758         In getopt.c, there is no need to include wchar.h at all, and it is
20759         safe nowadays to assume that stdlib.h does declare getenv (several
20760         other gnulib modules make this assumption).
20762         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20763         by using "" inclusions consistently, and there is no actual need to
20764         include stdlib.h (except in the #ifdef TEST block, where it should be
20765         unconditional), nor to provide a backup definition of NULL at all.
20767         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20768         Move inclusion of stdlib.h to #ifdef TEST block and make
20769         unconditional.  Do not define NULL.
20770         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20771         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20772         * modules/getopt-gnu, modules/getopt-posix: Don't call
20773         gl_PREREQ_GETENV.
20776         getopt: harmonize comments with glibc
20778         The comments explaining how the behavior of 'getopt' varies depending
20779         on whether it's the standalone version and whether there are special
20780         characters at the beginning of the options string were inconsistent
20781         between gnulib and glibc, and also out of sync with the code.
20783         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20786         getopt: remove USE_NONOPTION_FLAGS
20788         getopt includes code to parse an environment variable named
20789         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20790         in decimal); but all of it has been #ifdefed out since 2001, with no
20791         official way to turn it back on.
20793         According to commentary in glibc's config.h.in, bash version 2.0
20794         set this environment variable to indicate argv elements that were
20795         the result of glob expansion and therefore should not be treated
20796         as options, but the feature was "disabled later" because "it
20797         caused problems".  According to bash's CHANGES file, "later" was
20798         release 2.01; it gives no more detail about what the problems
20799         were.
20801         Version 2.0 of bash was released on the last day of 1996, and version
20802         2.01 in June of 1997.  Twenty years later, I think it is safe to
20803         assume that this environment variable isn't coming back.
20805         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20806         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20807         __libc_argc and __libc_argv externs, which were only used by
20808         #ifdef USE_NONOPTION_FLAGS blocks.
20811         getopt: tabify, in preparation for merge with glibc
20813         glibc sticks to the GNU default of indenting with a mix of
20814         8-column tabs and spaces; make the gnulib copy match.
20816         getopt.h is not included because it is *not* going to be merged in its
20817         present form.
20819         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20821 2017-04-02  Bruno Haible  <bruno@clisp.org>
20823         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20824         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20825         like it was done in modules/relocatable-lib on 2011-05-21 and in
20826         modules/relocatable-prog on 2011-08-15.
20827         Reported by Reuben Thomas <rrt@sc3d.org>.
20829 2017-03-31  Bruno Haible  <bruno@clisp.org>
20831         glob: Fix invalid free() call.
20832         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20833         static storage to home_dir.
20834         Reported by Coverity via Tim Rühsen.
20836 2017-03-31  Bruno Haible  <bruno@clisp.org>
20838         glob: Fix memory leaks.
20839         * lib/glob.c (glob): Free allocated memory before returning.
20840         Reported by Coverity via Tim Rühsen.
20842 2017-03-31  Bruno Haible  <bruno@clisp.org>
20844         md5, sha1, sha256, sha512: Add comments regarding correctness.
20845         * lib/md5.h (buflen): Add comments regarding range.
20846         * lib/sha1.h (buflen): Likewise.
20847         * lib/sha256.h (buflen): Likewise.
20848         * lib/sha512.h (buflen): Likewise.
20849         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20850         * lib/sha1.c (sha1_process_bytes): Likewise.
20851         * lib/sha256.c (sha256_process_bytes): Likewise.
20852         * lib/sha512.c (sha512_process_bytes): Likewise.
20853         Reported by Coverity via Tim Rühsen.
20855 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20857         getopt: merge from glibc
20858         This does not change anything substantial; it merely simplifies
20859         hypothetical merges back to glibc.
20860         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20861         Change copyright notice to match what is in glibc.
20862         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20863         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20864         __open_memstream rather than open_memstream and __glibc_likely
20865         instead of __builtin_expect.
20866         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20868 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20870         dfa: make [0-9] faster in non-C locales
20871         Problem reported by John P. Linderman (Bug#26193).
20872         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20873         If both ends of the range are ASCII digits, do not worry about
20874         multi-character collating sequences and the like.  Be consistent
20875         about using isalpha as a precondition for setbit_case_fold_c.
20877 2017-03-19  Bruno Haible  <bruno@clisp.org>
20879         lock: Fix compilation error with HP-UX IA64 cc.
20880         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20881         weak on non-glibc platforms.
20883 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20885         stdalign: tweak version# and test for HP-UX IA64
20886         Problems reported by Bruno Haible in:
20887         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20888         * lib/stdalign.in.h (_Alignas):
20889         * m4/stdalign.m4 (gl_STDALIGN_H):
20890         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20891         used octal (as that is how they document it), but it is decimal in
20892         practice now and the ancient implementations no longer matter.
20893         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20895 2017-03-19  Bruno Haible  <bruno@clisp.org>
20897         vma-iter: Add support for Solaris.
20898         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20899         approach.
20900         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20901         * lib/get-rusage-as.c: Update comment about Solaris.
20902         * lib/get-rusage-data.c: Likewise.
20904 2017-03-19  Bruno Haible  <bruno@clisp.org>
20906         vma-iter: Prefer HP-UX specific API on HP-UX.
20907         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20908         * lib/vma-iter.h: Update.
20909         Just in case HP-UX ever implements mquery().
20911 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20913         stdalign: restore previous behavior for HP-UX IA64
20914         See Bruno Haible's email in:
20915         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20916         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20917         * lib/stdalign.in.h (_Alignas):
20918         Assume the '061200' applies to Itanium, not to PA-RISC.
20919         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20921 2017-03-17  Bruno Haible  <bruno@clisp.org>
20923         stat-time, timespec: Support use of the header files in C++ mode.
20924         * lib/stat-time.h: Add "C" linkage declaration.
20925         * lib/timespec.h: Likewise.
20927 2017-03-17  Bruno Haible  <bruno@clisp.org>
20929         stdalign: Make it work with HP-UX cc.
20930         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20931         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20932         for HP-UX cc.
20934 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20936         flexmember: try to detect HP-UX 11.31 cc bug
20937         Problem reported by Bruno Haible in:
20938         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20939         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20940         Attempt to detect bug in HP-UX 11.31 cc.
20942 2017-03-16  Bruno Haible  <bruno@clisp.org>
20944         stdint: Fix test compilation failure with HP-UX 11 cc.
20945         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20946         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20947         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20948         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20950 2017-03-14  Bruno Haible  <bruno@clisp.org>
20952         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20953         * gnulib-tool (func_modules_transitive_closure_separately): If
20954         testsrelated_modules ends up with no "real" modules, aside from
20955         modules with applicability 'all', set it to empty.
20957 2017-03-14  Bruno Haible  <bruno@clisp.org>
20959         vma-iter: Add support for HP-UX.
20960         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20961         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20962         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20963         * lib/get-rusage-as.c: Update comment about HP-UX.
20964         * lib/get-rusage-data.c: Likewise.
20965         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20967 2017-03-14  Bruno Haible  <bruno@clisp.org>
20969         limits-h: Make it work with HP-UX cc.
20970         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
20971         defined.
20973 2017-03-14  Bruno Haible  <bruno@clisp.org>
20975         Fix test failures on DragonFlyBSD.
20976         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
20977         * tests/test-select.h (test_bad_fd): Likewise.
20978         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
20980 2017-03-14  Bruno Haible  <bruno@clisp.org>
20982         freadahead: Silence warning on DragonFlyBSD.
20983         * lib/freadahead.c (__sreadahead): Declare ourselves.
20985 2017-03-14  Bruno Haible  <bruno@clisp.org>
20987         vma-iter: Add comment about AIX.
20988         * lib/vma-iter.c: Add comment about why this module is not implemented
20989         on AIX.
20991 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20993         snippets: move unadjusted snippet sources to lib
20994         Problem reported by Michal Privoznik in:
20995         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
20996         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
20997         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
20998         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
20999         * lib/unused-parameter.h: Rename from
21000         build-aux/snippet/unused-parameter.h.
21001         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21002         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21003         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21004         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21005         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21006         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21007         Adjust to file renamings.
21009 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21011         gnulib-tool: don't automatically distribute files from top/
21012         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21013         not distribute top/README-release by default, don't distribute files
21014         from top/ unconditionally.
21015         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21016         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21018 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21020         gnulib-tool: fix typo in comment output
21021         * gnulib-tool (func_import): Fix typo with previous change.
21023         snippets: work around GNU Make 3.82 VPATH
21024         When using 'gnulib-tool --gnu-make' on Emacs, and building
21025         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21026         an out-of-source (VPATH) build failed because the sans-copyright
21027         snippet file was not built before the file that used it.
21028         Presumably this is some sort of VPATH thing.  Work around the
21029         problem by using the original snippet, i.e., don’t bother to
21030         remove its copyright notice.
21031         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21032         Don’t assume Automake in comments.  Omit long-incorrect comment.
21033         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21034         (MOSTLYCLEANFILES):
21035         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21036         (MOSTLYCLEANFILES):
21037         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21038         (MOSTLYCLEANFILES):
21039         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21040         (MOSTLYCLEANFILES):
21041         Remove.
21042         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21043         * modules/snippet/c++defs (CXXDEFS_H):
21044         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21045         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21046         Don’t bother to remove the copyright notice; just use the
21047         original snippet as-is.
21049 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21051         gnulib-tool: minor --gnu-make fixups
21052         * gnulib-tool (func_emit_lib_Makefile_am):
21053         Remove useless code that was a blind alley during implementation.
21054         Problem reported by Thien-Thi Nguyen in:
21055         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21056         (func_import): Note the "--gnu-make" option in the output comment.
21058 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21060         gnulib-tool: new option --gnu-make
21061         This is for applications like GNU Emacs that use GNU Make
21062         features instead of Automake.
21063         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21064         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21065         Do not assume Automake.
21066         * gnulib-tool (func_determine_path_separator)
21067         (func_modules_transitive_closure, func_update_file)
21068         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21069         (func_import): Add support for --gnu-make.
21071 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21073         gnulib-common.m4: avoid aclocal.m4 bloat
21074         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
21075         Hide AM_PROG_AR from aclocal, so that aclocal does not
21076         install irrelevant macro definitions into aclocal.m4.
21078 2017-03-10  Bruno Haible  <bruno@clisp.org>
21080         vma-iter: Let callers know about error.
21081         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
21082         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
21084 2017-03-05  Bruno Haible  <bruno@clisp.org>
21086         Fix value of LD for 64-bit compilers on AIX.
21087         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
21088         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
21090 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
21092         dtotimespec: simplify
21093         * lib/dtotimespec.c (dtotimespec): Simplify.
21095 2017-03-04  Bruno Haible  <bruno@clisp.org>
21097         test-calloc-gnu: Reenable test also for GCC 7.
21098         * tests/test-calloc-gnu.c (eight): New function.
21099         (main): Don't skip test; use eight() instead.
21101 2017-03-04  Jim Meyering  <meyering@fb.com>
21103         test-calloc-gnu: port to GCC7
21104         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
21105         that attempts to calloc more than SIZE_MAX bytes, because GCC7
21106         and newer would detect that at compilation time.
21108 2017-03-04  Bruno Haible  <bruno@clisp.org>
21110         tests: Avoid compiler warning about uses of null_ptr.
21111         * tests/null-ptr.h: New file.
21112         * tests/test-canonicalize.c: Include null-ptr.h.
21113         (null_ptr): Remove function.
21114         * tests/test-canonicalize-lgpl.c: Likewise.
21115         * tests/test-memmem.c: Likewise.
21116         * tests/test-ptsname_r.c: Likewise.
21117         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21118         * modules/canonicalize-lgpl-tests: Likewise.
21119         * modules/memmem-tests: Likewise.
21120         * modules/ptsname_r-tests: Likewise.
21121         Reported by Jim Meyering.
21123 2017-03-03  Bruno Haible  <bruno@clisp.org>
21125         doc: Mention Mac OS X deficiencies regarding semaphores.
21126         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21127         * doc/posix-functions/sem_destroy.texi: Likewise.
21128         * doc/posix-functions/sem_getvalue.texi: Likewise.
21130 2017-03-03  Bruno Haible  <bruno@clisp.org>
21132         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21133         Reported by Assaf Gordon <assafgordon@gmail.com> via
21134         Pádraig Brady <P@draigBrady.com>.
21135         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21136         semaphores.
21137         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21138         (atomic_int_semaphore): New macro.
21140 2017-02-28  Bruno Haible  <bruno@clisp.org>
21142         perror tests: Tweak for z/OS.
21143         Reported by Daniel Richard G. <skunk@iskunk.org>.
21144         * tests/test-perror.sh: Don't fail z/OS style perror output.
21146 2017-02-26  Bruno Haible  <bruno@clisp.org>
21148         nproc: Refactor large function.
21149         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21150         from num_processors.
21151         (num_processors): In this function, only deal with OMP.
21153 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21155         nproc: adjust handling of OpenMP environment variables
21156         to match the return value from omp_get_num_threads(), i.e.:
21157          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21158          - Treat 0 as an invalid value and ignore
21159         Also remove the call to omp_get_num_threads() because
21160         it's ineffective without the omp pragmas in place.
21161         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21162         so that it can be ignored.
21163         (num_processors): Honor OMP_THREAD_LIMIT even without
21164         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21165         variable being checked, from the previous recent commit.
21167 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21169         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21170         * lib/nproc.c (parse_omp_threads): A new function refactored
21171         from num_processors() to support parsing both of the
21172         above environment variables.
21173         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21174         to accurately reflect the current OpenMP nesting level.
21175         Also support the OMP_THREAD_LIMIT environment variable
21176         to limit the max value determined from OMP_NUM_THREADS.
21177         * modules/nproc: Depend on minmax header.
21178         Suggested by Oliver Heimlich.
21180 2017-02-25  Bruno Haible  <bruno@clisp.org>
21182         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21183         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21185 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21187         ftoastr: port to -Wdouble-promotion
21188         Work around -Wdouble-promotion false alarm in recent GCCs.
21189         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21190         (ftoastr_snprintf, FTOASTR): Use it.
21192 2017-02-21  Bruno Haible  <bruno@clisp.org>
21194         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21195         Reported by Rene Saavedra <rennes@openmailbox.org> in
21196         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21197         * lib/glthread/lock.h: On glibc systems without
21198         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21199         implementation of rwlocks.
21200         * lib/glthread/lock.c: Likewise.
21202 2017-02-20  Bruno Haible  <bruno@clisp.org>
21204         lock tests: Fix build failure on z/OS.
21205         Reported by Daniel Richard G. <skunk@iskunk.org>.
21206         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21207         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21208         exist.
21210 2017-02-19  Bruno Haible  <bruno@clisp.org>
21212         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21213         This helps when CC=clang.
21214         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21215         of /usr/bin/gcc.
21217         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21218         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21220 2017-02-19  Bruno Haible  <bruno@clisp.org>
21222         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21223         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21224         --with-tests --single-configure is specified.
21226 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21228         users.txt: Update links, use HTTPS where possible
21229         * users.txt: Updated to HTTPS where possible,
21230         fixed some links to new locations.
21232 2017-02-16  Bruno Haible  <bruno@clisp.org>
21234         xbinary-io: Fix inlining.
21235         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21237 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21239         xbinary-io: rename from xsetmode
21240         This patch is taken from suggestions by Bruno Haible in:
21241         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21242         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21243         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21244         not ENOTTY, when it is an inappropriate device.
21245         * lib/binary-io.h (SET_BINARY): Resurrect.
21246         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21247         (xset_binary_mode_error): Rename from xsetmode_error.
21248         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21249         (xset_binary_mode): Rename from xsetmode.
21250         All uses changed.
21251         * modules/xbinary-io: Rename from modules/xsetmode.
21252         Update file names.
21253         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21254         * NEWS: Update to match revised behavior.
21256 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21258         tests: Adjust to recent SET_BINARY change
21259         * tests/test-binary-io.c (main):
21260         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21261         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21262         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21263         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21265         xsetmode: new module
21266         This is to fix a problem noted by Eric Blake.
21267         Code was using xfreopen to change files to binary mode, but this
21268         fails for stdout when in append mode.  Such code should use
21269         xsetmode instead.
21270         * NEWS: Document incompatible changes to binary-io module.
21271         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21272         New function.
21273         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21274         (set_binary_mode): New function, which also checks for tty.
21275         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21277 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21279         headers: fix begin-end typos
21280         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21281         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21283         selinux-h: port to PGI 16.10
21284         * lib/se-selinux.in.h: Don't assume that include_next skips over
21285         duplicate -I DIR options.
21287         argp: port to PGI 16.10
21288         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21290 2017-02-13  Darshit Shah  <darnir@gnu.org>
21292         unicase: Update function protoype to match definition.
21293         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21294         uses 'size_t' as the datatype for the 'len' parameter in the functions
21295         it generates. Update the prototype specified here to match the newly
21296         generated function.
21298 2017-02-12  Bruno Haible  <bruno@clisp.org>
21300         times test: Avoid gcc warnings on Linux/x32.
21301         * tests/test-times.c (main): Really cast printf arguments from clock_t
21302         to 'long int'.
21304 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21306         glob: port better to emscripten
21307         Problem reported by Bruno Haible in:
21308         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21309         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21311 2017-02-11  Bruno Haible  <bruno@clisp.org>
21313         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21314         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21315         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21316         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21317         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21318         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21319         Distinguish hppa64 from hppa.
21321 2017-02-10  Bruno Haible  <bruno@clisp.org>
21323         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21324         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21325         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21326         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21328 2017-02-09  Bruno Haible  <bruno@clisp.org>
21330         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21331         * doc/gnulib.texi (Libtool and Windows): Recommend
21332         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21333         Reported by Reuben Thomas <rrt@sc3d.org>.
21335 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21337         stddef-tests: port to SIZE_MAX <= INT_MAX
21338         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21339         Do not assume that INT_MAX < SIZE_MAX.
21341 2017-02-01  Bruno Haible  <bruno@clisp.org>
21343         lock tests: Fix link error.
21344         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21347 2017-01-31  Bruno Haible  <bruno@clisp.org>
21349         lock: Fix link error (regression from 2017-01-05).
21350         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21351         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21352         pthread_rwlockattr_destroy weak.
21353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21355 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21357         Port to PGI 16.10 x86-64
21358         This patch fixes one real bug in gl_anylinked_list2.h, along with
21359         some minor glitches that are not bugs.  It does not silence PGI’s
21360         thousands of bogus warnings when compiling test-intprops.c.
21361         Fortunately, the warnings do not cause a failure.
21362         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21363         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21364         My goodness, PGI goes back a long ways - this predates C89!
21365         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21366         For example, ASYNCSAFE (const void *) should expand to
21367         ‘const void *volatile’, not to ‘volatile const void *’.
21368         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21369         * lib/verify.h (verify) [!__GNUC__]:
21370         Use shorter albeit meaningless string to bypass silly compiler limits.
21371         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21372         * tests/nan.h (NaNf, NaNd, NaNl):
21373         Use static functions to avoid misguided compiler diagnostics.
21374         Is there some reason we don’t use static functions on all platforms?
21376 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21378         parse-datetime: handle timezones reentrantly
21379         This API change was prompted by a report by Pádraig Brady in:
21380         https://bug.debian.org/851934#10
21381         To help fix the bug, make parse_datetime2 more reentrant.
21382         * NEWS: Document this incompatible change.
21383         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21384         Add two arguments, the timezone and the timezone name.
21385         All callers changed.  If TZ="..." is specified, use it for
21386         calculating defaults.
21387         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21388         this code should be usable in a library.
21389         (mktime_ok, get_effective_timezone):
21390         Accept timezone arg too.  All callers changed.
21391         (get_tz): Remove.
21392         (get_effective_timezone): Check for failures.
21394 2017-01-20  Eric Blake  <eblake@redhat.com>
21396         localename: port to cygwin 2.6
21397         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21398         Cygwin.
21399         * modules/localename (Depends-on): Add extensions, since
21400         NL_LOCALE_NAME() is not visible without it.
21402 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21404         parse-datetime: fix dependence on AC_PROG_SED
21405         * modules/parse-datetime: Use `sed` directly like all other modules.
21406         Reported by J William Piggott
21408 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21410         intprops: update doc URLs
21411         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21413 2017-01-16  Bruno Haible  <bruno@clisp.org>
21415         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21416         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21417         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21418         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21419         distinguish s390 and s390x.
21420         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21421         * NEWS: Mention the change regarding 'armel'.
21423 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21425         localeinfo: case_folded_counterparts and WEOF
21426         * NEWS: Document this.
21427         * lib/localeinfo.c (case_folded_counterparts):
21428         First arg is now wint_t, not wchar_t.  This generalizes the
21429         function to also work on WEOF, where it returns 0.
21431         dfa: port to gcc -fsanitize=undefined
21432         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21433         as this runs afoul of gcc -fsanitize=undefined.
21435 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21437         strftime: %z is -00 if unknown
21438         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21439         the caller's responsibility to set 'negative_number'.  All uses changed.
21440         (__strftime_internal): Put '-' before a zero UTC offset if the time
21441         zone abbreviation starts with "-", which is the recently-introduced
21442         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21443         * tests/test-strftime.c: Test for this.
21445 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21447         dfa: port to older GCC
21448         Problem reported by Assaf Gordon in:
21449         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21450         * modules/c99: New module.  This merely attempts to use the latest
21451         C version, which should be enough to solve this particular problem.
21452         The idea is to document which Gnulib modules assume C99 or later.
21453         * modules/dfa (Depends-on): Add it.
21455 2017-01-10  Bruno Haible  <bruno@clisp.org>
21457         Update DEPENDENCIES.
21458         * DEPENDENCIES: List only https URLs. Update recommended version for
21459         autoconf, automake, gperf.
21461 2017-01-10  Jim Meyering  <meyering@fb.com>
21463         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21464         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21465         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21467 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21469         dfa: minor simplification with emptyset
21470         * lib/dfa.c (build_state): Simplify by using emptyset.
21472 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21474         dfa: shrink constraints from 4 bits to 3
21475         * lib/dfa.c (newline_constraint, letter_constraint)
21476         (other_constraint, prev_newline_dependent)
21477         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21478         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21479         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21480         Constraints need only 3 bits, not 4.  Using smaller integers
21481         shrinks the code a bit and makes grep a tad faster on x86-64.
21483         dfa: omit unnecessary ptrdiff_t check
21484         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21485         overflow, since xnmalloc does that now.
21487         dfa: omit unnecessary allocation
21488         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21489         an all-zero follow set works just fine.
21491         dfa: omit unused local
21492         * lib/dfa.c (build_state): Fix up recent change.
21494         maint: remove stray .texi files
21495         Although these were superseded by other files like
21496         doc/posix-functions/ctime.texi, the old files were not removed.
21497         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21499 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21501         getprogname: fix port to IRIX
21502         * lib/getprogname.c (getprogname) [__sgi]:
21503         Don't dump core if malloc returns NULL.
21505         dfa: fix reallocation bug when matching newlines
21506         Problem reported for sed by S. Gilles (Bug#25390).
21507         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21508         (dfastate): Reallocate before moving any newline transition ...
21509         (build_state): ... instead of reallocating here, where it is too late.
21511 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21513         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21514         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21516 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21518         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21519         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21521 2017-01-07  Bruno Haible  <bruno@clisp.org>
21523         stdioext: Port to Minix 3.2 and newer.
21524         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21525         * lib/fseeko.c (fseeko): Likewise.
21526         Reported by Nelson Beebe via Paul Eggert.
21528 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21530         getprogname: port to IRIX
21531         * lib/getprogname.c (getprogname): Port to IRIX.
21532         Based on an idea by Bastien Roucariès at:
21533         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21534         via code from Bruno Haible at:
21535         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21537         localename-tests: port to NetBSD 7
21538         Problem reported by Nelson H. F. Beebe.
21539         * tests/test-localename.c:
21540         Test newlocale and uselocale only if both exist.
21542         glob, intprops, xalloc: work around Clang bug
21543         Work around LLVM bug 16404, which is still not fixed.
21544         https://llvm.org/bugs/show_bug.cgi?id=16404
21545         Problem reported by Nelson H. F. Beebe.
21546         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21547         Remove.
21548         * lib/glob.c (size_add_wrapv):
21549         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21550         * lib/xalloc-oversized.h (xalloc_oversized):
21551         Do not use overflow builtins if Clang.
21553         dfa: fix 'return' typo
21554         Problem reported by Nelson H. F. Beebe.
21555         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21557 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21559         parse-datetime: fix generated paths for coverage files
21560         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21561         within parse-datetime.c, so that gcc generates appropriate .gcno
21562         files, allowing lcov to proceed without error.  Previously it
21563         would error trying to find "lib/lib/parse-datetime.y".
21565 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21567         maint.mk: support parallel execution of coverage
21568         * top/maint.mk (coverage): Run dependencies serially,
21569         thus supporting parallel processing of each one,
21570         particularly build-coverage, which builds and runs tests.
21572 2017-01-05  Bruno Haible  <bruno@clisp.org>
21574         lock tests: Prefer semaphore over mutex.
21575         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21576         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21577         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21578         Suggested by Torvald Riegel <triegel@redhat.com>.
21580 2017-01-05  Bruno Haible  <bruno@clisp.org>
21582         lock: Provide guarantee to avoid writer starvation for rwlocks.
21583         The rationale is: 1) Read-preferring read-write locks are prone to
21584         writer starvation if the number of reader threads multiplied by the
21585         percentage of time they have the lock held is too high. 2) Write-
21586         preferring read-write locks are the only reliable way to avoid this.
21587         3) There have been reports of 'test-lock' hanging on glibc systems
21588         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21589         and glibc indeed implements read-preferring rwlocks by default, see
21590         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21591         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21592         * m4/pthread_rwlock_rdlock.m4: New file.
21593         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21594         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21595         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21596         of rwlock initialization on glibc systems without
21597         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21598         of rwlocks altogether on non-glibc systems without
21599         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21600         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21601         * lib/glthread/lock.c [USE_POSIX_THREADS]
21602         (glthread_rwlock_init_for_glibc): New function.
21603         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21604         comment.
21605         [USE_PTH_THREADS]: New implementation of rwlocks.
21606         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21607         readers.
21608         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21609         (Depends-on): Add 'extensions'.
21610         * tests/test-rwlock1.c: New file.
21611         * lock-tests (Files): Add it.
21612         (Depends-on): Add usleep.
21613         (Makefile.am): Add test-rwlock1 to the tests.
21615 2017-01-05  Bruno Haible  <bruno@clisp.org>
21617         thread: Fix pth port.
21618         * lib/glthread/thread.h (pth_init): Declare weak.
21619         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21620         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21621         function.
21623 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21625         parse-datetime: fix debug message on lone year number
21626         Input dates such as
21627           date -d "Apr 11 22:59:00 2011"
21628         are parsed as date (Apr 11, with default year 2016), then time, then a
21629         number (2011). Based on the combination of previously seen tokens,
21630         'digits_to_date_time' determines 2011 to be a year value.
21631         This fixes the debug messages to correctly show the updated year.
21632         Before:
21633             $ date --debug -d 'Apr 11 22:59:00 2011'
21634             date: parsed date part: (Y-M-D) 2016-04-11
21635             date: parsed time part: 22:59:00
21636             date: parsed number part: today/this/now
21637         After:
21638             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21639             date: parsed date part: (Y-M-D) 2016-04-11
21640             date: parsed time part: 22:59:00
21641             date: parsed number part: year: 2011
21642         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21643         'debug_year_seen' member fields.
21644         (digits_to_date_time): Update 'year_seen' as needed.
21645         (debug_print_current_time): Inform about year updates.
21646         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21648         parse-datetime: fix local timezone debug messages
21649         "Local timezones" are strings that affect only DST relative to the
21650         default timezone. The debug messages in parse-datetime.y printed
21651         wrong information when encountering local timezones.
21652         Examples:
21653         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21654              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21655              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21656         When the default timezone relates to the zone strings, EET/EEST are
21657         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21658         value (0/1, respectively):
21659              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21660              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21661         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21662         was seen, inform about DST change, don't print actual timezone.
21663         (debug_strfdatetime): If local timezone was seen, use default timezone
21664         (and adjust as needed) instead of using incorrect timezone.
21665         (parse_datetime2): Use correct time-zone source string, and adjust
21666         default timezone as needed.
21668         parse-datetime: add debug warning about DST changes
21669         Incorrect date arithmetic due to daylight saving time (DST) are a
21670         common (false) bug report in coreutils.
21671         Detect two such cases and print a warning:
21672         1. year/month/day adjustments (performed on 'struct tm'),
21673            where 'mktime' returns a different isdst value.
21674         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21675            where the result of 'localtime(3)' on the value will return a
21676            different isdst value.
21677         Note: DST changes could be harmless or unnoticeable.
21678         Examples (with 'TZ=America/New_York'):
21679         Unnoticeable: result is 2016-Dec-14
21680            $ date -d '2016-06-15 EDT + 6 months' +%b
21681            Dec
21682         Unnoticeable: result is 2016-Dec-15 11:00:00
21683            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21684            2016-12-15
21685         This is unexpected:
21686            $ date -d '2016-06-01 EDT + 6 months' +%F
21687            2016-11-30
21688         The new debug warnings will show:
21689            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21690            ...
21691            date: warning: daylight saving time changed after date adjustment
21692            ...
21693         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21694         print an appropriate warning message.
21696         parse-datetime: add debug warning about date arithmetic
21697         Date arithmetic are done directly on the fields of 'struct tm',
21698         which can result in invalid dates. Normalization with 'mktime(3)'
21699         will then produce a different date - which might cause unexpected
21700         results.
21701         Examples:
21702           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21703           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21704         Note that date normalization is not inherently wrong and not rejected,
21705         as it has legitimate uses:
21706           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21707         If the user asked to adjust months but 'mday' changed,
21708         or user asked to adjust years but 'month' changed - warn about it.
21709             $ ./src/date --debug -d '2016-10-31 - 1 month'
21710             ...
21711             date: warning: when adding relative months/years, \
21712                            it is recommended to specify the 15th of the month
21713             ...
21714             date: warning: month/year adjustment resulted in shifted dates:
21715             date:      adjusted Y M D: 2016 09 31
21716             date:    normalized Y M D: 2010 10 01
21717             ...
21718         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21719         a warning message. Improve recommendation of when to use 15 of the
21720         month or noon for date arithmetic.
21722         parse-datetime: fix debug message of relative part after timezone
21723         Relative part (e.g '+8 days') after a timezone string was not
21724         reported (was only reported after a timezone number). Due to the
21725         parser's structure, timezone strings with numbers were handled
21726         separately.
21727         before:
21728              # Timezone number + relative part: OK
21729              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21730              ...
21731              date: parsed relative part: -8 day(s)
21732              # Timezone string + relative part: missing
21733              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21734              [ missing message ]
21735         After: messages are printed in both cases.
21736         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21738         parse-datetime: fix incorrect debug message on lone number
21739         A lone number is an absolute value, not a relative time part.
21740         before:
21741            $ date --debug -d '20130101'
21742            date: parsed number part: today/this/now
21743         After:
21744            $ ./src/date --debug -d '20130101'
21745            date: parsed number part: (Y-M-D) 2013-01-01
21746         * lib/parse-datetime.y ('item'/'number' tokens): Call
21747         'debug_print_current_time' instead of 'debug_print_relative_time'.
21749 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21751         doc: modernize for C11 etc.
21752         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21753         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21754         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21756         dfa: prefer functions to FETCH_WC macro
21757         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21758         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21759         wint_t result into DFA->lex.wctok instead of to a separate arg.
21760         All callers changed.  Move more local decls closer to where
21761         they're used.
21763         dfa: narrow more local var scopes
21764         * lib/dfa.c: Move more local decls to be more local.
21766         dfa: remove duplicate assignment
21767         Problem reported by Bruno Haible in:
21768         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21769         * lib/dfa.c (parse_bracket_exp): Simplify.
21771 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21773         dfa: simplify constraint-dependency checking
21774         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21775         (prev_other_constraint): Remove.
21776         (prev_newline_dependent, prev_letter_dependent):
21777         Simplify, to avoid an unnecessary bitwise AND operation.
21779         dfa: prefer functions and constants to macros
21780         * lib/dfa.c: Prefer constants to macros where either will do.
21781         (streq, isasciidigit, newline_constraint)
21782         (letter_constraint, other_constraint, succeeds_in_context)
21783         (prev_newline_constraint, prev_letter_constraint)
21784         (prev_other_constraint, prev_newline_dependent)
21785         (prev_letter_dependent, accepting, accepts_in_context):
21786         Now static functions instead of function-like macros.
21787         Use lower-case names accordingly.  All uses changed.
21789         dfa: narrow more local var scopes
21790         * lib/dfa.c: Move some more local decls down to nearer where
21791         they're needed.
21793 2016-12-31  Jim Meyering  <meyering@fb.com>
21795         dfa: narrow the scope of many local variables
21796         * lib/dfa.c: Now that we are no longer constrained to c89, move
21797         declarations of many variables (often indices) "down" into the
21798         scope(s) where used or to the point of definition.  This is a
21799         no-semantic-change diff.
21801 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21803         version-etc: new year
21804         * build-aux/gendocs.sh (version):
21805         * doc/gendocs_template:
21806         * doc/gendocs_template_min:
21807         * doc/gnulib.texi:
21808         * lib/version-etc.c (COPYRIGHT_YEAR):
21809         Update copyright dates by hand in templates and the like.
21810         * all files: Run 'make update-copyright'.
21812 2016-12-31  Eric Blake  <eblake@redhat.com>
21814         do-release-commit-and-tag: avoid shell syntax error
21815         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21816         contain spaces when rebasing.
21818         maint.mk: hoist gnulib_dir definition earlier
21819         * top/maint.mk (gnulib_dir): Move near top of file.
21821 2016-12-31  Jim Meyering  <meyering@fb.com>
21823         maint.mk: do not always evaluate intprops-related shell
21824         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21825         using gnulib_dir undefined (gnulib_dir is defined later in the
21826         file, which will be fixed separately), and besides, there is no
21827         need to incur the cost of this shell invocation for every single
21828         use of this .mk file.  Reported by Eric Blake in
21829         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21831 2016-12-30  Jim Meyering  <meyering@fb.com>
21833         maint.mk: improve sc_prohibit_intprops_without_use
21834         * top/maint.mk (_intprops_names): Don't hard-code the list of
21835         symbol names.  Instead, derive it on the fly.
21837 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21839         dfa: shorten sbit, success
21840         * lib/dfa.c (struct regex_syntax.sbit):
21841         (struct dfa.success): Use char, not int, for array elements, since
21842         they are all in the range 0..7.
21844         dfa: simplify multibyte_prop etc.
21845         This follows up on a change made when dfa.c was in grep, namely grep
21846         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21847         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21848         That earlier simplification allows for some more simplification
21849         and trimming down here.
21850         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21851         (struct lexer_state): New mamber brack.
21852         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21853         since they must be in the range 0..3 now.
21854         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21855         the brack member now supersedes them.
21856         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21857         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21858         (dfaparse): Remove unnecessary initializations of already-0 storage.
21859         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21860         (dfassbuild): No need to clear sup->mbcsets.
21862         dfa: minor performance tweak
21863         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21865         dfa: wrap charclass inside a struct
21866         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21867         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21868         about 5% faster, where list.txt is generated by 'aspell dump
21869         master | head -n 100000 >list.txt'.  See Bug#22239.
21870         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21871         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21872         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21873         Adjust to this, e.g., by using charclass * rather than charclass.
21874         All callers changed as needed.
21875         (copyset): Remove.  All uses changed to simple assignment.
21876         (parse_bracket_exp): Use zeroset instead of memset.
21878 2016-12-30  Jim Meyering  <meyering@fb.com>
21880         maint.mk: update list of intprops.h symbol names
21881         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21882         This avoids a false failure of the sc_prohibit_intprops_without_use
21883         rule in grep.
21885 2016-12-29  Eric Blake  <eblake@redhat.com>
21887         getopt: fix parallel test failure
21888         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21889         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21890         * tests/test-getopt-main.h (main): Use different file names
21891         in case test-getopt-gnu and test-getopt-posix run in parallel.
21893 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21895         xalloc: x2nrealloc check for ptrdiff_t overflow
21896         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21897         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21899 2016-12-24  Bruno Haible  <bruno@clisp.org>
21901         lock test: Fix performance problem on multi-core machines.
21902         * tests/test-lock.c (USE_VOLATILE): New macro.
21903         (struct atomic_int): New type.
21904         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21905         functions.
21906         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21907         as 'struct atomic_int'.
21908         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21909         reclock_checker_thread, test_recursive_lock): Use the new functions.
21910         Reported by Eric Blake in
21911         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21912         and by Pádraig Brady in
21913         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21915 2016-12-19  Bruno Haible  <bruno@clisp.org>
21917         vma-iter: Fix endless loop on 64-bit Windows.
21918         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21919         'unsigned long'.
21921 2016-12-19  Bruno Haible  <bruno@clisp.org>
21923         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21924         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21925         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21926         Invoke gt_TYPE_WINT_T instead.
21927         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21928         * modules/stdint (Files): Add m4/wint_t.m4.
21929         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21930         * modules/wctype-h (Makefile.am): Likewise.
21931         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21932         not only on MSVC.
21933         * lib/wctype.in.h (wint_t): Likewise.
21935 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21937         getopt-posix-tests: fix Makefile typo
21938         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21939         Fix typo: the last ‘_’ was missing in the name.
21940         I suspect that the typo explains this build failure:
21941         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21942         although I can’t reproduce the problem on Solaris 10 sparc.
21944 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21946         dfa: improve worst-case 'replace' performance
21947         See my note in Bug#22357#71.
21948         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21949         (merge_constrained): New function, which is like
21950         the old 'merge' function, except with a new argument C2.
21951         Simplify the body by avoiding the need for different sections
21952         of code depending on whether one input is exhausted.
21953         (merge): Use the new function.
21954         (delete): Return the constraint of the deleted position,
21955         not the entire position.  Caller changed.
21956         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21958 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21960         dfa: performance improvement for removal of epsilon closure
21961         See Bug#22357#32.
21962         * lib/dfa.c (delete): Use binary search to find deleted index.
21963         (replace): New function.  It replaces a position with the followed set.
21964         (epsclosure): Replace it with a new algorithm.  Update caller.
21966 2016-12-18  Bruno Haible  <bruno@clisp.org>
21968         Split tests for getopt-posix and getopt-gnu.
21969         * tests/test-getopt-posix.c: New file.
21970         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
21971         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
21972         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
21973         GNULIB_TEST_GETOPT_GNU.
21974         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
21975         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
21976         (Makefile.am): Test test-getopt-posix instead of test-getopt.
21977         * modules/getopt-gnu-tests: New file.
21978         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
21980 2016-12-18  Bruno Haible  <bruno@clisp.org>
21982         posix-modules: Add options for specific platforms.
21983         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
21984         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
21985         Invoke func_tmpdir. Filter out the excludes.
21987 2016-12-18  Bruno Haible  <bruno@clisp.org>
21989         getopt: Fix link error for users of getopt() in <unistd.h>.
21990         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
21991         __need_getopt is defined. Undefine all macros before defining them.
21992         * modules/getopt (Include): Clarify that including <unistd.h> is also
21993         OK.
21994         * tests/test-getopt.c: Add comment.
21996 2016-12-17  Bruno Haible  <bruno@clisp.org>
21998         getaddrinfo tests: Avoid compilation error on MSVC.
21999         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22000         getaddrinfo on native Windows.
22002 2016-12-17  Bruno Haible  <bruno@clisp.org>
22004         getlogin, getlogin_r: Fix link errors on MSVC.
22005         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22006         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22007         (Link): New section.
22008         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22009         (configure.ac): Require gl_LIB_GETLOGIN.
22010         (Link): New section.
22011         * NEWS: Mention the new link requirements.
22012         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22013         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22015 2016-12-17  Bruno Haible  <bruno@clisp.org>
22017         Un-deprecate the 'progname' module.
22018         * NEWS: Describe the appropriate use-cases of 'progname' versus
22019         'getprogname'. Based on discussion summary at
22020         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22022 2016-12-17  Bruno Haible  <bruno@clisp.org>
22024         Reorganize NEWS a bit.
22025         * NEWS: Move some not so important changes away from section
22026         "Important Notes".
22028 2016-12-17  Bruno Haible  <bruno@clisp.org>
22030         tanhf: Avoid redefinition error on MSVC.
22031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22032         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22033         may be defined as an inline function.
22034         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22035         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22037 2016-12-17  Bruno Haible  <bruno@clisp.org>
22039         tanf: Avoid redefinition error on MSVC.
22040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22041         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22042         may be defined as an inline function.
22043         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22044         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22046 2016-12-17  Bruno Haible  <bruno@clisp.org>
22048         sqrtf: Avoid redefinition error on MSVC.
22049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22050         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22051         may be defined as an inline function.
22052         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22053         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22055 2016-12-17  Bruno Haible  <bruno@clisp.org>
22057         sinhf: Avoid redefinition error on MSVC.
22058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22059         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22060         may be defined as an inline function.
22061         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22062         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22064 2016-12-17  Bruno Haible  <bruno@clisp.org>
22066         sinf: Avoid redefinition error on MSVC.
22067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22068         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22069         may be defined as an inline function.
22070         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22071         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22073 2016-12-17  Bruno Haible  <bruno@clisp.org>
22075         logf: Avoid redefinition error on MSVC.
22076         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
22077         may be defined as an inline function.
22079 2016-12-17  Bruno Haible  <bruno@clisp.org>
22081         log10l: Avoid redefinition error on MSVC.
22082         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
22083         may be defined as an inline function.
22085 2016-12-17  Bruno Haible  <bruno@clisp.org>
22087         log10f: Avoid redefinition error on MSVC.
22088         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
22089         may be defined as an inline function.
22091 2016-12-17  Bruno Haible  <bruno@clisp.org>
22093         hypotl: Avoid redefinition error on MSVC.
22094         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
22095         may be defined as an inline function.
22097 2016-12-17  Bruno Haible  <bruno@clisp.org>
22099         hypotf: Avoid redefinition error on MSVC.
22100         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
22101         may be defined as an inline function.
22103 2016-12-17  Bruno Haible  <bruno@clisp.org>
22105         fmodl: Avoid redefinition error on MSVC.
22106         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
22107         may be defined as an inline function.
22109 2016-12-17  Bruno Haible  <bruno@clisp.org>
22111         fmodf: Avoid redefinition error on MSVC.
22112         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22113         may be defined as an inline function.
22115 2016-12-17  Bruno Haible  <bruno@clisp.org>
22117         expf: Avoid redefinition error on MSVC.
22118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22119         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22120         may be defined as an inline function.
22121         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22122         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22124 2016-12-17  Bruno Haible  <bruno@clisp.org>
22126         coshf: Avoid redefinition error on MSVC.
22127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22128         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22129         may be defined as an inline function.
22130         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22131         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22133 2016-12-17  Bruno Haible  <bruno@clisp.org>
22135         cosf: Avoid redefinition error on MSVC.
22136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22137         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22138         may be defined as an inline function.
22139         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22140         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22142 2016-12-17  Bruno Haible  <bruno@clisp.org>
22144         atan2f: Avoid redefinition error on MSVC.
22145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22146         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22147         may be defined as an inline function.
22148         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22149         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22151 2016-12-17  Bruno Haible  <bruno@clisp.org>
22153         atanf: Avoid redefinition error on MSVC.
22154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22155         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22156         may be defined as an inline function.
22157         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22158         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22160 2016-12-17  Bruno Haible  <bruno@clisp.org>
22162         asinf: Avoid redefinition error on MSVC.
22163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22164         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22165         may be defined as an inline function.
22166         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22167         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22169 2016-12-17  Bruno Haible  <bruno@clisp.org>
22171         acosf: Avoid redefinition error on MSVC.
22172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22173         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22174         may be defined as an inline function.
22175         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22176         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22178 2016-12-17  Bruno Haible  <bruno@clisp.org>
22180         Avoid redefinition errors on MSVC.
22181         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22182         the function may be defined as an inline function.
22183         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22184         the function may be defined as an inline function.
22186 2016-12-17  Bruno Haible  <bruno@clisp.org>
22188         Avoid redefinition errors on MSVC.
22189         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22190         * lib/unistd.in.h: Include <stdio.h> when necessary.
22192 2016-12-17  Bruno Haible  <bruno@clisp.org>
22194         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22195         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22196         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22197         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22198         WINT_MAX.
22200 2016-12-17  Bruno Haible  <bruno@clisp.org>
22202         Avoid autoconf warning.
22203         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22204         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22206 2016-12-17  Bruno Haible  <bruno@clisp.org>
22208         fpending: Revert workaround against Emacs bug.
22209         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22210         The Emacs bug is fixed by Eli Zaretskii in
22211         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22213 2016-12-17  Bruno Haible  <bruno@clisp.org>
22215         getlogin_r tests: Port to mingw.
22216         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22217         regression introduced on 2014-05-19.
22219 2016-12-17  Bruno Haible  <bruno@clisp.org>
22221         getlogin: Port to newer mingw.
22222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22223         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22224         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22225         HAVE_GETLOGIN.
22226         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22227         HAVE_GETLOGIN.
22228         * doc/posix-functions/getlogin.texi: Mention the issue.
22229         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22230         regression introduced on 2014-05-14.
22232 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22234         builtin-expect: improve port to IBM XL C
22235         Problem reported for z/OS by Daniel Richard G. in:
22236         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
22237         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22238         Test for <builtins.h> directly.
22240         builtin-expect: port to IBM XL C
22241         Problem reported for z/OS by Daniel Richard G. in:
22242         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22243         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22244         Also allow __builtin_expect defined via a standard include file.
22246         regex: fix dependency
22247         Problem reported by Bruno Haible in:
22248         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22249         * modules/regex: Depend on builtin-expect.
22251         builtin-expect: new module
22252         Fix fnmatch to use it.
22253         Problem reported for z/OS by Daniel Richard G.
22254         * lib/fnmatch.c (__builtin_expect):
22255         * lib/glob.c (__builtin_expect):
22256         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22257         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22258         * lib/scandir.c (__builtin_expect):
22259         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22260         Remove macro; config.h now does this.
22261         * lib/gl_anytreehash_list1.h (add_to_bucket):
22262         * lib/regex_internal.h (BE):
22263         Assume __builtin_expect.
22264         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22265         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22266         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22267         * modules/scandir, modules/strstr-simple:
22268         Depend on builtin-expect.
22270 2016-12-15  Bruno Haible  <bruno@clisp.org>
22272         init.sh: Add possibility to not delete temporary files.
22273         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22274         to yes, don't erase the temporary directory.
22276 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22278         regex: fix integer-overflow bug in never-used code
22279         Problem reported by Clément Pit–Claudel in:
22280         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22281         * lib/regex_internal.h: Include intprops.h.
22282         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22283         behavior on integer overflow.
22284         * modules/regex (Depends-on): Add intprops.
22286         fpending: fix port to MinGW on Emacs
22287         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22288         Problem reported by Eli Zaretskii in:
22289         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22290         Is Plan 9 still a valid porting target, anyway?
22292 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22294         safe-alloc: use xalloc-oversized
22295         * lib/safe-alloc.c: Include xalloc-oversized.h.
22296         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22297         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22299         xalloc: do not exceed PTRDIFF_MAX
22300         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22301         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22302         bytes have pointer-subtraction problems.
22304         malloca: do not exceed PTRDIFF_MAX
22305         * lib/malloca.h: Include xalloc-oversized.
22306         (nmalloca): Use xalloc_oversized instead of rolling our own.
22307         * modules/malloca (Depends-on):
22308         * modules/relocatable-prog-wrapper (Depends-on):
22309         Add xalloc-oversized.
22311         quotearg: pacify GCC better
22312         * modules/quotearg (Depends-on): Add minmax, stdint.
22313         * lib/quotearg.c: Include minmax.h, stdint.h.
22314         (nslots): Now int, as there seems little point to going to extra
22315         work merely to support the INT_MAX slot, which nobody ever uses.
22316         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22317         and to catch (mostly-theoretical) ptrdiff_t problems too.
22318         This can be done via one comparison.
22320 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22322         xalloc-oversized: check for PTRDIFF_MAX too
22323         This avoids undefined behavior when subtracting pointers to
22324         objects containing more than PTRDIFF_MAX bytes.
22325         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22326         Also return 1 if the result would exceed PTRDIFF_MAX>
22327         * modules/xalloc-oversized (Depends-on):
22328         Add stdint.
22330         dfa: fix glitches in previous commit
22331         Sorry, I don't know how I managed to commit the wrong version.
22332         * lib/dfa.c (MIN): Move up.
22333         (xpalloc): Now static.
22335         dfa: fix some unlikely integer overflows
22336         I found these while reviewing the recent Coverity-related fix.
22337         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22338         size_t for object counts.  Using ptrdiff_t is the style typically
22339         used in Emacs; although it wastes a sign bit as sizes can never be
22340         negative, it makes -fsanitize=undefined more likely to catch
22341         integer overflows in index calculation, and nowadays the upside is
22342         typically more important than the downside.  Although perhaps the
22343         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22344         of dfa.c already does, since it uses state_num which is signed),
22345         that is a bigger change and is not needed to fix the bugs I found.
22346         * lib/dfa.c: Include stdint.h and intprops.h.
22347         (TOKEN_MAX): New macro.
22348         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22349         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22350         (realloc_trans_if_necessary, free_mbdata):
22351         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22352         This is safe because xpalloc checks that the sizes do not exceed
22353         either SIZE_MAX or PTRDIFF_MAX.
22354         (xpalloc): New function, mostly taken from Emacs.
22355         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22356         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22357         (charclass_index): Check for integer overflow in computing
22358         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22359         added to it later.
22360         (alloc_position_set): Check for integer overflow.  On typical
22361         platforms this check has zero overhead, since the constant
22362         expression is false.
22363         (realloc_trans_if_necessary):
22364         Remove assertion, which I hope Coverity no longer needs.
22366         * modules/dfa (Depends-on): Add intprops, stdint.
22368 2016-12-12  Jim Meyering  <meyering@fb.com>
22370         dfa: add an assertion to avoid coverity false positive
22371         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22372         warned that "newalloc1 - 2" could overflow.
22374 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22376         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22377         * dfa.h (DFA_CASE_FOLD): Remove.
22378         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22380 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22382         link: fix test to declare use of rename()
22383         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22384         -Werror=implicit-function-declaration
22386 2016-12-12  Bruno Haible  <bruno@clisp.org>
22388         fpending: Port to native Windows with MSVC.
22389         * lib/fpending.c: Include stdio-impl.h.
22390         (__fpending): Include all known implementations. Err out if it's not
22391         ported.
22392         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22393         * modules/fpending (Files): Add lib/stdio-impl.h.
22394         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22396 2016-12-12  Bruno Haible  <bruno@clisp.org>
22398         stdioext: Port to native Windows with MSVC.
22399         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22400         (struct _gl_real_FILE): New type.
22401         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22402         Windows.
22403         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22404         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22405         other SystemV derived implementations.
22406         * lib/fpurge.c (fpurge): Likewise.
22407         * lib/freadable.c (freadable): Likewise.
22408         * lib/freadahead.c (freadahead): Likewise.
22409         * lib/freading.c (freading): Likewise.
22410         * lib/freadptr.c (freadptr): Likewise.
22411         * lib/freadseek.c (freadptrinc): Likewise.
22412         * lib/fseeko.c (fseeko): Likewise.
22413         * lib/fseterr.c (fseterr): Likewise.
22414         * lib/fwritable.c (fwritable): Likewise.
22415         * lib/fwriting.c (fwriting): Likewise.
22416         Reported by Gisle Vanem <gvanem@yahoo.no>.
22418 2016-12-11  Jim Meyering  <meyering@fb.com>
22420         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22421         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22422         to work with most shells, but not with the one provided by many
22423         Solaris 10 systems, so running configure with such a /bin/sh evokes
22424         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22425         Reported by Assaf Gordon in
22426         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22428 2016-12-10  Bruno Haible  <bruno@clisp.org>
22430         threadlib: Optimize out runtime test on Solaris >= 10.
22431         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22432         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22433         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22435 2016-12-10  Bruno Haible  <bruno@clisp.org>
22437         stdint: Update doc about Solaris 9.
22438         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22440 2016-12-09  Bruno Haible  <bruno@clisp.org>
22442         c-ctype tests: Fix link error on Solaris 9.
22443         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22444         Reported at <https://savannah.gnu.org/bugs/?46827>.
22446 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22448         dfa: fix performance bug that recomputes trans
22449         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22450         25 on-demand changes.  The bug caused build_state to reset all
22451         d->trans elements to -2 even when d->trans was already non-null.
22452         Use C99 style decls after statements in this function.
22454         same-inode: port to MinGW
22455         Here st_ino is always 0, so change the definition of SAME_INODE so
22456         that 1 means the two files are the same, 0 with st_ino != 0 means
22457         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22458         reported by Bruno Haible (Bug#25146).
22459         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22460         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22462 2016-12-04  Bruno Haible  <bruno@clisp.org>
22464         javacomp-script: Support Java 7 and 8.
22465         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22466         target-version 1.7, 1.8.
22468 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22470         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22471         GPLv2" rewriting.
22473 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22475         * gnulib-tool (func_import): Adhere to the license guideline when
22476         rewriting the license text to "LGPLv3+ or GPLv2":
22477         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22479 2016-12-02  Bruno Haible  <bruno@clisp.org>
22481         localcharset: Avoid theoretical buffer overrun.
22482         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22483         return value from setlocale if it would lead to a buffer overrun.
22485 2016-12-01  Bruno Haible  <bruno@clisp.org>
22487         Relicense some modules under LGPLv2+.
22488         Kevin Cernekee's approval is in
22489         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22490         * modules/fseterr (License): Change to LGPLv2+.
22491         * modules/mbchar (License): Likewise.
22492         * modules/mbiter (License): Likewise.
22493         * modules/mbsnlen (License): Likewise.
22494         * modules/wcwidth (License): Likewise.
22496 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22498         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22499         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22500         OS/2 kLIBC.
22502 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22504         alphasort, scandir: Port to OS/2 kLIBC
22505         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22506         declaration.
22507         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22509 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22511         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22512         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22513         with '/@unixroot'.
22515 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22517         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22518         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22519         OS/2 kLIBC unless TCPV40HDRS is defined.
22521 2016-11-29  Jim Meyering  <meyering@fb.com>
22523         dfa: avoid new infinite loop
22524         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22525         * lib/dfa.c (dfastate): When constructing a new state table, we could
22526         initially declare that we had found a match, and later find that
22527         constraints eliminate that possibility, yet continue to use the
22528         now stale "matched" indicator.  That would lead to an infinite loop.
22529         The solution is to update "matched" when necessary.
22530         Introduced by commit v0.1-983-g403adf1.
22532 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22534         dfa: avoid match middle in multibyte character
22535         * lib/dfa.c (transit_state): If fails in matching single byte characters
22536         on a state including period expression in non-UTF8 multibyte locales,
22537         skip trailing bytes.
22538         (dfa_supported): Revert previous change.
22540 2016-11-27  Jim Meyering  <meyering@fb.com>
22542         dfa: avoid false match in non-UTF8 multibyte locales
22543         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22544         as "not supported" so that callers will resort to using regex-based
22545         matcher.  This will surely hurt performance, but correctness trumps
22546         performance here, and the affected locales are less and less relevant,
22547         these days.  See grep's bug report https://bugs.gnu.org/24975.
22549 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22551         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22552         * lib/ptsname_r.c: Include the appropriate headers.
22553         [__sun]: Delete sys/sysmacros.h include.
22554         [_AIX || __osf__]: Likewise.
22555         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22557 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22559         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22560         * lib/md4.c (md4_process_bytes): The existing define is made internal
22561         in recent versions of glibc, so also use this new public define.
22562         * lib/md5.c (md5_process_bytes): Likewise.
22563         * lib/sha1.c (sha1_process_bytes): Likewise.
22564         * lib/sha256.c (sha256_process_bytes): Likewise.
22565         * lib/sha512.c (sha512_process_bytes): Likewise.
22567 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22569         maint: use a more standard return from mbrtowc test
22570         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22571         from the test program as this often indicates an
22572         unhandled case in the test program.
22573         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22574         (gl_MBRTOWC_SANITYCHECK): Likewise.
22575         (gl_MBRTOWC_NULL_ARG2): Likewise.
22576         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22578 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22580         freopen: work around glibc bug with closed fd
22581         Work around glibc bug#15589, where freopen mishandles the case
22582         where stdin etc. are already closed.
22583         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22584         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22585         instead of __need_FILE, as the latter does not work with glibc.
22586         Include <fcntl.h>, for open flags.
22587         (rpl_freopen): Work around glibc bug.
22588         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22589         * modules/freopen (Depends-on): Add fcntl-h.
22590         * tests/test-freopen.c (main): Test for bug.
22592 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22594         fnmatch: fix typo introduced on 2016-08-17
22595         This fixes the port to non-GCC compilers that lack __builtin_expect.
22596         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22598         dfa: simplify with new function fillset
22599         * lib/dfa.c (fillset): New function.
22600         Use it for clarity when applicable.
22602         dfa: fix glitches with on-demand states
22603         Also, adjust commentary to better match new code.
22604         Some of these glitches predate the recent change.
22605         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22606         only non-initial states.
22607         (dfastate): Rename locals to better match new roles.
22608         Move them into nested scopes if this is easy.
22609         Omit unnecessary calls to zeroset.
22610         Simplify test for whether to throw in the positions of state 0.
22611         Omit C99-ism (decl after statement) since Gawk still wants C89.
22612         (build_state): Omit unnecessary test and assignment.
22613         Fix some confusion that counted transition tables inaccurately
22614         and could cause a memory leak.
22615         (dfaexec_main): Redo to make it clearer to the compiler that
22616         -1 and -2 are the only negative state numbers here.
22618 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22620         dfa: addition of new state on demand
22621         * src/dfa.c (dfastate): Add argument UC, the current input character.
22622         Fill only a group including the character in transition table.
22623         (realloc_trans_if_necessary): Add the dummy state which means that a
22624         transition table is assigned but the next state is not assigned.
22625         (build_state): Return the next state.  All callers updated.
22626         (transit_state_singlebyte): If we get the dummy state,
22627         fill the transition table.
22628         (dfaexec_main): Handle the dummy state.
22629         (free_mbdata, dfafree): Consider the dummy state.
22631 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22633         srclist: sync with released gettext
22634         * config/srclist.txt: Set "release" option to the files under
22635         $GETTEXT.
22637 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22639         srclist: add "release" option
22640         * config/srclist.txt: Change the format so that the first column
22641         of each line points to the top-level directory of the source
22642         archive.
22643         * config/srclist-update: Accept "release" option that checks files
22644         from the most recently tagged revision in the source archive.
22646 2016-11-21  Bruno Haible  <bruno@clisp.org>
22648         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22649         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22650         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22651         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22652         Inline and remove member function 'rpl ()' of the wrapper struct.
22654 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22656         dfa: fix logic typo
22657         Problem reported by Stephane Chazelas (Bug#24973).
22658         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22659         non-simple locales like fr_FR to be treated as simple.
22661 2016-11-20  Jim Meyering  <meyering@fb.com>
22663         fix test driver leaks: exclude, malloc, realloc
22664         * tests/test-exclude.c (main): Fix trivial leak.
22665         * tests/test-malloc-gnu.c (main): Likewise.
22666         * tests/test-realloc-gnu.c (main): Likewise.
22667         With these changes, grep's tests are now leak free.
22668         I.e., running them with ASAN elicits no failure:
22669           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22670             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22672 2016-11-11  Bruno Haible  <bruno@clisp.org>
22674         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22675         * modules/libunistring: (License): Change from LGPL to
22676         "LGPLv3+ or GPLv2".
22677         * modules/libunistring-optional: Likewise.
22678         * modules/unicase/*: Likewise.
22679         * modules/uniconv/*: Likewise.
22680         * modules/unictype/*: Likewise.
22681         * modules/unigbrk/*: Likewise.
22682         * modules/unilbrk/*: Likewise.
22683         * modules/uniname/*: Likewise.
22684         * modules/uninorm/*: Likewise.
22685         * modules/unistdio/*: Likewise.
22686         * modules/unistr/*: Likewise.
22687         * modules/uniwbrk/*: Likewise.
22688         * modules/uniwidth/*: Likewise.
22690 2016-11-12  Bruno Haible  <bruno@clisp.org>
22692         Relicense some modules under LGPLv2+.
22693         Paul Eggert's approval is in
22694         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22695         Eric Blake's approval is in
22696         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22697         Ludovic Courtès's approval is in
22698         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22699         * modules/isnand-nolibm (License): Change to LGPLv2+.
22700         * modules/isnanf-nolibm (License): Likewise.
22701         * modules/isnanl-nolibm (License): Likewise.
22703 2016-11-19  Bruno Haible  <bruno@clisp.org>
22705         Relicense some modules under LGPLv2+.
22706         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22707         modules/vasnprintf.
22708         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22709         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22710         All other significant changes to the files in lib/ of these modules
22711         are from me.
22712         * modules/memcmp2 (License): Change to LGPLv2+.
22713         * modules/amemxfrm (License): Likewise.
22714         * modules/fpieee (License): Likewise.
22715         * modules/fpucw (License): Likewise.
22716         * modules/frexp-nolibm (License): Likewise.
22717         * modules/frexpl-nolibm (License): Likewise.
22718         * modules/printf-frexp (License): Likewise.
22719         * modules/printf-frexpl (License): Likewise.
22720         * modules/printf-safe (License): Likewise.
22721         * modules/signbit (License): Likewise.
22723 2016-11-17  Bruno Haible  <bruno@clisp.org>
22725         Enable Unicode decoder safety unconditionally.
22726         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22727         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22728         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22729         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22730         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22731         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22732         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22733         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22734         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22735         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22736         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22737         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22738         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22739         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22740         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22741         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22742         * lib/unistr/u32-next.c (u32_next): Likewise.
22743         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22744         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22745         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22746         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22747         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22748         CONFIG_UNICODE_SAFETY tests unconditionally.
22749         * tests/unistr/test-u32-mblen.c (main): Likewise.
22750         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22751         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22752         * tests/unistr/test-u32-next.c (main): Likewise.
22753         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22754         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22755         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22756         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22757         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22758         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22759         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22760         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22761         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22762         * lib/unistr/u16-check.c (u16_check): Update comment.
22763         * NEWS: Mention the changes that callers should be aware of.
22765 2016-11-19  Bruno Haible  <bruno@clisp.org>
22767         relocatable-prog-wrapper: Fix breakage on Cygwin.
22768         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22769         (Depends-on): Remove intprops.
22770         * lib/relocwrapper.c: Update dependency tree.
22771         (strerror): Undefine.
22772         * build-aux/install-reloc (func_create_wrapper): Do not compile
22773         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22775 2016-11-19  Bruno Haible  <bruno@clisp.org>
22777         strerror: Make it compile in C++ mode.
22778         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22780 2016-11-15  Pedro Alves  <palves@redhat.com>
22782         sys_time: add gnulib::timeval for C++
22783         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22784         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22785         timeval macro.
22787 2016-11-14  Pedro Alves  <palves@redhat.com>
22789         snippet/c++defs: fix real-floating arg functions in C++ mode
22790         Also, define isfinite, isinf, isnan, signbit in the gnulib
22791         namespace instead of in the global namespace.
22792         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22793         (_GL_END_NAMESPACE): New.
22794         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22795         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22796         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22797         instead of in the global namespace.
22798         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22799         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22800         of in the global namespace.
22802 2016-11-13  Jim Meyering  <meyering@fb.com>
22804         strftime: don't use __THROW
22805         Each use of __THROW would provoke this from gcc-7-to-be:
22807           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22808             on unit local functions [-Wattributes]
22809           static int iso_week_days (int, int) __THROW;
22810           ^~~~~~
22811         * lib/strftime.c (__THROW): Don't define.
22812         Remove each use of __THROW.
22813         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22814         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22816 2016-11-14  Paul Eggert  <eggert@union>
22818         obstack: port to gcc -fcheck-pointer-bounds
22819         Problem found by 'make check' failure on bleeding-edge coreutils
22820         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22821         6.2.0-5ubuntu12), configured via "./configure
22822         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22823         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22824         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22825         New macro, copied from fts_.h.
22826         (struct _obstack_chunk.contents): Use it.
22828 2016-11-14  Eric Blake  <eblake@redhat.com>
22830         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22831         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22832         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22834 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22836         strptime: fix compile error in recent change
22837         * lib/strptime.c (__strptime_internal): Fix ported code.
22839 2016-11-11  Bruno Haible  <bruno@clisp.org>
22841         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22842         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22843         (func_import): Extend determination of license_incompatibilities.
22844         (func_create_testdir): Extend table of license compatibility. Handle
22845         also the licenses GPLv3+, GPL, LGPLv3+.
22847 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22849         strftime: tune %q
22850         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22852         Merge strftime.c changes from glibc
22853         This incorporates:
22854         2007-10-16 [BZ #5184] Add tzset_called argument
22855         2008-06-13 [BZ #6612] pass reference to tzset_called around
22856         2009-10-30 Implement Burmese language locale for Myanmar
22857         2010-01-09 Add support for XPG7 testing
22858         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22859         2015-10-20 Convert miscellaneous function definitions to prototype style
22860         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22861         it anyway and this lessens the difference between gnulib and glibc.
22862         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22863         (__THROW): Define if standard headers do not.
22864         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22865         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22866         Declare with __THROW.
22867         (__strftime_internal): Rename from strftime_case_. Add arg for
22868         whether tzset is called.  All uses changed.  Call tzset at most
22869         once.  Allow %OC, for Burmese.
22870         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22871         Don't assume values are in range.
22873 2016-11-12  Eric Blake  <eblake@redhat.com>
22875         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22876         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22877         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22878         different value.
22880 2006-11-12  Pedro Alves  <palves@redhat.com>
22882         Fix gnulib C++ namespace support and std::frexp
22883         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22884         _GL_CXXALIASWARN.
22886 2006-11-12  Pedro Alves  <palves@redhat.com>
22888         GNULIB_NAMESPACE::func need not pull in rpl_func
22889         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22890         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22891         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22892         struct instead of a function pointer.
22894 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22896         manywarnings: fix -Wno-missing-field-initializers detection
22897         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22898         to be independent of -Wunused-variable.  I.E. ensure the latter
22899         warning doesn't occur so that detection of the former is accurate.
22901 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22903         strftime,strptime: support %q to represent the quarter
22904         * lib/strftime.c (strftime_case_): Add %q case.
22905         * lib/strptime.c (__strptime_internal): Likewise.
22906         * tests/test-strftime.c (quarter_test): A new test case.
22908 2016-11-03  Eric Blake  <eblake@redhat.com>
22910         bootstrap: Fix get_version() for AIX 5.3
22911         * build-aux/bootstrap (get_version): Factor out sed script, since
22912         indented comments choke AIX 5.3 sed.
22913         Reported-by: Michael Felt <aixtools@gmail.com>
22915 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22917         intprops: port to older XL C
22918         Problem reported by Alexander Samoilov in:
22919         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22920         http://savannah.nongnu.org/bugs/?49448
22921         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22922         Define to 1 only for XL C 12.1 or later, since this bug
22923         occurs in XL C for AIX 6.0 but not in 12.1.
22925 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22927         backupfile: initialize default suffix within the implementation
22928         * lib/backupfile.c (find_backup_file_name): Initialize the
22929         global variable here, to simplify usage, and to only call
22930         getenv() when needed.
22932 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22934         futimens: remove FIXME for old Linux kernels
22935         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22936         this in 2012" FIXME, like that for utimensat.
22938         utimensat: remove FIXME for old Linux kernels
22939         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22940         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22941         this in 2012" FIXME, by assuming the file system bug is absent
22942         unless demonstrated to be present.  We no longer need to worry
22943         about Linux kernel 2.6.32 when building with newer kernels.
22945 2016-10-16  Bruno Haible  <bruno@clisp.org>
22947         qsort_r: Fix macrology for platforms that lack the function.
22948         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22949         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22950         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22951         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22952         not exist.
22953         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22954         the function exists.
22955         * modules/qsort_r: Add comments.
22957 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22959         sys_types: fix Texinfo typos
22960         * doc/glibc-functions/gnu_dev_major.texi:
22961         * doc/glibc-functions/gnu_dev_makedev.texi:
22962         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22964 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22966         getprogname: port to HP-UX
22967         See Bug#24805.
22968         * lib/getprogname.c (getprogname) [__hpux]: Port.
22969         * tests/test-getprogname.c (STREQ) [__hpux]:
22970         Special-case for HP-UX limitations on program name length.
22972 2016-10-20  Bruno Haible  <bruno@clisp.org>
22974         Update doc about target platforms.
22975         * doc/gnulib-intro.texi (Target Platforms): Update list.
22977 2016-10-15  Bruno Haible  <bruno@clisp.org>
22979         opendir, readdir, closedir: Relicense under LGPLv2+.
22980         * modules/opendir (License): Change to LGPLv2+.
22981         * modules/readdir (License): Likewise.
22982         * modules/closedir (License): Likewise.
22984 2016-10-16  Bruno Haible  <bruno@clisp.org>
22986         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22987         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
22988         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
22989         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
22990         HAVE_DECL_STRERROR_R.
22992 2016-10-16  Bruno Haible  <bruno@clisp.org>
22994         Make the 'argp' module work without the 'error' module.
22995         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
22997 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22999         diffseq: restore TOO_EXPENSIVE heuristic
23000         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23001         (Bug#24715).  The simplest solution is to restore the
23002         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23003         using a higher threshold to avoid Bug#16848 on smaller files.
23004         * lib/diffseq.h (struct context): Restore member too_expensive.
23005         (struct partition): Restore members lo_minimal, hi_minimal.
23006         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23007         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23008         1993 to make 'diff' run faster (but not as well) on large inputs,
23009         but use a threshold of 4096 instead of the old 256.
23010         * lib/fstrcmp.c (strcmp_bounded):
23011         * lib/git-merge-changelog.c (compute_differences):
23012         Adjust to diffseq.h changes.
23014 2016-10-22  Bruno Haible  <bruno@clisp.org>
23016         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23017         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23018         declaration yet, define ICONV_CONST to empty.
23020 2016-10-15  Bruno Haible  <bruno@clisp.org>
23022         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23023         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23024         module.
23026 2016-10-16  Bruno Haible  <bruno@clisp.org>
23028         system-quote tests: Avoid compiler warning on AIX.
23029         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23030         <stdio.h> does.
23032 2016-10-16  Bruno Haible  <bruno@clisp.org>
23034         Fix some "gcc -Wall" warnings.
23035         * tests/test-ffsl.c (main): Use variable x, not i.
23036         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23037         freopen.
23038         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23039         of sethostname.
23041 2016-10-16  Bruno Haible  <bruno@clisp.org>
23043         gnulib-tool: Make --create-testdir on all modules work again.
23044         * gnulib-tool (func_create_testdir): Don't include the
23045         non-recursive-gnulib-prefix-hack module.
23047 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23049         libunistring: change the maintainer to 'all'
23050         * modules/gen-uni-tables, modules/libunistring:
23051         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23052         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23053         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23054         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23055         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23056         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23057         * modules/uniwidth/*: Change the maintainer to 'all'.
23059 2016-10-16  Bruno Haible  <bruno@clisp.org>
23061         Simplify "configure: checking ..." messages.
23062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23063         AC_MSG_NOTICE.
23064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23066 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23068         quotearg-tests: pacify gcc -Wall
23069         Problem reported by Bruno Haible in:
23070         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23071         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23072         * tests/test-quotearg.h: ... from here.
23074 2016-10-20  Pádraig Brady  <P@draigBrady.com>
23076         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
23077         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
23078         Needed on Centos <= 4.
23080 2016-10-20  Jim Meyering  <meyering@fb.com>
23082         printf.m4: fix a bug in detecting printf %j support
23083         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
23084         uintmax_t is defined in neither stdint.h nor inttypes.h.
23085         Before, this macro might have mistakenly set
23086         gl_cv_func_printf_sizes_c99=yes on such a system.
23087         Spotted by Zev Weiss.
23089 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
23091         sched: substitute HAVE_SYS_CDEFS_H too
23092         Problem reported by Tom G. Christensen in:
23093         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
23094         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
23095         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
23097 2016-10-19  Pádraig Brady  <P@draigBrady.com>
23099         quotearg: never write beyond the returned length
23100         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
23101         scan of the string when we initially encounter a single quote when
23102         shell quoting, so that if we then switch to a more concise quoting method
23103         we will not have written beyond that returned length.
23104         This is significant for sh-quote, which has separate routines
23105         to determine the length and do the actual quoting.
23106         * tests/test-quotearg.h: Reinstate the buffer bounds checking
23107         now that we never write more than the returned length.
23109 2016-10-18  Bruno Haible  <bruno@clisp.org>
23111         getprogname tests: Avoid failure in packages that use libtool.
23112         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23113         Based on a patch by Jim Meyering.
23115 2016-10-16  Bruno Haible  <bruno@clisp.org>
23117         getprogname: Fix test failure on Cygwin. Comments.
23118         * lib/getprogname.h: Add comments.
23119         * lib/getprogname.c: Add comments. Fix #elif indentation.
23120         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23121         ".exe" suffix.
23123 2016-10-16  Bruno Haible  <bruno@clisp.org>
23125         Make sure the libunistring detection rejects older versions with a
23126         known bug.
23127         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23128         * modules/unistr/u16-strtok (configure.ac): Likewise.
23129         * modules/unistr/u32-strtok (configure.ac): Likewise.
23131 2016-10-18  Bruno Haible  <bruno@clisp.org>
23133         sh-quote, system-quote: revert regression of unit test.
23134         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23135         * tests/test-system-quote-main.c (check_one): Likewise.
23137 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23139         quotearg: fix stale tests
23140         * tests/test-quotearg.c [locale_results]: Add the missing str7
23141         entries to the expected results.
23142         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23143         don't write beyond the returned length, since that's no longer the
23144         case if we switch to a more concise quoting style.
23145         * tests/test-sh-quote.c (check_one): Likewise.
23146         (main): Adjust for the new more concise quoting style.
23147         Reported by Bruno Haible.
23149 2016-10-16  Jim Meyering  <meyering@fb.com>
23151         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23152         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23153         to "$1".  This macro is always invoked with $1 == lib.
23154         Spotted by Bruno Haible
23156 2016-10-16  Bruno Haible  <bruno@clisp.org>
23158         Fix a test crash.
23159         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23160         fails.
23162 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23164         test-limits-h: suppress -Woverlength-strings
23165         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23167 2016-10-15  Bruno Haible  <bruno@clisp.org>
23169         gettime, timespec, utimens: Relicense under LGPL.
23170         * modules/gettime (License): Change to LGPL.
23171         * modules/timespec (License): Likewise.
23172         * modules/utimens (License): Likewise.
23174 2016-10-14  Bruno Haible  <bruno@clisp.org>
23175             Pádraig Brady  <P@draigBrady.com>
23177         canonicalize-lgpl: Support the case path_max > INT_MAX.
23178         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23179         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23181 2016-10-13  Jim Meyering  <meyering@fb.com>
23183         getprogname: IBM z/OS: avoid NULL-dereference
23184         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23185         upon strdup failure.
23187 2016-10-12  Jim Meyering  <meyering@fb.com>
23189         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23190         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23191         and an abbreviated diagnostic rather than verify with the full one,
23192         because the full-length strings would evoke warnings from gcc with
23193         -Woverlength-strings.
23195 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23197         stdint: port SIZE_MAX to glibc s390
23198         Problem reported by Eric Blake in:
23199         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23200         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23201         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23202         correct type, if possible.
23204 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23206         getprogname: port to IBM z/OS
23207         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23209 2016-10-11  Jim Meyering  <meyering@fb.com>
23211         maint: remove stray space after "." in AC_DEFINE comment.
23212         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23213         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23215 2016-10-05  Jim Meyering  <meyering@fb.com>
23217         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23218         * lib/long-options.c (parse_long_options): Add a break statement
23219         to avoid this new warning/failure:
23220         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23221           --create-testdir --dir=/t/x --with-tests --test long-options
23222         ../../gllib/long-options.c: In function 'parse_long_options':
23223         ../../gllib/long-options.c:66:12: error: this statement may \
23224           fall through [-Werror=implicit-fallthrough]
23225                    (*usage_func) (EXIT_SUCCESS);
23226                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23228 2016-10-05  Jim Meyering  <meyering@fb.com>
23230         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23231         Testing this module would fail when using GCC 7 like this:
23232         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23233           --dir=/tmp/x --with-tests --test utimecmp
23234         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23235         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23236           [-Werror=bool-operation]
23237                          time_t s = src_s & ~ (res == 2 * BILLION);
23238                                             ^
23239         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23240           [-Werror=bool-operation]
23241                src_s &= ~ (res == 2 * BILLION);
23242                         ^
23243         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23244         Instead, make it explicit that we intend to apply it to 0 or 1.
23246 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23248         dfa: save memory for states
23249         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23250         states if dfa has a lot of caches.
23252 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23254         wchar, wctype-h: fix for MinGW 3.22.2
23255         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23256         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23257         when included from <string.h>.
23258         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23259         convention for MinGW 3.22.2, to solve issues with their
23260         wctype.h when included from <ctype.h>.
23262 2016-10-05  Jim Meyering  <meyering@fb.com>
23264         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23265         * lib/long-options.c (parse_long_options): Add a break statement
23266         to avoid this new warning/failure:
23267         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23268           --create-testdir --dir=/t/x --with-tests --test long-options
23269         ../../gllib/long-options.c: In function ‘parse_long_options’:
23270         ../../gllib/long-options.c:66:12: error: this statement may \
23271           fall through [-Werror=implicit-fallthrough]
23272                    (*usage_func) (EXIT_SUCCESS);
23273                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23275         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23276         Testing this module would fail when using GCC 7 like this:
23277         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23278           --dir=/tmp/x --with-tests --test utimecmp
23279         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23280         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23281           [-Werror=bool-operation]
23282                          time_t s = src_s & ~ (res == 2 * BILLION);
23283                                             ^
23284         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23285           [-Werror=bool-operation]
23286                src_s &= ~ (res == 2 * BILLION);
23287                         ^
23288         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23289         Instead, make it explicit that we intend to apply it to 0 or 1.
23291 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23293         quotearg: minimize shell quoting using double quotes
23294         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23295         quote in encountered then use double quotes (c style quoting)
23296         when possible, as it simplifies the quoting.
23297         * tests/test-quotearg-simple.c: Add test cases.
23298         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23299         for the fact we now may write beyond the returned length.
23301 2016-10-02  Jim Meyering  <meyering@fb.com>
23303         vasnprintf.c: avoid spurious warning from GCC 7
23304         The presence of cpp directives renders this "FALLTHROUGH" comment
23305         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23306         from GCC 7 built from git on 2016-10-02.
23307         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23308         directives, so that it takes effect once again.  This is clearly
23309         not a proper change, and I will revert it once this bug is fixed:
23310         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23312 2016-10-01  Jim Meyering  <meyering@fb.com>
23314         getprogname: correct the test for a __progname variable
23315         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23316         and AC_LINK_IFELSE to check for a global __progname.  If found,
23317         define HAVE_VAR___PROGNAME.
23318         * lib/getprogname.c (getprogname): Reflect the new name of the
23319         feature- checked preprocessor symbol:
23320         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23322 2016-09-28  Jim Meyering  <meyering@fb.com>
23324         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23325         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23326         fall-through case with a /* fallthrough */ comment.
23328         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23329         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23330         /* fallthrough */ comment.
23332         getprogname: avoid __progname vs program_invocation_short_name pitfall
23333         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23334         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23335         not with Fedora 24's glibc-2.23.1-10.
23336         * lib/getprogname.c (__progname): Move this declaration down...
23337         (getprogname): ... into the #elif block where used, and make it
23338         explicitly "extern".
23340         getprogname: port to OpenBSD 5.1
23341         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23342         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23343         * modules/getprogname (configure.ac): Move most of this code...
23344         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23345         increment serial number, and add a test for __progname.
23346         https://bugs.gnu.org/24562
23347         Reported by Nelson H. F. Beebe.
23349 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23351         sched: port to GCC 6.2.1 on macOS Sierra
23352         Problem reported by Denis Davydov in:
23353         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23354         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23355         Include <sys/cdefs.h> before <sched.h>.
23356         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23357         so that we needn’t worry about the sched.h include bug here.
23358         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23359         and include it before <sched.h> if it exists, when
23360         checking for <sched.h>.
23362         tests/init.sh: port Alpine fix to AIX 7.1
23363         * tests/init.sh (compare_): When attempting to use diff -U3,
23364         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23365         diff -u not outputting a space after leading '+', as the users
23366         of 'compare' should not be that picky about its output format.
23367         In the AIX 7.1 case, return with diff exit status (or with 2 if
23368         trouble), instead of some random nonzero exit status.
23369         * tests/test-init.sh (test_compare): Remove space after leading
23370         '+', so that AIX 7.1 'diff' passes the test.
23372 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23374         nl_langinfo: pacify GCC
23375         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23376         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23378         stdint: also set GL_GENERATE_LIMITS_H
23379         Problem reported by Jim Meyering in:
23380         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23381         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23383         limits-h, stdint: Don't assume extensions, fix typo
23384         * m4/limits-h.m4 (gl_LIMITS_H):
23385         * m4/stdint.m4 (gl_STDINT_H):
23386         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23387         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23388         reported by Jim Meyering in:
23389         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23391 2016-09-21  Jim Meyering  <meyering@fb.com>
23393         getprogname: port to AIX
23394         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23395         and strdup to obtain a short program name string.  Using code from
23396         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23397         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23398         Assaf Gordon reported that this new file would fail to compile on
23399         AIX-7.1 32bit.
23401 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23403         extensions: fix typo in comment
23404         * m4/extensions.m4: Sync from Autoconf master.
23406         stdint: support new _WIDTH macros
23407         * doc/posix-headers/stdint.texi: Document this.
23408         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23409         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23410         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23411         * modules/stdint (Depends-on): Add limits-h.
23412         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23413         * modules/stdint-tests (Depends-on): Add extensions, so that
23414         INTMAX_MAX etc. are defined.
23415         * tests/test-stdint.c: Verify the new macros.
23417         limits-h: new module
23418         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23419         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23420         * doc/posix-headers/limits.texi: Document new module.
23421         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23422         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23424         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23425         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23426         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23427         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23429 2016-09-15  Eric Blake  <eblake@redhat.com>
23431         sys_types: avoid glibc 2.25 warnings about major()
23432         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23433         older autoconf.
23434         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23435         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23436         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23437         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23439         mountlist: include sysmacros.h for glibc
23440         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23441         AC_HEADER_MAJOR.
23442         * lib/mountlist.c (includes): Use correct headers.
23444 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23446         extensions: port to more ISO C TSes
23447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23448         master, to add support for more recent ISO C TRs and TSes.
23450 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23452         intprops: new macro TYPE_WIDTH
23453         * lib/intprops.h (TYPE_WIDTH): New macro.
23454         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23455         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23456         * lib/parse-datetime.y (parse_datetime2):
23457         Use it.
23459         extensions: port to recent ISO C TRs
23460         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23461         Sync from Autoconf master, to add support for recent ISO C TRs.
23462         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23463         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23464         the MinGW option is not an extension.
23466 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23468         dfa: port to Solaris 9
23469         Problems reported by Tom G. Christensen in:
23470         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23471         * modules/dfa (Depends-on): Add isblank.
23472         * modules/dfa-tests (dfa_match_aux_LDADD):
23473         Rename from test_stat_LDADD, to fix typo.
23474         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23476 2016-09-10  Jim Meyering  <meyering@fb.com>
23478         strverscmp: avoid link failure on OS X
23479         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23480         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23482 2016-08-16  Jim Meyering  <meyering@fb.com>
23484         dfa: new module, importing grep's DFA matcher
23485         Since grep's DFA matcher is now being used by two gnulib-enabled
23486         projects, grep and sed, it makes sense to version-control its
23487         sources and unit tests in one place: here.
23488         * modules/dfa: New module.
23489         * modules/dfa-tests: New file.
23490         * lib/dfa.c: New file, from grep.
23491         * lib/dfa.h: Likewise.
23492         * lib/localeinfo.c: Likewise.
23493         * lib/localeinfo.h: Likewise.
23494         * tests/dfa-match-aux.c: Likewise.
23495         * tests/dfa-invalid-char-class.sh: Likewise.
23496         * tests/dfa-match.sh: Likewise, with minor changes.
23497         * MODULES.html.sh (Misc): Add "dfa" to this list.
23499 2016-09-09  Jim Meyering  <meyering@fb.com>
23501         getprogname-tests: don't depend on assert-h
23502         * modules/getprogname-tests (Depends-on): Remove assert-h.
23503         It was not needed, and in fact would cause build failure for
23504         coreutils on some systems.  Reported by Assaf Gordon in https:
23505         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23507 2016-09-07  Jim Meyering  <meyering@fb.com>
23509         getprogname-tests: work also when EXEEXT is nonempty
23510         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23511         * tests/test-getprogname.c (main): Use it.
23512         Suggested by Gisle Vanem.
23514 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23516         getprogname: fix errors in previous change
23517         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23518         s/program_invocation_name/base/
23519         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23521 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23523         parse-datetime: restrict debug output to input string
23524         * lib/parse-datetime.y (parse_datetime2): If we parse
23525         all of the input but determine it's invalid, ensure
23526         we don't output the now invalid input pointer.
23527         This issue was seen with `date -d 'now +1'`.
23529 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23531         flexmember: new macro FLEXALIGNOF
23532         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23533         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23534         this macro.  Update comments.
23536 2016-09-07  Jim Meyering  <meyering@fb.com>
23538         getprogname: port to systems with __argv (mingw, msvc)
23539         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23540         last_component: more general than open coding it with hard-coded "/".
23541         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23542         * modules/getprogname (Depends-on): Add dirname-lgpl.
23543         (configure.ac): Check for __argv in <stdlib.h>.
23544         * modules/getprogname-tests: New file.
23545         * tests/test-getprogname.c: New file.
23546         Suggested by Gisle Vanem in
23547         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23549 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23551         flexmember: port better to GCC + valgrind
23552         With a char[] flexible array member in a struct with nontrivial
23553         alignment, GCC-generated code can access past the end of the
23554         array, because GCC assumes there are padding bytes to get the
23555         struct aligned.  So the common idiom of malloc (offsetof (struct
23556         s, m), n) does not properly allocate an n-byte trailing member, as
23557         malloc’s argument should be the next multiple of alignof (struct s).
23558         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23559         Although C11 apparently permits this GCC optimization (i.e., there
23560         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23561         See the thread containing:
23562         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23563         * lib/flexmember.h: New file.
23564         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23565         * lib/localename.c, lib/time_rz.c:
23566         Include flexmember.h.
23567         * lib/fnmatch_loop.c (struct patternlist):
23568         * lib/localename.c (struct hash_node):
23569         Use FLEXIBLE_ARRAY_MEMBER.
23570         * lib/fnmatch_loop.c (EXT):
23571         * lib/fts.c (fts_alloc):
23572         * lib/glob.c (glob_in_dir):
23573         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23574         * lib/localename.c (gl_lock_define_initialized):
23575         * lib/time_rz.c (tzalloc):
23576         Use FLEXSIZEOF instead of offsetof.
23577         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23578         Check that the size of the struct can be taken.
23579         * modules/flexmember (Files): Add lib/flexmember.h.
23580         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23581         Add flexmember.
23583 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23585         getprogname: port to Solaris 10
23586         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23587         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23588         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23590         stdalign: correct mistake in alignof doc
23591         Problem reported by Joseph Myers in:
23592         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23593         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23594         alignof(S) where S is a structure containing a flexible array
23595         member.  The Gnulib substitute does not support this, but C11 does.
23597 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23599         main.mk: remove sc_program_name, since there is no more need to
23600         use set_program_name in tools (getprogname is enough for most
23601         of the cases).
23602         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23603         * top/maint.mk (sc_program_name): Remove.
23605 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23607         Port tests away from progname, since modules that need the
23608         program name already depend on getprogname.
23609         * modules/acl-tests (Depends-on): Remove progname.
23610         * modules/argmatch (Depends-on): Likewise.
23611         * modules/argmatch-tests (Depends-on): Likewise.
23612         * modules/argp-tests (Depends-on): Likewise.
23613         * modules/argp-version-etc-tests (Depends-on): Likewise.
23614         * modules/array-list-tests (Depends-on): Likewise.
23615         * modules/array-oset-tests (Depends-on): Likewise.
23616         * modules/avltree-list-tests (Depends-on): Likewise.
23617         * modules/avltree-oset-tests (Depends-on): Likewise.
23618         * modules/avltreehash-list-tests (Depends-on): Likewise.
23619         * modules/carray-list-tests (Depends-on): Likewise.
23620         * modules/copy-file-tests (Depends-on): Likewise.
23621         * modules/exclude-tests (Depends-on): Likewise.
23622         * modules/fchownat-tests (Depends-on): Likewise.
23623         * modules/fdopendir-tests (Depends-on): Likewise.
23624         * modules/filenamecat-tests (Depends-on): Likewise.
23625         * modules/fstatat-tests (Depends-on): Likewise.
23626         * modules/fstrcmp-tests (Depends-on): Likewise.
23627         * modules/linked-list-tests (Depends-on): Likewise.
23628         * modules/linkedhash-list-tests (Depends-on): Likewise.
23629         * modules/mkdirat-tests (Depends-on): Likewise.
23630         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23631         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23632         * modules/obstack-printf-tests (Depends-on): Likewise.
23633         * modules/openat-tests (Depends-on): Likewise.
23634         * modules/parse-datetime-tests (Depends-on): Likewise.
23635         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23636         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23637         * modules/quotearg-simple-tests (Depends-on): Likewise.
23638         * modules/quotearg-tests (Depends-on): Likewise.
23639         * modules/rbtree-list-tests (Depends-on): Likewise.
23640         * modules/rbtree-oset-tests (Depends-on): Likewise.
23641         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23642         * modules/spawn-pipe-tests (Depends-on): Likewise.
23643         * modules/system-quote-tests (Depends-on): Likewise.
23644         * modules/uniname/uniname-tests (Depends-on): Likewise.
23645         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23646         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23647         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23648         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23649         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23650         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23651         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23652         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23653         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23654         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23655         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23656         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23657         * modules/unlinkat-tests (Depends-on): Likewise.
23658         * modules/version-etc-tests (Depends-on): Likewise.
23659         * modules/xalloc-die-tests (Depends-on): Likewise.
23660         * modules/xmemdup0-tests (Depends-on): Likewise.
23661         * modules/xprintf-posix-tests (Depends-on): Likewise.
23662         * modules/xvasprintf-tests (Depends-on): Likewise.
23663         * tests/test-argmatch.c: Do not include progname.h.
23664         (main) Stop calling set_program_name.
23665         * tests/test-argp-version-etc.c: Likewise.
23666         * tests/test-argp.c: Likewise.
23667         * tests/test-argv-iter.c: Likewise.
23668         * tests/test-array_list.c: Likewise.
23669         * tests/test-array_oset.c: Likewise.
23670         * tests/test-avltree_list.c: Likewise.
23671         * tests/test-avltree_oset.c: Likewise.
23672         * tests/test-avltreehash_list.c: Likewise.
23673         * tests/test-carray_list.c: Likewise.
23674         * tests/test-copy-acl.c: Likewise.
23675         * tests/test-copy-file.c: Likewise.
23676         * tests/test-exclude.c: Likewise.
23677         * tests/test-fchownat.c: Likewise.
23678         * tests/test-fdopendir.c: Likewise.
23679         * tests/test-filenamecat.c: Likewise.
23680         * tests/test-fstatat.c: Likewise.
23681         * tests/test-fstrcmp.c: Likewise.
23682         * tests/test-linked_list.c: Likewise.
23683         * tests/test-linkedhash_list.c: Likewise.
23684         * tests/test-mkdirat.c: Likewise.
23685         * tests/test-nonblocking-pipe-main.c: Likewise.
23686         * tests/test-nonblocking-socket-main.c: Likewise.
23687         * tests/test-obstack-printf.c: Likewise.
23688         * tests/test-openat.c: Likewise.
23689         * tests/test-parse-datetime.c: Likewise.
23690         * tests/test-pipe-filter-gi1.c: Likewise.
23691         * tests/test-pipe-filter-gi2-main.c: Likewise.
23692         * tests/test-pipe-filter-ii1.c: Likewise.
23693         * tests/test-pipe-filter-ii2-main.c: Likewise.
23694         * tests/test-quotearg-simple.c: Likewise.
23695         * tests/test-quotearg.c: Likewise.
23696         * tests/test-rbtree_list.c: Likewise.
23697         * tests/test-rbtree_oset.c: Likewise.
23698         * tests/test-rbtreehash_list.c: Likewise.
23699         * tests/test-sameacls.c: Likewise.
23700         * tests/test-set-mode-acl.c: Likewise.
23701         * tests/test-spawn-pipe-main.c: Likewise.
23702         * tests/test-system-quote-main.c: Likewise.
23703         * tests/test-unlinkat.c: Likewise.
23704         * tests/test-version-etc.c: Likewise.
23705         * tests/test-xalloc-die.c: Likewise.
23706         * tests/test-xfprintf-posix.c: Likewise.
23707         * tests/test-xmemdup0.c: Likewise.
23708         * tests/test-xprintf-posix.c: Likewise.
23709         * tests/test-xvasprintf.c: Likewise.
23710         * tests/uniname/test-uninames.c: Likewise.
23711         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23712         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23713         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23714         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23715         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23716         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23717         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23718         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23719         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23720         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23721         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23722         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23723         * tests/test-c-stack.c: (program_name): Do not define.
23724         (main): Do not set program_name.
23725         * tests/test-closein.c: Likewise.
23726         * tests/test-xstrtol.c: Likewise.
23727         * tests/test-yesno.c: Likewise.
23729 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23731         Port modules to use getprogname explicitly, instead of requiring
23732         progname to be used (or program_name to be provided).
23733         * lib/argmatch.c: Do not include progname.h.
23734         [TEST] (program_name): Do not define.
23735         [TEST] (main): Call getprogname instead of using program_name.
23736         * lib/c-stack.c: Do not include progname.h.
23737         (program_name): Do not define.
23738         (die): Call getprogname instead of using program_name.
23739         * lib/chdir-long.c: Do not include progname.h.
23740         [TEST_CHDIR] (main): Do not set program_name.
23741         * lib/error.c [!_LIBC]: Include progname.h.
23742         [!_LIBC] (program_name): Define using getprogname.
23743         * lib/euidaccess.c: Do not include progname.h.
23744         [TEST] (main): Do not set program_name.
23745         * lib/git-merge-changelog.c: Include getprogname.h instead of
23746         progname.h.
23747         (usage): Call getprogname instead of using program_name.
23748         (main): Likewise.  Stop calling set_program_name.
23749         * lib/group-member.c: Do not include progname.h.
23750         [TEST] (main): Do not set program_name.
23751         * modules/argmatch (Depends-on): Add getprogname.
23752         * modules/c-stack (Depends-on): Likewise.
23753         * modules/error (Depends-on): Likewise.
23754         * modules/git-merge-changelog (Depends-on): Likewise.
23755         Also remove progname.
23757 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23759         * NEWS: Document the deprecation of the 'progname' module.
23761 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23763         getprogname: new module
23764         This provides a LGPL module for getting the name of the current
23765         program, using the same API found on *BSD systems.
23766         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23767         * modules/getprogname: New files.
23768         * MODULES.html.sh (Misc): Add getprogname.
23770 2016-09-02  Jim Meyering  <meyering@fb.com>
23772         manywarnings: add -fno-common
23773         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23774         to the list.  Quoting the manual, "Compiling with -fno-common is
23775         useful on targets for which it provides better performance, or if
23776         you wish to verify that the program will work on other systems that
23777         always treat uninitialized variable declarations this way [putting
23778         it in the data section]."  If diffutils had been using this sooner,
23779         it would have prevented this duplicate declaration issue:
23780         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23782 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23784         parse-datetime: Fix typo.
23785         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23787 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23789         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23790         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23791         GCC 5 and 6 that have __builtin_sub_overflow but not
23792         __builtin_sub_overflow_p.  With the recent changes, these
23793         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23794         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23795         since the former needs just one runtime comparison whereas the
23796         latter needs two.
23798         strverscmp: sync with glibc
23799         Although this doesn't exactly synchronize with glibc
23800         byte-for-byte, it makes the code behave the same as glibc.
23801         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23802         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23803         difference shouldn't matter in practical use.  All uses changed
23804         back to isdigit.
23805         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23806         (next_state): Now unsigned char array; redo elements.
23807         (result_type): Now signed char array; redo elements.
23808         (__strverscmp): Fix glibc bug 9913 by using new states.
23809         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23811 2016-08-29  Jim Meyering  <meyering@fb.com>
23813         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23814         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23815         similarly to how it was done to intprops.h.
23817 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23819         intprops.h: port recent changes to GCC 6.2.0
23820         * lib/intprops.h (__has_builtin): Move earlier.
23821         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23822         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23823         the last argument can be null.  All uses changed.
23824         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23825         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23826         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23827         and it's not clear which GCC versions it works for.
23828         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23829         its definiens.
23831         intprops.h: use __typeof__ with GCC 7
23832         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23833         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23834         This avoids computing the expression's value (which might overflow!).
23836 2016-08-29  Jim Meyering  <meyering@fb.com>
23838         intprops.h, xalloc-oversized.h: work with gcc 7
23839         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23840         __builtin_mul_overflow each accept a NULL pointer as the third
23841         argument.  However in gcc 7, that is no longer accepted.
23842         Instead, one must use the "_p"-suffixed names, with which, the
23843         third parameter is no longer a pointer.
23844         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23845         the definition: not true for gcc 7 and subsequent.
23846         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23847         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23848         Provide new definitions for gcc 7 and subsequent.
23849         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23850         that works with gcc-7.
23852         intprops.h: fix missing-backslash problems
23853         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23854         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23856 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23858         intprops: fix paren typo on old platforms
23859         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23860         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23861         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23862         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23863         && !defined LLONG_MAX]:
23864         Remove stray paren.
23866         intprops: port to OpenVMS
23867         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23868         * doc/posix-headers/limits.texi: Document the problem.
23869         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23870         Define if not already defined.
23872 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23874         parse-datetime: improve debug implementation
23875         Follow-up to commit 12ad79069 ("add optional debug printing").
23876         Improve parse-datetime's debug implementation: remove macros,
23877         replace global debug flag variable with a function parameter,
23878         use nstrftime for formatting.
23879         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23880         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23881         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23882         debug flag. Existing interface 'parse_datetime' left unmodified.
23883         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23884         (struct parser_control): add 'parse_datetime_debug' member variable.
23885         (parse_datetime): Call new function 'parse_datetime2' without debug.
23886         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23887         pc.parse_datetime_debug variable as needed.
23888         (to_year): Accept new flags parameter, instead of using global variable.
23889         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23890         use struct 'debug' variable instead of global variable.
23891         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23892         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23893         correspnding functions directly instead of using macros.
23894         * modules/parse-datetime: Add gnulib's strftime module.
23896 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23898         c-strcase-tests: port to EBCDIC
23899         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23900         which assume ASCII encoding semantics to run only in ASCII
23901         mode, as they fail in EBCDIC.
23903         sigpipe-tests: fix typo
23904         * tests/test-sigpipe.sh: C, not B.
23906 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23908         canonicalize-lgpl: fix errno after malloca fails
23909         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23910         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23911         * lib/canonicalize-lgpl.c (__realpath):
23912         Don't assume malloca sets errno on failure.
23914 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23916         strtod: port errno handling to z/OS
23917         * lib/strtod.c (strtod): Save and restore errno more reliably.
23919 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23921         strtod: port to z/OS
23922         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23923         implementation.
23925 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23927         strtod: port to z/OS
23928         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23929         implementation.
23931         regex, string: rename to avoid '__string'
23932         * lib/regex.h, lib/string.in.h: Do not use the identifier
23933         '__string', as it is effectively reserved by string.h on z/OS.
23935         c-strcase-tests, wcwidth-tests: depend on c-ctype
23936         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23937         Add c-ctype.
23939 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23941         thread: port to z/OS
23942         * lib/glthread/thread.c, lib/glthread/thread.h:
23943         Rudimentary gl_thread support for z/OS.
23945         maint: port tests to z/OS errno behavior
23946         * tests/test-nonblocking-reader.h:
23947         * tests/test-nonblocking-writer.h:
23948         Accommodate z/OS errno code preferences. (I believe this should
23949         still be within spec; IBM is good at following the letter if not
23950         the spirit of such things.)
23952         maint: preprocessor changes to support z/OS
23953         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23954         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23955         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23956         * tests/test-nonblocking-pipe.h:
23958         fclose, strstr-simple, wchar: port to z/OS
23959         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23960         Changes to the Autoconf M4 code to support z/OS.  Note that
23961         fclose() is broken in a different way on z/OS than it is on other
23962         systems, thus the special-case in fclose.m4.
23964         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23965         * tests/test-iconv-utf.c, tests/test-iconv.c:
23966         Added appropriately conditional #pragmas so that the test strings
23967         in test-iconv-utf.c are correctly interpreted in ASCII instead of
23968         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
23969         addressed in a more portable way by simply rewriting all the ASCII
23970         literal characters as octal escapes, but then you would lose the
23971         partial readability that the strings have now. Also, iconv_open()
23972         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
23974         c-strcase-tests, wcwidth-tests: port to EBCDIC
23975         * tests/test-c-strcasecmp.c: Include c-ctype.h.
23976         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
23977         * tests/test-wcwidth.c: Likewise.
23979 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23981         stdbool: don't require _Bool for C++
23982         Problem reported by David Seifert in:
23983         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
23984         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
23985         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
23986         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
23987         stricter about checking that bool and _Bool are compatible in C.
23989 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23991         getdelim: remove dependency on realloc-posix
23992         * lib/canonicalize-lgpl.c (alloc_failed)
23993         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
23994         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
23995         Use __set_errno where needed, for consistency.
23996         * lib/getdelim.c (alloc_failed): New function.
23997         (getdelim): Use it.
23999 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24001         parse-datetime: add optional debug printing
24002         Print parsing information, warnings, and errors to stderr.
24003         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24004         * lib/parse-datetime.y:
24005         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24006         (PROGRESS*): Same as DEBUG, for progress reporting.
24007         (dbg_printf): Print message to stderr, with 'date' prefix.
24008         (struct parser_control): Add 'debug_*_seen' variables.
24009         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24010         (debug_print_current_time, debug_print_relateive_time): Prints the
24011         current/relative date/time value of parser_control.
24012         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24013         (to_year): Warn about 2-digit year parsing.
24014         (yylex):   Warn about unrecognized words.
24015         (get_effective_timezone): Returns current timezone in minutes.
24016         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24017         clearly and unambigiously as possible.
24018         (debug_mktime_not_ok): Print detailed information about failed
24019         date/time values.
24020         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24021         PROGRESS messages for status messages.
24022         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24024 2016-08-06  Jim Meyering  <meyering@fb.com>
24026         tests/init.sh: exclude dash with bad "local" semantics
24027         * tests/init.sh (gl_shell_test_script_): Add a function to
24028         eliminate a shell like "dash" (unlike bash, zsh) that has
24029         surprising/risky "local var='...'" semantics.  Inspired by
24030         the problem and discussion in https://bugs.gnu.org/24116#11.
24032 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24034         maint.mk: expand the prohibit_doubled_word regex
24035         This check has a static list of words that are checked for
24036         repetitions.  Expand it before running the perl script to
24037         avoid using expensive captures.  This decreases the cost
24038         for libvirt from 1.66s to 0.66s.
24039         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24040         (sc_prohibit_doubled_word): Use it.
24042 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24044         useless-if-before-free: skip non-matching lines early
24045         * build-aux/useless-if-before-free: First match each line with the
24046         simple/quick /\bif\b/ and reject if there is no match. This often
24047         saves the cost of the much more involved regular expression.
24048         For libvirt, this decreases the cost from 1.44s to 1.02s.
24050 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24052         maint.mk: speed up sc_po_check
24053         sc_po_check would skip files based on their names, or on the
24054         existence of files with derived names. Rewrite it to use perl
24055         instead of shell to make the check faster.
24056         * top/maint.mk (perl_translatable_files_list_): Define.
24057         (sc_po_check): Use it.
24059 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24061         maint.mk: speed up require_config_h_first
24062         Instead of spawning three processes per file,
24063         rewrite the check in perl and run it once for all the files.
24064         * top/maint.mk (perl_config_h_first_): Define.
24065         (sc_require_config_h_first): Use it in place of shell code.
24067 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24069         maint.mk: speed up sc_po_check
24070         sc_po_check would skip files based on their names, or on the
24071         existence of files with derived names. Rewrite it to use perl
24072         instead of shell to make the check faster.
24073         * top/maint.mk (perl_translatable_files_list_): Define.
24074         (sc_po_check): Use it.
24076 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24078         obstack: pacify GCC 6 with -Wnull-dereference
24079         Problem reported by Assaf Gordon in:
24080         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
24081         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
24082         Declare with __attribute_noreturn__.
24083         * lib/obstack.h (__attribute_noreturn__): New macro.
24085 2016-07-13  Eric Blake  <eblake@redhat.com>
24087         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
24088         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
24089         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
24091 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24093         doc: mention glibc SSIZE_MAX buglet
24094         * doc/posix-headers/limits.texi (limits.h): Document the bug.
24096 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
24098         printf-posix: Fix mingw build
24099         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
24100         expression for detecting C symbol prefixes but forgot to qoute square
24101         brackets in the command line arguments for grep.  That way when
24102         building with mingw the condition was false although it ought to be
24103         true instead.  In particular scenarios this led to the following
24104         compile error:
24106             Cannot export rpl_printf: symbol not found
24107             Cannot export rpl_scanf: symbol not found
24108             collect2: error: ld returned 1 exit status
24110         Fix this by properly quoting square brackets.
24112 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24114         mktime: call tzset as per POSIX
24115         Problem reported by Ludovic Courtès in:
24116         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24117         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24118         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24120 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24122         fts: handle readdir() errors
24123         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24124         but also upon error when it will also set errno.  Therefore
24125         flag the error case from readdir().  We treat the case where
24126         no items are read the same as if the dir can't be accessed,
24127         i.e. by setting fts_errno to FTS_DNR.
24129 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24131         intprops: port better to GCC 7
24132         GCC 7 __builtin_add_overflow supports a new usage form, where the
24133         last argument is a null pointer, and which merely returns 1 if an
24134         overflow would occur.  This is a constant expression if all
24135         arguments are constants, and should generate faster code when code
24136         needs to be generated.
24137         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24138         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24139         Use builtin operations if available.
24140         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24141         operations are available, as it's almost surely faster.
24143 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24145         intprops-test: port to GCC 6
24146         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24147         since the bug is not fixed in GCC 6.1.
24149 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24151         xalloc-oversized: port to GCC 7; fewer warnings
24152         GCC 7 will have a better way to deal with integer overflow.
24153         Plus, fix a warnings problem reported by Tim Ruehsen in:
24154         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24155         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24156         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24157         For GCC 5, use __xalloc_oversized if both args are constants,
24158         or if pedantic.
24160 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24162         regex: port to Sun C
24163         Reported by Daiki Ueno.
24164         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24165         __restrict, in prototype.  This fixes a problem I introduced in
24166         the 2016-02-19 merge from glibc.
24168 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24170         stdbool: Restore __bool_true_false_are_defined check
24171         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24172         __bool_true_false_are_defined is still defined, even with C++11.
24174 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24176         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24177         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24179 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24181         Use GCC_LINT, not lint
24182         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24183         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24184         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24185         Document problem with lint and _Noreturn.
24186         * lib/diffseq.h (IF_LINT, IF_LINT2):
24187         * lib/fts.c (sccsid):
24188         * lib/getndelim2.c (IF_LINT):
24189         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24190         (gl_linked_iterator_from_to):
24191         * lib/gl_anytree_list2.h (gl_tree_iterator)
24192         (gl_tree_iterator_from_to):
24193         * lib/gl_anytree_oset.h (gl_tree_iterator):
24194         * lib/gl_array_list.c (gl_array_iterator)
24195         (gl_array_iterator_from_to):
24196         * lib/gl_array_oset.c (gl_array_iterator):
24197         * lib/gl_carray_list.c (gl_carray_iterator)
24198         (gl_carray_iterator_from_to):
24199         * lib/idcache.c:
24200         * lib/inet_ntop.c (IF_LINT):
24201         * lib/regcomp.c (build_charclass_op, create_tree):
24202         * lib/regex_internal.c (re_acquire_state)
24203         (re_acquire_state_context):
24204         * lib/trigl.c (rcsid):
24205         * lib/trim.c (IF_LINT):
24206         * lib/vasnprintf.c (IF_LINT):
24207         * lib/verify.h (assume):
24208         Treat GCC_LINT like lint.
24210 2016-05-29  Bruno Haible  <bruno@clisp.org>
24212         secure_getenv: Port to many more platforms.
24213         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24214         functions.
24215         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24216         for non-BSD Unix platforms and for native Windows.
24217         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24218         Prompted by a request from Nikos Mavrogiannopoulos.
24220 2016-05-27  Eric Blake  <eblake@redhat.com>
24222         canonicalize: Fix broken probe for realpath.
24223         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24224         in logic introduced in 54615b95.
24226 2016-05-26  Eric Blake  <eblake@redhat.com>
24228         unsetenv: relax to LGPLv2+
24229         * modules/unsetenv (License): Match setenv license.
24231 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24233         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24234         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24235         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24236         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24237         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24238         (generate_html, generate_info, generate_tex, outdir)
24239         (source_extra, split, srcfile, texarg): Move above 'version'.
24240         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24242 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24244         manywarnings: update for GCC 6.1
24245         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24246         Add GCC 6.1 options that apply to C.
24247         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24248         do not apply to C, are obsolescent, etc.
24250 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24252         glob: size_t overflow checks
24253         * lib/glob.c (__has_builtin): New macro.
24254         (size_add_wrapv, glob_use_alloca): New static functions.
24255         (glob, glob_in_dir): Check for size_t overflow in several places,
24256         and fix some size_t checks that were not quite right.
24258         glob: don't assume INT_MAX < SIZE_MAX
24259         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24260         latter is not portable to (probably theoretical) hosts where
24261         SIZE_MAX <= INT_MAX.
24263 2016-05-09  Bruno Haible  <bruno@clisp.org>
24265         Fix undefined behaviour in gettext.h.
24266         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24267         pointer's value after the storage it points to has been freed.
24268         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24269         Spotted by Coverity.
24271 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24273         git-version-gen: avoid undefined shift
24274         Problem reported by Mosè Giordano in:
24275         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24276         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24277         with --prefix or --fallback but without a later argument.  While
24278         we're at it, omit unnecessary quotes.
24280 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24282         glob: merge glibc changes into lib/glob.c
24283         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24284         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24285         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24286           struct dirent [BZ #19779]
24287         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24288           callback gl_readdir
24289         2015-10-20 Convert miscellaneous function definitions to prototype style
24290         2015-10-20 Convert 113 more function definitions to prototype style
24291           (files with assertions)
24292         2015-06-12 Fix getlogin_r namespace (bug 18527).
24293         2014-02-10 Use glibc_likely instead __builtin_expect.
24294         2013-10-20 When glob pattern contains a trailing slash match only
24295           directories. Fixes bug 10278.
24296         2013-09-04 glob: silence -Wattribute warnings
24297         2013-06-07 Avoid use of "register" as optimization hint.
24298         2012-09-25 Use size_t instead of int for internal variables in glob
24299           (bug 14621)
24300         2011-07-20 Check for overflows in expressions
24301         2011-05-28 Remove unused variable
24302         2011-05-22 Add a few more alloca size checks
24303         2010-03-27 Whitespace fixes
24304         2010-03-27 Fix one more issue with the glob patch
24305         2010-03-24 Fix glob with empty pattern
24306         2008-05-27 Remove useless more "if" tests before "free"
24307         * modules/glob (Depends-on): Add stdint.
24309 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24311         mktime: port to stricter signed overflow checking
24312         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24313         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24314         instead of merely for INT_MAX * 2.  In practice platforms that
24315         do the latter also do the former.
24316         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24317         (shr): New static function, replacing SHR.  All uses changed.
24318         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24319         and TIME_T_MAX.  All uses changed.
24320         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24321         Use long_int, not time_t.
24322         (long_int_avg): New static function, replacing time_t_avg.
24323         All uses changed.  Round toward positive infinity, as that
24324         generates slightly better code.
24325         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24326         by INT_ADD_WRAPV.
24327         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24328         (convert_time): New static function.
24329         (ranged_convert): Use it
24330         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24331         Use simpler test for loop exit.
24332         (__mktime_internal): Store negative of guessed offset, to simplify
24333         overflow checking.  Remove no-longer-needed test for small time_t
24334         overflows.
24336         mktime: speed up DEBUG_MKTIME benchmarks
24337         Call tzset just once, at the start, rather than for every test
24338         case.  This lets us measure the CPU cost of mktime as opposed to
24339         that of tzset.  This is relevant when TZ is not set and glibc is
24340         being used.  This speeds up tests by a factor of 40 on my Fedora
24341         23 x86-64 platform.
24342         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24343         to call tzset and as a sanity check.  Later on, use localtime_r
24344         instead of localtime.
24346         mktime: resurrect DEBUG_MKTIME testing
24347         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24348         Include <string.h>, for strcmp.
24350         mktime: simplify DEBUG_MKTIME
24351         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24352         Simplify later usage accordingly.
24354         Port mktime_internal offset to unsigned time_t
24355         This avoids some assumptions about wraparound arithmetic on
24356         signed integer overflow.
24357         * lib/mktime-internal.h (mktime_offset_t): New type.
24358         (mktime_internal): Use it in decl.
24359         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24361         * lib/mktime.c (__mktime_internal, localtime_offset):
24362         * lib/timegm.c (timegm): Use it.
24363         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24364         (gl_FUNC_MKTIME): Require it.
24366 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24368         xstrtol: prohibit monstrosities like "1bB"
24369         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24370         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24371         "B" only if the first suffix needs a base.
24372         * tests/test-xstrtol.sh: Test this.
24374 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24376         xstrtod: reinstate setting of *result upon ERANGE
24377         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24378         the returned limits upon ERANGE, so allow and document that.
24380 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24382         xstrtod: modify *result only if no errors
24383         * lib/xstrtod.c (XSTRTOD).
24385 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24387         btowc: document problems in C locale
24388         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24389         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24391 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24393         mktime: improve integer overflow checking
24394         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24395         (WRAPV): Remove; no longer needed.
24396         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24397         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24398         Remove.  Use intprops.h defns instead.
24399         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24400         Use bool for Boolean, for clarity.
24401         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24402         detect integer overflow.
24403         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24405         intprops: check two's complement assumption
24406         Suggested by Eric Blake in:
24407         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24408         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24409         short, int, long, and (if available) long long are two's complement.
24410         * modules/intprops (Depends-on): Add 'verify'.
24412         intprops, mktime, strtol: assume two's complement
24413         These macros were not portable to every conforming C11 ones'
24414         complement platform.  It's not worth the hassle of porting to some
24415         platforms that use ones' complement or signed magnitude, as such
24416         platforms are almost purely theoretical nowadays and porting even
24417         to some of them makes the code harder to review for little
24418         practical benefit.  Problem reported by Florian Weimer in:
24419         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24420         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24421         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24422         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24423         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24424         (TYPE_SIGNED_MAGNITUDE):
24425         Remove.  All uses rewritten to assume two's complement, which is
24426         all we can reasonably test nowadays anyway.
24427         * top/maint.mk (_intprops_names): Remove the removed macros.
24429 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24431         stdint: port to strict C11 left shift
24432         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24433         Pacify clang -Wshift-negative-value, which should be an issue only
24434         on clang setups where stdint.h does not conform to C11 or to C++11.
24435         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24437 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24439         mbrtowc: work around glibc bug#19932
24440         Fix mbrtowc so that it never returns -1 in the C locale,
24441         as this conflicts with a future version of POSIX
24442         http://austingroupbugs.net/view.php?id=663#c2738
24443         and causes problems with GNU grep: http://bugs.gnu.org/23234
24444         See glibc bug 19932:
24445         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24446         * doc/posix-functions/mbrlen.texi (mbrlen):
24447         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24448         Document the glibc bug.
24449         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24450         Include hard-locale.h, locale.h.
24451         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24452         if the bug is possible.
24453         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24454         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24455         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24456         * modules/mbrtowc (Depends-on): Add hard-locale.
24457         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24458         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24459         * tests/test-mbrtowc5.sh: New file.
24461 2016-04-03  Pedro Alves  <palves@redhat.com>
24463         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24464         When gnulib is configured in C++ mode for a system with a working C99
24465         implementation of stdint.h that predates C++11, gnulib ends up
24466         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24467         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24468         MinGW is LLP64.  Instead of trying to detect the right types, detect
24469         good-enough-pre-C++11 stdint.h and in such case define
24470         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24471         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24472         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24473         conforms to C99.  If it does, check whether it hides symbols
24474         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24475         does, define those macros in config.h.
24477 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24479         argp: merge changes from glibc
24480         Among other things, this should fix problems found by a Coverity
24481         scan and reported by Andrei Borzenkov:
24482         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24483         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24484         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24485         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24486         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24487         * lib/argp.h:
24488         Merge changes from glibc.
24489         * tests/test-argp-2.sh: Adjust to match new behavior.
24491 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24493         stddef: support configuring with g++
24494         Problem reported by Ángel González in:
24495         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24496         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24497         Do not define if _GCC_MAX_ALIGN_T is defined.
24499 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24501         test-framework-sh: minor cleanups
24502         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24503         since strictly speaking POSIX requires this.
24504         (setup_): Do not use the variable 'fail', as that makes the
24505         trace output harder to read ('fail' is typically used by
24506         tests to mean the test failed).  Treat // portably.
24507         Check that new directory is not merely a sibling of the tmp dir.
24508         Avoid unnecessary invocation of tr.
24510         test-framework-sh: revert port to NetBSD 7.0
24511         It was a false alarm; I misinterpreted Assaf Gordon's report.
24512         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24513         Restore.
24514         (test_dir_): Adjust to mktempd_ change.
24515         (mktempd_): Restore 2nd arg.  Use -t again.
24516         (base_template_, template_, nx_): Resurrect old code.
24518         Port better to Alpine Linux
24519         Its diff implementation does not support -c, but does support -U3.
24520         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24521         * tests/init.sh (diff_opt_): New var.
24522         (compare_): Prefer diff -U3 to diff -c to plain diff.
24524 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24526         test-framework-sh: port to NetBSD 7.0
24527         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24528         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24529         Remove.  All uses removed.
24530         (test_dir_): Adjust to mktempd_ change.
24531         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24532         (base_template_, template_, nx_): Simplify by hardcoding.
24534 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24536         gitlog-to-changelog: suppress ignored chatter
24537         * build-aux/gitlog-to-changelog: Do not warn about skipping
24538         an SHA if it would have been ignored anyway.
24540 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24542         setlocale: add "sv" to Windows language table
24543         * lib/setlocale.c (language_table) [W32]: Add "sv".
24544         Reported in <https://savannah.gnu.org/bugs/?44588>.
24546 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24548         sys_select: port to new Cygwin
24549         Problem reported by Ken Brown in:
24550         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24551         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24552         diagnostics.
24554 2016-03-17  Jim Meyering  <meyering@fb.com>
24556         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24557         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24558         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24559           test-userspec.c:176:9: error: statement is indented as if it were \
24560             guarded by... [-Werror=misleading-indentation]
24561                    {
24562                    ^
24563           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24564                  if (!diag && !T[i].result)
24565                  ^~
24567 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24569         time_rz: port to clang -Wunused-const-variable
24570         * lib/time_rz.c (TZ): Remove.  All uses removed.
24572         std-gnu11: improve clang support
24573         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24574         2016-03-15 Also try clang
24575         2016-03-15 Port C11 and C++11 testing to clang
24577         select: port more to Intel 2016.1.150 compiler
24578         Problem reported by Balázs Hajgató in:
24579         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24580         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24582 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24584         select: try to port to 2016.1.150 compiler
24585         Problem reported by Balázs Hajgató in:
24586         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24587         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24588         POSIX specifies 'restrict'.
24590 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24592         localename-tests: memory allocation fixes
24593         * tests/test-localename.c (test_locale_name)
24594         (test_locale_name_thread): Don't call freelocale on a locale
24595         that was the base of a successful newlocale, as that
24596         results in a double free.  Problem reported by Assaf Gordon.
24597         (test_locale_name_thread): Free saved names after use, to pacify
24598         gcc -fsanitize=address.
24600 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24602         intprops: make .h file license match module
24603         * lib/intprops.h: Change the license wording to match glibc format.
24604         This is what is in modules/intprops anyway.  See:
24605         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24607 2016-03-08  Eric Blake  <eblake@redhat.com>
24609         acl: fix missing return on Cygwin
24610         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24611         fall off end of function. Fixes http://bugs.gnu.org/22949
24613 2016-03-05  Bruno Haible  <bruno@clisp.org>
24615         extern-inline: port to PGI CC
24616         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24617         keyword 'inline'.
24618         Reported by Adam James Stewart in:
24619         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24621 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24623         signbit: port back to pre-C++11 GCC
24624         * lib/math.in.h (signbit): Do previous change only if
24625         __cplusplus < 201103.  See Jonathan Wakely in:
24626         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24628 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24630         mountlist: recognize autofs-mounted remote file systems, too
24631         Originally reported at: https://bugzilla.redhat.com/1309247
24632         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24633         "-hosts" because it is used by autofs to mount remote file systems.
24635 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24637         signbit: port to C++ with GCC 6
24638         * lib/math.in.h (signbit) [__cplusplus]:
24639         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24640         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24642         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24644         regex: make it closer to libc
24645         Make Idx a signed type, rather than possibly unsigned.
24646         The unsignedness was not really buying us anything, since the code
24647         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24648         it signed allows us to use -1 and -2 with abandon, like libc does,
24649         thus lessening the number of differences between gnulib and libc.
24650         Also, it should help avoid gratuitous warnings like the one
24651         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24652         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24655         regex: merge patches from libc
24657         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24658         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24659         Convert miscellaneous function definitions to prototype style.
24660         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24661         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24662         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24663         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24664         (re_search_internal):
24665         Convert to prototype-style function definition.
24666         Use internal_function for internal functions.
24668 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24670         stdalign: port to older HP and IBM cc
24671         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24672         C compilers, by checking their version numbers.  These version
24673         numbers appear in MariaDB and in Qt code that dates way back and
24674         that conditiionally uses the 'aligned' attribute.
24676 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24678         stdalign: port to clang 3.7.0
24679         Problem reported by Herbert J. Skuhra in:
24680         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24681         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24682         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24683         https://llvm.org/bugs/show_bug.cgi?id=26547
24685 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24687         readdir_r: now obsolescent
24688         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24689         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24691 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24693         misc: port better to gcc -fsanitize=address
24694         Without these patches, ./configure CFLAGS='-fsanitize=address'
24695         would compute incorrect values.  This patch fixes some (but not all)
24696         test failures with recent glibc, with this configuration.
24697         * m4/acl.m4 (gl_ACL_GET_FILE):
24698         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24699         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24700         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24701         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24702         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24703         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24704         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24705         * m4/getline.m4 (gl_FUNC_GETLINE):
24706         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24707         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24708         * m4/regex.m4 (gl_REGEX):
24709         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24710         * tests/test-calloc-gnu.c (main):
24711         * tests/test-duplocale.c (main):
24712         * tests/test-getgroups.c (main):
24713         * tests/test-getline.c (main):
24714         * tests/test-inttostr.c (main):
24715         * tests/test-localename.c (test_locale_name)
24716         (test_locale_name_thread, test_locale_name_environ)
24717         (test_locale_name_default):
24718         * tests/test-regex.c (main):
24719         * tests/test-setlocale1.c (main):
24720         * tests/test-stat.h (test_stat_func):
24721         Free heap-allocated storage before exiting.
24722         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24723         Don't match *_foo symbols inserted by AddressSanitizer.
24724         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24726 2016-02-02  Jim Meyering  <meyering@fb.com>
24728         verify-tests: also remove stray test-verify.Tpo
24729         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24730         to remove the test-verify.Tpo file that is left behind by
24731         the automake-generated rule upon compilation failure.
24732         Otherwise, that .Tpo file would cause a failed "make distcheck"
24733         at least for grep.
24735 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24737         std-gnu11: new module
24738         This makes it easier for applications to prefer C11 and C++11
24739         to older variants, when compiling C and C++ code.
24740         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24741         a nontrivial chunk of GPLed Autoconf source code.
24742         * COPYING: Mention the m4/*.m4 copyright situation.
24743         * MODULES.html.sh (std-gnu11): New module.
24744         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24746 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24748         get-permissions, strftime: fix grammar in comments
24749         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24750         some grammar fixes Alan Mackenzie made to GNU Emacs.
24752 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24754         gettext: mark as obsolete
24755         Suggested by Paul Eggert in:
24756         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24757         * modules/gettext (Status): Mark as obsolete.
24758         (Notice): Suggest to use 'gettext-h' instead.
24759         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24760         the 'gettext' module.
24762 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24764         gnulib-tool: don't give up on ln -s so easily
24765         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24766         because an earlier one failed.  The targets could be on different
24767         file systems.  Problem reported by KO Myung-Hun in:
24768         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24770         closedir: fix OS/2-related typos
24771         Problem reported by KO Myung-Hun in:
24772         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24773         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24774         in the last couple of changes.
24776 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24778         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24779         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24780         copying a directory.
24782 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24784         regex: treat [x] as x if x is a unibyte encoding error
24785         Problem reported by Aharon Robbins in:
24786         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24787         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24788         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24790         closedir, dirfd, opendir: port to OpenSolaris 5.10
24791         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24792         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24793         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24794         Don't use ${word##pat} substitution, as it doesn't work in
24795         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24796         http://bugs.gnu.org/22443#11
24798 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24800         bootstrap: use American spelling
24801         * build-aux/bootstrap: Honor American spelling.
24803 2016-01-22  Karl Berry  <karl@freefriends.org>
24805         * doc/posix-functions/localtime.texi,
24806         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24808 2016-01-21  Bruno Haible  <bruno@clisp.org>
24810         hash-pjw-bare: fix comment
24811         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24813         wcwidth: Replace also on OpenBSD 5.8
24814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24815         * doc/posix-functions/wcwidth.texi: Update.
24817 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24819         gnu-web-doc-update: fix addition of new files
24820         If there were already added (emnpty) dirs,
24821         then cvs aborts the add with the message:
24822           cvs [add aborted]: there is a version in <./dirname> already
24823         * build-aux/gnu-web-doc-update: Add directories separately
24824         to the addition of files, to avoid the above issue
24825         impacting the addition of files.
24827 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24829         utimens-tests: avoid pulling gettext .m4 files
24830         Although this is not the right fix to the original problem:
24831         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24832         it makes it possible again for consumer projects to use arbitrary
24833         version of gettext, through the steps described at:
24834         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24835         See here for details:
24836         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24837         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24838         'gettext'.
24839         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24840         'gettext'.
24842 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24844         regex: pacify static checkers
24845         Problem and draft fix reported by Aharon Robbins in:
24846         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24847         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24848         Clear memory to pacify static checkers.
24850         regex: fix [ diagnostic
24851         Problem and fix reported by Aharon Robbins in:
24852         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24853         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24855         regex: fix memory leaks
24856         Problem and draft fix reported by Aharon Robbins in:
24857         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24858         * lib/regcomp.c (build_range_exp, build_charclass_op)
24859         * lib/regex_internal.c (re_dfa_add_node):
24860         Fix memory leak on failure.
24862 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24864         fts: don't unconditionally use leaf optimization for NFS
24865         NFS st_nlink are not accurate on all implementations,
24866         leading to aborts() if that assumption is made.
24867         See <https://bugzilla.redhat.com/1299169>
24868         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24869         the white list, and document the issue.
24871 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24872             KO Myung-Hun  <komh@chollian.net>
24874         gnulib-tool: don't assume ln -s works
24875         * gnulib-tool (func_ln_s): New function.
24876         (func_ln): Use it.
24878 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24880         utimes: detect utimes() correctly on OS/2 kLIBC
24881         utimes() of OS/2 kLIBC has some limitations.
24882         1. OS/2 itself supports a file date since 1980 year in local time.
24883         2. OS/2 itself supports only even seconds for a file time.
24884         3. utimes() of OS/2 kLIBC does not work on an opened file.
24885         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24886         * doc/posix-functions/utimes.texi: Document the above limitations of
24887         utimes() on OS/2 kLIBC.
24889 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24890             KO Myung-Hun  <komh@chollian.net>
24892         openat_proc_name: port to OS/2 kLIBC
24893         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24894         instead of /proc/self/fd.
24895         * lib/openat-proc.c (openat_proc_name):
24896         Don't assume file name length is less than INT_MAX.
24897         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24899 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24901         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24902         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24903         definitions of intptr_t and uintptr_t (which use int and unsigned)
24904         to avoid clashes with declarations of system functions like sbrk.
24905         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24906         _INTPTR_T_DECLARED before defining them.
24908         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24909         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24910         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24911         Declare on kLIBC.
24912         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24913         fd associated with dirp.
24914         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24915         dirp_fd_list.
24916         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24917         (dirfd): Implemented for kLIBC.
24918         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24919         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24920         succeeds.
24921         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24922         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24923         (REPLACE_DIRFD): Define to 1 if replaced.
24924         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24925         * modules/closedir (Depends-on): Add dirfd.
24926         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24927         condition.
24928         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24929         * modules/opendir (Depends-on): Add dirfd.
24931         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24932         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24933         * lib/dup.c (dup_nothrow): New.
24934         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24935         (klibc_dup2): New.
24936         * lib/fcntl.c (klibc_fcntl): New.
24937         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24938         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24939         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24940         fd.
24942         pipe_filter_ii_execute: port to OS/2 kLIBC
24943         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24944         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24945         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24946         Reuse Win32 code on OS/2 kLIBC.
24947         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24948         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24950         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24951         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24952         static inline function.  The implementation of wcwidth in wcwidth.c
24953         causes a "conflicting types" error.
24954         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24956         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24957         spawn() on OS/2 kLIBC is not silly like one on Windows
24958         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24959         empty string on OS/2 kLIBC.
24961         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24962         On OS/2 kLIBC, select() works only on sockets.
24963         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24965         binary-io: don't put fd in binary mode if it is a console on EMX
24966         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24967         a console on EMX.
24969 2016-01-15  Pádraig Brady  <P@draigBrady.com>
24971         doc: mention unfixed issues with unsupported localtime() values
24972         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
24973         returns nonsense for localtime(2^56).
24974         * doc/posix-functions/localtime_r.texi: Likewise.
24976 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24978         doc: mention setlocale() issues on OpenBSD
24979         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
24980         never fails, and the need to check categories individually.
24982 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24984         sig2str: list all signals on FreeBSD >= 7
24985         FreeBSD >= 7 is contravening POSIX by not defining NSIG
24986         to the maximal statically defined signal value.
24987         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
24988         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
24989         where available, even when NSIG is defined.
24991 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24993         acl-permissions: port to USE_ACL==0 platforms
24994         I ran into this problem when building bleeding-edge GNU Emacs
24995         with gcc -fsanitize=address on Fedora 23.  On this platform
24996         the ACL library does not pass the 'configure' test and Emacs
24997         then does not build due in part to what appear to be typos in the
24998         ACL part of Gnulib.
24999         * lib/acl-internal.c (free_permission_context):
25000         * lib/acl-internal.h (struct permission_context):
25001         Test whether USE_ACL is nonzero, not whether it is defined.
25003 2016-01-12  Martin Sebor  <msebor@redhat.com>
25005         mktime: rename macro to avoid glibc clash
25006         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25007         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25009 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25011         Port "$@" to OpenIndiana ksh93
25012         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25013         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25014         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25015         bug long-dead shells, so remove the workaround.
25016         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25017         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25018         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25019         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25020         Use "$@" instead of ${1+"$@"}.
25022         Port Universal Time settings to strict POSIX
25023         * build-aux/announce-gen, build-aux/bootstrap:
25024         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25025         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25026         * build-aux/gnupload, build-aux/mkinstalldirs:
25027         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25028         * build-aux/update-copyright, build-aux/useless-if-before-free:
25029         * build-aux/vc-list-files, tests/test-strftime.c:
25030         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25031         but POSIX says the behavior of TZ="UTC" is undefined.
25033 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25035         msvc-inval: fix problem with unset shell var
25036         Problem reported by Karl Berry in:
25037         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25038         * modules/msvc-inval (Depends-on):
25039         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25040         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25042 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25044         tests: for compare_(), use cmp -s where available
25045         * tests/init.sh (compare_): Only fall back to cmp without
25046         the POSIX defined -s option, where this is not available.
25048 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25050         version-etc: new year
25051         * build-aux/gendocs.sh (version):
25052         * doc/gendocs_template:
25053         * doc/gendocs_template_min:
25054         * doc/gnulib.texi:
25055         * lib/version-etc.c (COPYRIGHT_YEAR):
25056         Update copyright dates by hand in templates and the like.
25057         * all files: Run 'make update-copyright'.
25059 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25061         human: fix output buffer overrun by 1
25062         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25063         calculation that could lead to a one-byte buffer overrun.
25065 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25067         maint: fix operator precedence in mbrtowc test
25068         This is a fix for test breakage introduced by commit 45228d96; the
25069         equality expression must be parenthesized when negated with '!',
25070         otherwise we always get:
25072           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
25074         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
25075         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25077 2015-12-23  James Youngman  <jay@gnu.org>
25079         regexprops-generic: update from regex.h
25080         * doc/regexprops-generic.texi: update by running the regexprops binary
25081         from findutils (the command line is 'regexprops "Regular Expressions"
25082         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
25083         gnulib with GNU grep had made this document out-of-date.
25085 2015-12-23  Pádraig Brady  <P@draigBrady.com>
25087         strftime-tests: avoid false failure on OS X
25088         * tests/test-strftime.c (struct localtime_rz_test): Add an
25089         ahistorical member which is used to warn rather than fail
25090         when tm_isdst isn't set for such entries.  This is the case for
25091         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
25093 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
25095         fts: ensure leaf optimization is used for NFS
25096         NFS provides usable dirent.d_type but not necessarily for all entries
25097         of large directories.  See <https://bugzilla.redhat.com/1252549>
25098         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
25100 2015-12-20  Pádraig Brady  <P@draigBrady.com>
25102         fts: enable leaf optimization for XFS
25103         XFS provides usable dirent.d_type only for DT_DIR,
25104         but the noleaf optimization still applies.
25105         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
25107 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25109         intprops: comment fix
25110         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25111         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25113         intprops-test: work around GCC bug 68971
25114         Problem reported by Pádraig Brady in:
25115         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25116         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25117         (main): Add a case that better tests 64-bit long in this area.
25119 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25121         gnulib-tool: allow multiple --local-dir usage
25122         * gnulib-tool: Use --local-dir to construct compound
25123         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25124         PATH_SEPARATOR early.
25125         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25126         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25127         func_determine_path_separator because that needs to be detected
25128         earlier now.
25129         (func_determine_path_separator): New function.
25130         (func_path_foreach, func_path_foreach_inner): New functions.
25131         (func_path_prepend, func_path_append): Likewise.
25132         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25133         (func_lookup_file, func_all_modules): Use new functions to work
25134         with local_gnulib_path.
25135         (func_modules_in_dir, func_exists_module): New callbacks for
25136         func_path_foreach.
25137         (func_exists_module, func_get_tests_module): Likewise.
25138         (func_is_local_file, func_should_symlink): New helper methods.
25139         (func_add_file, func_update_file): Use new func_should_symlink
25140         instead, DRY.
25141         (func_reconstruct_cached_local_gnulib_path): New helper.
25142         (func_reconstruct_cached_dir): New callback.
25143         (func_import): The cached_local_gnulib_dir renamed to
25144         cached_local_gnulib_path similarly to local_gnulib_dir.
25145         Use new func_reconstruct_cached_local_gnulib_path.
25146         (func_count_relative_local_gnulib_path): New sub-method.
25147         (func_create_testdir): Use func_should_symlink, DRY.
25148         (func_create_megatestdir): Use new functions to work with
25149         local_gnulib_path correctly.
25150         (func_append_local_dir): New helper.
25152 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25154         fix freadptr to work with ungetc on all uClibc configs
25155         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25156         where GNU coreutils cut(1) generates invalid output on uClibc
25157         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25158         * lib/freadptr.c (freadptr): Return NULL if there are
25159         ungotten chars.  In this case freadseek() will iterate
25160         again to process the ungotten character.
25162 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25164         xalloc-oversized: improve performance with GCC 5
25165         * lib/xalloc-oversized.h (xalloc_oversized):
25166         Improve performance with GCC 5 by using __builtin_mul_overflow.
25168 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25170         intprops: new public macro EXPR_SIGNED
25171         Emacs can use this macro, so make it public.
25172         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25173         'Integer Type Determination', since some of these macros apply
25174         to non-integer types.  Clarify what kinds of constant expressions
25175         these macros return.  Say when the arguments can be non-integers.
25176         Mention newly published macro EXPR_SIGNED.
25177         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25178         make it public.  All uses changed.
25180         intprops: fix typo in clang port
25181         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25182         '__builtin_add_overflow' that is not caught by compiler.
25184 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25186         test-timespec: fix typo in previous change
25187         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25189         timespec-sub: fix overflow bug; add tests
25190         * lib/timespec-add.c (timespec_add):
25191         * lib/timespec-sub.c (timespec_sub):
25192         Work even if time_t is narrower than int (a theoretical
25193         possibility).  Redo code for a bit more clarity.
25194         * lib/timespec-sub.c (timespec_sub):
25195         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25196         * modules/timespec-tests, tests/test-timespec.c: New files.
25198         intprops-test: suppress -Woverlength-strings
25199         Problem reported by Pádraig Brady in:
25200         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25201         It is not worth the hassle to port this test to compilers that
25202         cannot handle long strings in diagnostics.
25203         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25205 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25207         quotearg: add quotearg_n_style_colon()
25208         This quotes with default options of the specified style,
25209         but with quoting enabled for instances of ':'.
25210         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25211         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25213 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25215         intprops: revise _WRAPV macros, revert _OVERFLOW
25216         The incompatible changes to the _OVERFLOW macros were too much of
25217         a hassle in practice, so revert them.  Instead, change the new
25218         _WRAPV macros to make them closer in behavior to GCC 5's new
25219         builtin_add_overflow etc. functions.  No other software was using
25220         these newly-added macros yet, so this should be OK.
25221         * NEWS: Revert previous change, since the incompatible change
25222         has been reverted, and nobody used the incompatible version.
25223         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25224         Document revised behavior.
25225         (Integer Range Overflow): Adjust example to match above revisions.
25226         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25227         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25228         these can be used in integer constant expressions again.
25229         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25230         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25231         needed.
25232         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25233         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25234         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25235         Remove, as they did not seem that useful.
25236         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25237         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25238         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25239         Support new semantics.
25240         (__has_builtin): New macro, if not alreay defined.
25241         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25242         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25243         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25244         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25245         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25246         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25247         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25248         New macros.
25249         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25251 2015-11-03  Jim Meyering  <meyering@fb.com>
25253         intprops: add parentheses for when OP has precedence lower than "-"
25254         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25255         "a OP b" must be parenthesized for when OP is like "<<", which has
25256         lower precedence than the following "-". Reported by Pádraig Brady.
25258 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25260         quotearg: constify get_quoting_style parameters
25261         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25262         * lib/quotearg.c (get_quoting_style): Likewise.
25264 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25266         quotearg: add support for $'' shell escaping
25267         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25268         items and descriptions.
25269         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25270         above types by quoting like "shell", but using $'...' syntax
25271         for non printable characters, which should provide unambiguous
25272         printable output for any input.
25273         * tests/test-quotearg-simple.c: Update accordingly.
25275 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25277         maint: use a more standard return from mbrtowc test
25278         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25279         from the test program as this is non standard and often
25280         indicates an unhandled case in the test program.
25281         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25283 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25285         intprops: add WRAPV and const flavors for GCC 5
25286         If available, use GCC 5's builtin functions for efficient integer
25287         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25288         and safely compute the low-order bits of the correct answer.
25289         A downside of these efficient functions is that they cannot be
25290         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25291         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25292         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25293         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25294         Document the changes.
25295         (Wraparound Arithmetic): New section.
25296         (Integer Range Overflow):
25297         Put this subsection last, since it's least useful.
25298         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25299         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25300         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25301         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25302         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25303         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25304         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25305         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25306         New macros.
25307         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25308         Generate calls to GCC builtins if available, for speed.
25309         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25310         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25311         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25312         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25313         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25314         (CHECK_QUOTIENT, CHECK_REMAINDER):
25315         Test WRAPV and CONST flavors (when available) too.
25317 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25319         doc: use extended timezone format in iso-8601 example
25320         * doc/parse-datetime.texi: The standard states that extended format
25321         is to be used consistently throughout.
25322         Note that lib/parse-datetime.y can handle either tz format.
25324 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25326         stdalign: port to Sun C 5.9
25327         * doc/posix-headers/stdalign.texi: Document this.
25328         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25329         __attribute__ ((__aligned__ (...))).
25331 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25333         time_rz: fix comment about tzalloc
25334         * lib/time_rz.c (tzalloc): Fix comment.
25336 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25338         stdalign: work around pre-4.9 GCC x86 bug
25339         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25340         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25341         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25343 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25345         maint.mk: sc_tight_scope: remove extraneous expressions
25346         * top/maint.mk (tight_scope): This is not really required since
25347         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25348         that matches all nm entries.  But it does remove extraneous entries
25349         that may be confusing or cause issue in future maintenance.
25351 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25353         time_rz: return NULL if localtime_r fails
25354         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25355         while still attempting to pacify bleeding-edge GCC.
25357         fts: port to C11 alignof
25358         * doc/posix-headers/stdalign.texi (stdalign.h):
25359         Document the C11 restriction.
25360         * lib/fts.c: Include stddef.h, for max_align_t.
25361         (fts_alloc): Align using max_align_t, not FTSENT.
25362         * modules/fts (Depends-on): Add stddef.
25364 2015-10-18  Jim Meyering  <meyering@fb.com>
25366         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25367         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25368         would see this:
25370         lib/time_rz.c: In function 'localtime_rz':
25371         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25372           [-Werror=nonnull]
25373                    if (tm && !save_abbr (tz, tm))
25374                        ^
25376         That was complaining about "tm" because it is a parameter that was
25377         declared with the __nonnull__ attribute.
25378         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25379         result of localtime_r.
25381 2015-10-17  Jim Meyering  <meyering@fb.com>
25383         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25384         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25385         name-extraction regexp mistakenly used \S+, and would mistakenly
25386         extract "*F" from "extern int *F()" rather than the desired "F".
25387         Use \w+ instead.
25389 2015-10-17  Jim Meyering  <meyering@fb.com>
25391         maint.mk: sc_tight_scope: factor and support OS X
25392         * top/maint.mk (_gl_tight_scope): Address three issues:
25393         - factor out four instances of code that wraps a string in "^...$"
25394         - allow nm-reported symbol names to have an optional leading "_"
25395         - add "main" to the list of ignored variable names, because on os x,
25396         "main" has nm-reported type "S" in the variable-checking section.
25398 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25400         safe-alloc-tests: fix typo in license header
25401         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25403 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25405         copy-file: fix mem leak in error case
25406         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25407         upon error opening or performing I/O to the src and dest files.
25409 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25411         localename: control langinfo.h inclusion
25412         This header is only used to work around buggy behavior in old
25413         versions of glibc, so do not include it all the time.  Otherwise
25414         we get build failures on systems that do not provide langinfo.h.
25415         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25416         in the source later on.
25417         The patch was originally submitted to gettext as:
25418         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25420 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25422         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25423         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25424         * lib/u64.c, lib/unistd.c:
25425         Append 'typedef int dummy;', to pacify compilers that are picky
25426         about empty translation units.
25428 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25430         accept4-tests: fix to avoid non portable flags
25431         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25432         as they are the only documented ones, and passing others may trigger
25433         EINVAL (seen on FreeBSD 10.1-RELEASE).
25434         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25435         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25437 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25439         gnulib-tool: fix tests of 'extensions' module
25440         This complements f8fe25fab60e3c687a124 commit.
25441         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25442         emitting of initial gl_EARLY macros.
25443         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25444         replaced with func_emit_pre_early_macros call.
25446 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25448         unicase/locale-language: fix typo in utf-8 cookie
25449         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25450         Problem reported by Zbigniew Jędrzejewski-Szmek.
25452 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25454         xalloc: do not worry about GCC 5 warning on 32 bit
25455         * lib/xalloc.h: Revert previous change.
25456         I found a better way to fix this in coreutils.
25458 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25460         xalloc: avoid GCC 5.1 warning on 32 bit
25461         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25462         xalloc_oversized(), which was seen to give this warning
25463         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25464         when simplifying conditional".
25466 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25468         uniname/uniname-tests: avoid compiler warnings
25469         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25470         unused local variables.
25471         (test_alias_lookup): Fix alias name display in failure cases.
25473 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25475         c-ctype: do not worry about EBCDIC + char signed
25476         Drop support for EBCDIC with char being signed, as this breaks too
25477         many programs.  Problem reported by Ben Pfaff in:
25478         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25479         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25480         char being signed.
25481         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25482         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25483         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25484         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25485         * tests/test-c-ctype.c (test_all):
25486         Simplify by assuming standard char values cannot be negative.
25487         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25489 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25491         c-ctype: port better to z/OS EBCDIC
25492         Problems reported by Daniel Richard G. in:
25493         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25494         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25495         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25496         (_C_CTYPE_OTHER_CNTRL): New macro.
25497         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25498         from SCHAR_MIN, as the functions are defined only from values
25499         promoted from char or from unsigned char, not necessarily from
25500         signed char.
25502 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25504         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25506         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25507         and ARFLAGS variables.  Doing this unconditionally could break
25508         later Automake's AM_PROG_AR invocation (at least it's
25509         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25511         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25512         Amsterdam Compiler Kit, so make the previous code to have effects
25513         only on ACK, and rather automatically call the Automake's
25514         AM_PROG_AR as soon as possible to decide other cases.
25516         References:
25517         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25519         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25520         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25521         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25522         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25523         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25524         'extensions' module is used.
25525         * modules/extensions (configure.ac-early): Remove as this snippet
25526         is added to gnulib-comp.m4 earlier anyway.
25528 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25530         sockets: MS Windows initalization fixes
25531         Problem reported by Test User in:
25532         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25533         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25534         Correct the endianness.
25535         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25536         number mismatch, not just on <.  Cleanup before any such failure.
25538 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25540         gc: fix detection of installed libgcrypt version
25541         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25542         at least as recent as 1.4.4.  The previously used macro is not
25543         available now, since modules were removed in version 1.6.0.
25545 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25547         c-ctype: rewrite to use inline functions
25548         This simplifies maintenance, since it makes for just one
25549         implementation of each function, letting the compiler have the fun
25550         of optimization.  In practice this works well nowadays with GCC.
25551         E.g., c_isascii might need only three instructions even though the
25552         source code lists every ASCII character individually in a large
25553         switch statement.
25554         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25555         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25556         * NEWS: Document the API change.
25557         * lib/c-ctype.c: Drastically simplify, since this now just expands
25558         inline functions.
25559         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25560         (C_CTYPE_INLINE): New macro.
25561         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25562         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25563         Verify that either ASCII or EBCDIC is being used.
25564         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25565         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25566         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25567         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25568         New private macros.
25569         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25570         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25571         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25572         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25573         (c_tolower, c_toupper): When converting, return the unsigned char,
25574         as that is what z/OS does.
25575         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25576         of some c-ctype.h macros.
25577         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25578         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25579         c_tolower promotion to be compatible with z/OS.
25581 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25583         gitlog-to-changelog: trim only trailing whitespaces
25584         This is fix for --format regression introduced by commit
25585         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25586         doubled %n string) had no effect anymore.  This format
25587         specification has been used e.g. by GNU paxuitils (commit
25588         edfd8bcc3).
25590         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25591         newlines in commmit messages.
25593 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25595         Test that c_iscntrl agrees with iscntrl, etc.
25596         Suggested by Daniel Richard G. in:
25597         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25598         * modules/c-ctype-tests (Depends-on): Add ctype.
25599         * tests/test-c-ctype.c: Include <ctype.h>.
25600         (NCHARS): New constant.
25601         (test_agree_with_C_locale): New function.
25602         (main): Use it.
25603         (test_all): Use named constants.
25605         c-ctype: improve c_isascii testing
25606         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25607         Add a test to count the number of ASCII characters.
25609 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25611         savewd: remove SAVEWD_CHDIR_READABLE
25612         It was problematic in the light of file systems that ignore umask.
25613         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25614         * NEWS: Document this.
25615         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25616         successful, -1 (setting errno) on failure, rather than something
25617         more complicated than that.
25618         * lib/mkdir-p.c (make_dir_parents):
25619         Do not use SAVEWD_CHDIR_READABLE.
25620         * lib/savewd.c (savewd_chdir):
25621         Remove support for SAVEWD_CHDIR_READABLE.
25622         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25624         c-ctype: port better to EBCDIC
25625         Problems reported by Daniel Richard G. in
25626         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25627         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25628         Include "verify.h".
25629         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25630         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25631         Define as enum constants with value false, if not defined, so that
25632         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25633         code more portable, as both branches of the 'if' are compiled on
25634         all platforms.
25635         (C_CTYPE_EBCDIC): New constant.
25636         Verify that the character set is either ASCII or EBCDIC.
25637         (to_char): New static function.
25638         (c_isascii, c_iscntrl):
25639         Assume standard control-character assignments for EBCDIC.
25640         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25641         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25642         Rewrite to use 'if' instead of 'ifdef'.
25643         Use to_char if non-ASCII.  Prefer <= to >=.
25644         Prefer true and false to 1 and 0, for booleans.
25645         (c_iscntrl): Use 'if', not 'ifdef'.
25646         * modules/c-ctype (Depends-on): Add verify.
25647         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25648         (to_char): New function.
25649         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25651 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25653         nanosleep: fix return code for interrupted replacement
25654         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25655         that we return -1 in the case the call is interrupted by a signal,
25656         rather than the current value of 1.
25657         Diagnosed and tested by Daniel Richard G.
25659 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25661         Diagnose ERE '()|\1'
25662         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25663         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25664         track of the set of previously-completed subexpressions available
25665         before the first alternative, and restore this set just before
25666         parsing each subsequent alternative.  This lets us diagnose the
25667         invalid back-reference in the ERE '()|\1'.
25669         regex: merge patches from libc
25671         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25672         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25673         * lib/regex_internal.h:
25674         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25676         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25677         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25678         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25679         wcscoll.
25680         * lib/regexec.c (check_node_accept_bytes): Likewise.
25682         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25683         Fix regex wcrtomb namespace (bug 18496).
25684         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25685         instead of wcrtomb.
25687         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25688         Fix regex wctype namespace (bug 18495).
25689         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25690         instead of towlower.
25691         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25692         instead of iswlower.  Call __towupper instead of towupper.
25693         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25694         instead of iswalnum.
25696         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25697         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25698         COLL_SYM in a couple of places to avoid uninitialized variable
25699         wanings on tilegx gcc 4.8.2.
25701         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25702         * lib/regex_internal.h: Remove NOT_IN_libc.
25704         2014-11-17  Andreas Schwab  <schwab@suse.de>
25705         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25707         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25708         Move findidx nested functions to top-level.
25709         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25710         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25711         Pass new arguments to findidx.
25712         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25713         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25714         Don't #include it inside the function.  Pass new arguments to findidx.
25715         * lib/regex_internal.h:
25716         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25717         (re_string_elem_size_at): Don't #include it inside the function.
25718         Pass new arguments to findidx.
25720         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25721         Check if DEBUG is defined in regex_internal.c
25722         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25724 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25726         ceill: detect buggy OpenBSD implementation
25727         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25728         which returns zero for small values.  Discussed here:
25729         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25731 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25733         mountlist: add me_mntroot field on Linux machines
25734         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25735         mount_entry so Linux machines based on /proc/self/mountinfo can
25736         distinguish between bind mounts and original mounts.  In reality bind
25737         mounts aren't treated differently than mountroot=/ mounts by the
25738         kernel, but the user often wants these bind mounts distinguished.
25739         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25740         More details at https://pad.lv/1432871
25742 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25744         doc: Describe to use multiple instances of gnulib
25745         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25746         instances of gnulib with different modules can be used, for example one
25747         for a lib and another one for associated tools.
25749 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25751         base32: mark function as __attribute__ const
25752         * lib/base32.h (isbase32): Mark __attribute__ const as
25753         suggested by GCC, and consistent with the base64 module.
25755 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25757         gnulib-tool: don't transform binary files with sed
25758         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25759         .mo and .class files.
25760         Reported by Denis Denisov.
25762 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25764         gperf: respect silent rules
25765         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25766         V_GPERF_0 for silent rules.
25767         * modules/iconv_open (Makefile.am): Use V_GPERF.
25768         * modules/unicase/locale-language (Makefile.am): Likewise.
25769         * modules/unicase/special-casing (Makefile.am): Likewise.
25770         * modules/unictype/category-byname (Makefile.am): Likewise.
25771         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25772         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25773         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25774         * modules/unictype/property-byname (Makefile.am): Likewise.
25775         * modules/unictype/scripts (Makefile.am): Likewise.
25776         * modules/uninorm/composition (Makefile.am): Likewise.
25778 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25780         Improve port of stdalign to C++11
25781         Problem reported by Sundaram in:
25782         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25783         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25784         (__alignas_is_defined): Define if C++11 or newer.
25786 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25788         pmccabe2html: fix gawk regex escaping
25789         * build-aux/pmccabe2html: Add one more backslash to properly
25790         escape the gsub replacement value.  Fixes this error:
25791         gawk: ./build-aux/pmccabe2html:425: \
25792         warning: escape sequence `\&' treated as plain `&'
25794 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25796         time_rz: port to pedantic memcpy
25797         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25798         that reject memcpy (..., NULL, 0).
25800 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25802         time_rz: port better to MinGW
25803         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25804         Instead, store the tzname copy in the struct tm_zone object.
25805         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25806         * lib/strftime.c [!_LIBC]:
25807         * lib/time_rz.c: Include time-internal.h.
25808         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25809         name from *TZ rather than from TZNAME, doable because *TZ now has
25810         a tzname_copy member.
25811         * lib/time-internal.h: New file, with contents taken from
25812         lib/time_rz.c.  It's separate because strftime.c now accesses
25813         struct tm_zone members.
25814         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25815         New member tzname_copy.
25816         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25817         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25818         Initialize tzname_copy member.
25819         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25820         in tzname_copy member.
25821         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25822         (restore_tzname): Remove; no longer needed.  All calls removed.
25823         * modules/time_rz (Files): Add lib/time-internal.h.
25825         time: port __need_time_t to MinGW
25826         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25827         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25829 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25831         strftime: fix newly-introduced bug on Solaris
25832         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25833         consistently at the start, rather than doing some of the setup at
25834         the start and some in the %Z format spec.  This is cleaner, and
25835         works better with time_rz on platforms like Solaris where struct
25836         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25837         mktime_z and localtime_rz can mess up the tzname cache.
25839         test-strftime: test for Solaris bug
25840         * modules/strftime-tests (Depends-on): Add strerror.
25841         * tests/test-strftime.c: Include <errno.h>.
25842         (posixtm_test): New function, containing the old 'main'.
25843         (struct tzalloc_test, struct localtime_rz_test): New types.
25844         (TZ, LT): New static vars.
25845         (tzalloc_test): New function.
25846         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25848         time_rz: port to Solaris etc.
25849         Works around a tzname problem on platforms like Solaris that have
25850         tzname but not tm_zone, by setting tzname at the appropriate time
25851         and restoring it later.
25852         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25853         New static vars.
25854         (save_abbr) [HAVE_TZNAME]: Set them.
25855         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25856         (restore_tzname): New function.
25857         (localtime_rz, mktime_z): Use it.
25859         time_rz: now LGPL
25860         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25862         time_rz: make a constant 'const'
25863         * lib/time_rz.c (local_tz): Now const.
25865         time_rz: fix off-by-one typo
25866         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25868 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25870         fprintftime, strftime: use timezone_t args
25871         * NEWS: Document the change.
25872         * lib/fprintftime.h (fprintftime):
25873         * lib/strftime.c (extra_args) [my_strftime]:
25874         * lib/strftime.h (nstrftime):
25875         Time zone arg is now of type timezone_t, not int.
25876         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25877         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25878         (my_strftime) [emacs && !my_strftime]:
25879         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25880         Remove; Emacs doesn't need this any more.
25881         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25882         fprintftime and nstrftime to call tzset.
25883         (ut) [!my_strftime]: Remove, replacing with ...
25884         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25885         (strftime_case_): Use localtime_rz and mktime_z instead
25886         of localtime_r and mktime.
25887         * modules/fprintftime (Depends-on): Add time_rz.
25888         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25889         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25891         time_rz: new module
25892         * MODULES.html.sh: Add time_rz.
25893         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25894         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25895         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25896         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25897         New var HAVE_TIMEZONE_T (default 0).
25898         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25899         New var GNULIB_TIME_RZ (default 0).
25900         * modules/time (time.h): Substitute the new vars.
25902         flexmember: license is now unlimited
25903         * modules/flexmember (License): Change to unlimited,
25904         since its only source file gives an unlimited license.
25906 2015-07-15  Eric Blake  <eblake@redhat.com>
25908         maint: update copyright paper procedures
25909         * config/srclist.txt: Drop outdated files.
25910         * doc/Copyright/conditions.txt: Update to latest.
25911         * doc/Copyright/assign.changes.manual: Delete.
25912         * doc/Copyright/assign.future.manual: Likewise.
25913         * doc/Copyright/assign.manual: Likewise.
25914         * doc/Copyright/assign.translation.manual: Likewise.
25915         * doc/Copyright/disclaim.changes.manual: Likewise.
25916         * doc/Copyright/disclaim.manual: Likewise.
25917         * doc/Copyright/disclaim.program: Likewise.
25919 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25921         localename: fix link error on Illumos
25922         Illumos defines __sun, but does not have getlocalename_l nor the
25923         equivalent.  This partially reverts commit 387c214.
25924         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25925         available, as well as uselocale.
25926         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25927         use getlocalename_l if it is not available.
25929 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25931         unistr/uN-strtok-tests: avoid a trivial leak
25932         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25933         input and delim after the multibyte delimiter tests.
25935 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25937         file-has-acl, acl-permissions: fix HP-UX typos
25938         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25939         * lib/file-has-acl.c (file_has_acl):
25940         * lib/set-permissions.c (context_acl_from_mode)
25941         (context_aclv_from_mode, set_acls):
25942         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25943         They were introduced by the recent ACL changes.
25945         regex: match current GNU grep behavior
25946         These symbols have not matched GNU grep behavior for quite some time.
25947         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25948         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25949         Change to match current GNU behavior.
25950         Simplify by expressing it as differences from POSIX BREs and EREs.
25951         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25953 2015-07-03  Jim Meyering  <meyering@fb.com>
25955         set-permissions.c: adjust acl_from_mode's cpp guard
25956         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25957         directives identical to those guarding the sole use.
25958         Otherwise, on some systems, we'd get a warning about
25959         the function being defined but not used.
25960         Also, filter through cppi to correct misleading indentation
25961         of cpp directives.
25963 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25965         tests: restrict shells to those that support 'local'
25966         The local keyword is very widely supported and used
25967         in tests in coreutils and grep at least.  Therefore
25968         restrict to testing with shells that support it.
25969         This mainly excludes /bin/sh on Solaris.
25970         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
25972 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
25973         and Daiki Ueno  <ueno@gnu.org>
25975         unistr/uN-strtok: handle multibyte delimiters
25976         Previously, uN_strtok moved PTR to the next unit to the token end.
25977         When DELIM contained a multibyte character, the new position could
25978         be a middle of a multibyte character.
25979         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
25980         after the token.
25981         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
25982         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
25983         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
25984         * modules/unistr/u8-strtok (Depends-on): Depend on
25985         unistr/u8-strmblen.
25986         * modules/unistr/u16-strtok (Depends-on): Depend on
25987         unistr/u16-strmblen.
25988         * modules/unistr/u32-strtok (Depends-on): Depend on
25989         unistr/u32-strmblen.
25990         * tests/unistr/test-u-strtok.h: New file.
25991         * tests/unistr/test-u8-strtok.c: New file.
25992         * tests/unistr/test-u16-strtok.c: New file.
25993         * tests/unistr/test-u32-strtok.c: New file.
25994         * modules/unistr/u8-strtok-tests: New file.
25995         * modules/unistr/u32-strtok-tests: New file.
25996         * modules/unistr/u16-strtok-tests: New file.
25998 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26000         update-copyright: fix test failure with perl >= 5.22 (trivial)
26001         * build-aux/update-copyright: Escape a literal left curly bracket,
26002         required with perl >= 5.22
26004 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26006         u{16,32}-strstr-tests: relax timeout condition
26007         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26008         tests can take longer than 5 seconds to complete.
26009         Reported by Dagobert Michelsen in:
26010         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26011         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26012         seconds to 10 seconds.
26013         * tests/unistr/test-u32-strstr.c (main): Likewise.
26015 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26017         gnulib-common.m4: change the ARFLAGS default to 'cr'
26018         In some GNU/Linux distributions people started to compile 'ar'
26019         binary with --enable-deterministic-archives (binutils project).
26020         That, however, in combination with previous autotools long time
26021         working default AR{_,}FLAGS=cru causes warnings on such
26022         installations:
26023         ar: `u' modifier ignored since `D' is the default (see `U')
26024         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26025         set already.
26027 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26029         selinux-h: avoid double free after *getfilecon()
26030         Originally reported by Ben Shelton on bug-tar:
26031         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26032         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26033         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26034         param should be freed by freecon(3) (regardless the return value).
26036 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26038         fix pty related tests issues on Windows (trivial)
26039         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26040         however it's still present in tests/ subdirectory of the final project.
26041         Therefore avoid it to pass `make check`.
26042         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26043         will just return -ENOSYS, so avoid this non applicable test allowing
26044         the build to proceed.
26046 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26048         acl: fix definition of acl_from_mode on FreeBSD
26049         This was causing basic coreutils copy operations to fail
26050         with ENOTSUP or ENOENT error messages.
26051         * lib/acl-internal.h (acl_from_mode): Only define when
26052         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26053         of acl_from_mode() defined in lib/set-permissions.c to
26054         be used on FreeBSD at least.
26055         * lib/set-permissions.c: Fix up comment spelling,
26056         and a redundant variable assignment; noticed in passing.
26058 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26060         readutmp: port to FreeBSD >= 9
26061         * lib/readutmp.h: Map utmpxname() to setutxdb().
26062         With that coreutils who(1) and pinky(1) tests pass.
26064 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26066         mgetgroups: port to strict OS X
26067         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26068         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26069         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26070         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26072 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
26074         mgetgroups: port to strict OS X
26075         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
26076         Document the getgrouplist problem.
26077         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
26078         New macro.
26079         (mgetgroups): Use it.
26080         * m4/mgetgroups.m4 (gl_MGETGROUPS):
26081         Check for OS X signature for getgrouplist.
26083 2015-06-29  Jim Meyering  <meyering@fb.com>
26085         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
26086         It started like this when building coreutils' latest on OS X,
26087         invoking ./configure with a nonempty --cache=.cache:
26089           lib/linkat.c:46:42: error: operator '||' has no right operand
26090           lib/linkat.c: In function 'rpl_linkat':
26091           lib/linkat.c:330:27: error: #if with no expression
26093         Here's linkat.c's line 46:
26095           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
26097         Here's some context:
26099           $ grep linkat_nofoll .cache
26100           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
26101           $ grep LINKAT_SYM lib/config.h
26102           #define LINKAT_SYMLINK_NOTSUP
26104         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
26105         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
26106         but that violates a tenet of AC_CACHE_CHECK: it must
26107         have no side effect other than setting its cache variable.
26109         What happens is that when the cache is set, we'd skip the
26110         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26111         defined to whatever value it happened to have in configure's
26112         environment.  In my case, it was not defined, so this later code:
26114           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26115             [Define to 1 if linkat can create hardlinks to symlinks])
26117         would emit code with an empty RHS.
26119         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26120         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26122 2015-06-28  Jim Meyering  <meyering@fb.com>
26124         mountlist: avoid an unused-label warning on OS X
26125         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26126         Building on OS X, I saw a warning about the "free_then_fail" label
26127         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26129         error.c: correct printf-style format: %d -> %u
26130         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26131         rather than %d, to match the type of "line_number", unsigned int.
26133 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26135         fts: avoid reading beyond the heap allocation
26136         GCC 5.1.1 with -O2 and -fsanitize=address reports
26137         a read of size 4 from a heap object of size 3 is indeed invalid,
26138         though this may be due to incorrect padding assumptions by GCC, see:
26139         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26140         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26141         * modules/fts: Depend on stdalign.
26143 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26145         savedir: avoid undefined behavior in qsort call
26146         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26147         "runtime error: null pointer passed as argument 1,
26148          which is declared to never be null"
26149         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26151 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26153         userspec: avoid undefined behavior in gettext call
26154         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26155         "runtime error: null pointer passed as argument 2,
26156          which is declared to never be null"
26157         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26159 2015-06-20  Glenn Morris  <rgm@gnu.org>
26161         gitlog-to-changelog: improve gitmerge.el commits
26162         Let the Emacs ChangeLog generation process exclude "skipped"
26163         messages from merge commits (Bug#20717).
26164         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26166 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26168         wchar: fix MinGW compilation warnings
26169         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26170         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26171         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26173 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26175         uniname/uniname-tests: use pristine data files
26176         For copyright and maintenance reasons, use the data files from UCD
26177         without modification.
26178         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26179         (getfield): Remove.
26180         (aliases_count): New global variable.
26181         (fill_names): Skip comments and empty lines in the input.  Don't
26182         use getfield.
26183         (fill_aliases): Likewise.
26184         (main): Change the expected command line arguments to:
26185         NAMES... ["--" ALIASES...].
26186         * tests/uniname/test-uninames.sh: Adjust to the change in
26187         test-uninames.c.
26188         * tests/uniname/UnicodeDataNames.txt: Remove.
26189         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26190         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26191         file from Unicode 8.0.0.
26193 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26195         linked-list, linkedhash-list: avoid compiler warnings
26196         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26197         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26199 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26201         libunistring: bump minimum version to 0.9.6
26202         * all modules depending on updated Unicode data: Regenerate.
26203         The modules are listed by a script that does:
26204         - for each file listed by: git show --oneline --name-only 705f4efc
26205           - deduce the containing modules, based on "Files:"
26206         - deduce the modules which depend on the containing modules, based
26207           on "Depends-on:"
26209 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26211         uniname/uniname: update to Unicode 8.0.0
26212         * lib/uniname/uninames.h: Regenerate.
26213         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26214         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26216 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26218         libunistring: update to Unicode 8.0.0
26219         * lib/gen-uni-tables.c (SIZEOF): New macro.
26220         (output_numeric): Increase the maximum number of fractions from
26221         128 to 160.  Increase the level3 value width from 7 bits to 8
26222         bits.  Use SIZEOF instead of a hard-coded integer.
26223         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26224         0x28000.
26225         (fill_blocks): Increase the maximum number of blocks from 256 to
26226         384.  Use SIZEOF instead of a hard-coded integer.
26227         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26228         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26229         value width.
26230         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26231         a new case added to LBP22.
26232         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26233         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26234         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26235         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26236         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26237         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26238         lib/uniwidth/width.c.
26239         * all generated files under lib/uni* and tests/uni*: Regenerate.
26241 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26243         gnu-web-doc-update: add --mirror to remove stale files
26244         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26245         out of date files from the CVS server.  Since this is usually
26246         appropriate, a prompt is given when the option is not specified,
26247         along with the `cvs remove` command that would be run.
26249 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26251         acl-permissions: pacify -Wsuggest-attribute=const
26252         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26253         * lib/acl-internal.h (free_permission_context):
26254         Declare with attribute const if ! (defined USE_ACL &&
26255         (HAVE_ACL_GET_FILE || defined GETACL)).
26257         fsync: document AIX misbehavior
26258         * doc/posix-functions/fsync.texi (fsync):
26259         Document failure on AIX with read-only file descriptor.
26261 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26263         stdio: Don't redefine gets when using C++
26264         * lib/stdio.in.h (gets): Disable warning on C++.
26266 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26268         acl-permissions: port to AIX, C89 HP-UX
26269         Problems reported by Michael Felt.
26270         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26271         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26272         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26273         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26274         Add cast for AIX, whose system calls are declared to accept
26275         char * even though the arguments are really char const *.
26276         * lib/get-permissions.c (get_permissions):
26277         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26278         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26279         that broke a build.
26280         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26281         Rework types to pacify xlc.
26283 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26285         vasprintf-posix: avoid compiling vasnprintf where possible
26286         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26287         module where not required.  For example on a GNU/Linux system
26288         when gnulib-tool is run with the --conditional-dependencies option.
26290 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26292         file-has-acl: fix build on Mac OS X 10
26293         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26294         which has an incompatible 6 parameter getxattr() call.
26295         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26296         call on Mac OS X >= 10.4.
26297         * doc/glibc-functions/fgetxattr.texi: Likewise.
26298         * lib/file-has-acl.c: Revert to more complete combined check.
26299         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26300         Reported by Jack Howarth.
26302 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26304         prefix-gnulib-mk: remove no longer needed special case
26305         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26306         continued lib_SOURCES lines are no longer present,
26307         so special case handling of such entries is not required.
26309 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26311         acl: don't depend on the deprecated qacl module
26312         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26314 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26316         gnulib-tool: concatenate lib_SOURCES to a single line
26317         * gnulib-tool: Refactor the line merging sed logic,
26318         and use that to output a single lib_SOURCES line for each module.
26319         gnulib using projects often postprocess this output to prepend
26320         subdir paths to each item, and having a single line simplifies this
26321         processing allowing better decoupling from the gnulib-tool output.
26323 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26325         pthread_sigmask: discount system version if a simple macro (trivial)
26326         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26327         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26328         function to ensure it's available.
26330 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26332         readlinkat: avoid OS X 10.10 trailing slash bug
26333         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26334         has this bug.
26335         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26336         that OS X 10.10 has this function.
26337         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26338         as done for readlink().
26339         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26340         trailing slash bug, and assume readlinkat() has the same issue.
26341         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26342         rather than the correct $gl_cv_decl_readlinkat_works.
26344 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26346         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26347         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26348         module rewrite.
26350         acl-permissions: Fix build on Solaris and Cygwin
26351         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26352         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26353         ace_entries variables have moved into struct permission_context but
26354         they were still accessed as local variables here.
26356 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26358         linkat: avoid OS X 10.10 trailing slash with symlink bug
26359         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26360         causes the symlink to be dereferenced, and if it points
26361         to a non existent file, that file will be created as
26362         a hard link to "path1".
26363         This fixes a test failure in test-linkat.c.
26364         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26365         this case.  The existing workaround in linkat.c for
26366         trailing slash issues, suffices for this case.
26367         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26368         the list of platforms with trailing slash issues.
26370 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26372         unlinkat: handle ignoring of ".." on Darwin 14
26373         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26374         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26375         so handle in the same manner.
26376         * m4/unlinkat.m4: Comment on this Darwin issue.
26377         * doc/posix-functions/unlink.texi: Update the latest version
26378         where the issue was seen.
26379         * doc/posix-functions/unlinkat.texi: Mention this issue.
26380         Fixes a test failure in test-unlinkat.c.
26382 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26384         qacl: split into qcopy-acl and qset-acl
26385         Emacs needs the former, but not the latter.
26386         * modules/acl-permissions: New file, containing most of the old qacl.
26387         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26388         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26389         * modules/qcopy-acl, modules/qset-acl: New files.
26390         * MODULES.html.sh (File system functions):
26391         Mention the new modules, and mention qacl while we're at it.
26393 2015-05-27  Glenn Morris  <rgm@gnu.org>
26395         gitlog-to-changelog: new option --ignore-line
26396         (This patch is imported from the GNU Emacs master.)
26397         This option ignores individual commit lines matching a pattern.
26398         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26400 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26402         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26403         Implement get_permissions and set_permissions primitives for getting all
26404         the permissions of a file, storing them, and later setting them. (In the
26405         minimal case, the permissions consist only of a file mode.) Reimplement
26406         qset_acl and qcopy_acl based on these new primitives: this avoids code
26407         duplication and makes error handling more consistent.
26408         The Solaris and Cygwin code still uses duplicate code paths for setting
26409         a file mode while making sure that no acls exist and setting an explicit
26410         acl; this is no worse than before, but could be cleaned up.  The AIX
26411         code still doesn't read ACLs, it only makes sure that acls don't get in
26412         the way when setting a file mode.
26413         * lib/acl-internal.h (struct permission_context): New data structure.
26414         (get_permissions, set_permissions, free_permission_context): Declare.
26415         * lib/acl-internal.c (free_permission_context): New helper function.
26416         * lib/get-permissions.c (get_permissions): New helper function split off
26417         from qcopy_acl.
26418         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26419         AIX, set a file's permissions based only on a file mode.
26420         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26421         other platforms construct a temporary acl from the file mode and set
26422         that acl in the same way as setting an acl read from the source file.
26423         This should help avoid code duplication and inconsistent / buggy
26424         behavior.
26425         (set_acls): New helper function Split off from qcopy_acl.
26426         (chmod_or_fchmod): Moved here from qset-acl.c.
26427         (set_permissions): New helper function.
26428         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26429         set_permissions.
26430         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26431         * modules/qacl: Add get-permissions.c and set-permissions.c.
26433         file-has-acl: Split feature tests again (Bug#20667)
26434         * lib/file-has-acl.c: Instead of testing for
26435         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26436         define them when needed.
26437         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26438         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26440 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26442         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26443         This avoids a conflict with "FORTIFY_SOURCE" variants
26444         of the string functions when they're replaced on NetBSD-6.0.1
26445         and Darwin-14.3.0 at least.
26446         * lib/string.in.h: Avoid including our "lib/string.h" while
26447         including the system <string.h>.
26449 2015-05-26  Eric Blake  <eblake@redhat.com>
26451         stdio: limit __gnu_printf__ witness to gcc 4.4+
26452         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26453         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26455         error: use correct printf attributes on mingw
26456         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26458         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26459         * modules/inttypes (Depends-on): Require extensions, so that mingw
26460         always uses GNU style inttypes.
26461         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26463         stdio: fix probe on mingw under gcc 5.1
26464         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26465         around new gcc preprocessor rules.
26467 2015-05-07  Glenn Morris  <rgm@gnu.org>
26469         gitlog-to-changelog: parse "Tiny-change"
26470         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26471         "Copyright-paperwork-exempt".  (Bug#20324)
26473 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26475         doc: document glibc posix_fallocate() issues
26476         * doc/posix-functions/posix_fallocate.texi: Mention the
26477         glibc efficiency problems and issues with NFS.
26479 2015-05-05  Karl Berry  <karl@freefriends.org>
26481         * build-aux/gendocs.sh (usage): document new css default
26482         for HTML (--htmlarg).
26484 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26486         extern-inline: no need for workaround in GCC 5.1
26487         * doc/extern-inline.texi (extern inline):
26488         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26489         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26490         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26491         two we can remove these workarounds.
26493 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26495         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26496         Avoid [-Wunknown-attributes] warnings like:
26497         warning: unknown attribute '__alloc_size__' ignored
26498         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26499         with clang, as support has been fully removed as of clang 3.5:
26500         https://github.com/llvm-mirror/clang/commit/c047507a
26501         * lib/eealloc.h: Likewise.
26502         * lib/pagealign_alloc.h: Likewise.
26504 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26506         tests: pacify GCC 5.1's stricter printf checking
26507         * tests/test-dirname.c (main):
26508         * tests/test-getaddrinfo.c (simple):
26509         * tests/test-getlogin.c (main):
26510         * tests/test-getndelim2.c (main):
26511         * tests/test-inttostr.c (CK):
26512         * tests/test-md5.c (main):
26513         * tests/test-read-file.c (main):
26514         * tests/test-sha1.c (main):
26515         Fix mismatches between printf format and value signedness.
26516         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26517         Remove, as CAST_VAL always returned a value of type uintmax_t.
26519         fts: port to GCC 5.1 with --enable-gcc-warnings
26520         Without this fix, GCC 5.1 (correctly) warns about a subscript
26521         error on the fts_name component of FTSENT.  It's actually a
26522         flexible member, so define it that way on C99 or later hosts.
26523         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26524         structure that now has a flexible array member.
26525         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26526         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26527         * modules/fts (Depends-on): Add flexmember.
26529 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26531         file-has-acl: port to CentOS 6
26532         Problem reported by Tom G. Christensen in:
26533         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26534         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26535         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26536         HAVE_GETXATTR.
26537         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26538         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26539         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26540         file-has-acl.c actually needs.
26542 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26544         file-has-acl: always return false when ACLs aren't supported
26545         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26546         change the GNU/Linux getxattr path, to transform "not supported"
26547         errors to a false return rather than an error.  This is handled
26548         within file_has_acl() due to the platform specific tests to
26549         determine if ACLs are not supported.
26551 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26553         gettext: propagate po/Makefile.in.in too
26554         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26555         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26556         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26557         between Makefile.in.in and the gettext-runtime m4 files.
26559 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26561         file-has-acl: new module, split from acl
26562         And add a new module file-has-acl-tests to match.
26563         I ran into a problem with the recent changes to the acl module,
26564         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26565         When using the fixed version with Emacs, I discovered that
26566         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26567         had multiple libraries, but needed only one), so I fixed that too.
26568         * NEWS: Document this incompatible change.
26569         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26570         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26571         Initialize gl_need_lib_has_acl.
26572         (gl_FUNC_ACL): Require it.
26573         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26574         Move the file-has-acl.c-relevant stuff to ...
26575         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26576         use_xattrs = 0' typo, and omit some needless work.  Set
26577         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26578         when gl_FUNC_ACL is called.
26579         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26580         (Link): Remove $(LIB_HAS_ACL).
26581         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26582         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26583         modules/file-has-acl-tests.
26584         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26586         manywarnings: add GCC 5.1 warnings
26587         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26588         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26589         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26590         -Wsuggest-override, -Wuse-without-only.  Change
26591         -Wnormalized=... operands to match 5.1.
26592         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26593         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26594         -Wdiscarded-qualifiers, -Wformat-signedness,
26595         -Wincompatible-pointer-types, -Wint-conversion,
26596         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26597         -Wshift-count-negative, -Wshift-count-overflow,
26598         -Wsizeof-array-argument, -Wsuggest-final-methods,
26599         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26600         and add -Warray-bounds=2 as a special case.
26602 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26604         doc: update FDL template to match FDL examples.
26605         * doc/alloca-opt.texi:
26606         * doc/alloca.texi:
26607         * doc/c-ctype.texi:
26608         * doc/c-strcase.texi:
26609         * doc/c-strcaseeq.texi:
26610         * doc/c-strcasestr.texi:
26611         * doc/c-strstr.texi:
26612         * doc/c-strtod.texi:
26613         * doc/c-strtold.texi:
26614         * doc/ctime.texi:
26615         * doc/error.texi:
26616         * doc/gcd.texi:
26617         * doc/gnulib-tool.texi:
26618         * doc/inet_ntoa.texi:
26619         * doc/intprops.texi:
26620         * doc/lib-symbol-visibility.texi:
26621         * doc/maintain.texi:
26622         * doc/parse-datetime.texi:
26623         * doc/quote.texi:
26624         * doc/regexprops-generic.texi:
26625         * doc/standards.texi: Remove spurious 'with' in FDL license
26626         template.
26628 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26630         lstat: fix cross-compilation 'ln -s' problem
26631         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26632         Have the test program call 'symlink' rather than a separate
26633         script run 'ln -s'; this is more likely to work in
26634         cross-compilation environments.  Reported by Pavel Fedin in:
26635         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26637 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26639         gendocs.sh: default to a common CSS style sheet for HTML output
26640         * build-aux/gendocs.sh (htmlarg): Change default value.
26642 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26644         gnulib-tool: output bold attribute more portably
26645         * gnulib-tool (func_show_module_list): Change hexadecimal
26646         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26647         encoded numbers as arguments to `printf' is not portable,
26648         and is not claimed by POSIX.  This is the case with FreeBSD.
26650 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26652         qacl: Simplify HP-UX acl_nontrivial check
26653         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26654         acl_nontrivial. Check if the acl has at most three entries instead (it must
26655         have exactly three entries according to the HP-UX documentation). Ignore
26656         uids and gids as long as an entry is either for a user (i.e., the owner),
26657         a group (i.e., the owning group), or others.
26658         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26659         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26661 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26663         acl: On Linux, check for acls without libacl
26664         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26665         library function to check for the presence of acls, avoiding a library.
26666         * lib/file-has-acl.c: Include xattr headers if we have them.
26667         (file_has_acl): On Linux, use getxattr().
26668         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26669         file_has_acl(). Check for xattr headers and getxattr().
26671 2015-04-14  Ángel González  <keisial@gmail.com>
26673         tempname: avoid unused parameter warnings (trivial)
26674         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26675         (try_nocreate): Likewise.
26677 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26679         fseeko: fix build failure on NetBSD >= 6 (trivial)
26680         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26681         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26683 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26685         gitlog-to-changelog: port to MS-Windows
26686         * build-aux/gitlog-to-changelog (git_dir_option):
26687         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26688         MS-Windows Perl.  Reported by Eli Zaretskii in:
26689         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26691 2015-04-07  Karl Berry  <karl@gnu.org>
26693         gendocs: new option --tex for passing args to texi2dvi.
26694         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26695         (TEXI2DVI): cut to just command name.
26696         (usage): mention new option, and update copyright.
26697         <generate_tex>: use it.
26699 2015-04-07  Karl Berry  <karl@gnu.org>
26701         * config/srclistvars.sh (GETTEXT): new definition.
26702         * config/srclist.txt: use it for gettext .m4 files.
26703         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26704         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26705         and continuing into April.
26707 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26709         uniname/uniname-tests: fix failure due to alias
26710         Reported by Jack Howarth in:
26711         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26712         * tests/uniname/test-uninames.c (name_has_alias): New function.
26713         (test_inverse_lookup): Exclude character name with valid alias,
26714         from randomly generated character names.
26715         (main): Fill unicode_aliases before calling test functions.
26717 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26719         hash: remove deprecated hash_insert0 function
26720         * lib/hash.h (hash_insert0): Remove deprecated function.
26721         * lib/hash.c (hash_insert0): Likewise.
26723 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26725         mountlist: remove dependency on libmount
26726         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26727         directly, rather than depending on libmount, which has many
26728         dependencies due to its dependence on libselinux, as detailed at:
26729         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26730         Note we restrict this to __linux__ as that's probably where this
26731         interface will remain.  If ever porting, it would be best
26732         to first pull the makedev() wrapper from coreutils to a gnulib module.
26733         Note also we don't add a getline dependency to the mountlist module,
26734         as all Linux versions are sufficient.
26736 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26738         stddef: port to pre-C11 GCC on x86
26739         On this platform, max_align_t should have an alignment of 8 even
26740         though the storage alignments of double, long, etc. max out at 4.
26741         Inspired by a comment of Andreas Schwab's here:
26742         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26743         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26744         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26745         * tests/test-stddef.c: Test __alignof__ too, if available.
26747 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26749         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26750         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26752 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26754         yesno: make EOL optional in ENABLE_NLS case also (trival)
26755         * lib/yesno.c (yesno): Check for EOL before replacing.
26756         * tests/test-yesno.sh: Add a test case (test along with gettext).
26758 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26760         fdopendir-tests: test it does not close its arg
26761         * tests/test-fdopendir.c (main): Test that fdopendir does not
26762         close its argument.  From a suggestion by David Grayson in:
26763         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26765 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26767         gitlog-to-changelog: trim trailing white space
26768         * build-aux/gitlog-to-changelog (main):
26769         Trim trailing white space from commit message lines.
26770         This is helpful for processing the GNU Emacs repository,
26771         which dates back to 1985 and contains a lot of such lines.
26773         gitlog-to-changelog: new option --ignore-matching
26774         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26775         Support new option --ignore-matching=PAT, which ignores all
26776         commit messages whose first line matches PAT.
26778 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26780         fdopendir: port better to MinGW
26781         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26782         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26783         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26784         * modules/fdopendir (Depends-on): Add dirfd.
26786 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26788         fdopendir: fix typo in comment
26789         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26791 2015-03-09  Eric Blake  <eblake@redhat.com>
26793         error: document all entry points provided
26794         * doc/glibc-functions/error_print_progname.texi
26795         (error_print_progname): Mention the error module.
26796         * doc/glibc-functions/error_at_line.texi (error_at_line):
26797         Likewise.
26798         * doc/glibc-functions/error_message_count.texi
26799         (error_message_count): Likewise.
26800         * doc/glibc-functions/error_one_per_line.texi
26801         (error_one_per_line): Likewise.
26803 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26805         vasnprintf: pacify clang 3.5.0
26806         Problem reported by Werner Lemberg in:
26807         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26808         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26809         The casts aren't needed, since the characters in question are ASCII.
26811 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26813         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26814         * lib/dirent--.h (GNULIB_defined_opendir):
26815         * lib/dirent.in.h (GNULIB_defined_opendir)
26816         (GNULIB_defined_closedir):
26817         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26818         #undef only if Gnulib defined it.
26820         poll: port to MSVC v18 on MS-Windows 8.1
26821         Problem reported by Gisle Vanem in:
26822         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26823         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26824         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26825         Add sys_socket.
26827 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26829         tests: support stderr verification with returns_()
26830         * tests/init.sh (returns_): Disable tracing for this wrapper
26831         function, so that stderr of the wrapped command is unchanged,
26832         allowing for verification of the contents.
26834 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26836         passfd: avoid valgrind uninitalised data warning
26837         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26838         to include just the fd we've initialized, rather than including
26839         the extra space used for alignment.
26841 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26843         uniwbrk/u32-wordbreaks-tests: fix copyright
26844         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26846         dup2: doc and test for Android bug
26847         Reported by Kevin Cernekee in:
26848         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26849         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26850         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26852 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26854         Replace dup2() on Android
26855         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26856         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26857         fails.  Using rpl_dup2() fixes this because it has an explicit test
26858         for this condition.
26860 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26862         Android doesn't define RLIM_SAVED_*
26863         Portability problem reported by Kevin Cernekee in:
26864         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26865         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26866         Mention the portability problem.
26867         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26868         Define if not defined.
26869         * m4/dup2.m4 (gl_FUNC_DUP2):
26870         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26871         Likewise.
26873 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26875         vasnprintf-posix-tests: use consistent test
26876         * tests/test-vasnprintf-posix.c (test_function):
26877         Use "<" in assert instead of "<=", for consistency with other tests.
26879 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26881         printf, isinf, etc.: noncanonical != NaN
26882         Do not require that isinf, printf, etc. treat noncanonical
26883         values as NaNs.  Instead, require only that they do not crash.
26884         Problem reported by Joseph Myers in:
26885         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26886         * doc/posix-functions/dprintf.texi (dprintf):
26887         * doc/posix-functions/fprintf.texi (fprintf):
26888         * doc/posix-functions/isfinite.texi (isfinite):
26889         * doc/posix-functions/isinf.texi (isinf):
26890         * doc/posix-functions/isnan.texi (isnan):
26891         * doc/posix-functions/printf.texi (printf):
26892         * doc/posix-functions/snprintf.texi (snprintf):
26893         * doc/posix-functions/sprintf.texi (sprintf):
26894         * doc/posix-functions/vdprintf.texi (vdprintf):
26895         * doc/posix-functions/vfprintf.texi (vfprintf):
26896         * doc/posix-functions/vprintf.texi (vprintf):
26897         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26898         * doc/posix-functions/vsprintf.texi (vsprintf):
26899         Document this.
26900         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26901         * m4/isinf.m4 (gl_ISINFL_WORKS):
26902         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26904         * tests/test-isfinite.c (test_isfinitel):
26905         * tests/test-isinf.c (test_isinfl):
26906         * tests/test-isnan.c (test_long_double):
26907         * tests/test-isnanl.h (main):
26908         * tests/test-snprintf-posix.h (test_function):
26909         * tests/test-sprintf-posix.h (test_function):
26910         * tests/test-vasnprintf-posix.c (test_function):
26911         * tests/test-vasprintf-posix.c (test_function):
26912         Test only that noncanonical values do not cause crashes, not that
26913         they are treated as NaNs.  In some cases this means a larger
26914         output buffer is needed.
26916 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26918         fts: remove redundant close() (trivial)
26919         * lib/fts.c (fts_read): Remove redundant call to close().
26920         Spotted by coverity.
26922 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26924         getdtablesize: port better for Android
26925         Problem reported by Kevin Cernekee in:
26926         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26927         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26928         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26929         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26931         poll: fixes for large fds
26932         * lib/poll.c (poll): Don't check directly for NFD too large.
26933         Don't rely on undefined behavior in FD_SET when an arg exceeds
26934         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26935         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26936         as that makes the test a bit stricter.
26938 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26940         fcntl: Fix cross compiling
26941         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26942         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26944 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26946         dup2, fcntl: cross-compile better for Android
26947         Problem reported by Kevin Cernekee in:
26948         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26949         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26950         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26951         there's little need to cross-compile for older kernels nowadays.
26952         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26953         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26955 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26957         getopt: don't crash on memory exhaustion
26958         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26959         memory exhaustion.  In the _LIBC case we use alloca() as is
26960         already done in glibc, so we don't need to consider the separate
26961         error path in that awkward case.  Also fix a memory leak when
26962         ambiguous options are present.
26963         Reported by Tobias Stoeckmann
26965 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26967         tempname: allow compilation with C++ (trivial)
26968         * lib/tempname.h [C++]: Specify extern "C" linkage.
26969         * lib/tempname.h (try_tempname):
26970         * lib/tempname.c (__try_tempname, __gen_tempname):
26971         Rename 'try' to 'tryfunc'.
26973 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
26975         dup2, fcntl: port to AIX
26976         * m4/dup2.m4 (gl_FUNC_DUP2):
26977         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26978         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
26979         The former works on AIX 7.1 but the latter does not.
26980         Also, this may work better with Android; see:
26981         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
26983 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26985         getdtablesize, dup2, fcntl: port to Android
26986         Problem reported by Kevin Cernekee in:
26987         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
26988         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
26989         Mention that getdtablesize doesn't work on Android.
26990         * lib/getdtablesize.c: Use getrlimit substitute only if
26991         getdtablesize is declared.  This should suffice for Cygwin
26992         while not breaking Android.
26993         * m4/dup2.m4 (gl_FUNC_DUP2):
26994         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26995         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
26996         standardized but the latter is not, and sysconf works on Android.
26997         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
26998         Also check that getdtablesize is declared.
26999         This removes the need for a special case for Android.
27001 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27003         localename: Implement gl_locale_name_thread_unsafe for Android
27004         * lib/localename.c: Android API level >= 21 supports two hardcoded
27005         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27006         the internal __locale_t struct.
27008 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27010         fts: avoid crash when a cycle is added while traversing
27011         This could be triggered by auto-mounting a recursive bind mount.
27012         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27013         * lib/fts.c (fts_read): Avoid removing the original hash table item
27014         when leaving a directory that caused a cycle, and preserve the FTS_DC
27015         flag.
27017 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27019         uniname/uniname: support character alias
27020         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27021         Generate one-way mapping from aliases to codepoints in the
27022         generated tables.  Special case variation selectors to reduce
27023         table size.
27024         * lib/uniname/uniname.c (unicode_character_name): Special case
27025         variation selectors.
27026         (unicode_name_character): Special case variation selectors and
27027         their aliases.
27028         * lib/uniname/uninames.h: Regenerate.
27029         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27030         * modules/uniname/uniname-tests (Files): Add
27031         tests/uniname/NameAliases.txt.
27032         * tests/uniname/test-uninames.c: Mark as static.
27033         (ALIASLEN): Define.
27034         (struct unicode_alias): New struct.
27035         (unicode_aliases): New variable.
27036         (fill_aliases): New function.
27037         (test_alias_lookup): New test function.
27038         (main): Run the 'test_alias_lookup' test if the second argument is
27039         given.
27040         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27041         second argument.
27043 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27045         Fix FILE struct compatibility with Android API level >= 21
27046         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27047         __sferror.  Recent versions of Bionic's stdio.h no longer define
27048         __sferror.
27049         * lib/fbufmode.c: Likewise.
27050         * lib/fflush.c: Likewise.
27051         * lib/fpurge.c: Likewise.
27052         * lib/freadable.c: Likewise.
27053         * lib/freadahead.c: Likewise.
27054         * lib/freading.c: Likewise.
27055         * lib/freadptr.c: Likewise.
27056         * lib/freadseek.c: Likewise.
27057         * lib/fseeko.c: Likewise.
27058         * lib/fseterr.c: Likewise.
27059         * lib/fwritable.c: Likewise.
27061         Assume unbroken ungetc() on Android
27062         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27063         test case passed when running on an Android host, and the code
27064         hasn't really changed since 2009.
27066         getdtablesize: Fix Android build
27067         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27068         versions have this symbol in the .so library (at least 32-bit
27069         platforms) but are missing the declaration in the header file,
27070         causing the m4 logic to guess incorrectly.
27072         localename: Fix Android build
27073         * modules/localename (Depends-on): Add langinfo.
27075         getugroups: Fix Android build
27076         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
27077         functions.
27079         euidaccess: Fix Android build
27080         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
27081         AT_EACCESS gets declared.
27083         linkat_nofollow: Add fallback case for cross compiling
27084         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
27086         net_if: Handle content-free <net/if.h> system headers
27087         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
27088         struct if_nameindex.  If not, enable the replacement header.
27090         signal_h: Fix Android build
27091         * lib/signal.in.h: Add Android to the list of platforms that declare
27092         pthread_sigmask() in <pthread.h> instead of <signal.h>.
27094         duplocale: Fix Android build of duplocale-tests
27095         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
27096         is included by test-duplocale.c (but not by duplocale.c).
27097         * modules/duplocale-tests (configure.ac): Check for monetary.h.
27098         * tests/test-duplocale.c: Skip test if monetary.h is absent.
27099         * doc/posix-headers/monetary.texi: Add Android to the list of
27100         platforms missing monetary.h.
27102 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27104         tests: avoid recent -Werror=unused-variable regression in test-locale
27105         * tests/test-locale.c (main): Reference the variable to avoid the
27106         "unused variable" warning.
27108 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27110         maint: various whitespace cleanups in tempname
27111         * lib/tempname.c: Normalize spacing and line length.
27112         * lib/tempname.h: Likewise.
27113         * modules/tempname: Likewise.
27115 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27117         tests: provide returns_() to simplify exit status checking
27118         * tests/init.sh (returns_): A new function for use in tests,
27119         to allow for easier checking of return values, where you expect
27120         a command to exit with failure status.  By checking for a particular
27121         exit code, you don't hide any crashes for example.
27123 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27125         mountlist: only use libmount when specified
27126         There are currently many shared libs dependencies introduced by
27127         libmount with associated runtime and virt mem overhead.
27128         Therefore don't enable by default.
27129         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27131 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27133         uniname/unimame-tests: don't link with -lunistring
27134         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27135         $(LIBUNISTRING).  Document the rationale why we need to
27136         conditionalize the test.
27138 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27140         fstrcmp: don't assume strlen < INT_MAX
27141         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27142         (uintptr_t): Remove, as we're now assuming stdint.
27143         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27144         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27145         if the input string is long.
27146         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27147         uintptr_t to size_t when the underlying value is a pointer casted
27148         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27149         * modules/fstrcmp (Depends-on): Add stdint.
27151         diffseq: prefer ptrdiff_t to ssize_t
27152         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27153         ptrdiff_t is the natural type for signed indexes.
27154         On a few older platforms, ssize_t is narrower than size_t.
27156         xalloc: fix typo that suppressed warnings
27157         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27158         This typo, introduced a couple of years ago, mistakenly suppressed
27159         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27160         -Wmissing-declarations warnings.
27162         full-read: fix license notice typo
27163         * lib/full-read.h: Remove a stray line in the license notice.
27164         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27166         crypto/gc: fix a -Wswitch warning
27167         Reported by Bruce Korb in:
27168         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27169         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27171 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27173         gnulib-tool: fix handling of patch(1) diagnostics
27174         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27175         as otherwise gnulib-tool will reparse that output and attempt
27176         to lookup modules.
27178 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27180         bootstrap: exit immediately upon gnulib-tool failure
27181         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27182         This was noticed when gnulib-tool exited early due to failure
27183         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27184         but various confusing errors were then given as the build proceeded.
27186 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27188         symlinkat: include all required header files
27189         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27190         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27191         Reported at https://savannah.gnu.org/bugs/index.php?44151
27192         and by Jack Howarth.
27194 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27196         localename: support Solaris 12 and illumos
27197         * lib/localename.c (gl_locale_name_thread_unsafe): call
27198         getlocalename_l() on newer __sun platforms.
27199         Reported by Alexander Pyhalov.
27200         Fix suggested by Rich Burridge.
27202 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27204         locale: fix tests on illumos (trivial)
27205         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27206         so move from global scope to main().
27208 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27210         unictype: avoid undefined left-shift behavior
27211         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27212         gcc's -fsanitize=shift and running its tests triggered:
27213           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27214             places cannot be represented in type 'int'
27215         Cast LHS to 'unsigned int' after integer promotion.
27216         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27217         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27219 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27221         libunistring: bump version of unitypes dependants
27222         Due to the header file search order, all the headers which depend
27223         on unitypes.h need to be generated, when the preinstalled
27224         libunistring is older.
27225         * modules/unicase/base (configure.ac): Bump minimum version to
27226         0.9.4.
27227         * modules/uniconv/base (configure.ac): Likewise.
27228         * modules/unilbrk/base (configure.ac): Likewise.
27229         * modules/uninorm/base (configure.ac): Likewise.
27230         * modules/unistdio/base (configure.ac): Likewise.
27231         * modules/unistr/base (configure.ac): Likewise.
27232         * modules/uniwbrk/base (configure.ac): Likewise.
27233         * modules/uniwidth/base (configure.ac): Likewise.
27235 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27237         unictype/category-none: fix link with libunistring
27238         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27239         prefixed with "libstring_" when compiled as part of libunistring.
27240         To avoid undefined symbol at link time, increase the minimum
27241         version when the dependant modules are updated.
27242         * modules/unictype/category-none (configure.ac): Bump minimum
27243         version to 0.9.5.
27245 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27247         unitypes: fix build with installed libunistring
27248         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27249         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27250         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27252 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27254         time: port to MinGW32 3.21
27255         Problem reported by Eli Zaretskii in:
27256         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27257         * lib/time.in.h:
27258         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27259         * modules/time (Depends-on):
27260         Fall back on unistd.h if the other include files don't define
27261         struct timespec.
27263         update-copyright: apply to self
27264         * build-aux/update-copyright: Fix copyright date.  How ironic!
27266 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27268         libunistring: update to Unicode 7.0.0
27269         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27270         Manichaean names.
27271         * lib/unictype/joininggroup_name.h: Likewise.
27272         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27273         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27274         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27275         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27276         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27277         enum values.
27278         (is_property_alphabetic): Accept newly added characters to
27279         cuneiform numeric signs.
27280         (is_property_default_ignorable_code_point): Reject U+0605.
27281         (FIELDLEN): Increase from 120 to 160.
27282         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27283         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27284         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27285         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27286         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27287         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27288         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27289         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27290         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27291         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27292         U+1E8D0..U+1E8D6.
27293         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27294         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27295         lib/uniwidth/width.c.
27296         * all generated files under lib/uni* and tests/uni*: Regenerate.
27298 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27300         libunistring: update to Unicode 6.3.0
27301         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27302         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27303         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27304         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27305         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27306         Update WB5, WB9, WB10, WB13a, and WB13b.
27307         * tests/uniwbrk/test-uc-wordbreaks.c
27308         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27309         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27310         (UC_BIDI_PDI): New enumeration values.
27311         (bidi_category_byname): Support those enum values.
27312         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27313         dedicated property assigned.
27314         (is_property_case_ignorable): Check 0x0027.
27315         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27316         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27317         (output_wbp): Support those enum values.
27318         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27319         (UC_BIDI_PDI): New enumeration values.
27320         * lib/unictype/bidi_byname.gperf: Add those property names.
27321         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27322         U+180E, U+1A1B, and U+2066..U+2069.
27323         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27324         lib/uniwidth/width.c.
27325         * all generated files under lib/uni* and tests/uni*: Regenerate.
27327 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27329         libunistring: update to Unicode 6.2.0
27330         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27331         (unilbrk_table): Adjust table size.
27332         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27333         for LBP_RI.
27334         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27335         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27336         Normalize table index skipping ignored properties.
27337         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27338         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27339         the table.
27340         * lib/uniwbrk/wbrktable.h: Adjust table size.
27341         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27342         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27343         Support rule GB8a.
27344         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27345         * tests/unigbrk/test-uc-is-grapheme-break.c
27346         (graphemebreakproperty_to_string): Support GBP_RI.
27347         * tests/uniwbrk/test-uc-wordbreaks.c
27348         (wordbreakproperty_to_string): Support WBP_RI.
27349         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27350         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27351         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27352         LBP_AL to LBP_ID.
27353         (output_lbp): Support LBP_RI.
27354         (WBP_RI): New enumeration value.
27355         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27356         (output_wbp): Support WBP_RI.
27357         (GBP_RI): New enumeration value.
27358         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27359         * all generated files under lib/uni* and tests/uni*: Regenerate.
27361 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27363         libunistring: update to Unicode 6.1.0
27364         * lib/gen-uni-tables.c (output_joining_group): Switch to
27365         3-level table to accommodate joining groups defined with higher
27366         codepoint value.  Since there are only 88 groups defined in
27367         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27368         (get_lbp): Update for Unicode 6.1.0.
27369         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27370         3-level table.
27371         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27372         joining group name.
27373         * lib/unictype/joininggroup_name.h: Likewise.
27374         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27375         (unilbrk_table): Adjust table size.
27376         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27377         for LBP_HL.
27378         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27379         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27380         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27381         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27382         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27383         U+302E..U+302F.
27384         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27385         lib/uniwidth/width.c.
27386         * all generated files under lib/uni* and tests/uni*: Regenerate.
27387         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27389 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27391         uniwbrk/u32-wordbreaks-tests: add conformance test
27392         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27393         tests/uniwbrk/test-uc-wordbreaks.c,
27394         tests/uniwbrk/test-uc-wordbreaks.sh, and
27395         tests/uniwbrk/WordBreakTest.txt.
27396         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27397         test-uc-wordbreaks to $(check_PROGRAMS), and define
27398         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27399         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27400         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27402 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27404         uniwbrk: ignore Extended/Format characters at BOL not BOS
27405         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27406         characters if the previous character property is one of
27407         WBP_NEWLINE, WBP_CR, and WBP_LF.
27409 2015-01-11  Jim Meyering  <meyering@fb.com>
27411         test-strstr.c: avoid a trivial leak
27412         * tests/test-strstr.c (main): Free haystack.
27414         update-copyright: recognize groff's \(co marker
27415         * build-aux/update-copyright (circle_c_re): Also accept
27416         uses of \(co, as found in gzip.1.
27418 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27420         maint.mk: fix compatibility with OS X nm
27421         * top/maint.mk (_gl_tight_scope): Use the -g option to
27422         show exported items rather than the -e option which is
27423         ignored on all platforms except OS X where it gives an error.
27424         Reported by Assaf Gordon.
27426 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27428         localcharset: improve charset detection on OS/2
27429         Use system codepage when appropriate.  Map OS/2 codepages to
27430         GNU canonical charset names if possible.
27431         * lib/config.charset: Don't output aliases if "$os" is os2*.
27432         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27433         result for OS/2.
27434         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27435         from the locale name which is neither "C" nor "POSIX".
27437 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27439         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27440         This reverts the last patch but one, as it shouldn't be needed now
27441         that the typo is fixed.
27442         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27443         * lib/count-trailing-zeros.h:
27444         * lib/count-one-bits.h:
27445         Go back to using 64-bit intrinsics.
27447         count-leading-zeros: fix pragma typos
27448         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27449         Fix typos in declaration of intrinsics when _MSC_VER.
27451 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27453         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27454         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27455         intrinsics in this case.
27456         * lib/count-trailing-zeros.h: Likewise.
27457         * lib/count-one-bits.h: Likewise.
27459 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27461         uniname/uniname: update to Unicode 7.0.0
27462         To accommodate new characters added since Unicode 5.1.0, this
27463         changes the internal representation of codepoint ranges.
27464         Previously, we grouped codepoint ranges by manually assigned 4-bit
27465         tag, which only allowed 16 groups.  This removes the limitation by
27466         switching to binary search on a table.  For the detail rationale
27467         and the benchmark results, see:
27468         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27469         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27470         to INDEX, as it no longer represents a codepoint.
27471         (range): New struct.
27472         (main): Switch to intervals list from a bit-pattern based
27473         classification.
27474         * lib/uniname/uninames.h: Regenerate.
27475         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27476         * modules/uniname/base (configure.ac): Bump minimum version to
27477         0.9.5.
27478         * modules/uniname/uniname (configure.ac): Bump minimum version to
27479         0.9.5.
27481 2015-01-05  Eric Blake  <eblake@redhat.com>
27483         doc: update INSTALL from autoconf
27484         * doc/install.texi: Resync from autoconf.
27485         * doc/INSTALL: Reflect recent autoconf update.
27486         * doc/INSTALL.ISO: Likewise.
27487         * doc/INSTALL.UTF-8: Likewise.
27489         stdio: fix use of PRIdMAX on modern mingw
27490         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27491         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27492         to work with modern mingw.
27494 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27496         pthread: detect git mingw builds with only partial pollution
27497         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27498         pollution, as seen temporarily in Fedora 21.
27500 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27502         lib-symbol-versions: cache script check
27503         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27504         Cache the check for linker version scripts.
27505         From a suggestion by Christophe Curis in:
27506         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27508 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27510         maint: fix grammar nits in propername (trivial change)
27511         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27512         and use an adequate verb and tense.
27514 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27516         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27517         * module/gendocs: Add 'doc/gendocs_template_min'.
27519         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27520         from to Gnulib's.
27521         (scripturl, templateurl): Adjust accordingly.
27523 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27525         gendocs: copyright date and version fix
27526         Reported by Karl Berry in:
27527         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27528         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27529         Fix copyright date.
27530         * build-aux/gendocs.sh (scriptversion): Update.
27532 2015-01-01  Karl Berry  <karl@gnu.org>
27534         * doc/install.texi,
27535         * build-aux/mdate-sh,
27536         * build-aux/depcomp,
27537         * build-aux/config.guess,
27538         * build-aux/config.sub,
27539         * build-aux/ar-lib,
27540         * build-aux/compile: revert copyright updates (some from last
27541         year) in slaved files.
27543 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27545         version-etc: new year
27546         * doc/gnulib.texi:
27547         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27548         * all files: Run 'make update-copyright'.
27550 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27552         xstrtol: ensure errno is reset
27553         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27554         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27556         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27558 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27560         utimens: fix dependency typo
27561         * modules/utimens (Depends-on): Remove 'assure'.
27562         This bug was introduced in the recent 'assure' patch.
27564 2014-12-22  Eric Blake  <eblake@redhat.com>
27566         docs: mention why libgen.h is bad
27567         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27569 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27571         assure: new module
27572         This works better than 'assert' when compiling with -DNDEBUG,
27573         as it avoids some compiler diagnostics in that case.
27574         Reported by Norihiro Tanaka in:
27575         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27576         * MODULES.html.sh (func_all_modules): Add 'assure'.
27577         * lib/assure.h, modules/assure: New files.
27578         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27579         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27580         Prefer 'assure' to 'assert'.
27581         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27582         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27583         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27584         Depend on 'assure'.
27586 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27588         stdalign: port better to HP compilers
27589         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27590         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27592         stdalign: work around Apple GCC 4.0 bug
27593         Reported by David Fang in:
27594         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27595         * lib/stdalign.in.h (_Alignas):
27596         * m4/stdalign.m4 (gl_STDALIGN_H):
27597         Do not use aligned attribute with GCC 4.0 on Apple.
27599 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27601         getcwd: fix test failure on OS X 10.9
27602         * m4/getcwd-path-max.m4: Avoid the replacement if it
27603         won't be effective due to the PATH_MAX limitation of lstat().
27604         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27605         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27606         for this case for use in tests, and also exclude this
27607         case when setting REPLACE_GETCWD.
27608         * tests/test-getcwd.c (test_long_name): Restrict the
27609         tested path length so that lstat() will not be passed
27610         a path greater than PATH_MAX.
27611         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27612         than AT_FDCWD, since the latter is set unconditionally
27613         since Sep 2009 in commit 52c658e9.
27615 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27617         parse-datetime: avoid a compiler warning with byacc (trivial)
27618         * lib/parse-datetime.y (yylex): Use the same prototype in the
27619         function definition as the declaration, to avoid a -Wstrict-prototypes
27620         warning seen when using byacc.
27622 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27624         unicase/locale-language-tests: fix LOCALE_FR test
27625         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27626         a French locale with traditional encoding.
27627         Reported by umerqayam in:
27628         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27630 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27632         stddef: support C11's max_align_t
27633         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27634         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27635         Do not undef, as that might cause max_align_t to be defined twice.
27636         Instead, change use to check for _GL_STDDEF_WINT_T too.
27637         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27638         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27639         Check for max_align_t.
27640         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27641         * modules/stddef-tests (Depends-on): Add stdalign.
27642         * tests/test-stddef.c: Test max_align_t.
27644 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27646         unistd: fix iOS check conditional
27647         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27648         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27649         yielded true on non-iOS environment.
27650         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27651         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27652         they are defined.
27654 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27656         posixtm: avoid compiler warning in a better way
27657         * lib/posixtm.c (IF_LINT): Remove.
27658         (year, posix_time_parse):
27659         Return true (not 0) if successful.  All callers changed.
27660         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27662 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27664         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27665         started with '/' on EMX.
27667 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27669         freopen: workaround freopen() on OS/2 kLIBC
27670         * lib/freopen.c (rpl_freopen): Workaround.
27671         * m4/freopen.m4: Add os2* case.
27673         get_shared_library_fullname: port to EMX
27674         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27675         on EMX, respectively.
27676         (_DLL_InitTerm): New on EMX.
27677         (get_shared_library_fullname): Implement on EMX.
27679         find_executable: port to EMX
27680         * lib/progreloc.c (find_executable): Implement on EMX.
27682         sched: check struct sched_param in spawn.h as well
27683         * lib/sched.in.h: Include spawn.h on kLIBC.
27684         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27686 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27688         bootstrap: Allow perl modules in $buildreq
27689         * build-aux/bootstrap: Add case for perl modules.
27691 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27693         apply _GL_ATTRIBUTE_PURE to some inline functions
27694         clang 3.4.2 flagged these inline functions as pure
27695         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27696         * lib/sig-handler.h (get_handler): Likewise.
27697         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27698         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27700 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27702         vasnprintf: fix potential use after free
27703         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27704         flagged by clang-analyzer 3.4.2.
27706 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27708         filevercmp, posixtm: avoid compiler warnings with -O3
27709         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27710         * lib/posixtm.c: (IF_LINT): Define.
27711         (posix_time_parse): Use it to void a "may be used uninitialized"
27712         warning, seen only with -O3.
27714 2014-12-05  Bruno Haible  <bruno@clisp.org>
27716         Fix LDBL80_WORDS macro on big endian platforms.
27717         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27718         LDBL80_WORDS macro.
27719         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27720         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27721         * tests/test-isfinite.c (test_isfinitel): Likewise.
27722         * tests/test-isinf.c (test_isinfl): Likewise.
27723         * tests/test-isnan.c (test_long_double): Likewise.
27724         * tests/test-isnanl.h (main): Likewise.
27725         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27726         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27727         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27728         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27729         Reported by Pádraig Brady.
27731 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27733         git-version-gen: do not print new line characters
27734         * build-aux/git-version-gen: Use printf instead of echo and tr.
27736         gnulib-tool: recognize x:* as an absolute path
27737         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27738         (func_relconcat): Likewise.
27740 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27742         argp: avoid extraneous translation and mem leak with empty pre doc
27743         * lib/argp-help.c (argp_doc): Never translate the empty string,
27744         when "\v" is the first or last character of the string, as that
27745         has a reserved meaning to return the header info from a po file.
27746         This also fixes a small memory leak in the !post case.
27747         The issue can be seen with this command for example:
27748         LC_MESSAGES=en_US grub2-mknetdir --help
27750 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27752         uniname/uniname-tests: skip if system's libunistring is used
27753         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27754         uniname/uniname module is not compiled.
27756 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27758         printf: fix configure check on big endian systems
27759         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27761 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27763         pipe-filter-gi, pipe-filter-ii: port to AIX
27764         On AIX 7.1, 'select' is defined as static and cannot be referred
27765         to from inline function.
27766         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27767         the definition...
27768         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27769         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27771 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27773         gitlog-to-changelog: add --until
27774         * build-aux/gitlog-to-changelog: Support new --until option.
27775         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27777 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27779         extern-inline: update commentary about GCC bugs
27780         * m4/extern-inline.m4: Add another GCC bug number to comments.
27782 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27784         gen-uni-tables: untabify
27785         * lib/gen-uni-tables.c: Untabify.
27787 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27789         gen-uni-tables: check out-of-range values added to 3-level tables
27790         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27791         (output_joining_type, output_ident_category): Check out-of-range
27792         values added to 3-level tables.
27794 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27796         gen-uni-tables: utilize 'assert'
27797         * lib/gen-uni-tables.c: Include <assert.h>.
27798         (output_category, output_combclass, output_decimal_digit_test)
27799         (output_decimal_digit, output_digit_test, output_digit)
27800         (output_numeric, get_mirror_value, fill_properties)
27801         (fill_property30, is_property_alphabetic)
27802         (is_property_default_ignorable_code_point)
27803         (is_property_uppercase, is_property_lowercase)
27804         (is_property_cased, is_property_case_ignorable)
27805         (is_property_changes_when_lowercased, is_property_iso_control)
27806         (is_property_math, fill_arabicshaping, output_joining_group)
27807         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27808         (output_wbp, fill_org_gbp, get_decomposition)
27809         (output_decomposition, fill_composition_exclusions)
27810         (debug_output_composition_tables, output_composition_tables)
27811         (redistribute_casefolding_rules, output_casing_rules): Use
27812         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27813         reporting.
27815 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27817         gen-uni-tables: cosmetic improvements
27818         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27819         variables specification.
27820         (is_outdigit): Remove unused function.
27822 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27824         fcntl-h-tests: port to PA-RISC GNU/Linux
27825         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27827 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27829         fts: port to C89
27830         Problem reported for MSVC 16 by Gisle Vanem in:
27831         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27832         * lib/fts.c (fts_build): Avoid declaration before statement.
27834 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27836         unistd: port to iOS
27837         Problem reported by André Klitzing in:
27838         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27839         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27841 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27843         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27844         Problem reported by Alan Modra in:
27845         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27846         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27847         Always cast the function arg, reverting this part of the previous
27848         change.
27850 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27852         obstack: avoid potentially-nonportable function casts
27853         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27854         Remove, replacing with ...
27855         (call_chunkfun, call_freefun): New static functions.
27856         All uses changed.  Avoid potentially-nonportable casts.
27857         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27858         (_obstack_begin_worker): Omit last two args, since they
27859         rely on potentially-nonportable casts.  All callers changed.
27860         * lib/obstack.h (_OBSTACK_CAST): New macro.
27861         Use it everywhere the old API used a potentially-nonportable cast.
27862         The new API doesn't cast.
27863         (struct obstack): Use unions rather than requiring
27864         potentially-nonportable casts.
27865         (obstack_chunkfun, obstack_freefun): Return void.
27867 2014-11-03  Alan Modra  <amodra@gmail.com>
27869         obstack: fix macro return values
27870         * lib/obstack.h (obstack_next_free): Return void *.
27871         (obstack_1grow_fast, obstack_blank_fast): Return void.
27872         For __GNUC__ macros:
27873         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27874         For !__GNUC__ macros:
27875         (obstack_make_room, obstack_grow, obstack_grow0)
27876         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27878 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27880         obstack: do not assume system-supplied obstack is size_t safe
27881         * m4/obstack.m4: New file.
27882         * modules/obstack (Files): Add it.
27884         obstack: port to platforms that #define __alignof__
27885         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27886         not if !_LIBC.  We don't know of any platforms that #define
27887         __alignof__, but it might be useful in tests.  Conversely,
27888         glibc assumes GCC.
27890 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27892         linkat: don't unconditionally replace on GNU/Linux
27893         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27894         was redundant for a few reasons.  It was present to support compiling
27895         on new systems but running on the old narrow window of Linux 2.6.1[67].
27896         It setup and cleaned up test files which weren't actually used.
27897         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27898         implicit in the following check.
27900 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27902         linkat: wrap to handle symlinks on OS X 10.10
27903         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27904         but not usable because it doesn't support creating hardlinks
27905         to symlinks.  Therefore add a generic test for this capability
27906         and fallback to our emulation if linkat() fails with ENOTSUP.
27908 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27910         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27911         * doc/posix-functions/open.texi (open):
27912         * doc/posix-functions/openat.texi (openat):
27913         Document that these functions do not set errno to ELOOP when
27914         a symlink is opened with O_NOFOLLOW.
27916 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27918         obstack: add NEWS entry for recent incompatible changes
27919         * NEWS: Describe recent changes.
27921 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27923         mountlist: don't use libmount to decide on dummy/remote
27924         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27925         routines to determine whether a file system is dummy or remote,
27926         as they're not currently compatible.  For example the remoteness
27927         is determined on file system type (for which the list seems incomplete),
27928         rather than simply checking for a ':' in the device name.
27929         Also libmount currently determines that 'tmpfs' is a dummy file system
27930         even though it has associated storage.
27932 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27934         obstack: prefer __alignof__ to alignof
27935         This is for portability to pre-4.7 GCC when compiling glibc.
27936         See Joseph S. Myers in:
27937         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27938         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27939         New macro, defined by including and using <alignof.h>.
27940         (MAX): New macro.
27941         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27942         Do not use enums as they are not portable to some broken compilers.
27943         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27945         obstack: prefer alignof to calculating alignments by hand
27946         * lib/obstack.c: Include <stdalign.h>.
27947         (struct fooalign): Remove.
27948         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27949         * modules/obstack (Depends-on): Add stdalign.
27951 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27953         obstack: use size_t alignments and check for overflow
27954         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27955         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27956         * lib/obstack.h (struct obstack.alignment_mask):
27957         Use _OBSTACK_SIZE_T, not int, for alignments.
27958         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27959         overflows, e.g., when adding the alignment.
27961 2014-10-29  Alan Modra  <amodra@gmail.com>
27963         obstack: 64-bit obstack support, part 3
27964         This finally enables full 64-bit obstack support.  The glibc
27965         shared library specific code is removed from obstack.c too, and
27966         the error handling code conditionally compiled under control of
27967         another macro, _OBSTACK_NO_ERROR_HANDLER.
27968         * lib/obstack.h: Include string.h earlier.
27969         (_OBSTACK_INTERFACE_VERSION): Define.
27970         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
27971         * lib/obstack.c: Don't include shlib-compat.h.
27972         (OBSTACK_INTERFACE_VERSION): Delete.
27973         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
27974         glibc code is compatible with version 2.  Don't include stdio.h for
27975         __GNU_LIBRARY.
27976         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
27977         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
27978         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
27979         glibc shared library specific source.
27981         obstack: 64-bit obstack support, part 2
27982         This gets us 4G obstack support, without changing ABI
27983         compatibility, apart from possibly introducing some
27984         signed/unsigned comparison warnings in code that uses obstack.h.
27985         a) Replace "int" size parameters, return values, and macro local vars
27986            with _OBSTACK_SIZE_T, an "unsigned int" for now.
27987         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
27988         c) Make all obstack macros checking available room use obstack_room.
27989            "next_free + desired > chunk_limit" may wrap the lhs for chunks
27990            allocated near the top of memory.
27991         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
27992         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
27993         in place of "int" size parameters, return values and local vars.
27994         (_CHUNK_SIZE_T): Define.
27995         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
27996         union use an _OBSTACK_SIZE_T integer type.
27997         For __GNUC__ versions of the following macros...
27998         (obstack_room): Rename local var.
27999         (obstack_make_room): Use obstack_room.
28000         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28001         obstack_int_grow, obstack_blank): Likewise.
28002         (obstack_finish): Use unsigned comparison when comparing aligned
28003         next_free against chunk_limit.
28004         (obstack_free): Cast OBJ to remove possible const qualifier.
28005         For !__GNUC__ versions of the following macros...
28006         (obstack_make_room): Use obstack_room.
28007         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28008         obstack_int_grow, obstack_blank): Likewise.
28009         (obstack_finish): Use unsigned comparision when comparing aligned
28010         next_free against chunk_limit.
28011         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28012         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28013         _OBSTACK_SIZE_T.
28014         (_obstack_begin, _obstack_begin_1): Likewise.
28015         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28016         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28018         obstack: 64-bit obstack support, part 1
28019         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28020            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28021            and "size_t" 64 bits.
28022         b) Consolidate _obstack_begin and _obstack_begin1 code.
28023         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28024         use "size_t" rather than "long".
28025         (_obstack_begin, _obstack_begin1): Likewise.
28026         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28027         obstack_chunkfun): Update alloc function casts.
28028         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28029         (chunkfun_type, freefun_type): New typdefs.
28030         (_obstack_begin_worker): Split out from ..
28031         (_obstack_begin, _obstack_begin_1): ..here.
28033         obstack: tidy part 2
28034         a) Don't be concerned about "not polluting the namespace with stddef.h
28035            symbols" in obstack.h, since gnulib string.h includes stddef.h
28036            anyway, and it seems unlikely that anyone would care.
28037         b) Don't roll our own slow memcpy in _obstack_newchunk.
28038         c) Rename obstack_free to _obstack_free.  This makes the naming
28039            consistent with other obstack functions and obviates the need for
28040            __obstack_free.  Ancient obstack.c defined both obstack_free and
28041            _obstack_free.  We continue to do that for _LIBC via an alias.
28042         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28043            is clever, but nowadays gcc warns on undefined macros.  You'll get
28044            an undefined macro warning if simulating an old gcc with -U__GNUC__
28045            -U__GNUC_MINOR__ -D__GNUC__=1.
28046         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28047         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28048         (__obstack_free): Delete, update refs.
28049         (_obstack_free): Rename from obstack_free.
28050         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28051         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28052         * lib/obstack.c: Don't include stddef.h.
28053         (COPYING_UNIT): Delete.
28054         (_obstack_begin): Formatting fix.
28055         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28056         (_obstack_free): Rename from __obstack_free, update alias.  Move
28057         undef of obstack_free to where it is needed.
28059         obstack: tidy part 1
28060         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28061            to me, and result in overlong lines after later patches.
28062         b) Move error handling code, to avoid a forward declaration and to
28063            simplify later patches in this series.
28064         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28065         and update all uses.
28066         * lib/obstack.c: Include stdlib.h earlier.
28067         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28068         in file.
28069         (print_and_abort): Remove now redundant forward declaration.
28071 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28073         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
28074         Without this change, in bleeding-edge fileutils Autoconf complains
28075         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
28076         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
28077         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
28078         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
28080 2014-10-24  Daiki Ueno  <ueno@gnu.org>
28082         iconv: avoid false detection of non-working iconv
28083         The INBUF arguments of iconv can be either 'const char **'
28084         or 'char **'.  If CC is g++, the difference causes a compile error
28085         and thus leads to a false detection of non-working iconv.
28086         Reported by Eli Zaretskii and Werner LEMBERG in:
28087         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
28088         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
28089         iconv.  Bump serial number.
28091 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28093         bootstrap: print more diagnostics for missing programs
28094         * build-aux/bootstrap: only suppress stderr when checking for
28095         alternative program names.  This supports programs issuing non
28096         standard error messages.
28098 2014-10-23  Pádraig Brady  <P@draigBrady.com>
28100         bootstrap: only update the gnulib submodule
28101         * build-aux/bootstrap: Restrict the "submodule update" command
28102         to the gnulib path.
28104 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28106         symlinkat: port to AIX 7.1
28107         * doc/posix-functions/symlinkat.texi (symlinkat):
28108         Mention AIX porting problem.
28109         * lib/symlinkat.c: Always include errno.h.
28110         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28111         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28112         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28114         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28115         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28116         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28118         readlinkat: port to AIX 7.1
28119         * doc/posix-functions/readlink.texi (readlink):
28120         * doc/posix-functions/readlinkat.texi (readlinkat):
28121         Mention AIX porting problem.
28122         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28123         New function.
28124         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28125         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28127         * modules/readlinkat (configure.ac): Also compile replacement
28128         if REPLACE_READLINKAT.
28129         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28131 2014-10-12  Karl Berry  <karl@gnu.org>
28133         * doc/posix-functions/dirname.texi: remove spurious {.
28135 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28137         basename, dirname: Improve documentation.
28138         * doc/posix-functions/basename.texi: Mention dirname module and
28139         base_name() function.
28140         * doc/posix-functions/dirname.texi: Mention dir_name() and
28141         mdir_name() functions.
28142         Suggested by Werner LEMBERG <wl@gnu.org>.
28144 2014-09-24  Jim Meyering  <meyering@fb.com>
28146         exclude: declare exclude_patopts static
28147         * lib/exclude.c (exclude_patopts): Declare static,
28148         to avoid triggering a -Wmissing-prototypes warning.
28149         The alternative (declaring it in the .h file) would
28150         require publicizing the private "struct patopts".
28152 2014-09-21  Werner Lemberg  <wl@gnu.org>
28154         dirname: support compilation with C++
28155         * lib/dirname.h: Add necessary C linkage declarations.
28157 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28159         qsort_r: include <config.h>
28160         Problem reported by Tom G. Christensen in:
28161         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28162         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28164 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28166         avltree-list: avoid compiler warnings (trivial)
28167         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28168         -Werror=suggest-attribute=pure.
28169         * lib/gl_array_list.c: Likewise.
28170         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28171         declaration to avoid -Werror=missing-prototypes.  This is not added
28172         to a header as only exported for tests.  Add (void) to the
28173         check_invariants() call to indicate we're discarding the result
28174         in this context which avoids -Werror=unused-value.  Note we don't
28175         use ignore_value here to avoid a dependency as we know we'll not
28176         be adding __attribute__((warn_unused_result)) to check_invariants().
28177         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28179 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28181         qsort_r: new module, for GNU-style qsort_r
28182         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28184 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28186         strerror_r-posix: support compilation with C++
28187         * lib/strerror_r.c: Add necessary C linkage declarations.
28189 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28191         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28192         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28194 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28196         mountlist: use /proc/self/mountinfo when available
28197         Use libmount to propagate device IDs provided by Linux in
28198         /proc/self/mountinfo.  This will give more accurate output when
28199         using df in chroot'ed environments as the device IDs are not
28200         determined by stat() which may be inaccurate within the chroot.
28201         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28202         from util-linux to parse "/proc/self/mountinfo" or fall back to
28203         standard getmntent() processing.
28204         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28205         getmntent() is used, as is the case on GNU/Linux.
28207 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28209         users.txt: add cmogstored
28210         cmogstored has used gnulib since the beginning in 2012 to support
28211         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28213 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28215         Trivial change.
28216         * gnulib-tool: Use same options as build-aux/bootstrap to download
28217         PO files.
28219 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28221         Trivial change.
28222         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28224 2014-09-04  Eric Blake  <eblake@redhat.com>
28226         maintainer-makefile: add syntax check for useless ';;'
28227         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28229 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28231         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28232         Problem reported by Assaf Gordon in:
28233         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28234         Apparently Ubuntu is doing some fancy link-time optimization
28235         that doesn't work with -lpthread but does work with -pthread.
28236         Work around the bug by preferring -pthread to -lpthread.
28237         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28238         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28240         Treat -pthread like -lpthread.
28242 2014-09-04  Eric Blake  <eblake@redhat.com>
28244         error: drop spurious semicolon
28245         * lib/error.c (__error_at_line): Fix ';;'.
28247 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28249         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28250         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28251         Override AC_C_RESTRICT unconditionally.
28252         Update from autoconf, incorporating:
28253         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28254         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28256 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28258         manywarnings: add GCC 4.9 warnings
28259         Also, make it easier to maintain this in the future.
28260         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28261         -Wconditionally-supported, -Wdelete-incomplete,
28262         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28263         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28264         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28265         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28266         only for older GCC versions that need them.  Handle
28267         -Wnormalized=nfc specially, so that the 'comm' command used
28268         for maintenance doesn't get confused.
28270 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28272         vasnprintf: fix bugs in width computation
28273         * lib/vasnprintf.c (VASNPRINTF):
28274         Rework previous change, which introduced a bug,
28275         to avoid the warning in a different way.
28276         Avoid undefined behavior if the width arg is less than -INT_MAX.
28277         Avoid unnecessary use of HAS_WIDTH local.
28279 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28281         vasnprintf: Avoid signed/unsigned comparison warning.
28282         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28283         compare end addr of generated string w/ maximum end addr.
28285 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28287         parse-datetime: Avoid pointer difference.
28288         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28289         instead of calculating difference of pointers.  This removes an
28290         annoying warning, devoid of any use.
28292 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28294         qsort_r: new module, for GNU-style qsort_r
28295         This works even on FreeBSD, which has an incompatible qsort_r API.
28296         * MODULES.html.sh: Add it.
28297         * doc/glibc-functions/qsort_r.texi: It's now supported.
28298         * lib/qsort.c: New file, taken from glibc with minor changes
28299         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28300         removed.
28301         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28302         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28304         * modules/qsort_r, modules/qsort_r-tests: New files.
28305         * modules/stdlib (Makefile): Set up its defaults.
28306         * tests/test-qsort_r.c: New file.
28308 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28310         vla: new module
28311         GNU RCS can use this, mostly for documentation I expect.  See:
28312         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28313         * MODULES.html.sh: Add vla.
28314         * lib/vla.h, modules/vla: New files.
28316 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28318         localename: make gl_locale_name_thread really thread-safe on Windows
28319         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28320         "glthread/lock.h".
28321         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28322         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28324 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28326         getpass: don't assume struct termios
28327         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28328         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28329         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28331         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28332         Problem reported by Jonas 'Sortie' Termansen in:
28333         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28334         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28335         Implement via sysconf for platforms that lack getdtablesize.
28337         vararrays: modernize AC_C_VARARRAYS for C11
28338         This backports a change I recently made to Autoconf.
28339         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28340         VLAs are not supported, as this is what C11 does.  The old macro
28341         HAVE_C_VARARRAYS is still defined if they are supported, but is
28342         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28344 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28346         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28347         * build-aux/install-reloc (func_create_wrapper): Also wrap
28348         strerror-override, stat, stat.
28350 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28352         sys_select: fix FD_ZERO problem on Solaris 10
28353         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28354         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28355         to expand to an expression that invoked memset without necessarily
28356         including <string.h>.  The problem was that the first include
28357         defined _SYS_TIME_H, causing the second include to short-circuit.
28358         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28359         Also, fix what appears to be a cut-and-paste typo, by replacing
28360         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28361         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28363         accept: document Solaris 10 type glitch
28364         * doc/posix-functions/accept.texi (accept): Mention that
28365         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28367 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28369         extern-inline: port to FreeBSD, DragonFly
28370         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28371         is present if either __DragonFly__ or __FreeBSD__ is defined.
28372         FreeBSD problem reported by Andrey Borzenkov in:
28373         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28374         Also, worry about __APPLE__ only if __MACH__ is also defined,
28375         as this is more consistent with the rest of gnulib.
28376         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28377         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28379 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28381         regex: Make #if/#ifdef usage consistent for DEBUG
28382         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28383         of the inconsistent usage of #if and #ifdef as that works with
28384         both Glibc and Gnulib's style.
28386 2014-07-31  Eric Blake  <eblake@redhat.com>
28388         openat-die: use _Noreturn markup
28389         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28390         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28391         _Noreturn.
28393 2014-07-30  Eric Blake  <eblake@redhat.com>
28395         test-open: port to cygwin, which lacks Fortify
28396         * tests/test-open.h (ALWAYS_INLINE): New macro.
28397         (__always_inline): Don't abuse internal symbol on non-glibc.
28399 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28401         localename: Enforce declarations before statements.
28402         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28403         first statement.
28405 2014-07-18  Jim Meyering  <meyering@fb.com>
28407         test-userspec: don't look up numeric user names
28408         * tests/test-userspec.c: I found a system for which getpwnam("0")
28409         returned a pointer to a non-root user's entry, and that made the
28410         test fail.
28411         (T): Prefix each numeric input with "+", to inhibit lookup.
28413 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28415         localcharset, localename: MS-Windows support for non-default locales
28416         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28417         falling back on the default system codepage, try extracting
28418         the codepage from what 'setlocale' returns.  This allows to
28419         take into account changes of the codeset due to non-default
28420         locale set by a previous call to 'setlocale'.
28421         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28422         Define if not already defined.
28423         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28424         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28425         current locale by calling 'setlocale', then converting the
28426         locale name into LCID by calling 'get_lcid'.  This allows to
28427         take into account changes in the current locale from the
28428         default one, in contrast to GetThreadLocale.
28430 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28432         announce-gen: avoid failure when Digest::SHA is installed
28433         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28434         Digest::SHA1->new in print_checksums fails.
28435         * build-aux/announce-gen (digest_classes): New associative array
28436         for available message digest implementations.
28437         (print_locations): Use it.
28439 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28441         gettext: revert "update macros to version 0.19"
28442         This reverts commit 9b9370ca, as it currently requires that
28443         developers of any project that explicitly uses the gettext module
28444         or implicitly uses it through the utimens-tests or
28445         futimens-tests modules, use gettext >= 0.19.
28446         However there are some stability and availablity issues with
28447         that version at present.  We can reinstate this soon, when stability
28448         is addressed and packages are more readily available.
28450 2014-07-12  Jim Meyering  <meyering@fb.com>
28452         regex: don't deref NULL upon heap allocation failure
28453         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28454         failure in one more place.
28455         To trigger the segfault, configure grep -with-included-regex,
28456         build it, and run these commands:
28457         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28458         I discovered this while replying to a private report from
28459         Jens Schleusener about excessive memory consumption by grep
28460         when using a regular expression like the one above.
28462 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28464         regex: fix memory leak in compiler
28465         Fix by Andreas Schwab in:
28466         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28467         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28468         constructed tree before returning error.
28470 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28472         announce-gen: avoid perl warnings
28473         * build-aux/announce-gen: add two minor checks to avoid
28474         "use of uninitialized value" warnings when command-line parameters are
28475         missing.
28477 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28479         localename: avoid -Wsuggest-attribute={const,pure} warnings
28480         * lib/localename.c (string_has): Tag internal function as pure.
28481         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28482         as const when appropriate.
28484 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28486         nl_langinfo: Fix last change.
28487         * lib/nl_langinfo.c (includes): Drop redundant include.
28489 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28491         error: Fix -Wundef warnings in glibc
28492         * lib/error.c [_LIBC]: Define default macros for
28493         glibc.
28494         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28495         Check _LIBC before STRERROR_R_CHAR_P.
28497         error: Sync from glibc master
28498         * lib/error.c [_LIBC]: Remove INTUSE usage.
28499         (error_tail): Remove unused macro ALLOCA_LIMIT.
28500         Fix potential buffer overflow.  Fix potential NULL dereference
28501         in strcmp.
28503 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28505         nl_langinfo: fix build under mingw
28506         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28508 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28510         mountlist: do not classify a bind-mounted dir entry as "dummy"
28511         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28512         1-argument getmntent() (instead of assuming absence).
28514 2014-07-08  Eric Blake  <eblake@redhat.com>
28516         maint.mk: less syntax-check noise when SIGPIPE is ignored
28517         * top/maint.mk (_sc_header_without_use)
28518         (sc_require_config_h_first): Parse full list.
28520 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28521             Paul Eggert  <eggert@cs.ucla.edu>
28523         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28524         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28525         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28526         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28527         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28528         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28529         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28530         Include <stdio.h> if Microsoft Windows.
28531         Include <time.h> if !REPLACE_NL_LANGINFO.
28532         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28533         and with improvements for Microsoft Windows.
28534         (rpl_nl_langinfo): Use it.
28535         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28536         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28537         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28538         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28539         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28540         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28541         corresponding values returned by 'localeconv'.  Compute the values
28542         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28543         'strftime' with a suitable struct tm value.
28545 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28547         Bruno Haible has stepped down as maintainer.
28548         See Karl Berry in:
28549         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28550         Daiki Ueno has volunteered to maintain libunistring; see:
28551         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28552         * modules/gen-uni-tables, modules/libunistring:
28553         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28554         * modules/unicase/base, modules/unicase/cased:
28555         * modules/unicase/empty-prefix-context:
28556         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28557         * modules/unicase/locale-language, modules/unicase/special-casing:
28558         * modules/unicase/tocasefold, modules/unicase/tolower:
28559         * modules/unicase/totitle, modules/unicase/toupper:
28560         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28561         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28562         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28563         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28564         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28565         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28566         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28567         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28568         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28569         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28570         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28571         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28572         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28573         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28574         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28575         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28576         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28577         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28578         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28579         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28580         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28581         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28582         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28583         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28584         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28585         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28586         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28587         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28588         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28589         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28590         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28591         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28592         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28593         * modules/uniconv/u16-conv-to-enc:
28594         * modules/uniconv/u16-strconv-from-enc:
28595         * modules/uniconv/u16-strconv-from-locale:
28596         * modules/uniconv/u16-strconv-to-enc:
28597         * modules/uniconv/u16-strconv-to-locale:
28598         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28599         * modules/uniconv/u32-strconv-from-enc:
28600         * modules/uniconv/u32-strconv-from-locale:
28601         * modules/uniconv/u32-strconv-to-enc:
28602         * modules/uniconv/u32-strconv-to-locale:
28603         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28604         * modules/uniconv/u8-strconv-from-enc:
28605         * modules/uniconv/u8-strconv-from-locale:
28606         * modules/uniconv/u8-strconv-to-enc:
28607         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28608         * modules/unictype/bidicategory-all:
28609         * modules/unictype/bidicategory-byname:
28610         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28611         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28612         * modules/unictype/bidiclass-byname:
28613         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28614         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28615         * modules/unictype/block-all, modules/unictype/block-list:
28616         * modules/unictype/block-of, modules/unictype/block-test:
28617         * modules/unictype/category-C, modules/unictype/category-Cc:
28618         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28619         * modules/unictype/category-Co, modules/unictype/category-Cs:
28620         * modules/unictype/category-L, modules/unictype/category-LC:
28621         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28622         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28623         * modules/unictype/category-Lu, modules/unictype/category-M:
28624         * modules/unictype/category-Mc, modules/unictype/category-Me:
28625         * modules/unictype/category-Mn, modules/unictype/category-N:
28626         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28627         * modules/unictype/category-No, modules/unictype/category-P:
28628         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28629         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28630         * modules/unictype/category-Pi, modules/unictype/category-Po:
28631         * modules/unictype/category-Ps, modules/unictype/category-S:
28632         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28633         * modules/unictype/category-Sm, modules/unictype/category-So:
28634         * modules/unictype/category-Z, modules/unictype/category-Zl:
28635         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28636         * modules/unictype/category-all, modules/unictype/category-and:
28637         * modules/unictype/category-and-not, modules/unictype/category-byname:
28638         * modules/unictype/category-longname, modules/unictype/category-name:
28639         * modules/unictype/category-none, modules/unictype/category-of:
28640         * modules/unictype/category-or, modules/unictype/category-test:
28641         * modules/unictype/category-test-withtable:
28642         * modules/unictype/combining-class:
28643         * modules/unictype/combining-class-all:
28644         * modules/unictype/combining-class-byname:
28645         * modules/unictype/combining-class-longname:
28646         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28647         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28648         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28649         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28650         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28651         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28652         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28653         * modules/unictype/digit, modules/unictype/joininggroup-all:
28654         * modules/unictype/joininggroup-byname:
28655         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28656         * modules/unictype/joiningtype-all:
28657         * modules/unictype/joiningtype-byname:
28658         * modules/unictype/joiningtype-longname:
28659         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28660         * modules/unictype/mirror, modules/unictype/numeric:
28661         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28662         * modules/unictype/property-ascii-hex-digit:
28663         * modules/unictype/property-bidi-arabic-digit:
28664         * modules/unictype/property-bidi-arabic-right-to-left:
28665         * modules/unictype/property-bidi-block-separator:
28666         * modules/unictype/property-bidi-boundary-neutral:
28667         * modules/unictype/property-bidi-common-separator:
28668         * modules/unictype/property-bidi-control:
28669         * modules/unictype/property-bidi-embedding-or-override:
28670         * modules/unictype/property-bidi-eur-num-separator:
28671         * modules/unictype/property-bidi-eur-num-terminator:
28672         * modules/unictype/property-bidi-european-digit:
28673         * modules/unictype/property-bidi-hebrew-right-to-left:
28674         * modules/unictype/property-bidi-left-to-right:
28675         * modules/unictype/property-bidi-non-spacing-mark:
28676         * modules/unictype/property-bidi-other-neutral:
28677         * modules/unictype/property-bidi-pdf:
28678         * modules/unictype/property-bidi-segment-separator:
28679         * modules/unictype/property-bidi-whitespace:
28680         * modules/unictype/property-byname:
28681         * modules/unictype/property-case-ignorable:
28682         * modules/unictype/property-cased:
28683         * modules/unictype/property-changes-when-casefolded:
28684         * modules/unictype/property-changes-when-casemapped:
28685         * modules/unictype/property-changes-when-lowercased:
28686         * modules/unictype/property-changes-when-titlecased:
28687         * modules/unictype/property-changes-when-uppercased:
28688         * modules/unictype/property-combining:
28689         * modules/unictype/property-composite:
28690         * modules/unictype/property-currency-symbol:
28691         * modules/unictype/property-dash:
28692         * modules/unictype/property-decimal-digit:
28693         * modules/unictype/property-default-ignorable-code-point:
28694         * modules/unictype/property-deprecated:
28695         * modules/unictype/property-diacritic:
28696         * modules/unictype/property-extender:
28697         * modules/unictype/property-format-control:
28698         * modules/unictype/property-grapheme-base:
28699         * modules/unictype/property-grapheme-extend:
28700         * modules/unictype/property-grapheme-link:
28701         * modules/unictype/property-hex-digit:
28702         * modules/unictype/property-hyphen:
28703         * modules/unictype/property-id-continue:
28704         * modules/unictype/property-id-start:
28705         * modules/unictype/property-ideographic:
28706         * modules/unictype/property-ids-binary-operator:
28707         * modules/unictype/property-ids-trinary-operator:
28708         * modules/unictype/property-ignorable-control:
28709         * modules/unictype/property-iso-control:
28710         * modules/unictype/property-join-control:
28711         * modules/unictype/property-left-of-pair:
28712         * modules/unictype/property-line-separator:
28713         * modules/unictype/property-logical-order-exception:
28714         * modules/unictype/property-lowercase, modules/unictype/property-math:
28715         * modules/unictype/property-non-break:
28716         * modules/unictype/property-not-a-character:
28717         * modules/unictype/property-numeric:
28718         * modules/unictype/property-other-alphabetic:
28719         * modules/unictype/property-other-default-ignorable-code-point:
28720         * modules/unictype/property-other-grapheme-extend:
28721         * modules/unictype/property-other-id-continue:
28722         * modules/unictype/property-other-id-start:
28723         * modules/unictype/property-other-lowercase:
28724         * modules/unictype/property-other-math:
28725         * modules/unictype/property-other-uppercase:
28726         * modules/unictype/property-paired-punctuation:
28727         * modules/unictype/property-paragraph-separator:
28728         * modules/unictype/property-pattern-syntax:
28729         * modules/unictype/property-pattern-white-space:
28730         * modules/unictype/property-private-use:
28731         * modules/unictype/property-punctuation:
28732         * modules/unictype/property-quotation-mark:
28733         * modules/unictype/property-radical:
28734         * modules/unictype/property-sentence-terminal:
28735         * modules/unictype/property-soft-dotted:
28736         * modules/unictype/property-space:
28737         * modules/unictype/property-terminal-punctuation:
28738         * modules/unictype/property-test, modules/unictype/property-titlecase:
28739         * modules/unictype/property-unassigned-code-value:
28740         * modules/unictype/property-unified-ideograph:
28741         * modules/unictype/property-uppercase:
28742         * modules/unictype/property-variation-selector:
28743         * modules/unictype/property-white-space:
28744         * modules/unictype/property-xid-continue:
28745         * modules/unictype/property-xid-start:
28746         * modules/unictype/property-zero-width, modules/unictype/scripts:
28747         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28748         * modules/unictype/syntax-c-whitespace:
28749         * modules/unictype/syntax-java-ident:
28750         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28751         * modules/unigbrk/u16-grapheme-breaks:
28752         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28753         * modules/unigbrk/u32-grapheme-breaks:
28754         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28755         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28756         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28757         * modules/unigbrk/uc-is-grapheme-break:
28758         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28759         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28760         * modules/unilbrk/u16-width-linebreaks:
28761         * modules/unilbrk/u32-possible-linebreaks:
28762         * modules/unilbrk/u32-width-linebreaks:
28763         * modules/unilbrk/u8-possible-linebreaks:
28764         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28765         * modules/unilbrk/ulc-possible-linebreaks:
28766         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28767         * modules/uniname/uniname, modules/uninorm/base:
28768         * modules/uninorm/canonical-decomposition:
28769         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28770         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28771         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28772         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28773         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28774         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28775         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28776         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28777         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28778         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28779         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28780         * modules/unistdio/base, modules/unistdio/u-printf-args:
28781         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28782         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28783         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28784         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28785         * modules/unistdio/u16-u16-sprintf:
28786         * modules/unistdio/u16-u16-vasnprintf:
28787         * modules/unistdio/u16-u16-vasprintf:
28788         * modules/unistdio/u16-u16-vsnprintf:
28789         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28790         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28791         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28792         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28793         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28794         * modules/unistdio/u32-u32-asnprintf:
28795         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28796         * modules/unistdio/u32-u32-sprintf:
28797         * modules/unistdio/u32-u32-vasnprintf:
28798         * modules/unistdio/u32-u32-vasprintf:
28799         * modules/unistdio/u32-u32-vsnprintf:
28800         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28801         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28802         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28803         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28804         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28805         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28806         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28807         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28808         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28809         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28810         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28811         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28812         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28813         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28814         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28815         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28816         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28817         * modules/unistr/u16-check, modules/unistr/u16-chr:
28818         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28819         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28820         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28821         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28822         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28823         * modules/unistr/u16-move, modules/unistr/u16-next:
28824         * modules/unistr/u16-prev, modules/unistr/u16-set:
28825         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28826         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28827         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28828         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28829         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28830         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28831         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28832         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28833         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28834         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28835         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28836         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28837         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28838         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28839         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28840         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28841         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28842         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28843         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28844         * modules/unistr/u32-next, modules/unistr/u32-prev:
28845         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28846         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28847         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28848         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28849         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28850         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28851         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28852         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28853         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28854         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28855         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28856         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28857         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28858         * modules/unistr/u8-check, modules/unistr/u8-chr:
28859         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28860         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28861         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28862         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28863         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28864         * modules/unistr/u8-next, modules/unistr/u8-prev:
28865         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28866         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28867         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28868         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28869         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28870         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28871         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28872         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28873         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28874         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28875         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28876         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28877         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28878         * modules/uniwbrk/base, modules/uniwbrk/table:
28879         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28880         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28881         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28882         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28883         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28884         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28885         * modules/uniwidth/width, modules/utf16-ucs4:
28886         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28887         * modules/utf8-ucs4-unsafe:
28888         Change maintainer from Bruno Haible to Daiki Ueno.
28889         This is my guess at the libunistring modules; please feel free
28890         to fix if I guessed incorrectly.
28891         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28892         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28893         * modules/areadlink, modules/array-list, modules/array-mergesort:
28894         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28895         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28896         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28897         * modules/binary-io, modules/bison-i18n, modules/btowc:
28898         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28899         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28900         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28901         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28902         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28903         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28904         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28905         * modules/closedir, modules/concat-filename, modules/copy-file:
28906         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28907         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28908         * modules/csharpcomp-script, modules/csharpexec:
28909         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28910         * modules/dprintf, modules/dprintf-posix, modules/dup:
28911         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28912         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28913         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28914         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28915         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28916         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28917         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28918         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28919         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28920         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28921         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28922         * modules/findprog, modules/findprog-lgpl, modules/floor:
28923         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28924         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28925         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28926         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28927         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28928         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28929         * modules/freadable, modules/freadahead, modules/freadptr:
28930         * modules/freadseek, modules/freopen, modules/frexp:
28931         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28932         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28933         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28934         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28935         * modules/ftello, modules/full-read, modules/full-write:
28936         * modules/fwritable, modules/fwriteerror, modules/gcd:
28937         * modules/get-rusage-as, modules/get-rusage-data:
28938         * modules/getdtablesize, modules/getrusage, modules/gettext:
28939         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28940         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28941         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28942         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28943         * modules/iconv, modules/iconv-h, modules/iconv_open:
28944         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28945         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28946         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28947         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28948         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28949         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28950         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28951         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28952         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28953         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28954         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28955         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28956         * modules/lib-symbol-visibility, modules/libsigsegv:
28957         * modules/linked-list, modules/linkedhash-list, modules/list:
28958         * modules/localcharset, modules/locale, modules/localeconv:
28959         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28960         * modules/log10, modules/log10-ieee, modules/log10f:
28961         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28962         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28963         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28964         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28965         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28966         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28967         * modules/logf, modules/logf-ieee, modules/login_tty:
28968         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
28969         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
28970         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
28971         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
28972         * modules/mbscspn, modules/mbsinit, modules/mbslen:
28973         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
28974         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
28975         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
28976         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
28977         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
28978         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
28979         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
28980         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
28981         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
28982         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
28983         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
28984         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
28985         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
28986         * modules/posix_spawn, modules/posix_spawn-internal:
28987         * modules/posix_spawn_file_actions_addclose:
28988         * modules/posix_spawn_file_actions_adddup2:
28989         * modules/posix_spawn_file_actions_addopen:
28990         * modules/posix_spawn_file_actions_destroy:
28991         * modules/posix_spawn_file_actions_init:
28992         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
28993         * modules/posix_spawnattr_getpgroup:
28994         * modules/posix_spawnattr_getschedparam:
28995         * modules/posix_spawnattr_getschedpolicy:
28996         * modules/posix_spawnattr_getsigdefault:
28997         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
28998         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
28999         * modules/posix_spawnattr_setschedparam:
29000         * modules/posix_spawnattr_setschedpolicy:
29001         * modules/posix_spawnattr_setsigdefault:
29002         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29003         * modules/pow, modules/powf, modules/printf-frexp:
29004         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29005         * modules/progname, modules/propername, modules/pselect:
29006         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29007         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29008         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29009         * modules/read, modules/readdir, modules/readlink:
29010         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29011         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29012         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29013         * modules/relocatable-script, modules/remainder:
29014         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29015         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29016         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29017         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29018         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29019         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29020         * modules/setlocale, modules/sh-quote, modules/shutdown:
29021         * modules/signal, modules/signbit, modules/sigpipe:
29022         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29023         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29024         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29025         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29026         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29027         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29028         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29029         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29030         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29031         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29032         * modules/streq, modules/strerror_r-posix, modules/striconv:
29033         * modules/striconveh, modules/striconveha, modules/strncat:
29034         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29035         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29036         * modules/sys_wait, modules/system-posix, modules/system-quote:
29037         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29038         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29039         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29040         * modules/truncf, modules/truncf-ieee, modules/truncl:
29041         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29042         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29043         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29044         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29045         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29046         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29047         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29048         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29049         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29050         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29051         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29052         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29053         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29054         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29055         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29056         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29057         * modules/write, modules/xconcat-filename, modules/xlist:
29058         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29059         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29060         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29061         * modules/y0, modules/y1, modules/yn:
29062         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29063         change the maintainer to 'all'.  Let's hope someone volunteers.
29065 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29067         mktime: merge #if/#ifdef usage from glibc
29068         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29069         as that works with both Glibc's and Gnulib's style.
29070         See thread starting at Siddhesh Poyarekar's bug report at:
29071         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29073 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
29075         git-version-gen: improve option descriptions
29076         * build-aux/git-version-gen: Mention that --prefix and --fallback
29077         have a mandatory argument.
29079 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29081         regex: fix memory leak in compiler
29082         Fix by Andreas Schwab in:
29083         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
29084         * lib/regcomp.c (parse_expression): Deallocate partially
29085         constructed tree before returning error.
29087         regex: merge patch from libc
29088         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
29089         Combine __USE_BSD and __USE_SVID into __USE_MISC.
29090         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
29092 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
29094         acl: port to gcc -Wredundant-decls
29095         From a request by Dmitry Antipov in:
29096         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
29097         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
29098         "#ifndef _GL_ACL_H".
29100 2014-06-11  Bruce Korb  <bkorb@gnu.org>
29101         Jim Meyering  <meyering@fb.com>
29103         parse-duration: eliminate 68-year duration limit
29104         * lib/parse-duration.c: Include "intprops.h".
29105         (TIME_MAX): Rename to MAX_DURATION and define to
29106         TYPE_MAXIMUM(time_t).
29107         * modules/parse-duration (Depends-on): Add intprops.
29108         Reported by Jonas 'Sortie' Termansen.
29110 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29112         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29113         * modules/pthread (Depends-on): Add 'extensions', as it defines
29114         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29115         (configure.ac-early): New section.
29116         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29117         it is no longer needed.
29119 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29121         pthread: define thread-safe macros on some platforms
29122         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29123         for thread-safe operation on some platforms.
29125 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29127         regex: don't be multithreaded if USE_UNLOCKED_IO.
29128         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29129         * lib/regex_internal.h: Do not use multithreaded version if
29130         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29131         around a porting bug with coreutils 8.22 on AIX 7.1.
29133 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29135         gettext: update macros to version 0.19
29136         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29137         depend on gl_EXTERN_INLINE and drop support for older Bison
29138         versions.
29140 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29142         select,poll: fix console handle check on windows 8
29143         lib/poll.c (IsConsoleHandle): Change from testing the lower
29144         2 bits of the handle to the more expensive but accurate syscall.
29145         lib/select.c: Likewise.
29147 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29149         select: fix waiting on anonymous pipes on MS-Windows
29150         * lib/select.c (rpl_select): Fall back to polling when select()
29151         indicates there is nothing to check, while due to the timeout not
29152         expiring, activity is indicated on one of the handles.
29153         Also clear the TIMEOUT argument if the timer does expire.
29155 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29157         times: fix to return non constant value on MS-Windows
29158         * lib/times.c (times): Don't use the process creation time,
29159         rather clock() which on windows returns the number of
29160         clock ticks since the process started.
29162 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29164         isatty: fix to work on windows 8
29165         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29166         2 bits of the handle to the more expensive but accurate syscall.
29168 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29170         maint: fix typo in fdl.texi
29171         * doc/fdl.texi: Fix typo (missing '@').
29172         Somehow this was in fdl.texi but not fdl-1.3.texi.
29174 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29176         mountlist: avoid hasmntopt const type warning on solaris
29177         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29178         with char * instead of const char *.  Passing the constant string
29179         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29180         to avoid the warning.
29182 2014-06-04  Eric Blake  <eblake@redhat.com>
29184         maintainer-makefile: delete obsolete code
29185         * top/maint.mk (build_aux): Drop old code, as threatened.
29187         maintainer-makefile: avoid spurious error messages
29188         * top/maint.mk (syntax-check): Guard definition and use of
29189         $(shell) by whether Makefile is present.
29191 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29193         rename: avoid unused-but-set-variable compiler warning
29194         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29195         it is possible that dst_exists may be set but not used.  Mark it with
29196         the unused attribute to avoid compiler warnings.
29198 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29200         rename: mark a label as potentially unused
29201         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29202         by marking the out label as potentially unused.
29203         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29205 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29207         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29208         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29210 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29212         acl: apply pure attribute to two functions
29213         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29214         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29216 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29218         gnulib-common.m4: add _GL_UNUSED_LABEL
29219         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29220         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29222 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29224         dup2, fcntl, fcntl-h: port to AIX 7.1
29225         This fixes some porting problems discovered when testing the latest
29226         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29227         in grep but it could be important for other applications.
29228         * doc/posix-functions/dup2.texi:
29229         * doc/posix-functions/fcntl.texi:
29230         * doc/posix-headers/fcntl.texi:
29231         Document AIX bugs.
29232         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29233         Define to 0 if outside 'int' range.
29234         * m4/dup2.m4 (gl_FUNC_DUP2):
29235         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29236         Check for getdtablesize.  If it's available, test a value just
29237         outside its range instead of testing 1000000.  When cross-compiling,
29238         guess that AIX will fail this improved test.
29240 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29242         printf, config.rpath: Port to FreeBSD 10.
29243         Problem reported by Tijl Coosemans in:
29244         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29245         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29246         (hardcode_direct): Simplify FreeBSD configuration.
29247         (library_names_spec): Don't mishandle FreeBSD 10+.
29248         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29249         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29250         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29251         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29252         Don't mishandle FreeBSD 10+ when cross-compiling.
29254         ftoastr: work around compiler bug in IBM xlc 12.1
29255         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29256         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29257         around a compiler bug in IBM xlc 12.1.0.0: it complains
29258         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29259         _GL_FLT_PREC_BOUND.'
29261 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29263         valgrind-tests: fixed misleading help message
29264         * m4/valgrind-tests.m4: The help message generated by configure
29265         implied that valgrind was disabled by default, which it wasn't.
29266         Adjusted the help message using s/enable/disable/ to clarify.
29268 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29270         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29271         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29272         first double of a PowerPC "double double" pair.
29273         * tests/test-isinf.c (test_isinfl): Likewise.
29274         * tests/test-isnan.c (test_long_double): Likewise.
29275         * tests/test-isnanl.h (main): Likewise.
29276         * tests/test-signbit.c (test_signbitl): Likewise.
29278 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29280         exclude-tests: port to AIX 7.1
29281         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29282         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29283         the regex code uses locks.
29285 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29287         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29288         Without this fix, Emacs would sometimes call sigprocmask instead
29289         of pthread_sigmask, which is a no-no in multithreaded applications.
29290         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29291         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29292         Suppress check for pthread_sigmask working without -lpthread if
29293         the application always links with -lpthread.  Do not link with
29294         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29295         * m4/timer_time.m4 (gl_TIMER_TIME):
29296         Require gl_THREADLIB only if it is defined.  Do not append
29297         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29299 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29301         gnulib-tool: wget translations using --no-verbose rather than --quiet
29302         This allows the user to see error messages if any (--quiet hides them)
29303         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29305 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29307         gnulib-tool: adjust translation wget to avoid a https redirection
29308         Context: http://translationproject.org/latest/gnulib redirects to
29309            https://translationproject.org/latest/gnulib/
29310         Rationale: if the user falls back to wget, she doesn't have rsync and
29311         is probably in a minimal build environment, where packages such as
29312         'ca-certificates' are missing as well, resulting in a failed (and
29313         difficult to detect since ignored) translation initial fetch.
29314         Consequently let's avoid https if possible, and add the missing
29315         trailing slash.  This also avoids an unnecessary 302 redirection.
29316         * gnulib-tool: Add trailing slash to gnulib URL.
29318 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29320         getlogin_r-tests: check return value rather than errno
29321         * tests/test-getlogin_r.c (main): As per POSIX we should be
29322         verifying the return value from getlogin_r() rather than errno.
29324 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29326         getlogin_r-tests: fix various issues in recent change
29327         * tests/test-getlogin_r.c: Include required headers that were
29328         missed in recent commit eec20b4e.
29329         Also consistently check the errno rather than the return value from
29330         getlogin_r as POSIX only specifies that non zero is returned on error.
29331         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29333 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29335         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29336         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29337         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29338         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29339         * lib/spawn-pipe.c:
29340         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29341         and then 'int open64(const char *, int, ...);', which means the
29342         declaration for 'open' gets lost if we later '#undef open'.
29343         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29344         where the compilation reported the non-fatal error "In function
29345         'openat_proc_name' ... warning: implicit declaration of function
29346         'open'".  In this case the error is relatively harmless, but in
29347         other cases it might not be so minor.
29349 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29351         xalloc: don't potentially generate invalid code for xmemdup calls
29352         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29353         this function can initialize the newly-allocated storage with new
29354         pointers, which means this function is not malloc-like.  See:
29355         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29357 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29359         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29360         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29361         changes from commit 97249cf29 to not depend on environment variables.
29363 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29365         getlogin-tests: avoid false failure under cron
29366         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29367         since that's not what's under test.  Centos 6 was seen to return
29368         EINVAL for ttyname() when run from cron.
29370 2014-05-16  Jim Meyering  <meyering@fb.com>
29372         mbrtowc.m4: fix a comment typo
29373         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29374         emitted documentation string.
29376 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29378         mbrlen, mbrtowc: fix bug with empty input
29379         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29380         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29381         so this is mainly for documentation.
29382         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29383         (gl_FUNC_MBRTOWC): Use it.
29384         * tests/test-mbrtowc.c (main): Test for the bug.
29386 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29388         doc: document mbrtowc and mbrlen problem with empty input
29389         * doc/posix-functions/mbrlen.texi (mbrlen):
29390         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29391         Document portability problem when the input string is empty.  See:
29392         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29394         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29395         Problem reported by Eli Zaretskii in:
29396         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29397         * doc/posix-functions/execl.texi (execl):
29398         * doc/posix-functions/execle.texi (execle):
29399         * doc/posix-functions/execlp.texi (execlp):
29400         * doc/posix-functions/execv.texi (execv):
29401         * doc/posix-functions/execve.texi (execve):
29402         * doc/posix-functions/execvp.texi (execvp):
29403         Mention spawn+exit problem on non-Cygwin Windows platforms.
29405 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29407         getlogin-tests: avoid false failure under sudo/ssh etc.
29408         * modules/getlogin-tests (configure.ac): Check for ttyname().
29409         * tests/test-getlogin.c (main): Don't depend on environment variables
29410         to correlate with getlogin(), since sudo and ssh etc. can tamper
29411         with the LOGNAME and USER env vars.  Instead lookup the name from
29412         the uid associated with the stdin tty.
29414 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29416         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29417         These were found when building the latest grep snapshot on IRIX 6.5.
29418         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29419         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29420         never used later.
29421         * lib/quotearg.c (quoting_options_from_style):
29422         * lib/xstrtol.c (__xstrtol):
29423         Use enum instead of 0, to pacify IRIX 6.5 cc.
29425 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29427         gitlog-to-changelog: revert inclusion of git-log-fix file
29428         * build-aux/git-log-fix: Delete dummy file.
29429         * modules/gitlog-to-changelog: Don't reference (overwrite)
29430         the project specific git-log-fix file.
29432 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29434         maint.mk: Relax the copyright check to cater for non FSF projects
29435         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29436         to not require the "Free" suffix after the copyright years.
29438 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29440         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29441         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29442         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29443         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29444         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29446 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29448         exclude: port to strict C99
29449         Strict C does not allow converting a function pointer to void *
29450         and vice versa.  Pass a pointer to a function pointer instead.
29451         * lib/exclude.c (add_exclude_file):
29452         Pass the address of the function pointer.
29453         (call_addfn): And deference the address here, to match.
29455 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29457         regex: do not depend on malloc-gnu
29458         * modules/regex (Depends-on): Remove malloc-gnu.
29459         It's no longer needed, because of the 2012-12-29 patch
29460         "regex: port to hosts where malloc (0) == NULL".
29461         Reported by Nathan Kennedy in:
29462         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29464 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29466         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29467         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29468         * doc/posix-functions/expl.texi: Mention the workaround.
29470 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29472         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29473         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29474         size to be zero even when the pointer is nonnull.  This
29475         accommodates the use case where P is malloc (0) and *PN is 0 on a
29476         host where malloc (0) yields nonnull.
29478 2014-04-09  Eric Blake  <eblake@redhat.com>
29480         fts: avoid unnecessary strlen calls
29481         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29483 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29485         fts: avoid unnecessary strlen calls
29486         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29487         when that can be faster than strlen.
29489 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29491         fts: avoid unnecessary strlen calls
29492         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29493         (fts_build): Store the length of the dp->d_name entry in a local variable
29494         instead of calling strlen() several times via the above, removed macro.
29495         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29496         run by ~4%, yet this reduces the execution time by about a third if run
29497         via "ltrace -c rm -rf some-dir".
29499 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29501         obstack: Remove ancient NeXTSTEP gcc support conditional
29502         This change will ease merging with glibc.  The "#if ... __NEXT__"
29503         causes a warning with -Wundef which glibc now enables by default.
29504         Problem reported by Will Newton in
29505         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29506         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29507         so go with that.
29508         * lib/obstack.h (__extension__):
29510 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29512         obstack: merge with glibc changes
29513         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29514         This is mostly indenting and commentary changes.
29515         Instances of 'register' have been removed.
29517 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29519         strftime: wrap macros in "do {...} while(0)"
29520         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29521         this macro in "do {...} while(0)" to prevent false use as a
29522         single statement, e.g., in an un-braced "{}" else-block.
29523         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29524         (strftime_case_): Remove 'else' after 'goto' - which was the
29525         only non-fatal, un-braced use of one of the above macros.
29526         Spotted by coverity (NESTING_INDENT_MISMATCH).
29528 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29530         modechange: avoid memory leaks for invalid octal modes
29531         * lib/modechange.c (mode_compile): During the parsing of
29532         notations like +40, free the 'mc' buffer for invalid mode
29533         strings like +17777 (greater than the maximum octal mode),
29534         =18 (bad octal mode characters) or u=1 ('affected' with
29535         octal modes).
29536         Reproducer, e.g.:
29537             $ valgrind --leak-check=full chmod +17777 file
29538         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29539         add notations +40, 00440, etc.".
29540         Spotted by coverity (RESOURCE_LEAK).
29542 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29544         gitlog-to-changelog: include a dummy git-log-fix file
29545         Problem reported by Nathan Stratton Treadway in:
29546         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29547         * build-aux/git-log-fix: New file.
29549 2014-03-13  Jim Meyering  <meyering@fb.com>
29551         gitlog-to-changelog: also include the file, git-log-fix
29552         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29553         Reported by Assaf Gordon.
29555 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29557         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29558         This fixes a bug when ignoring case and when comparing the
29559         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29560         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29561         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29562         titlecase letter is neither lowercase nor uppercase, but
29563         uppercasing the titlecase letter (via towupper) yields the
29564         uppercase letter, so the two letters should match when ignoring case.
29565         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29566         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29567         Don't test whether a character is lowercase before uppercasing it.
29569 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29571         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29572         This is basically one of the options Bruno Haible proposed in:
29573         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29574         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29575         * lib/stdint.in.h: Use it.
29576         * modules/stdint (Depends-on): Add sys_types.
29578 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29580         parse-datetime: fix crash or infloop in TZ="" parsing
29581         * lib/parse-datetime.y (parse_datetime): Break out of the
29582         TZ="" parsing loop once the second significant " is found.
29583         Also skip over any subsequent whitespace to be consistent
29584         with the non TZ= case.
29585         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29587 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29589         savedir: new symbol for fast-read version
29590         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29591         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29592         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29593         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29595 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29597         unistd: port readlink to Mac OS X 10.3.9
29598         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29599         around self-include problem in Mac OS X 10.3.9 when combined with
29600         readlink module.  Problem reported by Klaus Zietler in
29601         <http://bugs.gnu.org/16825>.
29603 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29605         diffseq: remove TOO_EXPENSIVE heuristic
29606         Problem with diffutils reported by Vincent Lefevre in
29607         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29608         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29609         Although appropriate for circa-1993 hardware, these days the heuristic
29610         seems to be more trouble than it's worth.
29611         * lib/diffseq.h: Modernize citations.
29612         (struct context): Remove member too_expensive.
29613         All uses changed.
29614         (struct partition): Remove members lo_minimal, hi_minimal.
29615         All uses changed.
29616         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29617         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29618         1993 to make 'diff' run faster (but not as well) on large inputs.
29619         These days, computers are fast enough that it's typically better
29620         to run slower but more accurately.
29621         * lib/fstrcmp.c: Remove duplicate comment.
29622         * lib/fstrcmp.c (strcmp_bounded):
29623         * lib/git-merge-changelog.c (compute_differences):
29624         Adjust to diffseq.h changes.
29625         * NEWS: Document the change.
29627         savedir: simplify by using stpcpy
29628         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29629         (streamsavedir): Use stpcpy instead.
29630         * modules/savedir (Depends-on): Add stpcpy.
29632 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29634         spawn: fix link error on uclibc
29635         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29636         to incorporate -lrt if needed (on uclibc for example).
29637         * modules/posix_spawn: Reference the substituted LIB.
29639 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29640         timer: fix uClibc detection of threading
29641         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29642         enabled in uClibc.
29644 2014-02-21  Eric Blake  <eblake@redhat.com>
29646         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29647         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29649 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29651         exclude: add support for posix regexps
29653         This commit adds support for POSIX extended regular expressions
29654         and fixes a long-standing memory leak (pattern buffer was never
29655         freed).  It also implements a new interface function to read
29656         exclude patterns from a FILE, which passes an additional parameter
29657         to its callback function, thereby allowing to preserve its state
29658         between invocations.
29660         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29661         (pattern_buffer): New struct.
29662         (exclude): New member patbuf.
29663         (exclude_add_pattern_buffer): New function.
29664         (free_exclude_segment): Free regexps.
29665         (free_exclude): Free allocated pattern buffers.
29666         (exclude_patopts): New function.
29667         (file_pattern_matches): Use exclude_patopts.
29668         (add_exclude): support regexps.
29669         (add_exclude_fp): New function.
29670         (add_exclude_file): Rewrite using add_exclude_fp.
29671         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29672         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29673         (add_exclude_fp)
29674         (add_exclude_file): Rewrite using add_exclude_fp.
29675         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29676         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29677         (add_exclude_fp)
29678         (exclude_add_pattern_buffer): New prototypes.
29679         * modules/exclude: Depends on regex and filename.
29681 2014-02-20  Eric Blake  <eblake@redhat.com>
29683         maintainer-makefiles: use $(SED) for syntax check
29684         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29685         * top/maint.mk: Change sed to $(SED).
29687 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29688             Paul Eggert  <eggert@cs.ucla.edu>
29690         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29691         Patch based on an idea by Dick Streefland in
29692         <https://savannah.gnu.org/patch/?7892>.
29693         * NEWS: Document this.
29694         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29695         (direntry_t, comparison_function): New types.
29696         (direntry_cmp_name): New function.
29697         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29698         (streamsavedir, savedir): New arg OPTION.
29699         (streamsavedir): Simplify memory allocation.
29700         (fdsavedir): Remove.
29701         * lib/savedir.h (enum savedir_option): New type.
29702         (streamsavedir, savedir): New arg OPTION.
29703         (fdsavedir): Remove.
29705 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29707         file-type: add support for doors and other less-common file types
29708         Problem with S_ISDOOR reported by Rich Burridge.
29709         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29710         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29711         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29713 2014-01-23  Eric Blake  <eblake@redhat.com>
29715         pthread: work around winpthread header pollution on mingw
29716         * lib/time.in.h: Move pthread workarounds...
29717         * lib/pthread.in.h: ...here.
29718         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29719         detect macro pollution on mingw.
29720         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29722 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29724         qacl: check for fchmod
29725         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29726         and qset-acl.c both use HAVE_FCHMOD.
29728 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29730         fdopen-tests: port to Tru64
29731         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29732         descriptor that is not open, as POSIX doesn't specify the
29733         resulting behavior and the test does not work on Tru64.
29734         Problem reported by Steven M. Schweda in:
29735         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29737         stdalign: port to HP-UX compilers
29738         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29739         if __HP_cc or __HP_aCC are nonzero.
29741 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29743         strtoimax: port to platforms lacking 'long long'
29744         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29745         check whether strtoll is declared, which causes the C file to
29746         wrongly report an error.  Problem reported by Steven M. Schweda in:
29747         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29748         * lib/strtoimax.c (strtoull):
29749         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29750         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29752 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29754         relocatable-perl: fix texi syntax
29755         * doc/relocatable-maint.texi: Escape braces.
29757 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29759         relocatable-perl: like relocatable-script, but for Perl scripts
29760         * build-aux/relocatable.pl.in: Add.
29761         * doc/relocatable-maint.texi: Add documentation.
29762         * modules/relocatable-perl: Add.
29764 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29766         tests: fix export bug in previous patch
29767         Problem reported by Jim Meyering.
29768         * tests/init.sh (re_shell): New var, which is exported instead of
29769         re_shell_.
29771         tests: simplify porting to Solaris 10 /bin/sh
29772         Some test cases in 'grep' need a shell that groks '$(';
29773         export re_shell_ for their benefit.  Problem reported for 'grep'
29774         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29775         * tests/init.sh (re_shell_): Export if it's used.
29777 2014-01-06  Eric Blake  <eblake@redhat.com>
29779         md5, sha1, sha256, sha512: support older autoconf
29780         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29781         for autoconf < 2.63b.
29783         include_next: port to autoconf 2.63
29784         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29786 2014-01-04  Jim Meyering  <meyering@fb.com>
29788         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29789         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29790         so that "make sc_maint" will ding anyone who puts non-ascii
29791         in any of gnulib's .texi files.
29793 2014-01-03  Jim Meyering  <meyering@fb.com>
29795         freadable, fwritable, fwriting: declare with the "pure" attribute
29796         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29797         * lib/fwritable.h (fwritable): Likewise.
29798         * lib/fwriting.h (fwriting): Likewise.
29799         Suggested by Bruno Haible.
29801         maint.mk: adapt openat.h-include-without-use test
29802         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29803         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29804         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29805         With this change, running "make sc_maint" in gnulib's top-level
29806         directory now passes for me.
29808 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29810         doc: use ASCII in .texi files where UTF-8 isn't needed
29811         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29812         * doc/posix-functions/setkey.texi, doc/regex.texi:
29813         Use ASCII input, not UTF-8.
29815 2014-01-02  Jim Meyering  <meyering@fb.com>
29817         freading: declare with the "pure" attribute
29818         * lib/freading.h (freading): Declare with the "pure" attribute.
29820         manywarnings: remove -Wmudflap
29821         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29822         it is no longer supported in gcc-4.9-to-be.
29824 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29826         relocatable-script: remove unused code
29827         Problem reported by Reuben Thomas in:
29828         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29829         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29831 2014-01-01  Jim Meyering  <meyering@fb.com>
29833         maint: fix public-submodule-commit to work with newer git
29834         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29835         We were over-quoting the test arguments, and somewhere prior to
29836         version 1.8.5.2.229, git stopped removing those excess quotes,
29837         which made the test fail, since the unexpanded strings would
29838         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29839         command wasn't even being run.
29841 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29843         doc: update main copyright year
29844         * doc/gnulib.texi: Update copyright date.
29846 2014-01-01  Eric Blake  <eblake@redhat.com>
29848         version-etc: new year
29849         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29850         * all files: run 'make update-copyright'
29852 2013-12-24  Eric Blake  <eblake@redhat.com>
29854         passfd: give nicer error for recvfd at eof
29855         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29856         * tests/test-passfd.c (main): Enhance test to cover this.
29858 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29860         gettimeofday: port recent C++ fix to Emacs
29861         Without this further patch, Emacs won't build due to
29862         the portcheck failing.  Also, this simplifies the patch a bit.
29863         * lib/time.in.h (localtime, gmtime): Don't replace unless
29864         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29865         * lib/time.in.h (localtime, gmtime):
29866         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29867         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29868         * modules/time (time.h):
29869         Don't worry about the possibility of localtime and gmtime
29870         being absent; they're present in all C libraries we know about.
29871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29872         Don't assume sys_time is present and has been initialized.
29873         Instead, use a hack that should work even if it hasn't been.
29874         Don't use a portcheck for gmtime or localtime; this supports
29875         the hack.
29876         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29878 2013-12-17  John W. Eaton  <jwe@gnu.org>
29880         gettimeofday: fix C++ crosscompilation
29882         Never replace gmtime and localtime by macros when compiling with
29883         C++, this prevents <ctime> from being included.
29885         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29886         define gmtime and localtime as preprocessor macros.  Instead
29887         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29888         REPLACE_LOCALTIME substitutions.
29889         * lib/time.in.h: Declare gmtime and localtime when needed.
29890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29891         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29892         * modules/time: Depend on gettimeofday, and substitute the above
29893         variables in time.h.
29895 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29897         qacl: port to Windows better
29898         See Eli Zaretskii in
29899         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29900         * lib/file-has-acl.c (acl_access_nontrivial):
29901         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29902         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29904 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29906         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29907         * lib/gl_openssl.h: Cast void pointers to a specific type.
29909 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29911         open-tests: fix build failure with -Werror=old-style-declaration
29912         * tests/test-open.h: Reorder the inline to avoid the issue.
29914 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29916         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29917         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29918         init time, so that if early checks find crypto routines,
29919         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29920         avoiding link failures.
29922 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29924         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29925         This provides a new way to specify the default for
29926         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29927         Emacs uses this, as well as the old way.
29928         This attempts to implement a suggestion by Pádraig Brady in
29929         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29930         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29931         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29933         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29934         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29935         Add support for a new option, --with-openssl=auto, which causes
29936         the library to be used if available and silently ignored if not.
29937         Add support to allow configure.ac to specify its own
29938         default, by setting with_openssl_default before invoking gl_INIT.
29940 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29942         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29943         Problem reported by Daiki Ueno in:
29944         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29945         * tests/test-open.h (__always_inline):
29946         New macro, if not already defined.
29947         (test_open): Use it.
29949 2013-12-04  Eric Blake  <eblake@redhat.com>
29951         include_next: minimize code duplication
29952         * modules/include_next (Depends-on): Add absolute-header.
29953         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29954         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29956 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29958         getcwd: fix compile error in configure check
29959         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29961 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29963         regex: suppress core dumps from detection code
29964         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29965         to suppress core dumps that may well occur on glibc systems.
29966         These core dumps might not be cleaned up automatically, or could
29967         trigger some system core dump handling logic.
29969 2013-12-03  Pádraig Brady  <P@draigBrady.com>
29971         md5, sha1, sha256, sha512: support mandating use of openssl
29972         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
29973         description, to list the now 3 separate options.  also don't
29974         mention the default=no, since this is implicit given the option
29975         is described as --with-openssl rather than --without-openssl.
29976         If projects change the default they're free to document that.
29977         with --with-openssl[=yes] we now error out when the specified
29978         hash algorithm is not available in libcrypto.
29980 2013-12-03  Ivailo  <xakepa10@gmail.com>
29982         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
29983         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
29984         -Wformat-nonliteral checks, as these edge cases are part of the test.
29986 2013-12-03  Eric Blake  <eblake@redhat.com>
29988         regex: avoid glibc deadlock during configure
29989         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
29990         glibc bug 15078 in turn triggers bug 16159.
29991         Reported by Michal Privoznik.
29993 2013-12-02  Pádraig Brady  <P@draigBrady.com>
29995         md5, sha1, sha256, sha512: use openssl routines if available.
29996         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
29997         routines will be used if available, requiring apps to link @LIB_CRYPTO@
29998         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
29999         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30000         in the standard system location.
30001         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30002         * m4/sha256.m4: Likewise with SHA256.
30003         * m4/sha512.m4: Likewise with SHA512.
30004         * m4/md5.m4: Likewise with MD5.
30005         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30006         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30007         * lib/sha256.h: Likewise with SHA256.
30008         * lib/sha512.h: Likewise with SHA512.
30009         * lib/md5.h: Likewise with MD5.
30010         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30011         * lib/sha256.c: Likewise with SHA256.
30012         * lib/sha512.c: Likewise with SHA512.
30013         * lib/md5.c: Likewise with MD5.
30014         * modules/crypto/sha1 (Link:): Add the new optional lib.
30015         (Depends-on:): Add dependency on extern-inline.
30016         * modules/crypto/sha256: Likewise.
30017         * modules/crypto/sha512: Likewise.
30018         * modules/crypto/md5: Likewise.
30019         * modules/crypto/sha1-tests: Reference the lib here too.
30020         * modules/crypto/md5-tests: Likewise.
30021         * modules/crypto/gc-des-tests: Likewise.
30022         * modules/crypto/gc-hmac-md5-tests: Likewise.
30023         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30024         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30025         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30026         * modules/crypto/gc-md5-tests: Likewise.
30027         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30028         * modules/crypto/gc-sha1-tests: Likewise.
30029         * modules/crypto/gc-tests: Likewise.
30030         * modules/crypto/hmac-md5-tests: Likewise.
30031         * modules/crypto/hmac-sha1-tests: Likewise.
30032         * modules/crypto/hmac-sha256-tests: Likewise.
30033         * modules/crypto/hmac-sha512-tests: Likewise.
30035 2013-11-29  RV1971  <rv1971@web.de>
30037         base64: (trivial) fix compilation regression on some compilers
30038         * lib/base64.c: Don't return the void function,
30039         instead split to a separate return statement.
30041 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30043         ignore-value: revert previous code change
30044         * lib/ignore-value.h (ignore_value): Use __extension__ and
30045         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30046         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30047         Change the comment to try to explain this better.
30049 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30051         selinux-h: improve stub types and add more stub functions
30053         * lib/se-selinux.in.h: Change security_context_t to a typedef
30054         rather than a define, as it's a pointer type and so is better
30055         as a typedef to avoid issues declaring multiple variables
30056         with the comma operator.  Also add stub for string_to_security_class().
30057         * lib/se-context.in.h: Add stub functions for
30058         context_{type,range,role,user}_get().
30060 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30062         ignore-value: prefer GCC version back through 2.0
30063         The code didn't match the comments, so I did a bit of software
30064         archaeology.  GCC 2.0 seems to support __extension__ and
30065         __typeof__, so fix both code and comments to use 2.0.
30066         * lib/ignore-value.h (ignore_value): Use __extension__ and
30067         __typeof__ for GCC 2.0 through 3.3, too.
30069 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30071         pty: Activate the signature wrapper of forkpty.
30072         The intended preprocessor macro HAVE_FORKPTY is
30073         never defined, yet `lib/forkpty.c' depends on it.
30075         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
30076         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
30077         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
30079 2013-11-18  Jim Meyering  <meyering@fb.com>
30080         and Paul Eggert  <eggert@cs.ucla.edu>
30082         quotearg: don't attempt to store 1 << 31 into an "int"
30083         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
30084         gcc's new -fsanitize=undefined and running its tests triggered some
30085         new test failures due to undefined behavior, all with this diagnostic:
30086           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
30087             cannot be represented in type int
30088         Rather than shifting "1" left to form a mask, shift the bits right and
30089         simply use "1" as the mask.
30091 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
30093         error: depend on stdio
30094         Problem reported by Nikos Mavrogiannopoulos in
30095         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
30096         * modules/error (Depends-on): Add stdio.
30098 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
30100         * doc/relocatable-maint.texi (Supporting Relocation): Improve
30101         wording.
30102         Reported by Reuben Thomas <rrt@sc3d.org>.
30104 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30106         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
30107         New function and macro, to work around _DARWIN_C_SOURCE problem.
30108         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30110 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30112         base64: provide a fast path for encoding well sized buffers
30113         Avoid conditionals in the base64 encoding loop,
30114         which was seen to give 60% better throughput.
30115         * lib/base64.c (base64_encode_fast): A new function to be called
30116         when we don't want to NUL terminate, and we have enough space
30117         in the output to encode the given input.
30118         (base64_encode): Call the _fast() version when appropriate.
30119         Also remove a redundant mask with 0x3F on the first encoded byte.
30121 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30123         extern-inline: port better to OS X 10.9
30124         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30125         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30126         OS X 10.9, except for g++ where the bug is still present.
30127         See <http://trac.macports.org/ticket/41033>.
30129 2013-11-08  Eric Blake  <eblake@redhat.com>
30131         fpending: fix regression on DragonFly BSD
30132         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30133         * lib/fpending.h (__fpending): Don't declare twice.
30134         Reported by GW in
30135         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30137 2013-11-05  Jim Meyering  <meyering@fb.com>
30139         hash: relax license to LGPLv2+, for libguestfs
30140         * modules/hash (License): Change from GPL to LGPLv2+.
30142 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30144         intprops: port to Oracle Studio c99
30145         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30146         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30148 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30150         obstack: pacify HP C
30151         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30152         warning "conversion from pointer to smaller integer" from HP
30153         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30154         C89 or later nowadays, so cast to void instead of int.  Privately
30155         reported by H.Merijn Brand.  Also, change header to match glibc's,
30156         to make checking against glibc easier.
30158 2013-10-29  Jim Meyering  <meyering@fb.com>
30160         maint.mk: prefer gpgv2 over gpgv
30161         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30162         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30163         Reported by Gary Vaughan.
30165 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30167         isnan: port to VAX
30168         Reported by John Klos for NetBSD-5/VAX in
30169         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30170         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30171         (FUNC): Use it.
30173 2013-10-28  Jim Meyering  <meyering@fb.com>
30175         gnulib-tool: protect against CDPATH
30176         * gnulib-tool: Many "cd" built-in functions print a directory name
30177         to stdout when CDPATH is set, e.g.,
30178           $ bash -c 'CDPATH=/; cd tmp'
30179           /tmp
30180         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30182         maint.mk: restore functionality removed by recent change...
30183         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30184         the context of a shallow-cloned gnulib repository: "git describe"
30185         would fail in such a directory.  However, that change made it so
30186         the reported gnulib revision no longer includes the version number
30187         or a commit count, even when run from a full clone.
30188         * top/maint.mk (gnulib-version): Use the full "git describe"
30189         output when possible, e.g., the form above, rather than the
30190         abbreviated, no-tag, no-commit-count string, and fall back to
30191         using a 10-byte hash, rather than the default minimal-length
30192         hash prefix, since while the minimal-length one may be fine today,
30193         it is likely not to be unique for very long.
30195 2013-10-26  Jim Meyering  <meyering@fb.com>
30197         maint.mk: fix "release" target to build _version
30198         This fixes a bug in README-release whereby following the outlined
30199         steps, one would publish a tarball whose programs would report
30200         --version output not consistent with the package version number.
30201         This bug caused grep-2.15 to produce a grep program whose
30202         --version option made it print 2.14.56-1e3d rather than 2.15.
30203         * top/maint.mk (release): Making this target build "_version"
30204         ensures that the new version number is reflected in configure.
30206 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30208         install-reloc: Support multi-binary installation.
30209         * build-aux/install-reloc: Support installing multiple programs in
30210         one invocation, as done by Automake starting with commit
30211         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30212         Haible <bruno@clisp.org>, archived at
30213         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30214         Reported by Sylvain <beuc@gnu.org>.
30216 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30218         selinux-h: Really build without selinux when library is missing.
30219         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30220         continue without selinux, as already told in the warning message.
30222 2013-10-21  Jim Meyering  <meyering@fb.com>
30224         regex: also remove dependency on HAVE_WCSCOLL
30225         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30227 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30229         xfreopen: Fix typo. s/frepoen/freopen/
30230         * lib/xfreopen.c: Fix description.
30231         * modules/xfreopen: Likewise.
30233 2013-10-21  Jim Meyering  <meyering@fb.com>
30235         regex: don't depend on wcscoll
30236         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30237         It is no longer used.
30239 2013-10-20  Jim Meyering  <meyering@fb.com>
30241         error: add the printf attribute to a static function
30242         * lib/error.c (error_tail): Add the printf attribute, to placate
30243         gcc's -Werror=suggest-attribute=format option.
30245 2013-09-30  Jim Meyering  <meyering@fb.com>
30247         fpending, obstack, strerror-override: use pure+const function attrs
30248         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30249         * lib/obstack.c (_obstack_allocated_p): Likewise.
30250         * lib/obstack.h (_obstack_memory_used): Likewise.
30251         (_obstack_memory_used): Likewise.
30252         * lib/strerror-override.h (strerror_override): Declare with
30253         the "const" attribute.
30255 2013-10-18  Eric Blake  <eblake@redhat.com>
30257         extern-inline: make safe for -Wundef usage
30258         Reported by Vladimir 'phcoder' Serbinenko in
30259         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30260         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30262 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30264         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30265         Problem reported by Daniel Richard G. in
30266         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30267         * doc/posix-functions/mkfifo.texi (mkfifo):
30268         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30269         * doc/posix-functions/mknod.texi (mknod):
30270         * doc/posix-functions/mknodat.texi (mknodat):
30271         Document the HP-UX 11.11 bug.
30272         * tests/test-mkfifo.h (test_mkfifo):
30273         Allow the HP-UX 11.11 bug.
30275 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30277         acl: allow cross-compilation to Gentoo
30278         Problem reported by Gabriel Marcano in
30279         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30280         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30281         test only whether it links.
30283 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30285         mgetgroups: remove dependency on realloc-gnu
30286         The dependency violates the comment in realloc-gnu, which
30287         says that tests can't depend on realloc-gnu; some tests depend
30288         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30289         Problem reported by Daniel Richard G. in
30290         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30291         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30292         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30293         not realloc-gnu.
30295 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30297         regex-tests: port to HP-UX 11.11
30298         Problem reported by Daniel Richard G. in
30299         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30300         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30302 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30304         verify: document some 'assume' pitfalls
30305         * doc/verify.texi (Compile-time Assertions):
30306         Mention that 'assume (E)' can sometimes slow things down.
30307         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30309 2013-10-10  Eric Blake  <eblake@redhat.com>
30311         strtoumax: fix typo in previous commit.
30312         * modules/strtoumax (Depends-on): Fix typo.
30313         * modules/strtoimax (Depends-on): Likewise.
30315 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30317         strtoumax: port to Solaris 8
30318         This problem was introduced in the recent HP-UX patch.
30319         Reported by Tom G. Christensen in
30320         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30321         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30322         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30324 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30326         strtoimax, strtoumax: port to HP-UX 11.11
30327         Problem reported by Daniel Richard G. in
30328         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30329         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30330         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30331         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30332         REPLACE_STRTOUMAX.
30333         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30334         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30335         Replace the function if defined as a macro but not as a function.
30336         * modules/inttypes-incomplete (inttypes.h): Substitute
30337         REPLACE_STRTOUMAX.
30338         * modules/strtoumax (configure.ac): Replace strtoumax if
30339         REPLACE_STRTOUMAX.
30341 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30343         strtoimax: port to HP-UX 11.11
30344         Problem reported by Daniel Richard G.
30345         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30346         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30347         they might clash with inttypes.h.
30349 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30351         New module 'count-trailing-zeros'.
30352         * MODULES.html.sh: Mention it.
30353         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30354         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30355         * modules/count-trailing-zeros-tests:
30356         * tests/test-count-trailing-zeros.c:
30357         New files.
30359         count-leading-zeros: port to MSC; support types wider than 64 bits
30360         The ideas behind the MSC port are stolen from Emacs.
30361         * lib/count-leading-zeros.h:
30362         Don't include verify.h: it's no longer needed, as types wider than
30363         64 bits are now supported.
30364         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30365         performance with MSC.  All uses changed.  Do not assume that TYPE
30366         has at most 64 bits.
30367         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30368         All uses changed.  Fold the subtraction from 31 into the table.
30370         count-one-bits: port to MSC; support types wider than 64 bits
30371         The ideas behind the MSC port are stolen from Emacs.
30372         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30373         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30374         Don't include verify.h: it's no longer needed, as types wider than
30375         64 bits are now supported.
30376         (COUNT_ONE_BITS_GENERIC): New macro.
30377         (popcount_supported) [_MSC_VER]: New inline function.
30378         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30379         performance with MSC.  All uses changed.  Do not assume that TYPE
30380         has at most 64 bits.
30381         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30383 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30385         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30386         * lib/mountlist.c (read_file_system_list): fix leak of directory
30387         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30389 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30391         tests: improve diagnostic when an assertion fails
30392         * tests/macros.h (ASSERT): Report the assertion that failed.
30394 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30396         verify: new macro 'assume'
30397         This is taken from Emacs, and should be generally useful.
30398         * doc/verify.texi (assume): Document it.
30399         * lib/verify.h (assume): New macro.
30400         (__has_builtin): Expand to 0 if not defined.
30402 2013-09-26  Eric Blake  <eblake@redhat.com>
30404         dup2, dup3: work around another cygwin crasher
30405         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30406         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30407         * tests/test-dup2.c (main): Likewise.
30408         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30409         * lib/dup3.c (dup3): Likewise.
30410         * doc/posix-functions/dup2.texi (dup2): Document it.
30411         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30413         getdtablesize: work around cygwin issue
30414         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30415         * modules/getdtablesize (configure.ac): Build replacement.
30416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30417         * modules/unistd (Makefile.am): Expose the witness.
30418         * lib/unistd.in.h (getdtablesize): Declare replacement.
30419         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30420         * tests/test-getdtablesize.c (main): Test it.
30421         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30423 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30425         pmccabe2html: escaping of special characters
30426         Escape all '<', '>', and '&' in HTML output.
30427         * build-aux/pmccabe2html (html_fnc): Call gsub()
30428         instead of sub() to capture all '<', '>', and '&'.
30429         Neither of '<' and '>' is special in a regexp,
30430         so first arguments to gsub() are corrected. Also,
30431         in replacement strings, ampersand must be escaped.
30432         Finally, '&' must be handled first, then '<' and '>'.
30434 2013-09-24  Eric Blake  <eblake@redhat.com>
30436         manywarnings: enable nicer gcc warning messages
30437         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30438         some -f options for optimal warnings.
30440 2013-09-21  Jim Meyering  <meyering@fb.com>
30442         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30443         * lib/timespec-add.c (timespec_add): Also replace 999999999
30444         with TIMESPEC_RESOLUTION - 1.
30445         * lib/timespec-sub.c (timespec_sub): Likewise.
30447 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30449         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30450         Problem reported by Dagobert Michelsen via Eric Blake in
30451         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30452         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30453         not AC_COMPILE_IFELSE.
30455 2013-09-23  Eric Blake  <eblake@redhat.com>
30457         configmake: support new --runstatedir option
30458         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30459         even if autoconf was too old to provide the command line option.
30460         * modules/configmake (Makefile.am): Propagate it to .h file.
30462 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30464         ctype, string: depend on extern-inline
30465         This is needed to complete the recent OS X fixes.
30466         Also, fix related documentation as suggested by Eric Blake.
30467         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30468         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30469         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30470         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30471         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30472         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30473         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30474         * doc/posix-functions/toupper.texi:
30475         List the 'ctype' gnulib module.
30476         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30477         * doc/posix-functions/strncpy.texi:
30478         List the 'string' gnulib module.
30479         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30480         Add string.
30481         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30483 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30485         userspec: support optional parameters to parse_user_spec()
30486         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30487         then avoid group processing and treat the full spec as a user.
30488         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30489         be optional params (NULL), in which case they're ignored.
30491 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30493         timespec: new function make_timespec, and new constants
30494         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30495         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30496         (make_timespec): New function.
30497         * lib/dtotimespec.c (dtotimespec):
30498         * lib/timespec-add.c (timespec_add):
30499         * lib/timespec-sub.c (timespec_sub):
30500         * lib/utimens.c (validate_timespec):
30501         * lib/utimensat.c (rpl_utimensat):
30502         Use these new constants and functions.
30504         stdio: OS X port of putc_unlocked + extern inline
30505         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30506         * doc/posix-functions/putc_unlocked.texi:
30507         * doc/posix-functions/putchar_unlocked.texi:
30508         Document this portability problem.
30510         signal: OS X port of sigaddset etc. + extern inline
30511         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30512         (sigismember): #undef on problematic Apple platforms.
30513         * doc/posix-functions/sigaddset.texi:
30514         * doc/posix-functions/sigdelset.texi:
30515         * doc/posix-functions/sigemptyset.texi:
30516         * doc/posix-functions/sigfillset.texi:
30517         * doc/posix-functions/sigismember.texi:
30518         Document this portability problem.
30520         extern-inline: do not always suppress extern inline on OS X
30521         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30522         extern inline on Apple only if the particular compile-time
30523         configuration is known to have the problem.
30524         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30525         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30526         other Gnulib modules.
30528         extern-inline: document fixes for ctype and wctype macros
30529         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30530         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30531         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30532         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30533         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30534         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30535         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30536         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30537         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30538         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30539         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30540         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30541         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30542         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30543         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30544         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30545         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30546         * doc/posix-functions/strncpy.texi:
30547         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30548         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30549         Document that Gnulib fixes portability problems with these
30550         functions on OS X 10.8 and earlier when called from plain inline
30551         or extern inline functions.
30553 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30555         fflush, freadahead, fseeko: Fix for Android
30556         Suggested by Bruno Haible in:
30557         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30558         * lib/stdio-impl.h: Use local __sfileext definition.
30560 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30562         pmccabe2html: Portability to other awk versions.
30563         The functions systime() and strftime() are available
30564         in Gawk only.  Properly close two HTML-tags 'style'
30565         and 'span'.
30566         * build-aux/pmccabe2html (BEGIN): Store timing
30567         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30568         systime() in HTML_COMMENT.
30569         (html_header): Correctly close tag 'style'.
30570         (END): Replace strftime() by CHRONOS_TIME.  Close
30571         tag 'span' correctly, not as 'div'.
30573 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30575         getgroups: statement without effect
30576         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30577         Change equality conditional to expected assignment.
30579 2013-09-09  Eric Blake  <eblake@redhat.com>
30581         glob: fix compilation
30582         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30584 2013-09-07  Eric Blake  <eblake@redhat.com>
30586         glob: fix build for platforms without __THROW
30587         * lib/glob.in.h (__THROW): Add definition again.
30589 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30591         regex-quote: fix buffer access out of bounds
30592         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30593         * lib/regex-quote.c (regex_quote_spec_pcre):
30594         Fix typo that resulted in an out-of-bounds read.
30596 2013-09-04  Eric Blake  <eblake@redhat.com>
30598         glob: avoid -Wattribute warnings on glibc
30599         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30600         __THROWNL, not __THROW, on static functions.
30601         * lib/glob.in.h (__THROW): Adjust...
30602         (__THROWNL): ...accordingly.
30604 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30606         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30607         Suggested by Bruce Korb in:
30608         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30609         * doc/extern-inline.texi (extern inline):
30610         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30611         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30612         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30613         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30614         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30615         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30616         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30617         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30618         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30619         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30620         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30621         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30622         * lib/xtime.h:
30623         Check that _GL_INLINE_HEADER_BEGIN is defined.
30625 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30627         bootstrap: remove the --version requirement from ancillary tools
30628         * build-aux/bootstrap (check_exists): A new refactored function to
30629         determine if a command exists.
30630         (find_tool): Use the new function which does not require the
30631         --version option to be supported.
30632         (check_versions): Use the new function.
30634 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30636         gc: support HMAC-SHA256 and HMAC-SHA512.
30637         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30638         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30639         functions.
30640         (gc_hmac_md5): Use symbolic constant.
30641         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30642         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30643         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30644         * m4/sha256.m4: Protect against empty expansion.
30645         * m4/sha512.m4: Likewise.
30646         * lib/hmac-sha256.c: New file.
30647         * lib/hmac-sha512.c: Likewise.
30648         * m4/gc-hmac-sha256.m4: Likewise.
30649         * m4/gc-hmac-sha512.m4: Likewise.
30650         * m4/gc-sha256.m4: Likewise.
30651         * m4/gc-sha512.m4: Likewise.
30652         * modules/crypto/gc-hmac-sha256: Likewise.
30653         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30654         * modules/crypto/gc-hmac-sha512: Likewise.
30655         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30656         * modules/crypto/hmac-sha256: Likewise.
30657         * modules/crypto/hmac-sha256-tests: Likewise.
30658         * modules/crypto/hmac-sha512: Likewise.
30659         * modules/crypto/hmac-sha512-tests: Likewise.
30660         * tests/test-gc-hmac-sha256.c: Likewise.
30661         * tests/test-gc-hmac-sha512.c: Likewise
30662         * tests/test-hmac-sha256.c: Likewise.
30663         * tests/test-hmac-sha512.c: Likewise
30665 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30667         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30668         of AC_CHECK_DECLS.
30670 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30672         selinux-at: omit unnecessary include
30673         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30674         this source file doesn't use its macros, and subsidiary files that
30675         use the macros already include it.
30677 2013-08-21  Eric Blake  <eblake@redhat.com>
30679         d-ino: avoid false negative on symlink
30680         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30681         Reported by Stephane Chazelas.
30683 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30685         bootstrap: port to OpenBSD sed
30686         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30687         does not interpret `-' as a file argument to mean stdin.
30689 2013-08-15  Eric Blake  <eblake@redhat.com>
30691         warnings: minor optimization
30692         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30694         warnings: check -Wfoo rather than -Wno-foo
30695         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30696         -Wno-, test if the compiler recognizes the positive form instead.
30698 2013-08-15  Karl Berry  <karl@gnu.org>
30700         * config/srclist-update: add option "doclicense" to placate
30701         pulling *.texi files from Emacs.  Write terse usage
30702         documentation at the top.
30704 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30706         xvasprintf-tests: port to GCC with hardening flags
30707         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30708         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30709         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30711 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30713         fpending: port to recent Cygwin change to stdio_ext.h
30714         Reported by LRN in
30715         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30716         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30717         just declare __fpending unless it's a macro.
30718         A duplicate decl shouldn't hurt.
30719         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30720         call compiles and links, instead of separately checking for
30721         decl and lib function.
30722         * modules/fpending (configure-ac):
30723         Adjust to fpending.m4's renaming of shell variable.
30725 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30727         sys_time: port to OpenBSD
30728         * lib/sys_time.in.h: Simply delegate to the system's header
30729         in the BSDish cases as well.  Problem reported by Mike Miller in
30730         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30731         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30732         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30733         wider than time_t.
30735 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30737         bootstrap: support checksum utils having -c but not --status
30738         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30739         Add sha1 to the list of supported checksum utils since it's now
30740         supported through adjustments below.
30741         (update_po_files): Remove the use of --status
30742         in a way that will suppress all error messages, but since this is
30743         only used to minimize updates, it shouldn't cause an issue.
30744         Exit early if there is a problem updating the po file checksums.
30745         (find_tool): Remove the check for --version support as this
30746         is optional as per commit 86186b17.  Don't even check for the
30747         presence of the command as if that is needed, it's supported
30748         through configuring prerequisites in bootstrap.conf.
30749         Prompt that when a tool isn't found, one can define an environment
30750         variable to add to the hardcoded search list.
30752 2013-08-05  Jim Meyering  <meyering@fb.com>
30754         regex: port to non-glibc/lock-using systems
30755         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30756         system with GNULIB_LOCK would fail due to absence of the
30757         included "glthread/lock.h".  This would affect any package
30758         for which the "lock" module is used only by the regex module,
30759         and not explicitly used.
30760         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30761         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30762         Add a dependency on the "lock" module.
30764 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30766         localecharset: make locale_charset thread-safe on Mac OS X
30767         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30768         instead of MB_CUR_MAX.
30770 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30772         gettext: update to version 0.18.3
30773         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30774         require AC_PROG_SED to allow user to specify custom sed command when
30775         generating en@quot PO file.
30777 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30779         bootstrap: use correct source when copying build-aux files
30780         * build-aux/bootstrap (gnulib_extra_files): This variable is
30781         relative to upstream gnulib layout, not downstream.
30783 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30785         tmpdir: fix bug in VMS port
30786         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30787         See Steven M. Schweda in
30788         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30790 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30792         tmpdir: port to VMS, to // != /, and to long dirs
30793         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30794         __secure_getenv, so that we're more like the glibc version.
30795         All uses changed.
30796         (path_search): Don't put slash after directory if __VMS.
30797         Problem reported by Steven M. Schweda in
30798         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30799         Simplify code to add slash; no need for a loop.
30800         Do not remove trailing slash from "//".
30801         Do not assume dlen <= INT_MAX.
30803 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30805         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30806         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30807         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30808         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30810         accept4, dup3, pipe2: port to Cygwin
30811         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30812         * lib/accept4.c (accept4) [O_BINARY]:
30813         * lib/dup3.c (dup3) [O_BINARY]:
30814         * lib/pipe2.c (pipe2) [O_BINARY]:
30815         Use set_binary_mode, not setmode.
30816         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30817         * modules/binary-io (Depends-on): Remove module indicator.
30818         These last two bits undo the previous change to pipe2 and binary-io.
30820 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30822         mountlist: add support for deallocating returned list entries
30823         * lib/mountlist.c (free_mount_entry): A new exported function
30824         to deallocate a mount list entry.
30825         (read_file_system_list): Refactor to use the new deallocation function.
30826         Suggested by Anton Ovchinnikov.
30828 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30830         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30831         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30832         * lib/stdalign.in.h (_Alignas, _Alignof):
30833         Port to FreeBSD 9.1, and to C11 and C++11.
30834         (_Alignas): Also support ICC.
30835         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30836         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30838 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30840         fnmatch: don't goto over declaration
30841         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30842         undefined behavior for goto over a declaration.
30843         Problem reported by Charlie Brown in
30844         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30846         pipe2: decouple from binary-io a bit
30847         This is for Emacs, which needs pipe2 but not binary-io.
30848         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30849         * modules/binary-io (Depends-on): Add module indicator.
30851 2013-07-03  Eric Blake  <eblake@redhat.com>
30853         mgetgroups: relax license to LGPLv2+
30854         * modules/getugroups (License): Change from GPLv3+.
30855         * modules/mgetgroups (License): Likewise.
30856         * modules/getgroups (License): Change from LGPLv3+.
30858         xalloc-oversized: relax license to LGPLv2+
30859         * modules/xalloc-oversized (License): Change from GPLv3+.
30861         nproc: relax license to LGPLv2+
30862         * modules/nproc (License): Change from LGPLv3+.
30864         bootstrap: honor --no-git
30865         * build-aux/bootstrap: Don't even try to use git when user is
30866         pointing to a static checkout.
30868 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30870         ignore-value: port to gcc -pedantic
30871         * lib/ignore-value.h (ignore_value):
30872         Port to gcc -pedantic, by using __extension__.
30873         Reindent as per usual gnulib style nowadays.
30874         Simplify GCC version check.
30876 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30878         extern-inline: port to gcc -std=c89
30879         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30880         Do not use __gnu_inline__ if pedantic and pre-C99.
30882 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30884         doc: document extern-inline
30885         * doc/extern-inline.texi: New file.
30886         * doc/gnulib.texi (alloca-opt): Include it.
30887         * m4/extern-inline.m4: Move some comments to documentation,
30888         and others closer to what they describe.
30890         doc: chatter less
30891         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30892         (updated-stamp): Use it.  This causes 'make' to output just
30893         one file name rather than zillions.
30895         fflush, fseeko: port to musl cross-compiles
30896         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30897         on some implementation that (1) is not known to be buggy,
30898         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30899         cross-compiled to so we can't easily check for lack of
30900         conformance.  This is for cross-compiling to musl.
30901         Reported by Rich Felker in
30902         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30903         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30904         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30905         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30906         Adjust to above change.
30907         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30908         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30909         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30910         known not to work, or unknown.
30912 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30914         msvc-inval: port to mingw-w64
30915         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30916         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30917         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30919 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30921         getcwd-lgpl: port to Tru64
30922         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30923         Problem reported by Steven M. Schweda in
30924         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30926         tests: port large-fd POSIX spawn tests to OS X
30927         Problem reported by Daiki Ueno in
30928         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30929         * tests/test-posix_spawn_file_actions_addclose.c:
30930         * tests/test-posix_spawn_file_actions_adddup2.c:
30931         * tests/test-posix_spawn_file_actions_addopen.c:
30932         Include <limits.h>, for OPEN_MAX, if available.
30933         (big_fd): New static function.
30934         (main): Use it.
30936 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30938         tests/nap.h: use an adaptive delay to avoid ctime update issues
30939         The recent change in nap.h (5191133e) decreased the probability of lost
30940         races to about a third, however such problems could still be observed
30941         in virtual machines and openSUSE's OBS.
30942         Before, nap() detected the needed time once empirically and then used
30943         that delay (together with a small correction multiplier) in further
30944         calls.  This problem has been reported and discussed several times,
30945         including guesses about possible kernel issues:
30946         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30947         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30948         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30949         http://bugs.gnu.org/12820
30950         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30951         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30952         Now, nap() avoids the race alltogether by verifying on a reference
30953         file whether a timestamp difference has happened.
30954         * tests/nap.h (nap_fd): Define file descriptor variable for the
30955         witness file.
30956         (nap_works): Change return value to bool.  Change passing
30957         the old file's status by value instead of by reference as this function
30958         does no longer update that timestamp; rename the function argument from
30959         st to old_st.  Remove the local variables cdiff and mdiff because that
30960         function now returns true/false instead of the precise delay.
30961         (guess_delay): Remove function.
30962         (clear_tmp_file): Add new function to close and unlink the witness file.
30963         (nap): Instead of re-using the delay which has been calculated during
30964         the first call, avoid the race by actually verifying that a timestamp
30965         difference can be observed on the current file system.  Use an adaptive
30966         approach for the delay to minimize execution time.  Assert that the
30967         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
30968         = 2^31 - 1 = 2.1s.
30969         Use atexit to call clear_tmp_file when the process terminates.
30971 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30973         sig2str: port to C++
30974         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
30975         Reported by Daniel J Sebald in
30976         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
30978 2013-05-30  Eric Blake  <eblake@redhat.com>
30980         docs: mention cygwin shortcoming in <sys/un.h>
30981         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
30983         vasnprintf: silence mingw compiler warning
30984         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
30986 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30988         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
30989         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
30990         This fixes a porting bug I recently reintroduced in regex, and
30991         some other instances that I discovered while testing the fix.
30992         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
30993         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
30994         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
30995         with an empty argument if this is a pedantic pre-C99 GCC.
30996         * lib/verify.h: Do not use _Static_assert if this is a pedantic
30997         pre-C11 GCC.
30999         regex: adapt to locking regime instead of depending on pthread
31000         Instead of depending on pthread, adapt to whatever thread
31001         modules are in use.  Problem reported by Ludovic Courtès in
31002         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31003         and by Mats Erik Andersson in
31004         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31005         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31006         Support either the 'lock' module, or the 'pthread' module, or
31007         no module.
31008         (lock_lock, lock_unlock): New macros.
31009         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31010         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31011         * modules/regex (Depends-on): Remove pthread.
31013 2013-05-22  Eric Blake  <eblake@redhat.com>
31015         getgroups: document portability issues
31016         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31017         multithread safety.
31018         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31019         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31020         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31021         getugroups.
31022         * doc/posix-functions/getgroups.texi (getgroups): Mention
31023         multithread safety and mgetgroups.
31025 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31027         test-lchown, test-chown: also skip test if chown fails with EPERM
31028         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31029         skip this test, to handle FAT file systems.
31030         * tests/test-chown.h (test_chown): Likewise.
31032 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31034         regex: fix dfa race in multithreaded uses
31035         Problem reported by Ludovic Courtès in
31036         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31037         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31038         New macros.  All uses of __libc_lock_define, __libc_lock_init
31039         changed to use the first two of these.
31040         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31041         non-glibc platforms.
31042         (struct re_dfa_t): Define the lock unconditionally.
31043         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31044         '#ifdef _LIBC"s.
31045         * modules/regex (Depends-on): Add pthread, if we use the
31046         included regex.
31048         * lib/regcomp.c: Do actions that are not needed for glibc,
31049         but may be needed elsewhere.
31050         (regfree, re_compile_internal): Destroy the lock.
31051         (re_compile_internal): Check for lock-initialization failure.
31053         malloca: port to compilers that reject size-zero arrays
31054         This fixes a bug introduced in my previous patch.
31055         * lib/malloca.c (struct preliminary_header): Use an int
31056         rather than a character array of size int; that's simpler.
31057         (struct header): Remove, replacing with ...
31058         (union header): New type.  This avoids the need for declaring a
31059         character array of size zero, which is not allowed on some platforms.
31060         All uses changed.
31062 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31064         parse-datetime, tests: don't use "string" + int
31065         Recent versions of 'clang' complain about C source code that
31066         uses expressions of the form '"string literal" + integer',
31067         I guess on the theory that it's confusing for readers who are
31068         used to C++.  On those grounds I suppose it's OK to make this
31069         minor style change.
31070         * lib/parse-datetime.y (parse_datetime):
31071         * tests/test-fchdir.c (main):
31072         * tests/test-snprintf-posix.h (test_function):
31073         * tests/test-snprintf.c (main):
31074         * tests/test-vasnprintf-posix.c (test_function):
31075         * tests/test-vasnprintf.c (test_function):
31076         * tests/test-vsnprintf.c (main):
31077         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
31078         Rewrite '"str" + E' to '&"str"[E]'.
31080 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31082         argmatch: port to C++
31083         * lib/argmatch.h [__cplusplus]: Add extern "C".
31085         argp: typo fix
31086         * lib/argp-help.c: Typo in comment.
31088 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
31090         manywarnings: update for GCC 4.8.0
31091         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
31092         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
31093         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
31094         -Wmissing-noreturn, as they are duplicates of other warnings.
31095         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
31096         was documented to be flaky in earlier versions of GCC.
31098         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
31099         * tests/test-spawn.c (main):
31100         * tests/test-sys_socket.c (main):
31101         * tests/test-sys_wait.c (main):
31102         Don't have a switch value that isn't covered by a case.
31104         getaddrinfo-tests: port --enable-gcc-warnings to clang
31105         * tests/test-getaddrinfo.c (simple):
31106         Avoid casts from looser to stricter-aligned pointers.
31108         thread: port --enable-gcc-warnings to clang
31109         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31110         Include <signal.h>, to pacify a warning about pthread_sigmask.
31112         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31113         * lib/stdio.in.h (fwrite):
31114         When working around bug 11959, use __REDIRECT rather than '#define
31115         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31116         fix the -Wunused-value issue with clang, and it works with GCC too.
31117         Problem with targeting reported by Eric Blake in
31118         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31119         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31120         debugging the fwrite issue.
31122         stdio: port --enable-gcc-warnings to clang
31123         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31124         since the GCC workaround for fwrite does not pacify clang.
31126         sig2str: port --enable-gcc-warnings to clang
31127         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31129         obstack: port --enable-gcc-warnings to clang
31130         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31131         Avoid casts from looser to stricter-aligned pointers.
31133         memchr2: port --enable-gcc-warnings to clang
31134         * lib/memchr2.c (memchr2):
31135         Avoid casts from looser to stricter-aligned pointers.
31137         mbsstr: port --enable-gcc-warnings to clang
31138         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31139         Avoid casts from looser to stricter-aligned pointers.
31141         malloca: port --enable-gcc-warnings to clang
31142         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31143         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31145         inttostr: port --enable-gcc-warnings to clang
31146         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31148         warnings: port to clang
31149         Problem reported by Daniel P. Berrange via Eric Blake in
31150         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31151         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31152         (gl_WARN_ADD): Use it.
31154 2013-05-11  Jim Meyering  <meyering@fb.com>
31156         quotearg: do not read beyond end of buffer
31157         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31158         end of an ARG for which no length was specified.  With an N-byte
31159         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31160         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31161         via coreutils' misc/sort-debug-keys.sh test and detected by running
31162         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31163         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31164         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31165         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31166         characters correctly."
31168 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31170         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31171         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31172         compilation target is Mac OS X 10.6.
31173         Problem reported by parafin and Andoni Morales in
31174         <http://savannah.gnu.org/bugs/?37844> and
31175         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31177 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31179         mkdir-p: remove assumptions about umask and mode
31180         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31181         umask is 0, or that MODE is a subset of MODE_BITS.
31183 2013-05-10  Eric Blake  <eblake@redhat.com>
31185         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31186         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31188 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31190         deps: require Automake >= 1.9.6 in generated Makefile fragments
31192         That is the same minimal version required in the DEPENDENCIES file.
31193         Moreover, the old code generated a requirement of Automake >= 1.5,
31194         and that is an insanely outdated version.
31196         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31197         * tests/havelib/rpathlx/Makefile.am: Likewise.
31198         * tests/havelib/rpathly/Makefile.am: Likewise.
31199         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31200         * tests/havelib/rpathlz/Makefile.am: Likewise.
31201         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31202         * tests/havelib/rpathx/Makefile.am: Likewise.
31203         * tests/havelib/rpathy/Makefile.am: Likewise.
31204         * tests/havelib/rpathz/Makefile.am: Likewise.
31206 2013-05-08  Eric Blake  <eblake@redhat.com>
31208         bootstrap: AC_INIT may have more than four parameters
31209         * build-aux/bootstrap (extract_package_name): Correctly extract
31210         non-empty tarname field.  Avoid range in regex.
31211         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31213 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31215         qacl: port to MS-Windows port of GNU Emacs
31216         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31217         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31218         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31219         <http://bugs.gnu.org/14295#14>.
31221 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31223         acl: include quote.h
31224         * lib/copy-acl.c: Include quote.h.
31225         * lib/set-acl.c: Likewise.
31227 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31229         fchownat, renameat, unlinkat: update statat dependencies
31230         These modules use statat and lstatat, not fstatat; so depend on
31231         the statat module, which was split out recently from fstatat.
31232         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31233         * modules/renameat: Likewise.  Also delete fstat.
31234         URL: http://bugs.gentoo.org/468790
31236 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31238         Assume gnulib is checked out from Git, not CVS
31240         In fact, access to the gnulib repository through CVS has been
31241         disabled, or more precisely, got broken and was never restored; see:
31242         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31244         Note that support for CVS is not removed completely and unthinkingly
31245         by this change: only support for CVS checkouts of gnulib itself is
31246         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31247         files and CVS directories, for the benefit of those poor gnulib clients
31248         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31250         * gnulib-tool: Simplify accordingly.
31251         * posix-modules: Likewise.
31252         * MODULES.html.sh: Likewise.
31253         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31254         repository.
31255         * doc/gnulib-intro.texi: Likewise.
31256         * doc/gnulib-readme.texi: Likewise.
31257         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31258         sample '.gitignore' file rather than a sample '.cvsignore'.
31259         * NEWS: Update.
31260         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31261         to "CVS Autoconf" rather than "git Autoconf".
31263 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31265         utimensat-tests, etc.: try to fix some races
31266         Problem reported by Bernhard Voelker in
31267         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31268         I don't know whether this patch fixes that race condition, but it
31269         fixes *some* race conditions, so it should be a win.
31270         * modules/chown-tests (Depends-on):
31271         * modules/fchownat-tests (Depends-on):
31272         * modules/fdutimensat-tests (Depends-on):
31273         * modules/futimens-tests (Depends-on):
31274         * modules/lchown-tests (Depends-on):
31275         * modules/stat-time-tests (Depends-on):
31276         * modules/utimens-tests (Depends-on):
31277         * modules/utimensat-tests (Depends-on):
31278         Depend on nanosleep, not usleep.
31279         * modules/chown-tests (test_chown_LDADD):
31280         * modules/lchown-tests (test_lchown_LDADD):
31281         * modules/stat-time-tests (test_stat_time_LDADD):
31282         New macro.
31283         * modules/fchownat-tests (test_fchownat_LDADD):
31284         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31285         * modules/futimens-tests (test_futimens_LDADD):
31286         * modules/utimens-tests (test_utimens_LDADD):
31287         * modules/utimensat-tests (test_utimensat_LDADD):
31288         Add $(LIB_NANOSLEEP).
31289         * modules/stat-time-tests (Files): Add tests/nap.h.
31290         * tests/nap.h: Include <limits.h>, for INT_MAX.
31291         (lt_mtime): Remove.
31292         (diff_timespec): New function.
31293         (get_stat): Rename from get_mtime.  All callers changed.
31294         (nap_works): Determine the needed delay by inspecting the
31295         file system's timestamp jumps; this should be more reliable.
31296         Look at both mtime and ctime, and take the maximum of the two jumps.
31297         (nap_works, guess_delay):
31298         Return a nanosecond count, not a microsecond count.
31299         All callers changed.
31300         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31301         failure.
31302         (nap): Multiply the guess by 1.125, to accommodate the case where
31303         the file system's clock is a bit slower than nanosleep's clock.
31304         * tests/test-stat-time.c (BASE): New macro.
31305         Include nap.h.
31306         (nap): Remove; nap.h now defines this.  This removes a duplicate
31307         implementation of 'nap'.
31309         utimens, utimensat: work around Solaris UTIME_OMIT bug
31310         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31311         Linux kernel 2.6.32 does.  Work around it in the same way.
31312         * doc/posix-functions/futimens.texi (futimens):
31313         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31314         * lib/utimens.c (fdutimens, lutimens):
31315         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31317         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31318         Formerly, it was your responsibility to do this for all Makefile.ams
31319         other than Gnulib's.  Now it's your responsibility to do it for
31320         Gnulib's Makefile.am, too.
31321         * NEWS: Document this.
31322         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31324         acl: include errno.h to get errno
31325         Reported by Daiki Ueno in
31326         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31327         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31329 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31331         tests: don't assume getdtablesize () <= 10000000
31332         * modules/cloexec-tests:
31333         * modules/dup2-tests:
31334         * modules/dup3-tests:
31335         * modules/nonblocking-tests:
31336         * modules/posix_spawn_file_actions_addclose-tests:
31337         * modules/posix_spawn_file_actions_adddup2-tests:
31338         * modules/posix_spawn_file_actions_addopen-tests:
31339         * modules/unistd-safer-tests:
31340         Depend on the getdtablesize module.
31341         * tests/test-cloexec.c:
31342         * tests/test-dup-safer.c:
31343         * tests/test-dup2.c:
31344         * tests/test-dup3.c:
31345         * tests/test-fcntl.c:
31346         * tests/test-nonblocking.c:
31347         * tests/test-posix_spawn_file_actions_addclose.c:
31348         * tests/test-posix_spawn_file_actions_adddup2.c:
31349         * tests/test-posix_spawn_file_actions_addopen.c:
31350         Don't assume getdtablesize () <= 10000000.
31352 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31354         extern-inline: work around bug in Sun c99
31355         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31356         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31358 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31360         qacl: new module, broken out from the acl module
31361         This is for GNU Emacs, which wants the acl functions but does
31362         not want 'error' invoked when they fail.
31363         * lib/acl-internal.h: Do not include error.h, quote.h.
31364         (ENOSYS, ENOTSUP): Remove; no longer needed.
31365         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31366         * lib/acl.h: Include <stdbool.h>.
31367         (acl_errno_valid): New function.
31368         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31369         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31370         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31371         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31372         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31373         * lib/file-has-acl.c (file_has_acl):
31374         * lib/qcopy-acl.c (qcopy_acl):
31375         * lib/qset-acl.c (qset_acl):
31376         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31377         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31378         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31379         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31380         Add lib/set-acl.c.
31381         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31382         Add qacl.
31383         (configure.ac): Move gl_FUNC_ACL to qacl module.
31384         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31385         Rename set-mode-acl.c to set-acl.c.
31386         * lib/acl-errno-valid.c: New file.
31387         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31388         copy_acl function remains in copy-acl.c.
31389         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31390         (_): Remove; not needed.
31391         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31392         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31393         * modules/qacl: New file, moved from the old modules/acl.
31394         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31395         Remove set-mode-acl.c, copy-acl.c.
31396         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31398         alignof, intprops, malloca: port better to IBM's C compiler
31399         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31400         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31401         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31403 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31405         wctype-h: fix gettext link error on mingw
31406         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31407         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31408         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31409         rpl_towupper and rpl_towupper.
31411 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31413         regex-tests, regex: allow glibc re_search behavior
31414         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31415         re_search input data to make the multi-character collating element
31416         in it clearly visible, and treat re_search return code 0 as valid.
31417         * m4/regex.m4 (gl_REGEX): Likewise.
31419 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31421         stdalign: doc fix
31422         * doc/posix-headers/stdalign.texi (stdalign.h):
31423         Gnulib doesn't support '_Alignof expr'.
31425 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31427         stdalign: port to stricter ISO C11
31428         ISO C11 says that _Alignof's operand must be a parenthesized type.
31429         Problem reported by Eli Zaretskii in
31430         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31431         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31432         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31434 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31436         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31437         Problem reported by Marco Atzeri in
31438         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31439         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31440         Simply delegate to the system <sys/select.h> in this case too.
31441         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31442         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31443         be needed on Solaris either.
31444         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31445         Simply delegate to the system <sys/time.h> in this case.
31447 2013-03-19  Karl Berry  <karl@gnu.org>
31449         * build-aux/gnupload: check for erroneous (with gnupload) use of
31450         ftp-upload.gnu.org, tweak help.
31452 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31454         copy-file, rpmatch: fix problems found by cppcheck
31455         Reported by Arno Onken in
31456         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31457         * lib/rpmatch.c (try): Fix memory leak.
31458         * lib/copy-file.c: Include "ignore-value.h".
31459         (qcopy_file_preserving): Ignore chown value.
31460         * modules/copy-file (Depends-on): Add ignore-value.
31462 2013-01-27  Jim Meyering  <jim@meyering.net>
31464         prefix-gnulib-mk: give better diagnostics
31465         * build-aux/prefix-gnulib-mk: Don't just "die".
31466         Give better diagnostics upon failure.
31468 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31470         putenv: port to Solaris 10
31471         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31472         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31473         is not what is wanted here.
31474         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31475         declaration, not for its existence.
31477 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31479         mktime: fix configure typo
31480         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31482 2013-03-12  Eric Blake  <eblake@redhat.com>
31484         regex-tests: skip UTF-8 test on mingw
31485         * modules/regex-tests (Depends-on): Add localcharset.
31486         * tests/test-regex.c (main): Use it to skip test on mingw.
31488 2013-03-11  Eric Blake  <eblake@redhat.com>
31490         tests: make it easier to bypass alarm time in debugger
31491         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31492         * tests/test-memmem.c (main): Likewise.
31493         * tests/test-passfd.c (main): Likewise.
31494         * tests/test-ptsname.c (main): Likewise.
31495         * tests/test-ptsname_r.c (main): Likewise.
31496         * tests/test-strcasestr.c (main): Likewise.
31497         * tests/test-strstr.c (main): Likewise.
31499         regex: port to mingw's recent addition of undeclared alarm
31500         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31501         exists but still doesn't work in newer mingw.
31502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31503         not existence.  Ensure SIGALRM is not trapped.
31504         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31505         * m4/regex.m4 (gl_REGEX): Likewise.
31506         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31507         * tests/test-regex.c (main): Use correct probe for alarm.
31509         putenv: avoid compilation warning on mingw
31510         * lib/putenv.c (_unsetenv): Protect variable declaration.
31511         (putenv): Fix indentation.
31513 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31515         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31516         * lib/unistd.in.h: be careful not to include un-needed system
31517         stdlib.h from here, because that prevents gnulib stdlib.h from
31518         defining rpl_strtod correctly.
31520 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31522         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31523         changesets, but for the 'precision 0' test.
31524         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31525         round-to-even, since POSIX says rounding is implementation-defined
31526         and OS X 10.8.2 rounds 1.51 to 1 here.
31528         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31529         changeset.
31530         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31531         round-to-even, since POSIX says rounding is implementation-defined
31532         and OS X 10.8.2 rounds 1.5 to 1 here.
31534 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31536         vasnprintf-posix-tests: allow rounding 1.5 to 1
31537         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31538         round-to-even, since POSIX says rounding is implementation-defined
31539         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31540         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31542         bootstrap: port to FreeBSD
31543         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31544         that treat '--' differently.  Reported by Mats Erik Andersson in
31545         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31547 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31549         regex: rename remaining __attribute calls to __attribute__.
31550         2012-02-25 changed definition of __attribute, but left some uses
31551         unchanged, preventing compilation of regex module on most non-gcc
31552         environments.
31553         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31554         (lookup_collation_sequence_value, build_range_exp)
31555         (build_collating_symbol): Set attributes with newly renamed
31556         __attribute__ decorator.
31557         * lib/regex_internal.c (re_string_peek_byte_case)
31558         (re_node_set_compare, re_node_set_contains): Likewise.
31559         * lib/regexec.c (acquire_init_state_context): Likewise.
31561 2013-03-06  Bruno Haible  <bruno@clisp.org>
31563         execute: Revert last change, but use a different condition.
31564         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31565         on Windows.
31567 2013-03-05  Eric Blake  <eblake@redhat.com>
31569         execute: drop dead code
31570         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31572 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31574         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31575         * m4/non-recursive-gnulib-prefix-hack.m4
31576         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31577         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31578         <http://bugs.gnu.org/10305#237>.
31580 2013-03-04  Eric Blake  <eblake@redhat.com>
31582         test-getsockopt: avoid compiler warning
31583         * tests/test-getsockopt.c (includes): Ensure close is declared.
31585 2013-03-02  Bruno Haible  <bruno@clisp.org>
31587         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31588         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31590 2013-03-02  Bruno Haible  <bruno@clisp.org>
31592         gettext: Update to version 0.18.2.
31593         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31594         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31595                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31597 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31599         regex: merge patches from libc
31601         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31602         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31603         All uses changed.
31604         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31605         (re_string_wchar_at, re_string_elem_size_at):
31606         Mark function as possibly unused.
31608         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31609         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31610         elements compare against the byte sequence of it, not its name.
31612 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31614         putenv: port better to native Windows
31615         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31616         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31617         (_unsetenv): Use _putenv if available.
31618         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31619         a bit less likely to cause damage.
31620         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31621         Fix the wrong value with SetEnvironmentVariable.
31622         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31623         code better.
31625 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31627         regex: ignore old-style-definition warnings
31628         * lib/regex.c: Add pragma to ignore these warnings.
31629         Problem reported for GNU tar by Pavel Raiskup.
31631 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31633         getcwd: support coreutils better
31634         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31635         but this might not be correct in coreutils, which disables
31636         the raw decl checks.  Problem reported by Nagendra in
31637         <http://bugs.gnu.org/10305#192>.
31638         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31640         Test the getcwd function, not any macro, since getcwd.c wants the
31641         function.
31642         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31643         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31644         compile, as might happen if there's a macro but no function.
31646         strtod: support coreutils better
31647         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31648         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31649         disables the raw decl checks.  This assumes there is an underlying
31650         strtod, but that's a safe assumption these days.
31651         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31653         mountlist: port to HP NonStop
31654         Reported by Joachim Schmitz in
31655         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31656         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31657         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31659 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31661         extern-inline: avoid compilation error with HP-UX cc
31662         Reported by Richard Lloyd in
31663         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31664         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31665         Suppress extern inline with HP-UX cc.  This should be safe,
31666         though it may hurt performance.  Perhaps someone with some HP-UX
31667         experience can come up with a higher-performance fix.
31669 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31671         putenv: fix heap corruption with mixed putenv/_putenv
31672         Problem reported by Michael Goffioul in
31673         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31674         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31675         Rely on _putenv to allocate the new environment.
31676         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31677         * modules/putenv (configure.ac): Use it.
31679 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31681         unsetenv etc.: port to Solaris 11 + GNU Emacs
31682         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31683         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31684         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31685         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31686         idea but is too painful to fix right now), and without this gnulib
31687         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31688         compiling unsetenv.c on Solaris 11.  Fix the problem for
31689         unsetenv.c, and fix other similar occurrences.
31691 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31693         secure_getenv: fix C++ declaration typo
31694         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31695         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31696         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31698 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31700         careadlinkat: stop exporting careadlinkatcwd
31701         Only Emacs used it directly, and Emacs no longer needs it.
31702         * NEWS: Document this simplification.
31703         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31704         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31705         for readlink.
31706         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31707         Don't include stdlib.h; no longer needed.
31708         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31709         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31710         * modules/areadlink (Depends-on): Add readlink.
31711         (Maintainer): Add self.
31712         * modules/careadlinkat (Depends-on): Remove readlink.
31714         extensions: port better to HP-UX
31715         This is merged from git Autoconf.
31716         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31717         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31718         so that it's compatible with the value used when compiling.
31720         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31721         Problem reported by Mats Erik Andersson in
31722         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31723         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31724         openpty function exists, not merely when we intend to replace it.
31725         This corrects the 2013-01-31 patch, which mistakenly defined
31726         HAVE_OPENPTY even on hosts that lacked it.
31728 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31730         secure_getenv: fix include typo
31731         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31733         secure_getenv: port better to FreeBSD and Solaris
31734         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31735         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31736         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31737         This works better on BSDish platforms.
31738         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31739         Test for issetugid if __secure_getenv is missing.
31741 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31743         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31744         Some of these changes are merged in from git Autoconf.
31745         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31746         When deciding whether to define _XOPEN_SOURCE, inspect the
31747         preprocessor macro __hpux instead of the more-heavyweight
31748         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31749         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31750         as the key for __EXTENSIONS__.
31752         unistd: avoid namespace pollution on non-glibc systems
31753         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31754         This avoids namespace pollution on non-glibc systems, by causing
31755         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31756         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31757         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31759 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31761         tmpdir: use secure_getenv
31762         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31763         Define to secure_getenv, not getenv.
31764         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31765         as that's now secure_getenv's job.
31766         * modules/tmpdir (Depends-on): Add secure_getenv.
31768         tempname: use secure_getenv
31769         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31770         Define to secure_getenv, not getenv.
31771         * modules/tempname (Depends-on):
31772         Add secure_getenv.
31774         secure_getenv: new module
31775         * MODULES.html.sh (Extra functions based on ANSI C 89):
31776         Add secure_getenv.
31777         * doc/glibc-functions/secure_getenv.texi: New file.
31778         * doc/gnulib.texi: Include it.
31779         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31780         New files.
31781         * lib/stdlib.in.h (secure_getenv): New decl.
31782         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31783         * modules/stdlib (stdlib.h):
31784         Add secure_getenv checks.
31786 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31788         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31789         Reported for OS X 10.8.2 by Assaf Gordon in
31790         <http://bugs.gnu.org/13516>.
31791         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31792         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31793         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31794         so that they can be kept in sync more easily.  Avoid PATH_MAX
31795         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31796         mkdir or chdir failure.
31797         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31798         lib/getcwd.c.
31799         (test_abort_bug): Do not test for the deep directory bug unless we
31800         have openat support.  Avoid PATH_MAX test on the Hurd.
31802         regex-tests, regex: fix bug: memset undeclared
31803         * tests/test-regex.c: Don't include regex.h twice.  Include
31804         string.h, to declare memset.  Christensen's report also mentioned
31805         this issue.
31806         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31807         test-regex.c, to avoid future problems like this.  Remove
31808         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31809         twice.
31811         regex-tests: fix link errors on older Solaris
31812         These need to link with @LIBINTL@ to get libintl_gettext.
31813         Problem reported by Tom G. Christensen in
31814         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31815         * modules/regex-tests (test_regex_LDADD): New macro.
31817 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31819         regex-tests: new module
31820         * modules/regex-tests, tests/test-regex.c: New files.
31822         regex: fix off-by-one error in configure test
31823         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31825 2013-01-31  Eric Blake  <eblake@redhat.com>
31827         regex: avoid infinite configure test
31828         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31830 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31832         openpty: fix bug where HAVE_OPENPTY wasn't defined
31833         See the thread starting at:
31834         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31835         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31836         openpty function exists, not merely when we intend to replace it.
31838 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31840         sys_time: port to Solaris 2.6
31841         There is a circularity problem on Solaris 2.6, where <time.h> includes
31842         <sys/time.h> for struct timespec.  The include nesting is gnulib
31843         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31844         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31845         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31846         <sys/siginfo.h>; the last, innermost file needs struct
31847         timestruc_t, which is defined in <sys/time.h>, which has not been
31848         fully parsed.  Problem reported by Tom G. Christensen in
31849         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31850         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31851         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31852         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31853         uses split double-inclusion guards.
31855 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31857         regex: test for buffer overrun
31858         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31859         for the just-fixed regex bug.
31861 2013-01-29  Andreas Schwab  <schwab@suse.de>
31863         regex: fix buffer overrun in regexp matcher [BZ #15078]
31864         * lib/regexec.c (extend_buffers): Add parameter min_len.
31865         (check_matching): Pass minimum needed length.
31866         (clean_state_log_if_needed): Likewise.
31867         (get_subexp): Likewise.
31869 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31871         mountlist: don't consider "devtmpfs" as dummy
31872         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31873         as there is storage associcated with it.
31875 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31877         futimens-tests, utimens-tests: Depend on gettext.
31878         This works around a problem introduced in my 2013-01-12 patch,
31879         which added @LIBINTL@ to these modules.
31880         * modules/futimens-tests (Depends-on):
31881         * modules/utimens-tests (Depends-on): Add gettext.
31883 2013-01-26  Eric Blake  <eblake@redhat.com>
31885         test-getpeername: fix typo
31886         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31888 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31890         bootstrap: remove the need for a sorted .gitignore file
31891         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31892         rename to insert_if_absent(), so that we don't need or generate
31893         a sorted .gitignore file.  We do require a .gitignore with no
31894         existing duplicate entries and enforce that.
31895         (sort_patterns): Remove this function as we now use the simpler
31896         technigue of inserting blacklist entries at the top of the file,
31897         assuming gnulib won't be inserting !whitelist entries.
31899 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31901         readlinkat: don't depend on gl_FUNC_OPENAT
31902         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31903         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31904         renameat.m4, symlinkat.m4; but one thing at a time.
31906         statat: new module, split out from fstatat
31907         GNU Emacs needs the POSIX-specified fstatat, but not the
31908         gnulib-specified statat and lstat.  Split the latter two into a
31909         new module 'statat'.
31910         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31911         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31912         Rename from FSTATAT_INLINE. All uses changed.
31913         * modules/fstatat (Files): Remove lib/statat.c.
31914         (gl_MODULE_INDICATOR([fstatat])): Remove.
31915         (lib_SOURCES): Remove.
31916         (Maintainer): Add self.
31917         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31918         * tests/test-fstatat.c (BASE): Don't define if already defined.
31919         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31921 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31923         tests: don't assume fd 99 is closed
31924         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31925         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31926         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31927         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31928         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31929         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31930         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31931         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31932         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31933         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31934         * tests/test-fwrite.c, tests/test-getpeername.c:
31935         * tests/test-getsockname.c, tests/test-getsockopt.c:
31936         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31937         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31938         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31939         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31940         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31941         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31942         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31943         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31944         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31945         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31946         Close file descriptor 99, instead of assuming it's already closed.
31948 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31950         stpncpy: port to OS X 10.8
31951         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31952         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31954 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31956         unistd: port to recent mingw
31957         * lib/unistd.in.h: Remove special invocation convention for mingw,
31958         which breaks for the latest mingw version.  See John W. Eaton in
31959         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31961         largefile: port better to Mac OS X 10.5
31962         This patch is backported from Autoconf git.
31963         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31964         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31965         with ino_t size being different for configuration time versus
31966         build/run time.  Problem reported by PHO in
31967         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
31969 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31971         doc: clarify -Werror
31972         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
31973         clarify that it's intended for developers, not for ordinary builds,
31974         and mention --enable-gcc-warnings as one possible use.
31976 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
31978         stdint: fix build with Android's Bionic fox x86
31979         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
31980         was already included as _SSIZE_T_DEFINED_ might also be defined
31981         in include/machine/_types.h, which is included by stdio.h
31983 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
31985         net_if-tests: port to Solaris 7 + GCC 3.4.6
31986         Problem reported by Tom G. Christensen in
31987         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
31988         * tests/test-net_if.c (ni): Move to next the code that uses it,
31989         so that it's declared only if needed.
31991 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31993         net_if-tests: port to older Solaris
31994         Problem reported by Tom G. Christensen in
31995         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31996         * modules/net_if-tests (NET_IF_LIB): New substitution.
31997         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
31998         (HAVE_IF_NAMEINDEX): New C macro.
31999         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32001         system-quote-tests: port to older Solaris
32002         Problem reported by Tom G. Christensen in
32003         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32004         * tests/test-system-quote-child.c (fopen, fread): Undef.
32006         c-xvasprintf etc.: fix link errors on older Solaris
32007         These need to link with @LIBINTL@ to get libintl_gettext.
32008         Problem reported by Tom G. Christensen in
32009         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32010         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32011         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32012         * modules/futimens-tests (test_futimens_LDADD):
32013         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32015 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32017         locale: port to Solaris 2.6 and 7 + GNU gettext
32018         * lib/locale.in.h: Just include_next <locale.h> when
32019         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32020         when combining the localename module with GNU gettext 0.18.2.
32021         Problem reported by Tom G. Christensen in
32022         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32024 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32026         stdlib: port to Solaris 2.6
32027         Also, the code worked on Solaris 7 through 9 only by accident.
32028         Problem reported by Tom G. Christensen in
32029         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32030         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32031         simply include the system stdlib.h.
32032         * lib/getopt.in.h (__need_system_stdlib_h):
32033         * lib/pthread.in.h (__need_system_stdlib_h):
32034         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32035         Define when including <stdlib.h>, to avoid problems at least for
32036         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32037         with the system stdlib.h.
32039 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32041         doc: update main copyright year
32042         * doc/gnulib.texi: Update copyright date.
32044         doc: improve ISO 8601 discussion
32045         * doc/parse-datetime.texi (Combined date and time of day items):
32046         Specify more carefully what formats are supported and what is
32047         done with excess precision.
32049 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32051         doc: avoid small caps
32052         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32053         they're more trouble than they're worth.  Suggested by Karl Berry
32054         in <http://bugs.gnu.org/13360>.
32056         regex: conform to strict C
32057         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32058         From Aharon Robbins.
32060         gnulib-tool: fix incompatibility with autopoint 0.18.2
32061         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32062         Problem reported by Tom G. Christensen in
32063         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32065 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32067         fprintftime: bring back and reword fwrite comment
32068         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32070         stdio: remove now-unnecessary stdio.c
32071         Since stdio.in.h no longer uses inline functions, we no longer
32072         need to compile the extern versions.
32073         * lib/stdio.c: Remove.
32074         * modules/stdio (Files): Remove lib/stdio.c.
32075         (lib_SOURCES): Remove.
32077         unicodeio: depend on stdio, not ignore-value
32078         * lib/unicodeio.c: Do not include ignore-value.h.
32079         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
32080         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
32082         fprintftime: depend on stdio, not ignore-value
32083         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
32084         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
32085         since the stdio module arranges to silence that warning now.
32086         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
32088 2012-10-04  Simon Josefsson  <simon@josefsson.org>
32090         stdint-tests: Fix expanded-before-required-warning.
32091         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
32093 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32095         fwrite: silence __wur only for older glibc versions
32096         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
32097         This will help us remove this workaround some time in the far future.
32099 2013-01-03  Eric Blake  <eblake@redhat.com>
32101         fwrite: silence __wur without using inline
32102         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
32103         just gcc, and in a way that avoids inline issues.
32104         * modules/stdio (Depends-on): Drop extern-inline.
32106 2013-01-03  Jim Meyering  <jim@meyering.net>
32108         update-copyright: avoid copyright notice date corruption
32109         Given a sequence of copyright year numbers in which the final
32110         one was a two-digit number that happened to be a substring of
32111         a preceding four-digit year number, we would mistakenly update
32112         the substring (from two- to four-digit) rather than the two-digit
32113         number at the end, which, combined with the addition of the current
32114         4-digit year number would yield two 5-digit year numbers, e.g.,
32115         here, it would convert the first "99" to "1999, 2013" rather than
32116         the final one:
32117           1991, 99
32118           11999, 20131, 1999
32119         * build-aux/update-copyright: Tighten a regexp.
32120         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32121         Reported by Joseph Myers in
32122         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32124 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32126         regex: omit needless signed-pointer casts
32127         * lib/regcomp.c (build_charclass, build_charclass_op):
32128         Use char *, not unsigned char *, for class name and extra.
32129         The char values are always nonnegative so there's no need to
32130         insist on unsigned char * here, and using char * removes the need
32131         for casts.  Reported by Aharon Robbins in
32132         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32134         regex: support Gawk, which never uses alloca
32135         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32136         Do not include in this case.  Gawk doesn't supply a substitute
32137         alloca.h and doesn't need one.
32139         regex: port __libc_lock_define usage to C89
32140         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32141         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32142         does not conform to C89, as it has an empty macro argument.
32143         Reported by Aharon Robbins in
32144         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32146 2013-01-01  Eric Blake  <eblake@redhat.com>
32148         maint: update all copyright year number ranges
32149         Run "make update-copyright".
32151         version-etc: bump copyright year reported in --version
32152         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32154 2012-12-31  Eric Blake  <eblake@redhat.com>
32156         sigprocmask-tests: skip test if pid is unexpectedly large
32157         * tests/test-sigprocmask.c (main): Add range check.
32159         git-version-gen: avoid test -z portability glitch
32160         * build-aux/git-version-gen: Prefer portable test spelling, since
32161         git-version-gen is run on more than just developer machines.
32163 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32165         git-version-gen: add --fallback option to use if git is not present
32166         * build-aux/git-version-gen: Add support for the new option --fallback,
32167         which comes into play when there is no $tarball_version_file and
32168         git is not working.
32169         (scriptversion): Update.
32171         maint.mk: handle missing git with more grace
32172         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32173         Quietly proceed if git is not present.
32175 2012-12-31  Eric Blake  <eblake@redhat.com>
32177         dup2: work around cygwin bug
32178         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32179         * lib/dup2.c (rpl_dup2): Work around it.
32180         * doc/posix-functions/dup2.texi (dup2): Document it.
32182 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32184         regex: remove unnecessary dependency on localcharset.h
32185         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32186         hasn't been needed for years.
32187         * modules/regex (Depends-on): Remove localcharset.
32189         regex: revert single-byte change
32190         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32191         to this function.  This was alredy fixed in a different way, at
32192         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32193         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32194         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32196         regex: simplify based on Gawk version
32197         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32198         Reported by Aharon Robbins in
32199         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32201 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32203         regex: check that pattern char is single-byte
32204         Reported by Aharon Robbins in
32205         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32206         * lib/regexec.c (check_node_accept_bytes):
32207         Return 0 if the pattern string has a multibyte character here.
32209         regex: implement rational ranges
32210         Reported by Aharon Robbins in
32211         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32212         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32213         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32214         Implement rational ranges.
32216         regex: avoid redefining __wctype
32217         Reported by Aharon Robbins in
32218         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32219         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32220         #undef before defining.
32222         regex: port to hosts where malloc (0) == NULL
32223         Reported by Aharon Robbins in
32224         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32225         * lib/regex_internal.c (re_node_set_alloc):
32226         Don't assume that malloc (0) yields nonnull.
32227         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32228         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32229         * modules/regex (Files): Add m4/eealloc.m4.
32231         regex: port to C89
32232         Reported by Aharon Robbins in
32233         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32234         * lib/regcomp.c (init_word_char): Declaration before statement.
32236         regex: merge glibc changes
32237         Also, copy the license wording from glibc.  This simplifies
32238         merging changes.  gnulib-tool will change the wording to GPL as
32239         appropriate, when importing it to other packages.  The only
32240         glibc change made since the last merge, which needs merging, is:
32241         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32242         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32244         * users.txt: Add Emacs.
32246         doc: omit mention of version when not needed
32247         * doc/gnulib-intro.texi (Portability and Application Code):
32248         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32249         Don't mention particular dates or versions when not necessary, so
32250         that the documentation won't go out of date so quickly.
32252         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32254 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32256         bootstrap: pass --force to autoreconf.
32257         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32258         Add "--force" so that Automake's ylwrap and other such tools
32259         be updated at each bootstrap invocation.
32260         Use it.
32262 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32264         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32265         The earlier patch forgot to update one of the #if conditions, causing
32266         a problem on Debian testing i386 reported by Mats Erik Andersson
32267         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32268         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32269         (__argp_fmtstream_puts, argp_fmtstream_puts)
32270         (__argp_fmtstream_write, argp_fmtstream_write)
32271         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32273         * doc/gnulib-readme.texi: Minor fixups.
32274         (Portability guidelines): Modernize URLs.  Remove some repetition.
32275         (Indent with spaces not TABs): Reword to avoid too-long lines.
32276         Remove some '@ifset standalone' stuff that isn't used.
32278         * doc/gnulib-readme.texi (Portability guidelines):
32279         ctype.h, not ctime.h.
32281         Correct name of POSIX.1-2001.
32282         * doc/posix-functions/fgetc.texi (fgetc):
32283         * doc/posix-functions/fgets.texi (fgets):
32284         * doc/posix-functions/fread.texi (fread):
32285         * doc/posix-functions/fscanf.texi (fscanf):
32286         * doc/posix-functions/getc.texi (getc):
32287         * doc/posix-functions/getchar.texi (getchar):
32288         * doc/posix-functions/scanf.texi (scanf):
32289         POSIX.1-2001, not POSIX-2001.
32291         doc: move README into manual
32292         * README: Move contents to new file doc/gnulib-readme.texi.
32293         Replace with a one-line summary.
32294         * doc/gnulib.texi (Brief Overview): New section,
32295         with old intro preface.  Include gnulib-readme.texi for contents.
32296         (Philosophy): Rename from "Introduction", since this
32297         section no longer introduces the rest.  Write a new preface.
32298         * doc/gnulib-readme.texi: New file, with the old contents of
32299         README texinfo-ized.  This way, the README info appears
32300         in the online and printed manual.
32302 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32304         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32305         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32306         c_vasprintf() prototype.
32308 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32310         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32311         * lib/c-vasprintf.h: Remove stray semicolon.
32313 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32315         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32316         It is obsolete and is planned to be removed from Automake 1.14; see
32317         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32318         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32319         (installdirs-data, installdirs-data-yes):
32320         Use $(MKDIR_P), not $(mkdir_p).
32321         * m4/intl.m4 (AM_INTL_SUBDIR):
32322         * m4/po.m4 (AM_PO_SUBDIRS):
32323         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32325 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32327         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32328         On this platform, we are not optimizing but we are using
32329         the substitute for extern inlines, so compile as if
32330         C99-style extern inline, or a substitute, is available.
32331         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32332         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32333         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32334         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32335         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32336         Declare as ARGP_FS_EI, not as extern.
32337         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32338         (__option_is_short, _option_is_end, __option_is_end)
32339         [!_LIBC && __USE_EXTERN_INLINES]:
32340         Declare as ARGP_EI, not as extern.
32342 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32344         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32345         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32346         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32347         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32348         ...), as the latter is fatal with older Autoconfs.
32349         Problem reported and fix suggested by Eric Blake in thread starting at
32350         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32352 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32354         AC_PROG_MKDIR_P: don't workaround if not buggy
32355         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32356         Define only for Autoconf versions before 2.62.
32357         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32358         undocumented m4_PACKAGE_VERSION, for consistency with the
32359         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32360         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32361         was introduced in 2.62.
32363 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32365         New 'c-*printf' modules for formatted output in C locale.
32367         New module 'c-vasnprintf'.
32368         * modules/c-vasnprintf: New file.
32369         * lib/c-vasnprintf.c: New file.
32370         * lib/c-vasnprintf.h: New file.
32372         New module 'c-snprintf'.
32373         * modules/c-snprintf: New file.
32374         * modules/c-snprintf-tests: New file.
32375         * lib/c-snprintf.c: New file.
32376         * lib/c-snprintf.h: New file.
32377         * tests/test-c-snprintf.c: New file.
32378         * tests/test-c-snprintf.sh: New file.
32380         New module 'c-vsnprintf'.
32381         * modules/c-vsnprintf: New file.
32382         * modules/c-vsnprintf-tests: New file.
32383         * lib/c-vsnprintf.c: New file.
32384         * lib/c-vsnprintf.h: New file.
32385         * tests/test-c-vsnprintf.c: New file.
32386         * tests/test-c-vsnprintf.sh: New file.
32388         New module 'c-vasprintf'.
32389         * modules/c-vasprintf: New file.
32390         * modules/c-vasprintf-tests: New file.
32391         * lib/c-asprintf.c: New file.
32392         * lib/c-vasprintf.c: New file.
32393         * lib/c-vasprintf.h: New file.
32394         * tests/test-c-vasprintf.c  +: New file.
32395         * tests/test-c-vasprintf.sh: New file.
32397         New module 'c-xvasprintf'.
32398         * modules/c-xvasprintf: New file.
32399         * modules/c-xvasprintf-tests: New file.
32400         * lib/c-xasprintf.c: New file.
32401         * lib/c-xvasprintf.c: New file.
32402         * lib/c-xvasprintf.h: New file.
32403         * tests/test-c-xvasprintf.c: New file.
32404         * tests/test-c-xvasprintf.sh: New file.
32406 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32408         argp: better 'inline'
32409         Use extern-inline module to declare extern inline functions.
32410         This avoids some bogus warning diagnostics.  Problem discovered
32411         when modifying GNU tar to use the manywarnings module.
32412         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32413         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32414         Define based on extern-inline.
32415         * modules/argp (Depends-on): Add extern-inline.
32417 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32419         filemode, sys_stat: Handle MPX files a la AIX.
32420         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32421         * lib/sys_stat.in.h (S_ISMPX): New macro.
32422         * tests/test-sys_stat.c: Add tests for MPX files.
32424 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32426         x-to-1: honor $PERL
32427         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32428         a chance to use his preferred version of Perl.  This is typically
32429         required by Darwin users whose default /usr/bin/perl does not have all
32430         the libraries required by help2man, and who need to use their MacPorts
32431         installation of Perl instead.
32433 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32435         gnu-web-doc-update: add all the new files, even in new directories
32436         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32437         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32438         Use it.
32439         (main): Don't use cvsutils to get the list of unknown files,
32440         just add all the existing files and directories.
32442 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32444         gnu-web-doc-update: improve --help
32445         * build-aux/gnu-web-doc-update: Move comments into --help.
32447 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32449         mountlist: recognize more "dummy" file systems
32450         * lib/mountlist.c (ME_DUMMY_0):
32451         Add these dummy FS names to the list:
32452         - "debugfs" virtual filesystem for kernel debugging
32453         - "devpts" PTY slave filesystem
32454         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32455         - "fusectl" control filesystem for FUSE
32456         - "mqueue" enumerates POSIX message queues
32457         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32458         - "sysfs" is for exporting kernel objects
32459         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32461 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32463         extern-inline: avoid incompatibility with Darwin Libc
32464         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32465         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32466         Problem reported by Akim Demaille in
32467         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32469 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32471         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32472         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32473         let it handle password prompting.
32475 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32477         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32478         * lib/canonicalize.c (canonicalize_filename_mode):
32479         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32480         fetching the current directory.  Don't overrun the beginning of
32481         rpath if there's no slashes after the MS-Windows drive letter.
32483 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32485         maint.mk: avoid extra forks
32486         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32487         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32488         So use that instead of "$(shell test -f FILE && echo FILE)".
32490 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32492         vasnprintf: fix ASCII_ONLY typo
32493         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32494         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32495         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32496         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32497         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32499 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32501         list, oset, xlist, xoset: fix extern inline issue with C99
32502         This was introduced by my recent changes for 'inline'.
32503         Problem reported for gettext by Daiki Ueno in
32504         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32505         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32506         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32507         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32508         (gl_list_previous_node, gl_list_get_at)
32509         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32510         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32511         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32512         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32513         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32514         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32515         (gl_list_iterator_free, gl_sortedlist_search)
32516         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32517         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32518         (gl_sortedlist_remove):
32519         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32520         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32521         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32522         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32523         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32524         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32525         (gl_list_add_at, gl_sortedlist_add):
32526         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32527         Wrap these extern decls inside "#if 0", because they are implemented
32528         as inline functions, and extern inline is not what's wanted here.
32529         It would simplify these .h files to remove the extern decls entirely,
32530         although a downside would be less-clear separation between
32531         specification and implementation.
32533 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32535         sys_stat: no 'static inline'
32536         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32539         extern-inline: no 'static inline'
32540         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32541         Do not require AC_C_INLINE.
32542         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32543         'static inline', for older compilers.
32545         snippet/warn-on-use: no 'static inline'
32546         * build-aux/snippet/warn-on-use.h:
32547         Remove unnecessary 'inline' in comment.
32549         rbtree-list, rbtreehash-list: no 'static inline'
32550         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32551         * lib/gl_anytree_list2.h (node_at):
32552         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32553         (gl_oset_first, add_nodes_to_buckets):
32554         Now static, not static inline.
32556         regex: no 'static inline'
32557         * lib/regex_internal.c (calc_state_hash):
32558         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32559         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32560         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32561         Now static, not static inline.
32562         (inline) [__GNUC__ < 3 && _LIBC]:
32563         Remove macro; no longer needed.
32565         xvasprintf: no 'static inline'
32566         * lib/xvasprintf.c (xstrcat):
32567         Now static, not static inline.
32568         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32569         Do not require AC_C_INLINE.
32571         parse-datetime, parse-duration: no 'static inline'
32572         * lib/parse-datetime.y (to_uchar):
32573         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32574         (scale_n_add):
32575         Now static, not static inline.
32576         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32577         * modules/parse-duration (configure.ac):
32578         Do not require AC_C_INLINE.
32580         getaddrinfo: no 'static inline'
32581         * lib/getaddrinfo.c (validate_family):
32582         Now static, not static inline.
32583         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32584         Do not require AC_C_INLINE.
32586         ftruncate, fts, lstat, openat, raise: no 'static inline'
32587         * lib/ftruncate.c (chsize_nothrow):
32588         * lib/fts.c (opendirat, diropen):
32589         * lib/lstat.c (orig_lstat):
32590         * lib/openat.c (orig_openat):
32591         * lib/raise.c (raise_nothrow):
32592         Now static, not static inline.
32593         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32594         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32595         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32596         * m4/openat.m4 (gl_PREREQ_OPENAT):
32597         * m4/raise.m4 (gl_PREREQ_RAISE):
32598         Do not require AC_C_INLINE.
32600         fflush, stat: no 'static inline'
32601         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32602         (clear_ungetc_buffer, disable_seek_optimization)
32603         (restore_seek_optimization, update_fpos_cache):
32604         * lib/stat.c (orig_stat):
32605         Now static, not static inline.
32606         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32607         (update_fpos_cache):
32608         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32609         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32610         * m4/stat.m4 (gl_PREREQ_STAT):
32611         Do not require AC_C_INLINE.
32613         error, filevercmp: no 'static inline'
32614         * lib/error.c (is_open, flush_stdout):
32615         * lib/filevercmp.c (order):
32616         Now static, not static inline.
32617         * m4/error.m4 (gl_PREREQ_ERROR):
32618         * modules/filevercmp (configure.ac):
32619         Do not require AC_C_INLINE.
32621         dup, execute, fatal-signal, etc.: no 'static inline'
32622         * lib/dup.c (dup_nothrow):
32623         * lib/execute.c (nonintr_close, nonintr_open):
32624         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32625         * lib/fopen.c (orig_fopen):
32626         * lib/freadseek.c (freadptrinc):
32627         * lib/freopen.c (orig_freopen):
32628         * lib/fstat.c (orig_fstat, fstat_nothrow):
32629         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32630         (get_rusage_as_via_iterator):
32631         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32632         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32633         * lib/isatty.c (_isatty_nothrow):
32634         * lib/open.c (orig_open):
32635         * lib/read.c (read_nothrow):
32636         * lib/sigprocmask.c (signal_nothrow):
32637         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32638         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32639         * lib/wait-process.c (unregister_slave_subprocess):
32640         * lib/write.c (write_nothrow):
32641         Now static, not static inline.
32642         * lib/spawn-pipe.c (nonintr_open): Define only if
32643         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32644         * m4/dup.m4 (gl_PREREQ_DUP):
32645         * m4/execute.m4 (gl_EXECUTE):
32646         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32647         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32648         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32649         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32650         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32651         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32652         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32653         * m4/open.m4 (gl_PREREQ_OPEN):
32654         * m4/read.m4 (gl_PREREQ_READ):
32655         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32656         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32658         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32659         * m4/write.m4 (gl_PREREQ_WRITE):
32660         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32661         Do not require AC_C_INLINE.
32663         c-strtod, memcoll, readutmp: no 'static inline'
32664         * lib/c-strtod.c (c_locale):
32665         * lib/memcoll.c (strcoll_loop):
32666         * lib/readutmp.c (desirable_utmp_entry):
32667         Now static, not static inline.
32668         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32669         * m4/memcoll.m4 (gl_MEMCOLL):
32670         * m4/readutmp.m4 (gl_READUTMP):
32671         Do not require AC_C_INLINE.
32673         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32674         * lib/arctwo.c (to_uchar):
32675         * lib/md4.c (set_uint32):
32676         * lib/md5.c (set_uint32):
32677         * lib/sha1.c (set_uint32):
32678         * lib/sha256.c (set_uint32):
32679         * lib/sha512.c (set_uint64):
32680         Now static, not static inline.  This is a bit simpler, and doesn't
32681         affect performance with GCC and default optimization.
32682         * m4/arctwo.m4 (gl_ARCTWO):
32683         * m4/md4.m4 (gl_MD4):
32684         * m4/md5.m4 (gl_MD5):
32685         * m4/sha1.m4 (gl_SHA1):
32686         * m4/sha256.m4 (gl_SHA256):
32687         * m4/sha512.m4 (gl_SHA512):
32688         Do not require AC_C_INLINE.
32690         cond, lock, thread: better 'inline'
32691         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32692         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32693         New macros.  Use them instead of static inline, for header functions.
32694         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32695         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32696         * lib/glthread/lock.c (gl_waitqueue_init)
32697         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32698         * lib/glthread/thread.c (get_current_thread_handle):
32699         Change 'static inline' to 'inline'.
32700         * lib/glthread/cond.h, lib/glthread/thread.h:
32701         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32702         * m4/cond.m4 (gl_COND):
32703         * m4/lock.m4 (gl_PREREQ_LOCK):
32704         * m4/thread.m4 (gl_THREAD):
32705         Do not require AC_C_INLINE.
32706         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32708         chdir-long, cycle-check, savewd: better 'inline'
32709         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32710         (find_non_slash):
32711         * lib/cycle-check.c (is_zero_or_power_of_two):
32712         * lib/savewd.c (savewd_delegating):
32713         Change 'static inline' to 'inline'.
32714         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32715         Replace all remaining uses of 'static inline' with it.
32716         * lib/savewd.h:
32717         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32718         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32719         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32720         * m4/savewd.m4 (gl_SAVEWD):
32721         Do not require AC_C_INLINE.
32722         * modules/savewd (Depends-on): Add extern-inline.
32724         base32, base64: no need for 'inline'
32725         * lib/base32.c (to_uchar, get_8, decode_8):
32726         * lib/base64.c (to_uchar, get_4, decode_4):
32727         Change 'static inline' to 'inline'.
32728         * m4/base32.m4 (gl_PREREQ_BASE32):
32729         * m4/base64.m4 (gl_PREREQ_BASE64):
32730         Do not require AC_C_INLINE.
32732         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32733         * lib/gl_array_oset.c (gl_array_nx_add_at):
32734         (gl_array_remove_at):
32735         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32736         (add_to_bucket, remove_from_bucket):
32737         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32738         Change 'static inline' to 'static', as it's simpler to omit
32739         'inline' unless there's a significant performance advantage.
32741         list, oset, xlist, xoset, xsublist: simplify via extern inline
32742         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32743         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32744         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32745         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32746         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32747         New macro.  Replace all uses of 'static inline' with it.
32748         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32749         instead of as macros FOO that are defined to static inline
32750         functions FOO_inline.
32751         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32752         * lib/gl_xsublist.c:
32753         Reimplement from scratch, by defining the corresponding *_INLINE
32754         macro and including the corresponding .h file.  This is simpler.
32755         * modules/list, modules/oset, modules/xlist, modules/xoset:
32756         (Files): Remove m4/gl_list.m4.
32757         (configure.ac): Remove gl_LIST.
32758         * m4/gl_list.m4: Remove.
32759         * modules/list, modules/oset, modules/xlist, modules/xoset:
32760         * modules/xsublist:
32761         (Depends-on): Depend on extern-inline, not inline.
32763         xalloc: better 'inline'
32764         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32765         New macro.  Replace all uses of 'static inline' with it.
32766         (static_inline): Remove.
32767         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32768         Let 'extern inline' do the work automatically, instead of doing
32769         it by hand.
32770         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32771         Remove.  All uses removed.
32772         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32774         gethrxtime: better 'inline'
32775         * lib/xtime.c: New file.
32776         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32777         * lib/xtime.h (XTIME_INCLUDE):
32778         New macros.  Replace all uses of 'static inline' with them.
32779         * lib/gethrxtime.c (gethrxtime): Define only if
32780         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32781         this source file is now always compiled, because of the extern inline.
32782         * lib/gethrxtime.h, lib/xtime.h:
32783         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32784         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32785         if gethrtime works, as they're not needed in that case.
32786         (gl_XTIME): Do not require AC_C_INLINE.
32787         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32788         compiled now.  Move the check into gl_GETHRXTIME.
32789         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32790         (Depends-on): Add extern-inline.
32791         (configure.ac): gethrxtime is always compiled now.
32792         (lib_SOURCES): Add gethrxtime.c.
32794         wctype-h: better 'inline'
32795         * lib/wctype-h.c: New file.
32796         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32797         New macro.  Replace all uses of 'static inline' with it.
32798         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32799         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32800         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32801         (Depends-on): Add extern-inline.
32803         unistd: better 'inline'
32804         * lib/unistd.c: New file.
32805         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32806         New macro.  Replace all uses of 'static inline' with it.
32807         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32808         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32809         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32810         (Depends-on): Add extern-inline.
32812         sys_socket: better 'inline'
32813         * lib/sys_socket.c: New file.
32814         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32815         New macro.  Replace all uses of 'static inline' with it.
32816         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32818         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32819         (Depends-on): Add extern-inline.
32821         stdio: better 'inline'
32822         * lib/stdio.c: New file.
32823         * lib/stdio.in.h (_GL_STDIO_INLINE):
32824         New macro.  Replace all uses of 'static inline' with it.
32825         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32826         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32827         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32828         (Depends-on): Add extern-inline.
32830         sigaction: better 'inline'
32831         * lib/sig-handler.c: New file.
32832         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32833         New macro.  Replace all uses of 'static inline' with it.
32834         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32835         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32836         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32837         (Depends-on): Add extern-inline.
32839         selinux-h: better 'inline'
32840         * lib/se-context.c, lib/se-selinux.c: New files.
32841         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32842         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32843         New macro.  Replace all uses of 'static inline' with it.
32844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32845         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32846         New macro.  Replace all uses of 'static inline' with it.
32847         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32848         * modules/selinux-h (Files, lib_SOURCES):
32849         Add lib/se-context.c, lib/se-selinux.c.
32850         (Depends-on): Add extern-inline.
32851         (configure.ac): Do not require AC_C_INLINE.
32853         pthread: better 'inline'
32854         * lib/pthread.c: New file.
32855         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32856         New macro.  Replace all uses of 'static inline' with it.
32857         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32858         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32859         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32860         * modules/pthread (Files): Add lib/pthread.c.
32861         (Depends-on): Add extern-inline.
32863         math: better 'inline'
32864         * lib/math.c: New file.
32865         * lib/math.in.h (_GL_MATH_INLINE):
32866         New macro.  Replace all uses of 'static inline' with it.
32867         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32868         * m4/math_h.m4 (gl_MATH_H):
32869         Do not require AC_C_INLINE.
32870         * modules/math (Files, lib_SOURCES):
32871         Add lib/math.c.
32872         (Depends-on): Add extern-inline.
32874         count-one-bits: better 'inline'
32875         * lib/count-one-bits.c: New file.
32876         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32877         New macro.  Replace all uses of 'static inline' with it.
32878         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32879         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32880         Do not require AC_C_INLINE.
32881         * modules/count-one-bits (Files, lib_SOURCES):
32882         Add lib/count-one-bits.c.
32883         (Depends-on): Add extern-inline.
32885         count-leading-zeros: better 'inline'
32886         * lib/count-leading-zeros.c: New file.
32887         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32888         New macro.  Replace all uses of 'static inline' with it.
32889         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32890         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32891         Do not require AC_C_INLINE.
32892         * modules/count-leading-zeros (Files, lib_SOURCES):
32893         Add lib/count-leading-zeros.c.
32894         (Depends-on): Add extern-inline.
32896         bitrotate: better 'inline'
32897         * lib/bitrotate.c: New file.
32898         * lib/bitrotate.h (BITROTATE_INLINE):
32899         New macros.
32900         Replace all uses of 'static inline' with them.
32901         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32902         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32903         (Depends-on): Add extern-inline.
32904         (configure.ac): Do not require AC_C_INLINE.
32906 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32908         maint.mk: avoid gratuitous failure
32909         Reported by Stefano Lattarini in
32910         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32911         * top/maint.mk (public-submodule-commit): Quote more safely.
32913 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32915         canonicalize, canonicalize-lgpl: support MS-Windows file names
32916         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32917         for test cases, which it'd be nice to add at some point.
32918         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32919         * lib/canonicalize.c (canonicalize_filename_mode):
32920         * lib/canonicalize-lgpl.c (__realpath):
32921         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32922         slash is at the beginning of the file name.  Use ISSLASH, instead
32923         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32924         the first character with '/'.  Test for
32925         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32926         with a drive letter.
32927         * lib/canonicalize.c (SLASHES): New macro.
32928         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32930 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32932         fts: introduce FTS_VERBATIM
32933         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32934         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32935         * lib/fts.c (fts_open): Honor it.
32937 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32939         getlogin-tests: allow errno == ENXIO
32940         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32941         with errno == ENXIO (No controlling tty).
32942         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32943         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32944         with errno == ENOENT.  This was reported to happen in various
32945         situations on GNU/Linux.
32947 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32949         getlogin-tests: allow errno == ENOENT
32950         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32951         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32952         when running a test in an Emacs shell buffer.
32954 2012-11-08  Jim Meyering  <jim@meyering.net>
32956         tests/nap.h: avoid warning about unused variable
32957         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32959         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32960         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32961         white space before each of the special-cased file names, to avoid
32962         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32963         in http://bugs.gnu.org/12830.
32965 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32967         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
32968         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
32969         fails with errno == EBADF when fd is opened with O_PATH.
32970         Reported by Jim Meyering in
32971         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
32972         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32973         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
32975 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32977         test-utimens: speed up by taking shorter naps
32978         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
32979         New functions.
32980         (nap): Use them, to do a better job of guessing the delay.
32981         On Fedora 17 with ext4 atop md atop hard disks, this made
32982         test-utimens run 10x faster, because the test napped for
32983         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
32984         <http://bugs.gnu.org/12820#11>.
32986 2012-11-07  Jim Meyering  <jim@meyering.net>
32988         mountlist.c: fix a compilation failure
32989         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
32990         I introduced while transforming commit v0.0-7683-g613bcb6
32992 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32994         errno: port to LynxOS 178 2.2.2
32995         Problem reported by Joel Brobecker in
32996         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
32997         * doc/posix-headers/errno.texi (errno.h): Document this.
32998         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
32999         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33000         Supply a string for EILSEQ.
33001         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33003 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33005         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33006         Linux kernel 2.6.39 introduced O_PATH (see
33007         <http://lwn.net/Articles/433854/>) and this is a better fallback
33008         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33009         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33010         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33011         * lib/fcntl.in.h (O_ACCMODE):
33012         * tests/test-fcntl-h.c (main):
33013         Do not reject O_ACCMODE merely because it has more than the
33014         minimal number of bits, as POSIX allows extensions here.
33016 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33018         mountlist: do not classify a bind-mounted dir entry as "dummy"
33019         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33020         the "none"-testing clause.
33021         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33022         exception for bind-mounted directories.
33024 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33026         quote: provide a means to escape strings with nul characters
33027         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33028         (quote, quote_n): Rename formal arguments for consistency with
33029         quotearg.
33031 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33033         test-raise: don't assume 199 is an invalid signal
33034         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33036         sh-quote-tests: port to Solaris 9
33037         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33038         Problem reported by Dagobert Michelsen in
33039         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33041 2012-10-28  Jim Meyering  <jim@meyering.net>
33043         maint.mk: rename a new configurable variable
33044         * top/maint.mk (_gl_translatable_string_re): Rename from
33045         translation-markers: _gl_ prefix to insulate from user Makefile code,
33046         and the _re suffix to inform that it's a regular expression.
33048 2012-10-26  Eric Blake  <eblake@redhat.com>
33050         maint.mk: let packages tweak sc_po_check pattern
33051         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33052         finding files with other translation markers.
33054 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33056         euidaccess: speed up 'configure' on GNU hosts
33057         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33058         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33059         it's needed only in this case.  Use AC_CHECK_DECLS, not
33060         AC_CHECK_DECLS_ONCE.
33061         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33062         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33064         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33066 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33068         fchmodat, fchownat, fstatat: port to non-inlining compilers
33069         Problem reported for FreeBSD 9 by Jim Meyering in
33070         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33071         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33072         New files, which define FCHMODAT_INLINE etc.
33073         * lib/fchmodat.c (FCHMODAT_INLINE):
33074         * lib/fchownat.c (FCHOWNAT_INLINE):
33075         * lib/fstatat.c (FSTATAT_INLINE):
33076         Remove, as chmodat.c etc. now do this.
33077         * modules/fchmodat (Files): Add lib/chmodat.c.
33078         * modules/fchownat (Files): Add lib/chownat.c.
33079         * modules/fstatat (Files): Add lib/statat.c.
33081 2012-10-15  Jim Meyering  <jim@meyering.net>
33083         fchmodat.c, fchownat.c: compile-impeding typos
33084         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
33085         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
33086         Introduced in commit v0.0-7636-gd202279.
33088 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33090         fcntl-h: support GNU flags like O_IGNORE_CTTY
33091         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
33092         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
33093         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
33094         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
33095         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
33096         Define to 0 if not already defined.
33097         * tests/test-fcntl-h.c: Test these new flags.
33099 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33101         faccessat, etc.: support AT_FDCWD-only use
33102         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
33103         this function only if its first argument is AT_FDCWD.
33104         Emacs wants faccessat for AT_EACCESS but not for any first-arg
33105         values other than AT_FDCWD, so it doesn't want all the openat
33106         machinery with fchdir etc.
33107         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
33108         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33109         * modules/unlinkat (Files):
33110         Remove lib/openat-priv.h, as at-internal supplies this file.
33111         Removing this file here allows us to support programs like Emacs
33112         that avoid at-internal.
33114         faccessat: speed up 'configure' on mainstream hosts
33115         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33116         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33117         since it's only on unusual platforms that we need to check for
33118         'access', and it's better not to slow 'configure' down on all
33119         platforms.
33121         faccessat: port to Solaris 10
33122         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33123         Needed on Solaris 10, which doesn't have AT_EACCESS,
33124         so we need the Gnulib fcntl.h, which defines it.
33126 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33127         canonicalize: fix C89 compilation
33128         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33129         declarations so C89 is supported.  Also remove the comment
33130         referencing memorty allocation as the suggested feature could
33131         not be implemented as suggested.
33132         Reported by Michael Goffioul.
33134 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33136         group-member: omit unnecessary dependencies
33137         This is for Emacs, which has its own allocator and where we
33138         don't want to use xalloc.
33139         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33140         since we no longer use xmalloc.  Do not include stdbool.h, since
33141         the changes below happen to remove the only use of bool.
33142         (GROUPBUF_SIZE): New constant.
33143         (struct group_info): Remove n_groups member.  Add groupbuf member.
33144         This lets us get the groups without using malloc, usually.
33145         (free_group_info, get_group_info): Adjust to this.
33146         (get_group_info): Return the number of groups found, or -1 on error.
33147         Use plain malloc not xmalloc, and treat its failure as if there
33148         are no groups, as the user already loses in case of error.
33149         (group_member): Simplify, based on changes to get_group_info.
33150         * modules/group-member (Depends-on): Remove dependencies on
33151         xalloc and stdbool.  Add dependency on xalloc-oversized.
33153 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33155         gethrxtime: port to C++
33156         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33158 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33160         ptsname: fix macro-name typo
33161         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33163 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33165         inttostr: Relax license.
33166         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33168 2012-10-03  Eric Blake  <eblake@redhat.com>
33170         ptsname_r: support ptys returned by FreeBSD posix_openpt
33171         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33172         lives in /dev/pts/.
33174 2012-10-02  Eric Blake  <eblake@redhat.com>
33176         pselect: reject invalid file descriptors
33177         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33178         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33179         * modules/pselect (Depends-on): Add dup2.
33180         * doc/posix-functions/pselect.texi (pselect): Document this.
33182         select: reject invalid file descriptors
33183         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33184         * lib/select.c (rpl_select) [!win32]: Work around it.
33185         * modules/select (Depends-on): Add dup2.
33186         * doc/posix-functions/select.texi (select): Document this.
33188         select: enhance test
33189         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33190         New functions.
33191         (test_function): Enhance test.
33192         (do_select_bad_fd): Avoid any stale errno values.
33194         ptsname: reject invalid file descriptors
33195         http://www.austingroupbugs.net/view.php?id=503
33196         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33198         * modules/stdlib (Makefile.am): Replace witness.
33199         * lib/stdlib.in.h (ptsname): Allow for replacement.
33200         * modules/ptsname (configure.ac): Trigger replacement.
33201         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33203 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33205         hash-pjw-bare: new module
33206         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33207         * lib/hash-pjw-bare.h: Likewise.
33208         * modules/hash-pjw-bare: New file.
33209         * MODULES.html.sh (Misc): Add it.
33211 2012-10-02  Eric Blake  <eblake@redhat.com>
33213         manywarnings: cater to more gcc infelicities
33214         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33215         -Wuninitialized without -O.
33217 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33219         select, poll tests: Make setsockopt invocation effective.
33220         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33221         the bind() call.
33222         * tests/test-select.h (open_server_socket): Likewise.
33224 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33226         sockets, sys_stat: restore AC_C_INLINE
33227         This undoes the 2012-09-22 patch.
33228         * m4/sockets.m4 (gl_SOCKETS):
33229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33230         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33231         and does not support plain 'inline'.  Reported by Bruno Haible in
33232         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33234 2012-09-30  Bruno Haible  <bruno@clisp.org>
33236         localeconv tests: Avoid test failure on OpenIndiana.
33237         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33238         skip the 'grouping' and 'mon_grouping' tests.
33239         Reported by Jim Meyering.
33241 2012-09-30  Bruno Haible  <bruno@clisp.org>
33243         havelib: Follow libtool developments.
33244         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33245         Suggested by Simon Josefsson.
33247 2012-09-29  Jim Meyering  <meyering@redhat.com>
33249         fstatat.c: fix a compile-impeding typo
33250         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33251         Introduced in commit v0.0-7636-gd202279.
33252         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33254 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33256         extern-inline: provide a -Wundef safe config.h
33257         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33258         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33259         to produce a -Wundef warning free config.h.
33261 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33263         hash-pjw: relax license to LGPLv2+
33264         * modules/hash-pjw (License): Relax, with consent of author.
33266 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33268         maint.mk: fix strict vs. lazy variable issues with RELEASE
33269         * top/maint.mk (_equal): New function.
33270         (member_check): Strip the result to avoid spurious spaces.
33271         (url_dir_list): Do not use ifeq, which is strict, as it will
33272         require RELEASE_TYPE to be defined.
33273         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33274         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33275         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33276         (announcement_Cc_beta,announcement_mail_headers_beta)
33277         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33278         (release): Do not depend on $(release-type), as it forces its
33279         evaluation.  Bounce to it.
33281 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33283         maint.mk: formatting changes
33284         * top/maint.mk: Indent bodies of if's.
33286 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33288         maint.mk: factor the validation of RELEASE_TYPE
33289         With help from Jim Meyering.
33290         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33291         * top/maint.mk (_empty, _sp): Move their definition earlier.
33292         (member-check, release-type): New.
33293         Use the latter instead of $(RELEASE_TYPE).
33294         Remove now useless local checks.
33296 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33298         maint.mk: provide "make upload" to ease uploading
33299         See
33300         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33301         Do not depend simply on the current $(VERSION), as there may have been
33302         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33303         as "make release-commit" already does.
33305         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33306         "make TYPE".
33308         * top/maint.mk (upload_command, upload, release): New.
33309         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33310         (VERSION): first word of $(RELEASE) is always right.
33311         (emit_upload_commands): Adjust.
33312         * top/README-release: Update.
33314 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33316         maint.mk: silent rules
33317         With help from Stefano Lattarini.
33318         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33319         (announcement): Use $(AM_V_at).
33321 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33323         localename: port gl_locale_name_thread_unsafe to FreeBSD
33324         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33325         and use the simpler FreeBSD implementation on Mac OS X as well.
33326         Original idea suggested by Ed Maste in
33327         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33329 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33331         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33332         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33333         * lib/mbuiter.c, lib/xsize.c: New files.
33334         * lib/binary-io.h (BINARY_IO_INLINE):
33335         * lib/eealloc.h (EEALLOC_INLINE):
33336         * lib/mbfile.h (MBFILE_INLINE):
33337         * lib/mbiter.h (MBITER_INLINE):
33338         * lib/mbuiter.h (MBUITER_INLINE):
33339         * lib/xsize.h (XSIZE_INLINE):
33340         New macros.
33341         Replace all uses of 'static inline' with them.
33342         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33343         * m4/eealloc.m4 (gl_EEALLOC):
33344         * m4/mbfile.m4 (gl_MBFILE):
33345         * m4/mbiter.m4 (gl_MBITER):
33346         * m4/xsize.m4 (gl_XSIZE):
33347         Do not require AC_C_INLINE.
33348         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33349         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33350         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33351         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33352         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33353         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33354         * modules/binary-io, modules/eealloc, modules/mbfile:
33355         * modules/mbiter, modules/mbuiter:
33356         (Depends-on): Add extern-inline.
33358         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33359         * lib/pipe-filter-aux.c: New file.
33360         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33361         Replace all uses of 'static inline' with it.
33362         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33363         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33364         (filter_retcode): No real need for inline here.
33365         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33366         (Files): Add lib/pipe-filter-aux.c.
33367         (Depends-on): Add extern-inline.
33368         (configure.ac): Do not require AC_C_INLINE.
33369         (lib_SOURCES): Add pipe-filter-aux.c.
33371         fdutimensat: omit unnecessary AC_C_INLINE
33372         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33374         fchmodat, fchownat, fstatat: use extern-inline
33375         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33376         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33377         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33378         New macros.
33379         * lib/openat.h:
33380         Replace all uses of 'static inline' with them.
33381         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33382         * modules/fchmodat, modules/fchownat, modules/fstatat:
33383         * modules/openat-h:
33384         (Depends-on):
33385         Add extern-inline.
33386         (configure.ac): Remove AC_C_INLINE.
33388         acl, mbchar, priv-set: use extern-inline
33389         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33390         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33391         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33392         New macros.
33393         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33394         Replace all uses of 'static inline' with it.
33395         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33396         * m4/acl.m4 (gl_FUNC_ACL):
33397         * m4/mbchar.m4 (gl_MBCHAR):
33398         * m4/priv-set.m4 (gl_PRIV_SET):
33399         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33400         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33401         Add extern-inline.
33403         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33404         * m4/sockets.m4 (gl_SOCKETS):
33405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33406         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33407         environments where it's already guaranteed to work, so we needn't
33408         check for it at 'configure'-time.
33410         tls-tests: omit unnecessary 'inline'
33411         * tests/test-tls.c (perhaps_yield): No longer inline.
33412         Simplicity and portability trump efficiency in test cases.
33414         utimens-tests: avoid unnecessary 'inline'
33415         * modules/fdutimensat-tests (configure.ac):
33416         * modules/futimens-tests (configure.ac):
33417         * modules/utimens-tests (configure.ac):
33418         * modules/utimensat-tests (configure.ac):
33419         Remove AC_C_INLINE.
33420         * tests/test-utimens-common.h (ctime_compare):
33421         No longer inline.  Simplicity and portability trump efficiency here.
33423         misc: don't limit commentary to inline functions
33424         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33425         * lib/xalloc-oversized.h, lib/xsize.h:
33426         Contrast macros to functions in general, not just to inline functions,
33427         when the commentary does not apply only to inline functions.
33429 2012-09-20  Jim Meyering  <meyering@redhat.com>
33431         non-recursive-gnulib-prefix-hack: new module
33432         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33433         the file that originated in Bison.
33434         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33435         largely copied from a snippet that resided in bison's configure.ac.
33436         * modules/non-recursive-gnulib-prefix-hack: New file.
33437         * MODULES.html.sh (Support for maintaining and releasing projects):
33438         Add it.
33440 2012-09-18  Jim Meyering  <meyering@redhat.com>
33442         maint.mk: generalize _gl_tight_scope for non-recursive make
33443         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33444         that *.h would describe additional .h files in the directory
33445         specified by $(_gl_TS_dir).  I.e., add this...
33446         (_gl_TS_other_headers): New variable.
33448         maint.mk: exempt trailing blanks found in "binary" files
33449         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33450         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33451         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33453 2012-09-17  Jim Meyering  <meyering@redhat.com>
33455         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33456         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33457         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33458         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33460 2012-09-17  Jim Meyering  <meyering@redhat.com>
33462         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33463         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33464         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33465         It is not in the same category as "exit (0)" or "exit (1)", and
33466         besides, I know of no symbolic name for that 77.  Reported by
33467         Richard W.M. Jones in
33468         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33470 2012-09-17  Jim Meyering  <meyering@redhat.com>
33472         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33473         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33474         all uses of #define, not just those that start in column 1.
33475         Richard W.M. Jones reported a false positive in
33476         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33478 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33480         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33481         * lib/localcharset.c (locale_charset) [DARWIN7]:
33482         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33483         as these two values are incompatible.  Problem reported by Max Horn.
33484         For more discussion, please see
33485         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33487         doc: document sticky-EOF issue
33488         * doc/posix-functions/fgetc.texi (fgetc):
33489         * doc/posix-functions/fgets.texi (fgets):
33490         * doc/posix-functions/fread.texi (fread):
33491         * doc/posix-functions/fscanf.texi (fscanf):
33492         * doc/posix-functions/getc.texi (getc):
33493         * doc/posix-functions/getchar.texi (getchar):
33494         * doc/posix-functions/scanf.texi (scanf):
33495         Mention that glibc and default Solaris do not conform to
33496         C99 and POSIX-2001 or later, with respect to how getchar
33497         etc. behave when feof reports nonzero.
33499 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33501         poll: fix poll(0, NULL, msec)
33502         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33503         but nfd is 0.  In that case poll should behave like select.
33505 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33506             Paolo Bonzini  <bonzini@gnu.org>
33508         poll: fix for systems that can't recv() on a non-socket
33509         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33510         is readable.  In this case POLLHUP will not be supported.
33511         * doc/posix-functions/poll.texi: Document this.
33513 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33515         poll/select: document portability problems not fixed by Gnulib.
33516         * doc/posix-functions/poll.texi: poll does not work well on
33517         pipes under Windows.  It has the same limitations as select on
33518         BeOS.
33519         * doc/posix-functions/select.texi: select does not work well
33520         on pipes under Windows.
33522 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33524         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33525         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33526         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33527         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33529 2012-09-06  Eric Blake  <eblake@redhat.com>
33531         net_if: give more details about the bug being fixed
33532         * doc/posix-headers/net_if.texi: Add clarification.
33534 2012-09-05  Eric Blake  <eblake@redhat.com>
33536         net_if: new module
33537         * modules/net_if: New module, borrowing ideas from netinet_in.
33538         * m4/net_if_h.m4: New file.
33539         * lib/net_if.in.h: Likewise.
33540         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33541         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33542         * tests/test-net_if.c: Make function checks conditional.
33543         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33545 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33547         readutmp: fix non-portable UT_PID use
33548         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33549         Use `UT_PID (u) > 0' as absolute condition.
33551 2012-09-04  Jim Meyering  <meyering@redhat.com>
33553         fts: reduce two or more trailing spaces to just one, usually
33554         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33555         or more slashes, trim all but the final one.  But if a name consists
33556         solely of two slashes, don't modify it.  If it consists solely of
33557         three or more slashes, strip all but one.
33559         This is part of the solution to a minor problem with rm:
33560         it would print a bogus ELOOP diagnostic when failing to remove
33561         the slash-decorated name of a symlink-to-directory:
33563             $ mkdir d && ln -s d s && env rm -r s/
33564             rm: cannot remove 's': Too many levels of symbolic links
33566         With the change below and a trivial don't-trim-trailing-slashes
33567         adjustment to remove.c, it does this:
33569             $ env rm -r s/
33570             rm: cannot remove 's/': Not a directory
33572         Improved by: Eric Blake
33574         fts: when there is no risk of overlap, use memcpy, not memmove
33575         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33577 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33579         stdbool: be more compatible with mixed C/C++ compiles
33580         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33581         Define to bool, true, false, respectively, as GCC's builtin
33582         stdbool.h does.  Problem reported by Michael Goffioul in
33583         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33585 2012-08-28  Jim Meyering  <meyering@redhat.com>
33587         revert last change: it was not needed
33588         * tests/test-vc-list-files-git.sh: There's already a test for
33589         a working git, just below.
33591 2012-08-28  Jim Meyering  <meyering@redhat.com>
33593         tests: test-vc-list-files-git.sh: skip if git is not available
33594         * tests/test-vc-list-files-git.sh: Skip this test when git is
33595         not available.
33597 2012-08-26  Bruno Haible  <bruno@clisp.org>
33599         gnulib-tool: Remove no-op option --no-changelog.
33600         * gnulib-tool (func_usage): Don't mention --no-changelog.
33601         (do_changelog): Remove variable.
33602         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33604 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33606         doc: remove fdl-1.2.texi
33607         It is no longer used or maintained, and its use of @acronym
33608         is problematic.  See the thread containing
33609         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33610         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33611         * doc/old-licenses/fdl-1.2.texi: Remove.
33613         execinfo: port to FreeBSD
33614         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33615         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33616         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33617         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33619 2012-08-23  Jim Meyering  <meyering@redhat.com>
33621         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33622         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33623         to placate gcc's -Wold-style-declaration.
33625 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33627         doc: do not use @acronym
33628         * doc/inet_ntoa.texi (inet_ntoa):
33629         * doc/parse-datetime.texi (Seconds since the Epoch)
33630         (Specifying time zone rules):
33631         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33632         Don't use @acronym.  Problem reported by John Darlington in
33633         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33635 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33637         stdnoreturn: port to newer GCCs
33638         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33639         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33640         Problem reported by Jim Meyering in
33641         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33642         Also, rename the 'test' function to a void a clash with the
33643         already-supplied 'main' function; this fixes a bug that incorrectly
33644         rejected GCC 4.7.1's <stdnoreturn.h>.
33645         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33646         Document GCC problem.
33648 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33650         pipe-filter: fix comment typo
33651         * lib/pipe-filter.h: Mention correct function.
33653 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33655         execinfo: new module
33656         This is for Emacs.  Currently, it provides a no-effect stub
33657         on all platforms where it does not already work.
33658         It already works on glibc-based systems, and on Solaris 11.
33659         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33660         New files.
33661         * doc/glibc-headers/execinfo.texi (execinfo.h):
33662         * MODULES.html.sh (Misc): Document it.
33664 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33666         extern-inline: support old GCC 'inline'
33667         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33668         if available.  This applies to GCC versions 2.7 through 4.2, or
33669         when newer GCC is using -fgnu89-inline.  The goal is to address
33670         some of the performance issues mentioned by Bruno Haible in
33671         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33673 2012-08-20  Eric Blake  <eblake@redhat.com>
33675         maint.mk: avoid redundant file name in message
33676         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33677         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33678         (sc_makefile_path_separator_check): Remove bogus $(ME).
33680 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33682         timer-time: fix link order when static linking on glibc
33683         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33684         _after_ -lrt so that it's significant.
33686 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33688         timespec: omit unnecessary AC_C_INLINE
33689         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33691         stat-time: omit unnecessary AC_C_INLINE
33692         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33693         Do not require AC_C_INLINE.
33695         ignore-value: omit unnecessary AC_C_INLINE
33696         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33698         sys_select: avoid 'static inline'
33699         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33701         mktime: avoid 'static inline'
33702         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33703         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33705 2012-08-19  Bruno Haible  <bruno@clisp.org>
33707         gnulib-tool: Improve coding style.
33708         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33709         func_emit_lib_Makefile_am.
33710         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33712 2012-08-19  Bruno Haible  <bruno@clisp.org>
33714         gnulib-tool: Fix indentation.
33715         * gnulib-tool (func_import): Fix indentation.
33717 2012-08-19  Bruno Haible  <bruno@clisp.org>
33719         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33720         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33721         on the list of removed files.
33723 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33725         test-parse-datetime: avoid glibc leap-second glitch
33726         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33727         with the 2012 rules.  Problem reported by Bruce Dubbs in
33728         <http://bugs.gnu.org/12206>.
33730 2012-08-14  Bruno Haible  <bruno@clisp.org>
33732         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33733         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33734         from argument.
33735         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33737 2012-08-14  Eric Blake  <eblake@redhat.com>
33739         ldexp: relax license
33740         * modules/ldexp (License): Trivial relax, since the module only
33741         provides a permissively licensed m4 file.
33743 2012-08-13  Bruno Haible  <bruno@clisp.org>
33745         gnulib-tool: Fix persistence of --witness-c-macro option.
33746         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33747         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33749 2012-08-11  Eric Blake  <eblake@redhat.com>
33751         count-leading-zeros: use a lookup table on non-gcc compilers
33752         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33753         alternate implementation, suggested by Jim Meyering.
33755 2012-08-10  Eric Blake  <eblake@redhat.com>
33757         count-leading-zeros: new module
33758         * modules/count-leading-zeros: New module.
33759         * m4/count-leading-zeros.m4: New file.
33760         * lib/count-leading-zeros.h: Likewise.
33761         * modules/count-leading-zeros-tests: New test.
33762         * tests/test-count-leading-zeros.c: New file.
33763         * MODULES.html.sh (Integer arithmetic functions): Document it.
33765 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33766             Jim Meyering  <meyering@redhat.com>
33768         maintainer-makefile: Fix syntax error with dash.
33769         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33770         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33772 2012-08-05  Jim Meyering  <meyering@redhat.com>
33774         extern-inline: also ignore -Wmissing-declarations
33775         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33776         required with gcc-4.8.0-to-be.
33778         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33779         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33780         for /error ?([^,]*)/.  This avoids false-positives for strings like
33781         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33783 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33785         gnumakefile: better interaction with Automake-NG
33786         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33787         Automake-NG always contain a definition of VPATH, even in non-VPATH
33788         builds (its value being simply '.' in that case).  So, in the
33789         'clean-GNUmakefile' rule, to determine whether running under a
33790         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33791         '$(VPATH)' expands to the empty string.
33793 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33795         base64: Use extern C scope in header file, for C++.
33796         * lib/base64.h: Add C++ namespace protection.
33798 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33800         stat-time, timespec, u64: support naive out-of-dir builds
33801         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33802         Use '#include "foo.h"', not '#include <foo.h>', when including
33803         one's own interface.  This works better when configuring with
33804         out-of-directory builds, since packages need not add an
33805         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33807 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33809         utimens: use extern-inline
33810         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33811         * lib/utimens.h: Add copyright notice, since this is now large enough
33812         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33813         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33814         * modules/utimens (Depends-on): Add extern-inline.
33816         u64: use extern-inline
33817         * lib/u64.c: New file.
33818         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33819         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33820         * modules/u64 (Files): Add lib/u64.c.
33821         (Depends-on): Add extern-inline.
33822         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33823         does that now.
33824         (lib_SOURCES): Add u64.c.
33826         timespec: use extern-inline
33827         * lib/timespec.c: New file.
33828         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33829         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33830         * modules/timespec (Files): Add lib/timespec.c.
33831         (Depends-on): Add extern-inline.
33832         (lib_SOURCES): Add timespec.c.
33834         stat-time: use extern-inline
33835         * lib/stat-time.c: New file.
33836         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33837         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33838         * modules/stat-time (Files): Add lib/stat-time.c.
33839         (Depends-on): Add extern-inline.
33840         (lib_SOURCES): Add stat-time.c.
33842         extern-inline: new module
33843         * modules/extern-inline, m4/extern-inline.m4: New files.
33844         This is for better support of 'extern inline' a la ISO C99,
33845         with a portable alternative on compilers that do not support
33846         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33847         of the Emacs executable, when compiled with debugging disabled,
33848         which is a typical way that Emacs is built while developing.
33850 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33852         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33853         * build-aux/do-release-commit-and-tag: Move variable definitions
33854         together.
33855         ($branch): Instead of defaulting to "master", default to the current
33856         branch (as gnu-web-doc-update does).
33857         (help): Display the current values of the option arguments.
33858         * top/maint.mk (release-commit): New.
33859         * top/README-release: Simplify the corresponding step.
33861 2012-07-30  Eric Blake  <eblake@redhat.com>
33863         passfd: fix comment on recvfd
33864         * lib/passfd.c (recvfd): Fix comment.
33865         Reported by Jann Horn <jannhorn@googlemail.com>.
33867 2012-07-30  Jim Meyering  <meyering@redhat.com>
33869         maint.mk: avoid a sub-shell
33870         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33872 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33874         maint.mk: use silent-rules support from Automake
33875         * top/maint.mk (news-check, vc-diff-check, announcement)
33876         (no-submodule-changes, alpha beta stable, release-prep)
33877         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33879 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33881         maint.mk: provide a web-manual-update target
33882         * top/maint.mk: here.
33883         * top/README-release: Use it to simplify the web manual update step.
33885 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33887         README-release: shorten the circuit to post a news
33888         * top/README-release: Point directly to the news submission form.
33890 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33892         gnu-web-doc-update: fix --help
33893         * build-aux/gnu-web-doc-update: The information "top level" was written
33894         twice.
33896 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33898         maint.mk: absolute VPATH issue
33899         * top/maint.mk (release-prep): Help Git find .git/.
33900         From Jim Meyering.
33902 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33904         gitlog-to-changelog: fix previous change
33905         * build-aux/gitlog-to-changelog: Fix condition.
33906         Add missing ";".
33908 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33910         gitlog-to-changelog: don't expect .git to be in $srcdir
33911         Reported by Bruno Haible.
33912         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33913         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33914         Use it.
33916 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33918         maint.mk: absolute VPATH build fix
33919         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33920         $(srcdir) is not a parent of $(builddir).
33922 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33924         clean-temp: Fix memory leak.
33925         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33926         'files' members of tmpdir.
33928 2012-07-27  Jim Meyering  <meyering@redhat.com>
33930         maint.mk: new rule: refresh-gnulib-patches
33931         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33932         Use this rule to refresh them.
33933         * top/maint.mk (refresh-gnulib-patches): New rule.
33935 2012-07-24  Bruno Haible  <bruno@clisp.org>
33937         gnulib-tool: Fix handling of inctests variable.
33938         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33939         Reported by Nick Bowler <nbowler@elliptictech.com>.
33941 2012-07-22  Bruno Haible  <bruno@clisp.org>
33943         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33944         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33945         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33946         Remove exemption for getpass.h.
33947         Suggested by Eric Blake.
33949 2012-07-20  Eric Blake  <eblake@redhat.com>
33951         verify: document conflict with -Wnested-externs
33952         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33954         maint.mk: forbid exit(-1)
33955         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33957 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33959         fsusage: port back to Solaris
33960         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33961         error (fsd not declared) on Solaris 10.  Reported privately by
33962         Andrew Borodin.
33964 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33966         gnu-web-doc-update: fix error messages
33967         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
33969         gnu-web-doc-update: check the requirements.
33970         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
33971         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
33972         * build-aux/bootstrap (find_tool): Comment change.
33974 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
33976         maint.mk: minor simplication.
33977         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
33978         for default values.
33980 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
33982         gitlog-to-changelog: VPATH build issues
33983         If builddir is not a subdirectory of srcdir, running git from it will
33984         fail.
33985         * build-aux/gitlog-to-changelog (--srcdir): New option.
33987 2012-07-15  Bruno Haible  <bruno@clisp.org>
33989         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
33990         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
33991         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
33992         Remove exemption for fpending.h.
33993         Suggested by Eric Blake.
33995 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33997         pthread_sigmask: fix bug on FreeBSD 9
33998         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
33999         Include string.h.
34000         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34001         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34002         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34003         but pthread_sigmask (1729, NULL, NULL) returns zero.
34004         See <http://bugs.gnu.org/11884>.
34005         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34006         by inspecting whether the main call changed the old mask.
34008 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34010         README-release: make it more legible
34011         * top/README-release: Improve typography slightly.
34013 2012-07-15  Jim Meyering  <meyering@redhat.com>
34015         maint: require that each sc_... command start with "@"
34016         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34017         "make sc_maint" helps us avoid this nit.
34019 2012-07-15  Jim Meyering  <meyering@redhat.com>
34021         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34022         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34024 2012-07-13  Eric Blake  <eblake@redhat.com>
34026         maint.mk: new syntax check for HAVE_DECL checks
34027         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34028         * cfg.mk
34029         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34030         Exempt some false positives.
34031         Based on a report by Karel Zak.
34033         argp: make HAVE_DECL usage consistent
34034         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34035         macros, not whether they are defined.
34036         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34037         convention with other declaration checks.
34038         Reported by Karel Zak, with suggestions from Paul Eggert.
34040         stat-time: relax license to LGPLv2+
34041         * modules/stat-time (License): Relax, with consent of all authors.
34043         strndup: fix m4 usage error
34044         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34045         defined, to either 0 or 1.
34046         Reported by Karel Zak.
34048 2012-07-11  Jim Meyering  <meyering@redhat.com>
34050         maint: enable the sc_avoid_if_before_free syntax-check rule
34051         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34052         (if_before_free_offenders_): Define.
34053         (if_before_free_basename_re_): Define.
34054         Exempt current files with useless if-before-free.
34056 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34058         gettext: do not assume '#define ... defined ...' behavior
34059         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34060         Do not use '#define FOO ... defined BAR ...', as the C standard says
34061         it's not portable to expect that this works after macro expansion.
34062         Problem reported for gzip by Steven M. Schweda in
34063         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34065 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34067         getloadavg: clean out old Emacs and Autoconf cruft
34068         See Glenn Morris in <http://bugs.gnu.org/11905>.
34069         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34070         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34071         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34072         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
34074 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
34076         bootstrap: let warn be like tests/init.sh's warn_
34077         Reported by Jim Meyering.
34078         * build-aux/bootstrap (warn): Remove, replaced by...
34079         (warnf_, warn_): these.
34080         Adjust callers.
34081         Shorten messages that no longer fit in 80 columns.
34083 2012-07-09  Bruno Haible  <bruno@clisp.org>
34085         getopt: Simplify after Emacs changed.
34086         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
34087         (gl_GETOPT_IFELSE): Remove macro.
34089 2012-07-09  Jim Meyering  <meyering@redhat.com>
34091         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
34092         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
34094         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
34095         Bugs in both of those conspired to make the
34096         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
34097         _sc_search_regexp's handling of non-empty $in_files would filter
34098         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
34099         choice of in_files value meant there would be no match in most
34100         projects, due to the presence of two or more Makefile.in files.
34101         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
34102         Fix a bug in how a non-empty $$in_files was processed:
34103         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
34104         in spite of the name, it's a regexp, not a list of file names.
34106 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34108         getloadavg, getopt: fix commentary re configure.in
34109         Autoconf is deprecating the name 'configure.in', so change it to
34110         to the new name 'configure.ac' in a couple of places.
34111         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34112         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34113         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34114         Emacs has renamed it to configure.ac, and it no longer refers
34115         to these macros anyway.
34117         timespec: mark functions with const attributes
34118         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34119         Mark with _GL_ATTRIBUTE_CONST.
34121 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34123         canonicalize[-lgpl]: handle "guessing" values when cross-building
34124         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34125         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34126         matches "*yes" instead of just "yes".  Regression introduced in commit
34127         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34129 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34130             Bruno Haible  <bruno@clisp.org>
34132         canonicalize: make the right guess when cross-compiling to GNU
34133         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34134         determine whether cross-compiling to glibc systems, so as to
34135         include GNU/Hurd.
34137 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34139         timespec-sub: avoid duplicate include
34140         * lib/timespec-sub.c: Do not include <config.h> twice.
34141         Reported by Juanma Barranquero.
34143 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34145         bootstrap: use a more consistent error reporting scheme
34146         * build-aux/bootstrap (warn, die): New.
34147         Use them.
34149 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34151         sys_time: allow too-wide tv_sec
34152         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34153         timeval even if tv_sec is wider than time_t.  This allows
34154         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34155         as without this patch gnulib replaces struct timeval
34156         and OpenBSD futimes therefore has a type mismatch.
34157         * doc/posix-headers/sys_time.texi: Mention this.
34159         pthread: check for both pthread_create and pthread_join
34160         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34161         alter the check so that it tests for both pthread_create and
34162         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34163         Suggested by Bruno Haible and Richard Yao in
34164         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34166         parse-datetime: doc tuneup
34167         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34168         spacing issues.
34170 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34172         do-release-commit-and-tag: fix the previous commit
34173         * build-aux/do-release-commit-and-tag: Actually the test was right,
34174         but the comment and the error message were misleading.
34175         Fix comment, and improve error message.
34176         Perform check first, so that NEWS is not modified uselessly.
34178         do-release-commit-and-tag: fix typo
34179         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34180         _not_ start with a stub.
34182 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34184         pthread: check for pthread_create, not pthread_join
34185         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34186         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34187         pthread_join in libc.  I hope this removes the need for all the
34188         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34189         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34191 2012-07-04  Jim Meyering  <meyering@redhat.com>
34193         parse-datetime: fix failure to diagnose invalid input
34194         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34195         rather than diagnosing the invalid input.  Now it reports this:
34196         date: invalid date '\260'
34197         * lib/parse-datetime.y (to_uchar): Define.
34198         (yylex): Don't sign-extend "other" bytes.
34199         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34200         Thanks to Bruno Haible for the patch to this file.
34201         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34202         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34204 2012-07-03  Jim Meyering  <meyering@redhat.com>
34206         bootstrap: do not require now-removed build-aux/missing
34207         Now that build-aux/missing is, er, missing, bootstrap would
34208         silently fail.
34209         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34210         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34211         no longer part of gnulib.
34212         Diagnose the failure.
34214 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34216         alloca: add support for HP NonStop TNS/E native
34217         * lib/alloca.in.h (alloca): Support the new host.
34218         From a suggestion by Joachim Schmitz in
34219         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34221 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34223         fsusage: remove code not needed on non GNU/Linux systems.
34225         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34226         Don't include headers no longer needed in this case.
34227         * lib/fsusage.c [STAT_STATVFS &&
34228         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34229         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34231 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34233         fsusage: include files needed for glibc 2.6 fallback
34234         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34235         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34236         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34237         Problem reported by Ludovic Courtès in
34238         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34240         fsusage: avoid needless check on GNU/Linux
34241         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34242         on GNU/Linux systems, since it can't possibly work.
34244 2012-07-01  Bruno Haible  <bruno@clisp.org>
34246         log: Fix an autoconf >= 2.64 warning.
34247         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34248         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34250 2012-06-28  Bruno Haible  <bruno@clisp.org>
34252         log10f: Fix possible configuration problem.
34253         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34254         $LOGF_LIBM.
34255         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34257 2012-06-28  Bruno Haible  <bruno@clisp.org>
34259         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34260         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34261         not gl_cv_func_unlink_works.
34262         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34264 2012-06-27  Eric Blake  <eblake@redhat.com>
34266         config: drop scripts that automake says are not independent
34267         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34268         * build-aux/elisp-comp: Delete.
34269         * build-aux/missing: Likewise.
34270         * build-aux/ylwrap: Likewise.
34271         * modules/elisp-comp: Likewise.
34272         * MODULES.html.sh: Drop mention of elisp-comp.
34273         * NEWS: Mention this.
34275 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34277         root-uid: new module
34278         This is for portability to Tandem's NonStop Kernel.
34279         * lib/root-uid.h, modules/root-uid: New files.
34280         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34281         * lib/write-any-file.c, tests/test-sethostname2.c:
34282         Include "root-uid.h".
34283         * lib/euidaccess.c (euidaccess):
34284         * lib/pt_chown.c (main):
34285         * lib/unlinkdir.c (cannot_unlink_dir):
34286         * lib/write-any-file.c (can_write_any_file):
34287         * m4/mknod.m4 (gl_FUNC_MKNOD):
34288         * tests/test-sethostname2.c (geteuid, main):
34289         Don't assume ROOT_UID == 0.
34290         * modules/euidaccess (Depends-on):
34291         * modules/pt_chown (Depends-on):
34292         * modules/sethostname-tests (Depends-on):
34293         * modules/unlinkdir (Depends-on):
34294         * modules/write-any-file (Depends-on):
34295         Add root-uid.
34297         regex: use locale-independent comparison for codeset name
34298         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34299         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34300         for codeset name.
34301         * lib/regex_internal.h: Do not include <strings.h>, since we
34302         no longer use strcasecmp.
34303         * modules/regex (Depends-on): Remove strcase.
34305 2012-06-23  Bruno Haible  <bruno@clisp.org>
34307         getopt-posix: No longer guarantee that option processing is resettable.
34308         * doc/posix-functions/getopt.texi: Drop description of problem with
34309         internal state. Fix info about mingw and msvc9.
34310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34311         option processing by getopt(). Run three test programs instead of one.
34312         Simplify cross-compilation guess.
34313         * NEWS: Mention the change.
34314         Reported by Rich Felker <dalias@aerifal.cx>.
34316 2012-06-26  Bruno Haible  <bruno@clisp.org>
34318         argp, regex: Ensure strcasecmp gets declared.
34319         * lib/argp-help.c: Include <strings.h>.
34320         * lib/regex_internal.h: Likewise.
34321         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34323 2012-06-24  Bruno Haible  <bruno@clisp.org>
34325         ptsname_r: Make it consistent with ptsname on AIX.
34326         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34327         implementation as for OSF/1.
34328         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34329         a pty master.
34331         ptsname_r: Make it consistent with ptsname on OSF/1.
34332         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34333         OSF/1.
34335 2012-06-24  Bruno Haible  <bruno@clisp.org>
34337         ttyname_r: Fix result on OSF/1, Solaris.
34338         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34340 2012-06-24  Bruno Haible  <bruno@clisp.org>
34342         ptsname_r: Add support for Solaris.
34343         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34344         Solaris.
34346         ptsname_r: Fix test failure on native Windows.
34347         * modules/ptsname_r (Depends-on): Add isatty.
34349         ptsname_r: Fix test failures on IRIX, Solaris.
34350         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34351         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34352         accordingly.
34353         * lib/ptsname_r.c: Include <fcntl.h>.
34354         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34355         set errno if fd is invalid.
34356         * tests/test-isatty.c (main): Update comments.
34358 2012-06-24  Bruno Haible  <bruno@clisp.org>
34360         ptsname test: Extend test.
34361         * tests/test-ptsname.c: Include <errno.h>.
34362         (main): Test behaviour with invalid file descriptor.
34364 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34366         time: fix obsolete comment
34367         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34368         reference to HAVE_STRUCT_TIMESPEC in comment.
34370 2012-06-23  Bruno Haible  <bruno@clisp.org>
34372         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34374         does not handle abbreviated long options with equivalent
34375         disambiguations, set gl_replace_getopt to yes.
34376         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34378 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34380         time_r: fix typo that always overrode localtime_r decl
34381         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34382         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34383         not in a standard include.
34385 2012-06-22  Bruno Haible  <bruno@clisp.org>
34387         Write "Mac OS X" instead of "MacOS X".
34388         * README: Write "Mac OS X" instead of "MacOS X".
34389         * build-aux/bootstrap: Likewise.
34390         * build-aux/install-reloc: Likewise.
34391         * lib/acl-internal.h: Likewise.
34392         * lib/acl_entries.c: Likewise.
34393         * lib/argp-ba.c: Likewise.
34394         * lib/argp-pv.c: Likewise.
34395         * lib/config.charset: Likewise.
34396         * lib/copy-acl.c: Likewise.
34397         * lib/csharpexec.c: Likewise.
34398         * lib/euidaccess.c: Likewise.
34399         * lib/fbufmode.c: Likewise.
34400         * lib/fflush.c: Likewise.
34401         * lib/file-has-acl.c: Likewise.
34402         * lib/filemode.h: Likewise.
34403         * lib/fpurge.c: Likewise.
34404         * lib/freadable.c: Likewise.
34405         * lib/freadahead.c: Likewise.
34406         * lib/freading.c: Likewise.
34407         * lib/freadptr.c: Likewise.
34408         * lib/freadseek.c: Likewise.
34409         * lib/fseeko.c: Likewise.
34410         * lib/fseterr.c: Likewise.
34411         * lib/fsusage.c: Likewise.
34412         * lib/fwritable.c: Likewise.
34413         * lib/fwriting.c: Likewise.
34414         * lib/get-rusage-as.c: Likewise.
34415         * lib/get-rusage-data.c: Likewise.
34416         * lib/getdomainname.c: Likewise.
34417         * lib/idpriv-drop.c: Likewise.
34418         * lib/idpriv-droptemp.c: Likewise.
34419         * lib/localcharset.c: Likewise.
34420         * lib/locale.in.h: Likewise.
34421         * lib/localename.c: Likewise.
34422         * lib/mbsrtowcs-state.c: Likewise.
34423         * lib/nproc.c: Likewise.
34424         * lib/passfd.c: Likewise.
34425         * lib/posix_openpt.c: Likewise.
34426         * lib/printf-parse.c: Likewise.
34427         * lib/progreloc.c: Likewise.
34428         * lib/safe-read.h: Likewise.
34429         * lib/safe-write.h: Likewise.
34430         * lib/sched.in.h: Likewise.
34431         * lib/set-mode-acl.c: Likewise.
34432         * lib/signal.in.h: Likewise.
34433         * lib/stdint.in.h: Likewise.
34434         * lib/stdio-impl.h: Likewise.
34435         * lib/stdlib.in.h: Likewise.
34436         * lib/strtod.c: Likewise.
34437         * lib/sys_select.in.h: Likewise.
34438         * lib/tcgetsid.c: Likewise.
34439         * lib/unistd.in.h: Likewise.
34440         * lib/unlockpt.c: Likewise.
34441         * lib/vasnprintf.c: Likewise.
34442         * lib/vma-iter.c: Likewise.
34443         * lib/wcsrtombs-state.c: Likewise.
34444         * m4/acl.m4: Likewise.
34445         * m4/acosl.m4: Likewise.
34446         * m4/asinl.m4: Likewise.
34447         * m4/atanl.m4: Likewise.
34448         * m4/c-stack.m4: Likewise.
34449         * m4/cosl.m4: Likewise.
34450         * m4/expl.m4: Likewise.
34451         * m4/extensions.m4: Likewise.
34452         * m4/fdatasync.m4: Likewise.
34453         * m4/fmal.m4: Likewise.
34454         * m4/frexp.m4: Likewise.
34455         * m4/frexpf.m4: Likewise.
34456         * m4/frexpl.m4: Likewise.
34457         * m4/fsusage.m4: Likewise.
34458         * m4/getdomainname.m4: Likewise.
34459         * m4/getloadavg.m4: Likewise.
34460         * m4/getopt.m4: Likewise.
34461         * m4/gettext.m4: Likewise.
34462         * m4/gnulib-common.m4: Likewise.
34463         * m4/intdiv0.m4: Likewise.
34464         * m4/intlmacosx.m4: Likewise.
34465         * m4/largefile.m4: Likewise.
34466         * m4/ldexpl.m4: Likewise.
34467         * m4/link-follow.m4: Likewise.
34468         * m4/locale-ar.m4: Likewise.
34469         * m4/locale-fr.m4: Likewise.
34470         * m4/locale-ja.m4: Likewise.
34471         * m4/locale-tr.m4: Likewise.
34472         * m4/locale-zh.m4: Likewise.
34473         * m4/locale_h.m4: Likewise.
34474         * m4/lock.m4: Likewise.
34475         * m4/logl.m4: Likewise.
34476         * m4/mathfunc.m4: Likewise.
34477         * m4/minus-zero.m4: Likewise.
34478         * m4/mktime.m4: Likewise.
34479         * m4/mmap-anon.m4: Likewise.
34480         * m4/multiarch.m4: Likewise.
34481         * m4/nanosleep.m4: Likewise.
34482         * m4/nocrash.m4: Likewise.
34483         * m4/poll.m4: Likewise.
34484         * m4/printf-frexpl.m4: Likewise.
34485         * m4/printf.m4: Likewise.
34486         * m4/signbit.m4: Likewise.
34487         * m4/sinl.m4: Likewise.
34488         * m4/sqrtl.m4: Likewise.
34489         * m4/strerror_r.m4: Likewise.
34490         * m4/tanl.m4: Likewise.
34491         * m4/threadlib.m4: Likewise.
34492         * m4/ttyname_r.m4: Likewise.
34493         * m4/unlink.m4: Likewise.
34494         * m4/visibility.m4: Likewise.
34495         * m4/wcwidth.m4: Likewise.
34496         * tests/minus-zero.h: Likewise.
34497         * tests/test-alloca-opt.c: Likewise.
34498         * tests/test-copy-acl.sh: Likewise.
34499         * tests/test-copy-file.sh: Likewise.
34500         * tests/test-fdatasync.c: Likewise.
34501         * tests/test-file-has-acl.sh: Likewise.
34502         * tests/test-flock.c: Likewise.
34503         * tests/test-fsync.c: Likewise.
34504         * tests/test-localename.c: Likewise.
34505         * tests/test-malloca.c: Likewise.
34506         * tests/test-nonblocking-pipe.h: Likewise.
34507         * tests/test-nonblocking-socket.h: Likewise.
34508         * tests/test-openpty.c: Likewise.
34509         * tests/test-posix_openpt.c: Likewise.
34510         * tests/test-ptsname.c: Likewise.
34511         * tests/test-ptsname_r.c: Likewise.
34512         * tests/test-sameacls.c: Likewise.
34513         * tests/test-select.h: Likewise.
34514         * tests/test-set-mode-acl.sh: Likewise.
34515         * tests/test-snprintf-posix.h: Likewise.
34516         * tests/test-sprintf-posix.h: Likewise.
34517         * tests/test-strtod.c: Likewise.
34518         * tests/test-time.c: Likewise.
34519         * tests/test-vasnprintf-posix.c: Likewise.
34520         * tests/test-vasprintf-posix.c: Likewise.
34521         * doc/acl-resources.txt: Likewise.
34522         * doc/**/*.texi: Likewise.
34523         Reported by Max Horn <max@quendi.de>.
34525 2012-06-22  Bruno Haible  <bruno@clisp.org>
34527         grantpt: Relax requirement regarding invalid file descriptors.
34528         * lib/grantpt.c: Don't include <fcntl.h>.
34529         (grantpt): Don't verify the validity of the file descriptor.
34530         * modules/grantpt (Depends-on): Remove fcntl-h.
34531         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34532         file descriptors.
34533         * doc/posix-functions/grantpt.texi: Document more platforms on which
34534         grantpt succeeds for invalid file descriptors.
34535         Reported by Rich Felker <dalias@aerifal.cx>.
34537 2012-06-22  Bruno Haible  <bruno@clisp.org>
34539         fbufmode test: Don't test unportable behaviour.
34540         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34541         (main): Invoke it three times.
34542         Reported by Szabolcs Nagy <nsz@port70.net>
34543         and Rich Felker <dalias@aerifal.cx>.
34545 2012-06-21  Bruno Haible  <bruno@clisp.org>
34547         gnulib-tool: Refactor inctests variable.
34548         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34549         (func_modules_transitive_closure,
34550         func_modules_transitive_closure_separately,
34551         func_import, func_create_testdir): Update.
34553         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34554         * gnulib-tool: Accept option --without-tests.
34555         (func_usage): Document --without-tests option. Rearrange.
34556         (inctests): Normalize according to the mode.
34557         * NEWS: Mention the change.
34558         Suggested by Simon Josefsson.
34560 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34562         parse-duration test: Avoid spurious output.
34563         * tests/test-parse-duration.sh: Reindent with leading tabs.
34565 2012-06-21  Jim Meyering  <meyering@redhat.com>
34567         maint: disable the strncpy prohibition
34568         * cfg.mk: Do not prohibit strncpy here.
34570 2012-06-21  Bruno Haible  <bruno@clisp.org>
34572         nonblocking: Avoid compilation error on mingw64.
34573         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34574         fscanf.
34575         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34576         * modules/vfscanf (configure.ac): Likewise.
34577         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34578         definition only if stdio.h has prepared it.
34579         Reported by Daniel P. Berrange <berrange@redhat.com>.
34581 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34583         gnulib-tool: Use readlink if it is available.
34584         * gnulib-tool (func_readlink): Choose function more appropriately.
34586 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34588         posixtm-tests: port to buggy compiler
34589         Problem reported by Simon Josefsson in
34590         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34591         * modules/posixtm-tests (Depends-on): Add stdint.
34592         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34593         Now of type int_least64_t, not int64_t, both because that's
34594         what INT64_C returns and because int_least64_t works even
34595         on 72-bit hosts.
34596         (T): Use INT64_C on constants outside the traditional int range,
34597         to work around compiler bug noted by Simon.
34599         mktime: fix integer overflow in 'configure'-time test
34600         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34601         after integer overflow.  Problem reported by Rich Felker in
34602         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34603         Also, don't look for further instances of a bug if we've already
34604         found one instance; this helps 'configure' run faster.
34606 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34608         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34609         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34610         GetVersionEx correctly.
34611         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34613 2012-06-20  Bruno Haible  <bruno@clisp.org>
34615         fdopen: Allow implementations that don't reject invalid fd arguments.
34616         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34617         succeeds.
34618         Reported by Rich Felker <dalias@aerifal.cx>.
34620 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34622         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34623         bring in LIBINTL.
34625 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34627         init.sh: do not rely on autoupated PWD
34628         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34629         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34630         Although Nelson's bug was not necessarily fixed by this patch,
34631         it seems wise to make the change for safety.
34632         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34633         automagically after 'cd'; this is not reliable on older shells.
34634         (setup_): Fail if we cannot cd to temporary directory.
34636 2012-06-19  Bruno Haible  <bruno@clisp.org>
34638         stat, fstat: Avoid warnings on mingw64.
34639         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34640         redefining.
34641         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34642         Reported by Daniel P. Berrange <berrange@redhat.com>.
34644 2012-06-19  Bruno Haible  <bruno@clisp.org>
34646         stdioext: Add support for musl libc.
34648         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34649         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34651         * m4/fseterr.m4: New file.
34652         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34653         function exists.
34654         * modules/fseterr (Files): Add m4/fseterr.m4.
34655         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34656         __fseterr does not exist.
34657         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34659         * lib/freadable.h: Update comment.
34661         * lib/fwritable.h: Update comment.
34663         * lib/freading.h: Update comment.
34665         * lib/fwriting.h: Update comment.
34667         * m4/freadahead.m4: New file.
34668         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34669         that function exists.
34670         * modules/freadahead (Files): Add m4/freadahead.m4.
34671         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34672         __freadahead does not exist.
34673         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34675         * m4/freadptr.m4: New file.
34676         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34677         function exists.
34678         * modules/freadptr (Files): Add m4/freadptr.m4.
34679         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34680         __freadptr does not exist.
34681         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34683         * m4/freadseek.m4: New file.
34684         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34685         exists.
34686         * modules/freadseek (Files): Add m4/freadseek.m4.
34687         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34689         * lib/fpurge.c (fpurge): Update comment.
34691         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34693 2012-06-19  Bruno Haible  <bruno@clisp.org>
34695         *printf-posix: Put more info into config.log.
34696         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34697         exit code into config.log.
34699 2012-06-19  Bruno Haible  <bruno@clisp.org>
34701         getopt-gnu: Fix exit code overflow in autoconf test.
34702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34703         to keep them below < 128.
34705 2012-06-17  Jim Meyering  <meyering@redhat.com>
34707         maint.mk: fix typo in code to derive GPG key at release time
34708         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34710 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34712         regex: avoid warning when pointers are not long
34713         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34714         and uintptr_t, not long, for portability to hosts where pointers and
34715         long have different sizes.  Issue noted by Daniel P. Berrange in
34716         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34717         and fix suggested by Bruno Haible in
34718         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34720 2012-06-17  Bruno Haible  <bruno@clisp.org>
34722         dummy: Relicense into the public domain.
34723         * modules/dummy (License): Set to "public domain".
34724         Suggested by Reuben Thomas.
34726 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34728         announce-gen: VPATH issues
34729         * build-aux/announce-gen (--srcdir): New option, used to trim the
34730         $srcdir part of the path from $builddir to NEWS.
34731         * top/maint.mk (announcement): Adjust.
34733 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34735         gnu-web-doc-update: VPATH builds
34736         * build-aux/gnu-web-doc-update (--builddir): New option.
34737         Revamp the handling of options.
34738         Prefer $(...) to `...`.
34739         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34740         the template, and it is GNU mktemp specific.
34741         Prefer set -e to long series of &&.
34742         Restore the initial git branch, not "master".
34743         Properly initialize submodules (don't rely only on bootstrap).
34744         Do not reconfigure blindly, use config.status.
34745         * top/README-release: Update instructions for gnu-web-doc-update.
34747 2012-06-11  Jim Meyering  <meyering@redhat.com>
34749         maint.mk: revert most of the previous change re "all these"
34750         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34751         For rationale, see the discussion at
34752         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34754 2012-06-10  Karl Berry  <karl@gnu.org>
34756         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34758         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34760 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34762         parse-duration: Relicense under LGPLv2+.
34763         * modules/parse-duration (License): Change to LGPLv2+.
34765 2012-06-10  Jim Meyering  <meyering@redhat.com>
34767         maint.mk: prohibit common grammar error: "all these"
34768         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34769         the list of prohibited word sequences.  It should be "all of these".
34770         * lib/tempname.c (__gen_tempname): Fix one of them.
34772 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34774         do-release-commit-and-tag: support VPATH builds
34775         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34776         (noteworthy): Defined earlier to factor its value.
34777         (noteworthy_stub): New.
34778         Use it to factor.
34779         (help_version): Split into...
34780         (help, version): these.
34781         Adjust the option processing part.
34782         Support "--option=value" in addition to "--option value".
34783         (builddir): New.
34784         (--builddir): New option.
34785         * top/README-release: Document this.
34786         Reword slightly so that the reader cannot understand that he
34787         has to do these steps before calling do-release-commit-and-tag.
34789 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34791         readme-release: also require announce-gen and maintainer-makefile
34792         * modules/readme-release (Depends-on): here.
34793         * modules/announce-gen, modules/do-release-commit-and-tag,
34794         modules/gnu-web-doc-update, modules/maintainer-makefile
34795         (Description): Point to readme-release.
34797 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34799         maint.mk: fix VPATH issues.
34800         * top/maint.mk (news-check): GNU Make understand $< very well.
34801         (release-prep): NEWS is in $(srcdir).
34803 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34805         readme-release: require the promoted modules.
34806         * modules/readme-release (Depends-on): Add
34807         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34808         in this text.
34810 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34811             Bruno Haible  <bruno@clisp.org>
34813         error, strerror-override: Support mingw64 from Fedora 17.
34814         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34815         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34816         EINPROGRESS.
34817         * lib/strerror-override.h (strerror_override): Test it.
34818         * lib/strerror-override.c (strerror_override): Likewise.
34819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34821 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34822             Bruno Haible  <bruno@clisp.org>
34824         error, strerror-override: Support mingw64 from Fedora 17.
34825         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34826         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34827         * lib/strerror-override.h (strerror_override): Test it.
34828         * lib/strerror-override.c (strerror_override): Likewise.
34830 2012-06-03  Bruno Haible  <bruno@clisp.org>
34832         error, strerror-override: Support new errno values from POSIX:2008.
34833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34834         ENOTRECOVERABLE.
34835         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34836         platforms.
34837         * lib/strerror-override.c (strerror_override): Conditionalize the
34838         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34839         * lib/strerror-override.h (strerror_override): Declare also if
34840         GNULIB_defined_EOWNERDEAD is defined.
34841         * tests/test-errno.c (e130, e131): New variables.
34842         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34843         ENOTRECOVERABLE.
34844         Reported by Paolo Bonzini.
34846 2012-05-31  Jim Meyering  <meyering@redhat.com>
34848         savewd: add missing dependency on sys_wait module
34849         * modules/savewd (Depends-on): Add sys_wait, needed at least
34850         for MSVC.  Report and suggested change by Michael Goffioul.
34852 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34854         system-quote-tests: port to CentOS 5
34855         Problem reported by Tom G. Christensen in
34856         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34857         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34859 2012-05-29  Jim Meyering  <meyering@redhat.com>
34861         maint: fix typos in comments and ChangeLog
34862         Culprits identified and fixed mostly automatically using these commands:
34863         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34864         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34865         using http://github.com/lyda/misspell-check
34866         * ChangeLog: Fix typos.
34867         * doc/solaris-versions: Likewise.
34868         * lib/regexec.c (re_search_stub): Likewise.
34869         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34871 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34873         manywarnings: remove duplicate -Wmultichar entry
34874         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34875         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34876         so keep the entry marked as documented.
34878 2012-05-27  Karl Berry  <karl@gnu.org>
34880         * config/srclist.txt (mktime.c): remove last libc sync,
34881         perhaps just temporarily.
34883 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34885         regex: don't assume uint64_t or uint32_t
34886         * lib/regcomp.c (init_word_char): Don't assume that the types
34887         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34888         them, and on some 32-bit compilers there is no uint64_t.
34889         Problem reported by Gianluigi Tiesi in
34890         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34892 2012-05-25  Jim Meyering  <meyering@redhat.com>
34894         maint.mk: add strncpy-prohibiting syntax-check rule
34895         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34897 2012-05-24  Jim Meyering  <meyering@redhat.com>
34899         maint.mk: compute $(gpg_key_ID) more portably
34900         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34901         That use of sed is not portable to some fringe systems.
34902         Reported by Paul Eggert in
34903         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34905 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34907         mktime: sync from glibc
34908         * config/srclist.txt: Uncomment mktime.c.
34909         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34910         First, indent with tabs, since glibc uses tabs and doesn't want to
34911         change and we'd rather be identical to glibc.  Also, two small
34912         coding changes:
34913         (isdst_differ): Use &&, not &, as && is the usual style.
34914         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34915         for clarity.
34917 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34919         announce-gen: du -h is more portable than du --human
34920         * build-aux/announce-gen (sizes): Invoke du with -h instead
34921         of --human.  Accept leading white space in its output.
34923 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34925         announce-gen: Improve diagnostics.
34926         * build-aux/announce-gen: When parsing command line options,
34927         prefer "announce-gen: option --release-type requires an argument"
34928         to "Option release-type requires an argument".
34930 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34932         maint.mk: gpg_key_ID: use sed more portably
34933         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34934         the closing brace.
34935         (refresh-po): Fuse two sed invocations into one.
34937 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34939         gitlog-to-changelog: support the log message format used in Bison.
34940         * build-aux/gitlog-to-changelog: Support --strip-tab and
34941         --strip-cherry-picked.
34943 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34945         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34946         the rest of the current time slice to another thread in the current
34947         process. So if the thread that feeds the file decscriptor we're
34948         polling is not in the current process, we get busy-waiting.
34949         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34950         Patch from Theodore Leblond.
34951         * lib/select.c: Split polling out of the loop that sets the output
34952         fd_sets.  Check for zero result and loop if the wait timeout is
34953         infinite.
34955 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34957         select: Fix build error on IRIX 6.5.
34958         * lib/select.c: Include stddef.h for NULL.
34960 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34962         gc: fix libgcrypt detection on older machines.
34963         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34964         copyright years because the file has been distributed every year
34965         since it was created.
34967 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34969         crypto: fix bug in large buffer handling
34970         Problem reported by Serge Belyshev for glibc in
34971         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
34972         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
34973         * lib/md4.c (md4_process_block):
34974         * lib/md5.c (md5_process_block):
34975         * lib/sha1.c (sha1_process_block):
34976         * lib/sha256.c (sha256_process_block):
34977         Don't assume the buffer length is less than 2**32.
34978         * lib/sha512.c (sha512_process_block): Likewise.
34979         Here, the bug is present only in the rare case where the host does
34980         not support uint64_t or where size_t is wider than 64 bits.
34981         Use u64size to work around the problems.
34982         * lib/u64.h (u64size): New macro.
34984 2012-05-15  Pádraig Brady  <P@draigBrady.com>
34986         fsusage: fix block size returned on older Linux 2.6
34988         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
34989         which is available since Linux 2.6.
34990         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
34991         when the member is available so it can be used as a fallback.
34992         * doc/posix-functions/statvfs.texi: Mention the hang issue
34993         on Linux < 2.6.36.
34995 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34997         bootstrap: suppress stderr chatter
34998         * build-aux/bootstrap (insert_sorted_if_absent, main program):
34999         Omit unnecessary chatter to stderr.  The main program chatter
35000         was there only inadvertantly.
35002         bootstrap: .gitignore files created by autopoint, libtool
35003         I ran into this problem when bootstrapping the latest diffutils.
35004         After './bootstrap', 'git status' reported lots of untracked files
35005         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35006         autopoint and do not need to be version-controlled.
35007         * build-aux/bootstrap: Put into .gitignore the files that
35008         autopoint and libtool create, by keeping track of files that exist
35009         after but not before these programs are run.
35010         (version_controlled_file): Move up.  2nd arg is now full file
35011         name, not base name; this is more convenient.  Put CVS at the end,
35012         as it's now somewhat deprecated.
35014 2012-05-14  Jim Meyering  <meyering@redhat.com>
35016         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35017         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35018         definition.  Reported by Bruno Haible.
35020 2012-05-13  Bruno Haible  <bruno@clisp.org>
35021             Paul Eggert  <eggert@cs.ucla.edu>
35023         binary-io: Define set_binary_mode function.
35024         * lib/binary-io.h (set_binary_mode): New function.
35025         (SET_BINARY): Define in terms of set_binary_mode.
35026         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35027         * tests/test-binary-io.c (main): Accept an argument, and test either
35028         set_binary_mode or SET_BINARY depending on the argument.
35029         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35030         argument. Clean up also t-bin-out0.tmp.
35032 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35034         bootstrap: take advantage of POSIX shell features
35036         The 'bootstrap' script offered by Gnulib script already uses POSIX
35037         shell features (like $((...)) arithmetic expansions) that are not
35038         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35039         means that bootstrap must already be run using a proper POSIX shell,
35040         which will thus provide more features, like ${var#pattern} parameter
35041         expansion or inversion of a command exit status with '!'.  We can
35042         thus use these features to improve the clarity and the performances
35043         of the bootstrap script.
35045         Suggested by Eric Blake.
35047         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35048         of sed/expr plus command substitutions, to save some forks.  While
35049         we are at it, prefer the POSIX $(...) form of command substitution,
35050         rather than the legacy form `...` (since the former is visually
35051         clearer and interacts better with quoting), and prefer the idiom:
35052           "if ! CMD; then ACTION ..."
35053         over the idiom:
35054           "if CMD; then :; else ACTION ..."
35055         which was required by legacy Bourne shells not supporting '!'.
35057 2012-05-12  Bruno Haible  <bruno@clisp.org>
35059         system-quote: Add more comments.
35060         * lib/system-quote.h: Add more comments about wilcards and limitations.
35061         Suggested by Eli Zaretskii <eliz@gnu.org>.
35063         sh-quote, system-quote: Add comments about wildcards.
35064         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35065         * lib/system-quote.h: Likewise.
35066         Reported by Eli Zaretskii <eliz@gnu.org>.
35068 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35070         fsusage: check for GNU/Linux statvfs problem dynamically
35071         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35072         Define STAT_STATFS2_BSIZE too, since in this case the code now
35073         checks dynamically whether statvfs is reliable, falling back on
35074         Linux-style statfs otherwise.
35075         (statvfs_works): New function, for dynamically testing statvfs.
35076         (get_fs_usage) [STAT_STATVFS]: Use it.
35077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
35078         statvfs on GNU/Linux hosts, since it's now done dynamically.
35080 2012-05-10  Bruno Haible  <bruno@clisp.org>
35082         system-quote, execute, spawn-pipe: Escape '?' on Windows.
35083         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
35084         '?' character.
35085         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
35086         * tests/test-system-quote-main.c (check_all): Check also strings like
35087         "??????????".
35088         Reported by Eli Zaretskii <eliz@gnu.org>.
35090 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35092         _Noreturn: port config.h to gcc -Wundef
35093         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
35094         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
35095         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
35097 2012-05-10  Bruno Haible  <bruno@clisp.org>
35099         system-quote: Refactor.
35100         * lib/system-quote.h (system_quote_copy): Fix comment.
35101         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35102         New functions, extracted from system_quote_copy.
35103         (system_quote_length, system_quote_copy): Use these functions.
35104         Reported by Paul Eggert.
35106 2012-05-08  Bruno Haible  <bruno@clisp.org>
35108         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35109         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35111 2012-05-08  Bruno Haible  <bruno@clisp.org>
35113         Tests for module 'system-quote'.
35114         * modules/system-quote-tests: New file.
35115         * tests/test-system-quote.sh: New file.
35116         * tests/test-system-quote-main.c: New file.
35117         * tests/test-system-quote-child.c: New file.
35119         New module 'system-quote'.
35120         * lib/system-quote.h: New file.
35121         * lib/system-quote.c: New file.
35122         * modules/system-quote: New file.
35124 2012-05-08  Bruno Haible  <bruno@clisp.org>
35126         sh-quote: Make C++ safe and allow multiple inclusion.
35127         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35128         declarations in extern "C".
35130 2012-05-08  Bruno Haible  <bruno@clisp.org>
35132         sh-quote tests: Make tests stricter.
35133         * tests/test-sh-quote.c (check_one): Check the return value of
35134         shell_quote_copy.
35135         (main): Check a string with a CR character. Check a string that
35136         contains UCHAR_MAX.
35138 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35140         warnings.m4: provide a means to specify the program to compile.
35141         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35142         (gl_WARN_ADD): here.
35143         Use gl_AS_VAR_APPEND.
35144         Support an argument to specify the program to compile.
35145         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35146         AC_SUBST the WARN_CFLAGS when they are used.
35147         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35148         leave this to gl_WARN_ADD.
35150 2012-05-08  Eric Blake  <eblake@redhat.com>
35152         doc: recommendations on gettext version
35153         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35154         choice between versions.
35155         * DEPENDENCIES (gettext): Cover both approaches.
35157 2012-05-08  Jim Meyering  <meyering@redhat.com>
35159         init.sh: explain why EXEEXT support uses aliases rather than functions
35160         * tests/init.sh: Add a comment.
35162         init.sh: don't let bash aliases interfere with tests
35163         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35164         is bash.  This avoids problems for those who alias standard commands to
35165         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35166         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35168 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35170         stdint: be more consistent with glibc, SunOS libc
35171         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35172         (gl_int_fast16_t, gl_uint_fast16_t)
35173         (gl_int_fast32_t, gl_uint_fast32_t)
35174         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35175         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35176         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35177         Be consistent with glibc by default, and with SunOS 5.10 and later
35178         if __sun is defined.  This lessens the likelihood of clashes if
35179         code compiled for older hosts is combined with code compiled for
35180         newer ones.  Problem reported by Niels Möller in
35181         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35183 2012-05-07  Eric Blake  <eblake@redhat.com>
35185         isatty: relax license to LGPLv2+
35186         * modules/isatty (License): Relax license.
35188 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35190         stat-size: comment fix
35191         * lib/stat-size.h: Remove obsolete comment about indenting.
35193 2012-05-06  Bruno Haible  <bruno@clisp.org>
35195         Tests for module 'sh-quote'.
35196         * modules/sh-quote-tests: New file.
35197         * tests/test-sh-quote.c: New file.
35199 2012-05-06  Bruno Haible  <bruno@clisp.org>
35201         sh-quote: Improve shell_quote_argv's signature.
35202         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35203         * lib/sh-quote.c (shell_quote_argv): Likewise.
35205 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35207         stdint: document issues with int_fast8_t etc.
35208         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35209         stdint.h substitutes may define these types differently.  See
35210         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35212 2012-05-05  Bruno Haible  <bruno@clisp.org>
35214         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35216         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35217         or 'guessing no (mishandles large arguments)'.
35219 2012-05-05  Bruno Haible  <bruno@clisp.org>
35221         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35222         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35223         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35224         set gl_cv_func_link_follows_symlink to "guessing no".
35226 2012-05-05  Bruno Haible  <bruno@clisp.org>
35228         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35229         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35230         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35231         "guessing no".
35232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35234 2012-05-05  Bruno Haible  <bruno@clisp.org>
35236         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35237         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35238         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35239         set gl_cv_struct_dirent_d_ino to "guessing yes".
35241 2012-05-05  Bruno Haible  <bruno@clisp.org>
35243         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35244         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35245         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35246         "guessing yes".
35248 2012-05-05  Bruno Haible  <bruno@clisp.org>
35250         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35251         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35252         compiling to a glibc system, set gl_cv_func_signbit and
35253         gl_cv_func_signbit_gcc to "guessing yes".
35255 2012-05-05  Bruno Haible  <bruno@clisp.org>
35257         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35258         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35259         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35260         to "guessing yes".
35261         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35262         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35264 2012-05-05  Bruno Haible  <bruno@clisp.org>
35266         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35267         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35268         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35269         gl_cv_func_realpath_works to "guessing yes".
35271 2012-05-05  Bruno Haible  <bruno@clisp.org>
35273         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35274         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35275         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35277 2012-05-04  Bruno Haible  <bruno@clisp.org>
35279         Tweak last commit.
35280         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35281         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35283 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35285         unistd_h: make it easier to avoid sys_types_h
35286         This is useful for Emacs, which has its own method of porting to
35287         Windows, and which therefore does not need the sys_types_h module.
35288         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35289         code moved here from gl_SYS_TYPES_H.
35290         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35291         using the code directly.
35292         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35293         gl_SYS_TYPES_H.
35294         * modules/sys_types (Files):
35295         * modules/unistd (Files): Add m4/off_t.m4.
35297 2012-05-03  Bruno Haible  <bruno@clisp.org>
35299         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35300         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35301         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35302         "guessing yes" or "guessing no".
35303         (gl_FUNC_LSTAT): Update.
35304         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35305         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35306         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35308 2012-05-03  Bruno Haible  <bruno@clisp.org>
35310         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35311         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35312         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35313         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35314         cross-compiling, choose the first alternative on glibc systems.
35315         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35317 2012-05-03  Bruno Haible  <bruno@clisp.org>
35319         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35320         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35321         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35323 2012-05-03  Bruno Haible  <bruno@clisp.org>
35325         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35326         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35328 2012-05-03  Bruno Haible  <bruno@clisp.org>
35330         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35331         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35332         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35333         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35334         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35335         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35336         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35337         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35338         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35339         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35340         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35341         gl_cv_func_chown_ctime_works to "guessing yes".
35342         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35343         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35344         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35345         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35346         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35348         compiling to glibc systems, set gl_cv_func_open_directory_works to
35349         "guessing yes".
35350         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35351         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35352         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35353         "guessing yes".
35354         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35355         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35356         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35357         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35358         "guessing yes".
35359         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35360         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35361         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35362         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35363         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35364         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35365         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35366         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35367         "guessing yes".
35368         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35369         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35370         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35371         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35372         "guessing yes".
35373         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35374         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35375         "guessing yes".
35376         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35377         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35378         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35379         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35380         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35381         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35382         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35383         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35384         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35385         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35386         "guessing yes".
35387         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35388         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35389         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35390         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35391         "guessing yes".
35392         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35393         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35394         "guessing yes".
35395         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35396         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35397         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35398         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35399         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35400         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35401         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35402         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35403         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35404         "guessing yes".
35405         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35406         compiling to glibc systems, set gl_cv_func_mknod_works to
35407         "guessing yes".
35408         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35409         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35410         "guessing yes".
35411         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35412         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35413         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35414         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35415         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35416         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35417         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35418         compiling to glibc systems, set gl_cv_func_svid_putenv to
35419         "guessing yes".
35420         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35421         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35422         "guessing yes".
35423         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35424         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35425         "guessing yes".
35426         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35427         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35428         to "guessing yes".
35429         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35430         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35431         to "guessing yes".
35432         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35433         compiling to glibc systems, set gl_cv_func_rmdir_works to
35434         "guessing yes".
35435         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35436         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35437         gl_cv_func_unlink_parent_fails to "guessing yes".
35438         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35439         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35440         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35441         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35442         gl_cv_func_rename_dest_works to "guessing yes".
35443         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35444         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35445         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35446         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35447         "guessing yes".
35448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35449         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35450         "guessing yes".
35451         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35452         compiling to glibc systems, set gl_cv_func_setenv_works to
35453         "guessing yes".
35454         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35455         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35456         "guessing yes".
35457         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35458         compiling to glibc systems, set gl_cv_func_sleep_works to
35459         "guessing yes".
35460         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35461         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35462         "guessing yes".
35463         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35464         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35465         "guessing yes".
35466         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35467         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35468         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35469         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35470         "guessing yes".
35471         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35472         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35473         "guessing yes".
35474         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35475         compiling to glibc systems, set gl_cv_func_usleep_works to
35476         "guessing yes".
35477         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35478         compiling to glibc systems, set gl_cv_func_futimesat_works to
35479         "guessing yes".
35481 2012-05-03  Bruno Haible  <bruno@clisp.org>
35483         Say "guessing yes" or "guessing no" when cross-compiling.
35484         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35485         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35487         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35488         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35489         am_cv_func_working_getline to "guessing yes" or "guessing no".
35490         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35491         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35492         (gl_FUNC_MEMMEM): When cross-compiling, set
35493         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35495         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35496         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35497         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35498         "guessing no".
35499         (gl_FUNC_STRCASESTR): When cross-compiling, set
35500         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35501         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35502         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35503         (gl_FUNC_STRSTR): When cross-compiling, set
35504         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35505         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35506         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35507         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35508         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35510 2012-05-01  Bruno Haible  <bruno@clisp.org>
35512         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35513         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35514         * build-aux/reloc-ldflags: Likewise.
35515         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35517 2012-05-01  Bruno Haible  <bruno@clisp.org>
35519         gnulib-tool: Remove transitional code.
35520         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35521         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35523 2012-05-01  Bruno Haible  <bruno@clisp.org>
35525         getcwd: Fix misindentation.
35526         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35528 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35530         exclude: process exclude and include directives in order
35531         This restores the pre-2009 behavior, and is part of a fix of a
35532         grep bug reported by Quentin Arce in
35533         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35534         * lib/exclude.c (struct exclude): Remove 'tail' member.
35535         (new_exclude_segment): Prepend the new segment instead of appending.
35536         Return void, since that's now more convenient.
35537         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35538         (file_name_matches): Renamed from excluded_file_name_p.
35539         (file_pattern_matches, file_name_matches):
35540         Return true if the pattern matches, not if it excludes.
35541         All callers changed.
35542         (excluded_file_name): Process the list in reverse order;
35543         since the list is now reversed this restores the pre-2009 behavior.
35544         (add_exclude): Adjust to new reversed-order list.  Use local var
35545         rather than macro, for clarity.
35546         * tests/test-exclude7.sh: Adjust to corrected behavior.
35548         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35549         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35550         it's not possible here.  Handle the case of \ at end of pattern
35551         without dumping core.
35552         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35554         _Noreturn: future-proof non-GNU and non-MSVC compilers
35555         * build-aux/snippet/_Noreturn.h (_Noreturn):
35556         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35557         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35558         C11 or later.  This is more likely to work with random future C
35559         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35560         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35562         exclude: handle wildcards with FNM_EXTMATCH
35563         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35564         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35565         comment that "has wildcards" really means "has or may have
35566         wildcards".  Simplify by avoiding the need to call strcspn.
35568 2012-04-29  Bruno Haible  <bruno@clisp.org>
35570         gnulib-tool: Fix list of authors.
35571         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35573 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35575         bootstrap: support Automake-NG in $buildreq
35576         * bootstrap (check_versions): Handle automake and aclocal from
35577         Automake-NG specially.  They can be specified as respectively
35578         the "automake-ng" and "aclocal-ng" requirements.
35580 2012-04-25  Eric Blake  <eblake@redhat.com>
35582         bootstrap: only force latest Makefile.in.in for gettext module
35583         * build-aux/bootstrap (with_gettext): Only install latest
35584         Makefile.in.in for projects requesting bleeding edge gettext.
35586 2012-04-22  Bruno Haible  <bruno@clisp.org>
35588         doc: Mention reason for replacement on glibc/Linux systems.
35589         * doc/posix-functions/dprintf.texi: Mention the problem with special
35590         'long double' values.
35591         * doc/posix-functions/fprintf.texi: Likewise.
35592         * doc/posix-functions/printf.texi: Likewise.
35593         * doc/posix-functions/snprintf.texi: Likewise.
35594         * doc/posix-functions/sprintf.texi: Likewise.
35595         * doc/posix-functions/vdprintf.texi: Likewise.
35596         * doc/posix-functions/vfprintf.texi: Likewise.
35597         * doc/posix-functions/vprintf.texi: Likewise.
35598         * doc/posix-functions/vsnprintf.texi: Likewise.
35599         * doc/posix-functions/vsprintf.texi: Likewise.
35600         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35601         platforms with F_DUPFD_CLOEXEC problems.
35602         * doc/posix-functions/glob.texi: Mention which platforms are affected
35603         by the problem with symbolic links.
35604         * doc/posix-functions/linkat.texi: Mention the problem with
35605         AT_SYMLINK_FOLLOW on Linux.
35607 2012-04-22  Bruno Haible  <bruno@clisp.org>
35609         pwrite: Don't replace on all platforms.
35610         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35612 2012-04-22  Bruno Haible  <bruno@clisp.org>
35614         rint* tests: Avoid gcc warnings.
35615         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35616         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35617         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35619 2012-04-21  Bruno Haible  <bruno@clisp.org>
35621         users.txt: Update.
35622         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35623         switched from CVS to git, bzr, or svn.
35625 2012-04-21  Bruno Haible  <bruno@clisp.org>
35627         Large File Support for native Windows platforms.
35629         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35630         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35632         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35633         type.
35634         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35635         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35636         * doc/posix-headers/sys_types.texi: Mention the effect of the
35637         'largefile' module.
35639         * lib/fcntl.in.h: Add comments about off_t.
35640         * modules/fcntl-h (Depends-on): Add sys_types.
35642         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35643         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35644         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35645         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35646         * modules/unistd (Depends-on): Add sys_types.
35647         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35649         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35650         instead of lseek.
35651         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35652         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35653         * modules/lseek (Depends-on): Add sys_types.
35655         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35656         msvc-nothrow.h.
35657         (SetFileSize): New function.
35658         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35659         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35660         if Large File Support is requested.
35661         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35662         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35664         * lib/stdio.in.h: Add comments about off_t.
35665         * modules/stdio (Depends-on): Add sys_types.
35667         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35668         instead of ftello.
35669         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35670         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35671         (gl_PREREQ_FTELLO): New macro.
35672         * modules/ftello (Depends-on): Add sys_types.
35673         (configure.ac): Incoke gl_PREREQ_FTELLO.
35675         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35676         instead of fseeko.
35677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35678         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35679         (gl_PREREQ_FSEEKO): New macro.
35680         * modules/fseeko (Depends-on): Add sys_types.
35681         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35683         * lib/sys_stat.in.h: Add comments about off_t.
35684         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35685         64-bit integer for st_size in 'struct stat'.
35686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35687         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35688         * modules/sys_stat (Depends-on): Add sys_types.
35689         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35691         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35692         instead of stat or _stat.
35694         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35695         'struct _stati64' instead of fstat and 'struct stat'.
35696         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35697         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35699         Reported by Ray Satiro <raysatiro@yahoo.com>.
35701 2012-04-19  Eric Blake  <eblake@redhat.com>
35703         bootstrap: accommodate older libtool
35704         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35705         Reported by Daniel P. Berrange.
35707 2012-04-19  Jim Meyering  <meyering@redhat.com>
35709         announce-gen: avoid failure due to lack of Digest::SHA1
35710         Even with the preferred Digest::SHA available, this script
35711         would fail when the backup module, Digest::SHA1, was not installed.
35712         * build-aux/announce-gen: Quote the conditional use of "use".
35713         Reported by Reuben Thomas in:
35714         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35716         bootstrap: don't let a user's CDPATH setting affect this script
35717         When CDPATH is set, cd will sometimes generate output.
35718         When "cd" is run in a subshell whose output matters, that
35719         surprising-to-some output can cause malfunction.
35720         Unsetting CDPATH turns off this shell "feature."
35721         * build-aux/bootstrap (CDPATH): Unset.
35722         Reported by Reuben Thomas in:
35723         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35724         and inspired by his patch here:
35725         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35727 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35728         and Jim Meyering  <meyering@redhat.com>
35730         maint.mk: catch "see @xref{}" and similar
35731         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35732         prohibit "See also @xref{", "Also see @pxref{", and similar.
35734 2012-04-16  Jim Meyering  <meyering@redhat.com>
35736         bootstrap: really use gnulib's po/Makefile.in.in
35737         * build-aux/bootstrap: Correct the source file name in previous change.
35738         Reported by Akim Demaille.
35740         configmake: correct minor inconsistency in Makefile rule
35741         * modules/configmake (Makefile.am): All other rules like this one
35742         run the final "mv -f ..." in the same backslash-continued command
35743         as the one that does everything else.  This one put the mv -f ...
35744         command on a separate, non-backslash-continued line.
35745         Make it like the others.
35747         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35748         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35749         the one from gettext.  Reported by Akim Demaille.
35751 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35753         Fix recursion of install-* into po directories.
35754         Bison's install-pdf bug reported by Hans Aberg at
35755         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35756         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35757         (install-info, install-pdf, install-ps): New targets.
35759 2012-04-16  Jim Meyering  <meyering@redhat.com>
35761         maint: avoid spurious "make sc_maint" failure
35762         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35763         exempt all *.class file names, for lib/javaversion.class.
35765 2012-04-15  Bruno Haible  <bruno@clisp.org>
35767         lseek: Make configure test independent of environment.
35768         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35769         Windows, we know that lseek() on pipes is broken; skip the runtime
35770         test.
35772 2012-04-14  Bruno Haible  <bruno@clisp.org>
35774         stat: Bypass buggy override in mingw64.
35775         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35776         * lib/stat.c (stat) [mingw64]: Define to _stat.
35777         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35779 2012-04-14  Bruno Haible  <bruno@clisp.org>
35781         pathmax: Fix compilation error on MSVC 9.
35782         * modules/pathmax (Depends-on): Add unistd.
35784 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35786         README: document pointer comparison assumption
35787         * README (Portability guidelines): Document assumption about
35788         pointer comparisons, in response to a recent bug-gnulib comment by
35789         Jeffrey Kegler.
35791 2012-04-12  Bruno Haible  <bruno@clisp.org>
35793         Tests for module 'getrusage'.
35794         * modules/getrusage-tests: New file.
35795         * tests/test-getrusage.c: New file.
35797         New module 'getrusage'.
35798         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35799         warn-on-use.h.
35800         (getrusage): New declaration.
35801         * lib/getrusage.c: New file.
35802         * m4/getrusage.m4: New file.
35803         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35804         is declared.
35805         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35806         HAVE_GETRUSAGE.
35807         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35808         snippet/c++defs, snippet/warn-on-use.
35809         (Makefile.am): Update generation of sys/resource.h. Substitute
35810         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35811         * modules/getrusage: New file.
35812         * doc/posix-functions/getrusage.texi: Mention the new module.
35814 2012-04-12  Bruno Haible  <bruno@clisp.org>
35816         Tests for module 'sys_resource'.
35817         * modules/sys_resource-tests: New file.
35818         * tests/test-sys_resource.c: New file.
35820         New module 'sys_resource'.
35821         * lib/sys_resource.in.h: New file.
35822         * m4/sys_resource_h.m4: New file.
35823         * modules/sys_resource: New file.
35824         * doc/posix-headers/sys_resource.texi: Mention the new module.
35826 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35828         ioctl: Fix compilation error on mingw.
35829         * lib/ioctl.c: Include <windows.h>.
35830         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35832 2012-04-04  Jim Meyering  <meyering@redhat.com>
35834         regex: correct #pragma guard expression
35835         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35836         not 4.3.  Correct its cpp guard expression.
35838 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35840         regex: remove unnecessary type punning
35841         Problem reported by Vladimir Serbinenko in
35842         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35843         * lib/regex.h (struct re_pattern_buffer): Change the type of
35844         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35845         Fix comment to match code.
35846         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35847         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35848         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35849         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35850         (set_regs):
35851         Omit no-longer-necessary casts.
35853 2012-04-03  Bruno Haible  <bruno@clisp.org>
35855         Tests for module 'ilogbl'.
35856         * modules/ilogbl-tests: New file.
35857         * tests/test-ilogbl.c: New file.
35859         New module 'ilogbl'.
35860         * lib/math.in.h (ilogbl): New declaration.
35861         * lib/ilogbl.c: New file.
35862         * m4/ilogbl.m4: New file.
35863         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35865         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35866         Split sed invocation, to avoid the limit of 100 substitutions of
35867         HP-UX 'sed'.
35868         * modules/ilogbl: New file.
35869         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35870         * doc/posix-functions/ilogbl.texi: Mention the new module.
35872 2012-04-03  Bruno Haible  <bruno@clisp.org>
35874         Tests for module 'ilogbf'.
35875         * modules/ilogbf-tests: New file.
35876         * tests/test-ilogbf.c: New file.
35878         New module 'ilogbf'.
35879         * lib/math.in.h (ilogbf): New declaration.
35880         * lib/ilogbf.c: New file.
35881         * m4/ilogbf.m4: New file.
35882         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35884         REPLACE_ILOGBF.
35885         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35886         REPLACE_ILOGBF.
35887         * modules/ilogbf: New file.
35888         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35889         * doc/posix-functions/ilogbf.texi: Mention the new module.
35891 2012-04-03  Bruno Haible  <bruno@clisp.org>
35893         Tests for module 'ilogb'.
35894         * modules/ilogb-tests: New file.
35895         * tests/test-ilogb.c: New file.
35896         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35897         tests/test-logb-ieee.h.
35899         New module 'ilogb'.
35900         * lib/math.in.h (ilogb): New declaration.
35901         * lib/ilogb.c: New file.
35902         * m4/ilogb.m4: New file.
35903         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35905         REPLACE_ILOGB.
35906         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35907         REPLACE_ILOGB.
35908         * modules/ilogb: New file.
35909         * tests/test-math-c++.cc: Check the declaration of ilogb.
35910         * doc/posix-functions/ilogb.texi: Mention the new module.
35912 2012-04-03  Bruno Haible  <bruno@clisp.org>
35914         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35915         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35916         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35917         (main): Check their values.
35918         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35919         problem.
35921 2012-04-03  Bruno Haible  <bruno@clisp.org>
35923         Tests for module 'logbl-ieee'.
35924         * modules/logbl-ieee-tests: New file.
35925         * tests/test-logbl-ieee.c: New file.
35927         New module 'logbl-ieee'.
35928         * modules/logbl-ieee: New file.
35930         Tests for module 'logb-ieee'.
35931         * modules/logb-ieee-tests: New file.
35932         * tests/test-logb-ieee.c: New file.
35934         New module 'logb-ieee'.
35935         * modules/logb-ieee: New file.
35937         Tests for module 'logbf-ieee'.
35938         * modules/logbf-ieee-tests: New file.
35939         * tests/test-logbf-ieee.c: New file.
35940         * tests/test-logb-ieee.h: New file.
35942         New module 'logbf-ieee'.
35943         * modules/logbf-ieee: New file.
35945 2012-04-03  Bruno Haible  <bruno@clisp.org>
35947         Tests for module 'logbl'.
35948         * modules/logbl-tests: New file.
35949         * tests/test-logbl.c: New file.
35951         New module 'logbl'.
35952         * lib/math.in.h (logbl): New declaration.
35953         * lib/logbl.c: New file.
35954         * m4/logbl.m4: New file.
35955         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35957         REPLACE_LOGBL.
35958         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35959         REPLACE_LOGBL.
35960         * modules/logbl: New file.
35961         * tests/test-math-c++.cc: Check the declaration of logbl.
35962         * doc/posix-functions/logbl.texi: Mention the new module.
35964 2012-04-02  Bruno Haible  <bruno@clisp.org>
35966         Tests for module 'logbf'.
35967         * modules/logbf-tests: New file.
35968         * tests/test-logbf.c: New file.
35970         New module 'logbf'.
35971         * lib/math.in.h (logbf): New declaration.
35972         * lib/logbf.c: New file.
35973         * m4/logbf.m4: New file.
35974         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
35975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
35976         REPLACE_LOGBF.
35977         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
35978         REPLACE_LOGBF.
35979         * modules/logbf: New file.
35980         * tests/test-math-c++.cc: Check the declaration of logbf.
35981         * doc/posix-functions/logbf.texi: Mention the new module.
35983 2012-04-02  Bruno Haible  <bruno@clisp.org>
35985         logb tests: More tests.
35986         * tests/test-logb.h: New file, based on tests/test-logb.c and
35987         tests/test-frexp.h.
35988         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
35989         (main): Just invoke test_function.
35990         * modules/logb-tests (Files): Add tests/test-logb.h,
35991         tests/minus-zero.h, tests/randomd.c.
35992         (Makefile.am): Add randomd.c to test_logb_SOURCES.
35994         logb: Provide replacement and workarounds.
35995         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
35996         is 1.
35997         * lib/logb.c: New file.
35998         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
35999         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36001         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36002         * modules/logb (Files): Add lib/logb.c.
36003         (Depends-on): Add isfinite, frexp, isnand.
36004         (configure.ac): Compile the replacement code logb.c if needed.
36005         * tests/test-math-c++.cc: Check the declaration of logb.
36006         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36007         with subnormal numbers.
36009 2012-04-02  Bruno Haible  <bruno@clisp.org>
36011         log10* tests: Speed up.
36012         * tests/test-log10.h (test_function): Reduce amount of random numbers
36013         to test.
36015 2012-04-01  Bruno Haible  <bruno@clisp.org>
36017         logf-ieee: Fix test whether logf works.
36018         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36020 2012-04-01  Bruno Haible  <bruno@clisp.org>
36022         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36023         * lib/log10l.c: Include <float.h>
36024         (log10l): On IRIX, normalize the +Infinity value.
36025         * modules/log10l (Depends-on): Add 'float'.
36026         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36027         +Infinity.
36029         log10f-ieee: Work around test failure on NetBSD 5.1.
36030         * m4/log10f-ieee.m4: New file.
36031         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36032         test whether log10f works with a negative argument. Replace it if not.
36033         * lib/log10f.c (log10f): For negative arguments, return NaN.
36034         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36035         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36036         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36038         log10f-ieee: Work around test failure on Solaris 9.
36039         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36040         (configure.ac): Require gl_FUNC_LOG10F.
36042         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36043         * m4/log10-ieee.m4: New file.
36044         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36045         whether log10 works with a negative argument. Replace it if not.
36046         * lib/log10.c (log10): For negative arguments, return NaN.
36047         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36048         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36049         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36051         Tests for module 'log10l-ieee'.
36052         * modules/log10l-ieee-tests: New file.
36053         * tests/test-log10l-ieee.c: New file.
36055         New module 'log10l-ieee'.
36056         * modules/log10l-ieee: New file.
36058         Tests for module 'log10-ieee'.
36059         * modules/log10-ieee-tests: New file.
36060         * tests/test-log10-ieee.c: New file.
36062         New module 'log10-ieee'.
36063         * modules/log10-ieee: New file.
36065         Tests for module 'log10f-ieee'.
36066         * modules/log10f-ieee-tests: New file.
36067         * tests/test-log10f-ieee.c: New file.
36068         * tests/test-log10-ieee.h: New file.
36070         New module 'log10f-ieee'.
36071         * modules/log10f-ieee: New file.
36073 2012-04-01  Bruno Haible  <bruno@clisp.org>
36075         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
36076         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
36077         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
36078         workaround.
36079         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
36080         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
36081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
36082         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
36083         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
36084         (Depends-on): Update conditions.
36085         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
36086         IRIX 6.5, OSF/1 5.1 problems.
36088 2012-04-01  Bruno Haible  <bruno@clisp.org>
36090         log10f: Work around OSF/1 5.1 bug.
36091         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
36092         * lib/log10f.c (log10f): If logf exists, use it and provide just the
36093         workaround.
36094         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
36095         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
36096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
36097         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
36098         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
36099         (Depends-on): Update conditions.
36100         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
36102 2012-04-01  Bruno Haible  <bruno@clisp.org>
36104         log10: Work around OSF/1 5.1 bug.
36105         * lib/math.in.h (log10): New declaration.
36106         * lib/log10.c: New file.
36107         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
36108         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36109         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36111         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36112         * modules/log10 (Files): Add lib/log10.c.
36113         (Depends-on): Add math.
36114         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36115         * tests/test-math-c++.cc: Check the declaration of log10.
36116         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36118 2012-03-31  Bruno Haible  <bruno@clisp.org>
36120         log10l tests: More tests.
36121         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36122         tests/minus-zero.h, tests/randoml.c.
36123         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36124         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36125         (main): Invoke test_function.
36127         log10f tests: More tests.
36128         * modules/log10f-tests (Files): Add tests/test-log10.h,
36129         tests/minus-zero.h, tests/randomf.c.
36130         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36131         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36132         (main): Invoke test_function.
36134         log10 tests: More tests.
36135         * tests/test-log10.h: New file.
36136         * modules/log10-tests (Files): Add tests/test-log10.h,
36137         tests/minus-zero.h, tests/randomd.c.
36138         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36139         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36140         (main): Invoke test_function.
36142 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36144         fflush: Fix syntax error.
36145         * lib/fflush.c: Include unused-parameter.h, needed for
36146         _GL_UNUSED_PARAMETER.
36147         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36149 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36151         regex: pacify GCC when compiling GRUB
36152         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36153         a diagnostic.  Reported by Vladimir Serbinenko in
36154         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36156 2012-03-29  Eric Blake  <eblake@redhat.com>
36158         stdio: don't assume gets any more
36159         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36160         support.
36161         * modules/stdio (Makefile.am): Likewise.
36162         * lib/stdio-read.c (gets): Likewise.
36163         * tests/test-stdio-c++.cc: Likewise.
36164         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36165         * lib/stdio.in.h (gets): Make warning occur in more places.
36166         * doc/posix-functions/gets.texi (gets): Update documentation.
36167         Reported by Christer Solskogen.
36169         maint.mk: fix syntax checks without exclusions
36170         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36171         Reported by Daniel P. Berrange.
36173         strerror_r: avoid compiler warning
36174         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36175         level.
36177         fflush: avoid compiler warning
36178         * lib/fflush.c (update_fpos_cache): Mark variables that are
36179         potentially unused.
36181 2012-03-25  Bruno Haible  <bruno@clisp.org>
36183         Tests for module 'localeconv'.
36184         * modules/localeconv-tests: New file.
36185         * tests/test-localeconv.c: New file.
36187         New module 'localeconv'.
36188         * lib/locale.in.h (localeconv): New declaration.
36189         * lib/localeconv.c: New file.
36190         * m4/localeconv.m4: New file.
36191         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36192         REPLACE_LOCALECONV.
36193         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36194         REPLACE_LOCALECONV.
36195         * modules/localeconv: New file.
36196         * modules/nl_langinfo (Depends-on): Add localeconv.
36197         * modules/human (Depends-on): Likewise.
36198         * doc/posix-functions/localeconv.texi: Mention the new module.
36200 2012-03-25  Bruno Haible  <bruno@clisp.org>
36202         locale: Provide a complete 'struct lconv'.
36203         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36204         'struct lconv' does not contain int_p_cs_precedes.
36205         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36206         * doc/posix-headers/locale.texi: Update.
36208         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36209         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36210         * doc/posix-headers/locale.texi: Update.
36212         locale: Provide a working 'struct lconv'.
36213         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36214         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36215         'struct lconv' does not even contain decimal_point.
36216         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36217         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36218         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36219         * doc/posix-headers/locale.texi: Mention the problems with
36220         'struct lconv'.
36221         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36223 2012-03-24  Bruno Haible  <bruno@clisp.org>
36225         Enable common subexpression optimization in GCC.
36226         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36227         macros.
36228         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36229         GCC attribute 'const'.
36230         (uc_locale_language): Declare with GCC attribute 'pure'.
36231         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36232         with GCC attribute 'const'.
36233         * lib/unictype.in.h (uc_is_general_category_withtable,
36234         uc_combining_class, uc_combining_class_name,
36235         uc_combining_class_long_name, uc_bidi_class_name,
36236         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36237         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36238         uc_decimal_value, uc_digit_value, uc_numeric_value,
36239         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36240         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36241         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36242         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36243         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36244         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36245         Declare with GCC attribute 'const'.
36246         (uc_general_category_name, uc_general_category_long_name,
36247         uc_general_category_byname, uc_general_category,
36248         uc_is_general_category, uc_combining_class_byname,
36249         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36250         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36251         Declare with GCC attribute 'pure'.
36252         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36253         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36254         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36255         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36256         with GCC attribute 'pure'.
36257         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36258         'const'.
36259         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36260         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36261         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36262         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36263         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36264         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36265         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36266         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36267         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36268         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36269         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36270         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36271         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36272         GCC attribute 'pure'.
36273         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36274         'const'.
36275         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36276         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36277         u32_strwidth): Declare with GCC attribute 'pure'.
36279         Enable common subexpression optimization in GCC.
36280         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36281         (alphasort): Declare with GCC attribute 'pure'.
36282         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36283         (atoll): Declare with GCC attribute 'pure'.
36284         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36285         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36286         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36287         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36288         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36289         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36290         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36292 2012-03-24  Bruno Haible  <bruno@clisp.org>
36294         gnulib-tool: Avoid unintended error output from 'cmp'.
36295         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36296         "cmp -s", not "cmp > /dev/null".
36298 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36300         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36302         It's not just Automake versions < 1.9b that creates an empty
36303         pkgdatadir at installation time if pkgdata_DATA is specified
36304         to empty; modern automake versions do this as well, at least
36305         until automake 1.11.4 (not yet released at the moment of writing,
36306         but soon to appear).  That behaviour was generally considered a
36307         feature rather than a bug, at least until this discussion:
36308         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36310         See also automake bugs #10997 and #11030.
36312         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36313         reference to relevant automake bug numbers.
36314         (func_emit_tests_Makefile_am): Likewise.
36316 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36318         announce-gen: use Digest::SHA when possible
36319         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36320         back to Digest::SHA1 if necessary.
36322 2012-03-20  Jim Meyering  <meyering@redhat.com>
36324         tests: avoid gcc warnings about argv vs. const initializers
36325         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36326         warnings about discarding 'const' qualifier from pointer target type.
36327         * tests/test-posix_spawn2.c (main): Likewise.
36329 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36331         README-release: simplify slightly
36332         * top/README-release: Run "git checkout master" only once.
36334 2012-03-15  Mark Wielaard  <mark@klomp.org>
36336         git-merge-changelog: add specific example on how to use with hg.
36337         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36339 2012-03-18  Mark Wielaard  <mark@klomp.org>
36341         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36343 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36345         git-version-gen: don't let "prefix" envvar cause trouble
36346         * build-aux/git-version-gen (prefix): Initialize properly,
36347         so as not to use a value specified via the environment.
36348         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36350 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36352         regex: diagnose too-large repeat counts in EREs
36353         Previously, the code did not diagnose the too-large repeat count
36354         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36355         as if it were 'b\{1000000000}', which is unexpected.
36356         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36357         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36358         is a reasonable one for this problem.  Another option would be to
36359         create a new REG_OVERFLOW error for repeat counts that are too large.
36360         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36361         count is too large, so that the caller can distinguish the two cases.
36362         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36363         "Too large" return code, and that repeat counts are one example of this.
36365 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36367         doc: some glibc x32 integer width issues
36368         * doc/posix-headers/sys_types.texi (sys/types.h):
36369         * doc/posix-headers/time.texi (time.h):
36370         Mention that glibc x32 does not conform to POSIX in a couple of
36371         areas related to integer widths.
36373 2012-03-15  Bruno Haible  <bruno@clisp.org>
36375         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36376         * lib/fma.c (VOLATILE): New macro.
36377         (FUNC): Use it to work around a GCC compiler bug.
36379 2012-03-13  Bruno Haible  <bruno@clisp.org>
36381         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36382         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36383         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36384         REPLACE_HYPOTL to 1.
36385         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36387 2012-03-13  Bruno Haible  <bruno@clisp.org>
36389         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36390         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36391         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36392         REPLACE_REMAINDERL to 1.
36393         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36394         bug.
36396 2012-03-13  Bruno Haible  <bruno@clisp.org>
36398         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36399         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36400         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36401         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36402         too big rounding errors.
36403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36404         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36405         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36406         (Depends-on): Update conditions.
36407         * tests/test-sqrtl.c (my_ldexpl): New function.
36408         (main): Add test of a particular value.
36409         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36411 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36413         doc: Update timer_* platform portability notes.
36414         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36415         that always return ENOSYS.
36416         * doc/posix-functions/timer_delete.texi: Likewise.
36417         * doc/posix-functions/timer_gettime.texi: Likewise.
36418         * doc/posix-functions/timer_settime.texi: Likewise.
36420 2012-03-13  Bruno Haible  <bruno@clisp.org>
36422         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36423         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36424         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36425         REPLACE_CBRTL to 1.
36426         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36428 2012-03-13  Bruno Haible  <bruno@clisp.org>
36430         remainderl: Avoid compilation error on AIX >= 5.2.
36431         * lib/math.in.h (remainderl): Undefine macro from the system header.
36433 2012-03-13  Bruno Haible  <bruno@clisp.org>
36435         Avoid compilation errors with MSVC option -fp:strict.
36436         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36437         * lib/cbrtf.c: Likewise.
36438         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36440 2012-03-12  Bruno Haible  <bruno@clisp.org>
36442         uninorm: Don't crash in out-of-memory conditions.
36443         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36444         gracefully.
36445         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36446         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36448 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36450         quote: fix syntax-check
36451         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36452         also exports quote_quoting_options.
36454 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36456         Collapse list of copyright years to ranges.  See
36457         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36458         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36459         build-aux/csharpexec.sh.in, build-aux/gnupload,
36460         build-aux/install-reloc, build-aux/javacomp.sh.in,
36461         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36462         build-aux/move-if-change, build-aux/reloc-ldflags,
36463         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36465 2012-03-11  Bruno Haible  <bruno@clisp.org>
36467         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36468         * m4/log2f-ieee.m4: New file.
36469         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36470         whether log2f works with a minus zero argument. Replace it if not.
36471         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36472         (Depends-on): Add log2-ieee.
36473         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36474         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36476         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36477         * m4/log2-ieee.m4: New file.
36478         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36479         whether log2 works with a minus zero argument. Replace it if not.
36480         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36481         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36482         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36484         Tests for module 'log2l-ieee'.
36485         * modules/log2l-ieee-tests: New file.
36486         * tests/test-log2l-ieee.c: New file.
36488         New module 'log2l-ieee'.
36489         * modules/log2l-ieee: New file.
36491         Tests for module 'log2-ieee'.
36492         * modules/log2-ieee-tests: New file.
36493         * tests/test-log2-ieee.c: New file.
36495         New module 'log2-ieee'.
36496         * modules/log2-ieee: New file.
36498         Tests for module 'log2f-ieee'.
36499         * modules/log2f-ieee-tests: New file.
36500         * tests/test-log2f-ieee.c: New file.
36501         * tests/test-log2-ieee.h: New file.
36503         New module 'log2f-ieee'.
36504         * modules/log2f-ieee: New file.
36506 2012-03-11  Bruno Haible  <bruno@clisp.org>
36508         Tests for module 'log2l'.
36509         * modules/log2l-tests: New file.
36510         * tests/test-log2l.c: New file.
36512         New module 'log2l'.
36513         * lib/math.in.h (log2l): New declaration.
36514         * lib/log2l.c: New file.
36515         * m4/log2l.m4: New file.
36516         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36518         REPLACE_LOG2L.
36519         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36520         REPLACE_LOG2L.
36521         * modules/log2l: New file.
36522         * tests/test-math-c++.cc: Check the declaration of log2l.
36523         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36524         and OSF/1 problems.
36526 2012-03-11  Bruno Haible  <bruno@clisp.org>
36528         Tests for module 'log2f'.
36529         * modules/log2f-tests: New file.
36530         * tests/test-log2f.c: New file.
36532         New module 'log2f'.
36533         * lib/math.in.h (log2f): New declaration.
36534         * lib/log2f.c: New file.
36535         * m4/log2f.m4: New file.
36536         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36538         REPLACE_LOG2F.
36539         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36540         REPLACE_LOG2F.
36541         * modules/log2f: New file.
36542         * tests/test-math-c++.cc: Check the declaration of log2f.
36543         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36544         and OSF/1 and Cygwin problems.
36546 2012-03-11  Bruno Haible  <bruno@clisp.org>
36548         Tests for module 'log2'.
36549         * modules/log2-tests: New file.
36550         * tests/test-log2.c: New file.
36551         * tests/test-log2.h: New file.
36553         New module 'log2'.
36554         * lib/math.in.h (log2): New declaration.
36555         * lib/log2.c: New file.
36556         * m4/log2.m4: New file.
36557         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36559         REPLACE_LOG2.
36560         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36561         REPLACE_LOG2.
36562         * modules/log2: New file.
36563         * tests/test-math-c++.cc: Check the declaration of log2.
36564         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36565         and OSF/1 and Cygwin problems.
36567 2012-03-11  Bruno Haible  <bruno@clisp.org>
36569         exp2* tests: More tests.
36570         * tests/test-exp2.h (test_function): Test all integral arguments that
36571         don't need to overflow or denormalized numbers.
36572         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36573         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36574         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36576 2012-03-10  Bruno Haible  <bruno@clisp.org>
36578         log1pl-ieee: Work around test failure on AIX 7.1.
36579         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36581         log1pl-ieee: Work around test failure on IRIX 6.5.
36582         * m4/log1pl-ieee.m4: New file.
36583         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36584         test whether log1pl works with a minus zero argument. Replace it if
36585         not.
36586         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36588         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36589         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36590         (Depends-on): Update conditions.
36591         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36592         m4/signbit.m4.
36593         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36594         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36596         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36597         * m4/log1pf-ieee.m4: New file.
36598         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36599         test whether log1pf works with a minus zero argument. Replace it if
36600         not.
36601         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36602         m4/signbit.m4.
36603         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36604         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36606         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36607         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36608         (configure.ac): Require gl_FUNC_LOG1PF.
36610         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36611         * m4/log1p-ieee.m4: New file.
36612         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36613         whether log1p works with a minus zero argument. Replace it if not.
36614         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36616         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36617         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36618         (Depends-on): Update conditions.
36619         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36620         m4/signbit.m4.
36621         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36622         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36624         Tests for module 'log1pl-ieee'.
36625         * modules/log1pl-ieee-tests: New file.
36626         * tests/test-log1pl-ieee.c: New file.
36628         New module 'log1pl-ieee'.
36629         * modules/log1pl-ieee: New file.
36631         Tests for module 'log1p-ieee'.
36632         * modules/log1p-ieee-tests: New file.
36633         * tests/test-log1p-ieee.c: New file.
36635         New module 'log1p-ieee'.
36636         * modules/log1p-ieee: New file.
36638         Tests for module 'log1pf-ieee'.
36639         * modules/log1pf-ieee-tests: New file.
36640         * tests/test-log1pf-ieee.c: New file.
36641         * tests/test-log1p-ieee.h: New file.
36643         New module 'log1pf-ieee'.
36644         * modules/log1pf-ieee: New file.
36646 2012-03-10  Bruno Haible  <bruno@clisp.org>
36648         Tests for module 'log1pl'.
36649         * modules/log1pl-tests: New file.
36650         * tests/test-log1pl.c: New file.
36652         New module 'log1pl'.
36653         * lib/math.in.h (log1pl): New declaration.
36654         * lib/log1pl.c: New file.
36655         * m4/log1pl.m4: New file.
36656         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36658         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36659         * modules/log1pl: New file.
36660         * tests/test-math-c++.cc: Check the declaration of log1pl.
36661         * doc/posix-functions/log1pl.texi: Mention the new module.
36663 2012-03-10  Bruno Haible  <bruno@clisp.org>
36665         Tests for module 'log1pf'.
36666         * modules/log1pf-tests: New file.
36667         * tests/test-log1pf.c: New file.
36669         New module 'log1pf'.
36670         * lib/math.in.h (log1pf): New declaration.
36671         * lib/log1pf.c: New file.
36672         * m4/log1pf.m4: New file.
36673         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36675         REPLACE_LOG1PF.
36676         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36677         REPLACE_LOG1PF.
36678         * modules/log1pf: New file.
36679         * tests/test-math-c++.cc: Check the declaration of log1pf.
36680         * doc/posix-functions/log1pf.texi: Mention the new module.
36682 2012-03-10  Bruno Haible  <bruno@clisp.org>
36684         log1p tests: More tests.
36685         * tests/test-log1p.h: New file.
36686         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36687         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36688         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36689         (main): Invoke test_function.
36691         log1p: Provide replacement for Minix and MSVC.
36692         * lib/math.in.h (log1p): New declaration.
36693         * lib/log1p.c: New file.
36694         * m4/log1p.m4: New file.
36695         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36697         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36698         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36699         (Depends-on): Add math, isnand, log, round.
36700         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36701         HAVE_LOG1P is 0.
36702         * tests/test-math-c++.cc: Check the declaration of log1p.
36703         * doc/posix-functions/log1p.texi: Mention the replacement.
36705 2012-03-10  Bruno Haible  <bruno@clisp.org>
36707         math tests: Small simplification.
36708         * tests/test-exp.h (test_function): Use the same err_bound for
36709         'double' on platforms with sizeof (long double) == sizeof (double)
36710         than on platforms with sizeof (long double) > sizeof (double).
36711         * tests/test-exp2.h (test_function): Likewise.
36712         * tests/test-expm1.h (test_function): Likewise.
36713         * tests/test-log.h (test_function): Likewise.
36715 2012-03-10  Bruno Haible  <bruno@clisp.org>
36717         Fix some comments.
36718         * lib/expl.c: Fix an ambiguous comment.
36719         * lib/expm1.c: Likewise.
36720         * lib/expm1l.c: Likewise.
36721         * lib/exp2.c: Likewise.
36722         * lib/exp2l.c: Likewise.
36724 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36726         regex: allow inclusion of <regex.h> before <limits.h>
36727         Without this patch, portable programs had to include <limits.h> before
36728         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36729         I ran into this problem with a test version of GNU grep on Solaris 8.
36730         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36731         This is done conditionally so that this change can be merged
36732         back to glibc.
36733         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36734         using the included regex.
36736         fts: depend on fdopendir
36737         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36738         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36739         problem was introduced when fdopendir was split out.
36741 2012-03-10  Bruno Haible  <bruno@clisp.org>
36743         Remove unused variables.
36744         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36745         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36747 2012-03-10  Bruno Haible  <bruno@clisp.org>
36749         isnanf-nolibm: Fix last commit.
36750         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36752         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36753         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36755 2012-03-10  Bruno Haible  <bruno@clisp.org>
36757         logf-ieee: Work around test failure on NetBSD 5.1.
36758         * m4/logf-ieee.m4: New file.
36759         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36760         whether logf works with a negative argument. Replace it if not.
36761         * lib/logf.c (logf): For negative arguments, return NaN.
36762         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36763         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36764         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36766         logf-ieee: Work around test failure on Solaris 9.
36767         * modules/logf-ieee (Depends-on): Add log-ieee.
36768         (configure.ac): Require gl_FUNC_LOGF.
36770         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36771         * m4/log-ieee.m4: New file.
36772         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36773         log works with a negative argument. Replace it if not.
36774         * lib/log.c (log): For negative arguments, return NaN.
36775         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36776         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36777         * doc/posix-functions/log.texi: Mention the log-ieee module.
36779         Tests for module 'logl-ieee'.
36780         * modules/logl-ieee-tests: New file.
36781         * tests/test-logl-ieee.c: New file.
36783         New module 'logl-ieee'.
36784         * modules/logl-ieee: New file.
36786         Tests for module 'log-ieee'.
36787         * modules/log-ieee-tests: New file.
36788         * tests/test-log-ieee.c: New file.
36790         New module 'log-ieee'.
36791         * modules/log-ieee: New file.
36793         Tests for module 'logf-ieee'.
36794         * modules/logf-ieee-tests: New file.
36795         * tests/test-logf-ieee.c: New file.
36796         * tests/test-log-ieee.h: New file.
36798         New module 'logf-ieee'.
36799         * modules/logf-ieee: New file.
36801 2012-03-10  Bruno Haible  <bruno@clisp.org>
36803         log: Fix bug introduced on 2012-03-09.
36804         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36806 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36808         timer-time: link explicitly with pthreads on glibc
36809         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36810         to support static linking, when newer glibc is
36811         detected, as that contains pthread emulation of
36812         POSIX timer functions where required.
36813         * modules/timer-time: Depend on threadlib to
36814         pull in the appropriate library to link.
36816 2012-03-10  Bruno Haible  <bruno@clisp.org>
36818         log* tests: More tests.
36819         * tests/test-log.h: New file.
36820         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36821         (main): Invoke test_function.
36822         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36823         (main): Invoke test_function.
36824         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36825         (main): Invoke test_function.
36826         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36827         tests/randomd.c.
36828         (Makefile.am): Add randomd.c to test_log_SOURCES.
36829         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36830         tests/randomf.c.
36831         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36832         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36833         tests/randoml.c.
36834         (Depends-on): Add 'float'.
36835         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36837 2012-03-09  Bruno Haible  <bruno@clisp.org>
36839         logl: Work around OSF/1 5.1 bug.
36840         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36841         * lib/logl.c (logl): If logl exists, use it and provide just the
36842         workaround.
36843         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36844         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36846         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36847         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36848         (Depends-on): Update conditions.
36849         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36851 2012-03-09  Bruno Haible  <bruno@clisp.org>
36853         logf: Work around OSF/1 5.1 bug.
36854         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36855         * lib/logf.c (logf): If logf exists, use it and provide just the
36856         workaround.
36857         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36858         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36860         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36861         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36862         (Depends-on): Update conditions.
36863         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36865 2012-03-09  Bruno Haible  <bruno@clisp.org>
36867         log: Work around OSF/1 5.1 bug.
36868         * lib/math.in.h (log): New declaration.
36869         * lib/log.c: New file.
36870         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36871         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36872         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36874         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36875         * modules/log (Files): Add lib/log.c.
36876         (Depends-on): Add math.
36877         (configure.ac): If REPLACE_LOG is 1, compile an override.
36878         * tests/test-math-c++.cc: Check the declaration of log.
36879         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36881 2012-03-09  Jim Meyering  <meyering@redhat.com>
36883         readtokens.c: adjust wording in a comment
36884         * lib/readtokens.c: Insert omitted "that" in a comment.
36886 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36888         modechange: add notations +40, 00440, etc.
36889         * lib/modechange.c (mode_compile): Support new notations
36890         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36892 2012-03-08  Bruno Haible  <bruno@clisp.org>
36894         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36895         * m4/exp2l-ieee.m4: New file.
36896         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36897         test whether exp2l works with a NaN argument and with a negative
36898         infinity argument. Replace it if not.
36899         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36901         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36902         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36903         (Depends-on): Update conditions.
36904         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36905         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36906         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36908         Tests for module 'exp2l-ieee'.
36909         * modules/exp2l-ieee-tests: New file.
36910         * tests/test-exp2l-ieee.c: New file.
36912         New module 'exp2l-ieee'.
36913         * modules/exp2l-ieee: New file.
36915         Tests for module 'exp2-ieee'.
36916         * modules/exp2-ieee-tests: New file.
36917         * tests/test-exp2-ieee.c: New file.
36919         New module 'exp2-ieee'.
36920         * modules/exp2-ieee: New file.
36922         Tests for module 'exp2f-ieee'.
36923         * modules/exp2f-ieee-tests: New file.
36924         * tests/test-exp2f-ieee.c: New file.
36925         * tests/test-exp2-ieee.h: New file.
36927         New module 'exp2f-ieee'.
36928         * modules/exp2f-ieee: New file.
36930 2012-03-08  Bruno Haible  <bruno@clisp.org>
36932         Tests for module 'exp2l'.
36933         * modules/exp2l-tests: New file.
36934         * tests/test-exp2l.c: New file.
36936         New module 'exp2l'.
36937         * lib/math.in.h (exp2l): New declaration.
36938         * lib/exp2l.c: New file.
36939         * lib/expl-table.c: New file, extracted from lib/expl.c.
36940         * lib/expl.c (gl_expl_table): New declaration.
36941         (expl): Remove expl_table. Update reference.
36942         * m4/exp2l.m4: New file.
36943         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36945         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36946         * modules/exp2l: New file.
36947         * modules/expl (Files): Add lib/expl-table.c.
36948         (configure.ac): Compile also expl-table.c.
36949         * tests/test-math-c++.cc: Check the declaration of exp2l.
36950         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36951         problem.
36953 2012-03-08  Bruno Haible  <bruno@clisp.org>
36955         Tests for module 'exp2f'.
36956         * modules/exp2f-tests: New file.
36957         * tests/test-exp2f.c: New file.
36959         New module 'exp2f'.
36960         * lib/math.in.h (exp2f): New declaration.
36961         * lib/exp2f.c: New file.
36962         * m4/exp2f.m4: New file.
36963         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36965         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36966         * modules/exp2f: New file.
36967         * tests/test-math-c++.cc: Check the declaration of exp2f.
36968         * doc/posix-functions/exp2f.texi: Mention the new module and the
36969         IRIX problem.
36971 2012-03-08  Bruno Haible  <bruno@clisp.org>
36973         Tests for module 'exp2'.
36974         * modules/exp2-tests: New file.
36975         * tests/test-exp2.c: New file.
36976         * tests/test-exp2.h: New file.
36978         New module 'exp2'.
36979         * lib/math.in.h (exp2): New declaration.
36980         * lib/exp2.c: New file.
36981         * m4/exp2.m4: New file.
36982         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
36983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
36984         REPLACE_EXP2.
36985         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
36986         REPLACE_EXP2.
36987         * modules/exp2: New file.
36988         * tests/test-math-c++.cc: Check the declaration of exp2.
36989         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
36990         and OpenBSD problems.
36992 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36994         savedir: fix comment typo
36995         * lib/savedir.c (savedirstream): Fix typo in comment.
36997 2012-03-08  Bruno Haible  <bruno@clisp.org>
36999         test-readtokens.c: use const; remove unwarranted cast
37000         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37002 2012-03-08  Bruno Haible  <bruno@clisp.org>
37004         fmal: Avoid compilation error on AIX.
37005         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37006         AIX 5.2..7.1.
37008 2012-03-08  Bruno Haible  <bruno@clisp.org>
37010         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37011         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37012         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37013         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37014         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37015         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37016         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37018 2012-03-08  Bruno Haible  <bruno@clisp.org>
37020         remainderf: Override buggy system function on IRIX 6.5.
37021         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37022         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37023         when it exists.
37024         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37026 2012-03-08  Jim Meyering  <meyering@redhat.com>
37028         test-readtokens.c: avoid const-related compilation warnings
37029         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37031 2012-03-07  Jim Meyering  <meyering@redhat.com>
37032             Bruno Haible  <bruno@clisp.org>
37034         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37035         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37036         tests/randomd.c.
37037         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37038         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37039         tests/randoml.c.
37040         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37042 2012-03-07  Bruno Haible  <bruno@clisp.org>
37044         expm1l: Avoid compilation error on AIX.
37045         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37046         AIX 5.2..7.1.
37048 2012-03-07  Bruno Haible  <bruno@clisp.org>
37050         expm1l: Don't override undeclared system function on IRIX 6.5.
37051         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37052         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37053         it exists. Set HAVE_DECL_EXPM1L.
37054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37055         HAVE_EXPM1L.
37056         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37057         HAVE_EXPM1L.
37058         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37060 2012-03-07  Bruno Haible  <bruno@clisp.org>
37062         remainderl: Don't override undeclared system function on IRIX 6.5.
37063         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37064         HAVE_REMAINDERL.
37065         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37066         declared when it exists. Set HAVE_DECL_REMAINDERL.
37067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37068         not HAVE_REMAINDERL.
37069         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37070         HAVE_REMAINDERL.
37071         * doc/posix-functions/remainderl.texi: Mention missing declaration
37072         problem.
37074 2012-03-07  Bruno Haible  <bruno@clisp.org>
37076         rintf: Don't override undeclared system function on IRIX 6.5.
37077         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
37078         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
37079         exists. Set HAVE_DECL_RINTF.
37080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
37081         HAVE_RINTF.
37082         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
37083         HAVE_RINTF.
37084         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
37086 2012-03-07  Bruno Haible  <bruno@clisp.org>
37088         roundl: Avoid compilation error on AIX.
37089         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
37090         AIX 5.2..7.1.
37092 2012-03-07  Bruno Haible  <bruno@clisp.org>
37094         roundl: Don't override undeclared system function on IRIX 6.5.
37095         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
37096         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
37097         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37098         * modules/roundl (configure.ac): For replacement code, test
37099         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
37100         (Depends-on): Update conditions.
37101         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
37103 2012-03-07  Bruno Haible  <bruno@clisp.org>
37105         roundf: Don't override undeclared system function on IRIX 6.5.
37106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
37107         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
37108         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37109         * modules/roundf (configure.ac): For replacement code, test
37110         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37111         (Depends-on): Update conditions.
37112         * modules/roundf-ieee (Depends-on): Update conditions.
37113         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37115 2012-03-07  Bruno Haible  <bruno@clisp.org>
37117         round: Don't override undeclared system function on IRIX 6.5.
37118         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37119         argument.
37120         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37121         also when it is not declared. Set HAVE_ROUND. For replacement code,
37122         test HAVE_ROUND, not HAVE_DECL_ROUND.
37123         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37124         not HAVE_DECL_ROUND.
37125         (Depends-on): Update conditions.
37126         * modules/round-ieee (Depends-on): Update conditions.
37127         * doc/posix-functions/round.texi: Mention the IRIX problem.
37129 2012-03-07  Bruno Haible  <bruno@clisp.org>
37131         copysignf: Don't override undeclared system function on IRIX 6.5.
37132         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37133         HAVE_COPYSIGNF.
37134         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37135         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37137         not HAVE_COPYSIGNF.
37138         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37139         HAVE_COPYSIGNF.
37140         * doc/posix-functions/copysignf.texi: Mention missing declaration
37141         problem.
37143 2012-03-07  Jim Meyering  <meyering@redhat.com>
37145         readtokens: add tests
37146         * modules/readtokens-tests: New file.
37147         * tests/test-readtokens.c: New file.
37149 2012-03-07  Jim Meyering  <meyering@redhat.com>
37151         quotearg: the module must now include quote.h
37152         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37153         So must the module.
37154         * modules/quotearg (Files): Add quote.h.
37156 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37158         readtokens: avoid core dumps with unusual calling patterns
37159         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37160         * lib/readtokens.c: Include limits.h.
37161         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37162         (readtoken): Don't cache the delimiters; the cache code was buggy
37163         if !delim && saved_delim, or if the new n_delim differs from the old.
37164         Also, it wasn't thread-safe.
37166 2012-03-07  Bruno Haible  <bruno@clisp.org>
37168         quote: Adhere to common module description layout.
37169         * modules/quote (Makefile.am): Add back empty section.
37171 2012-03-06  Akim Demaille  <demaille@gostai.com>
37173         quote: fuse into quotearg
37174         This patch is made for the benefit of Bison.
37175         quote does not leave the choice of the quoting style to the user.
37176         quoting_style provides poor customizability, yet quoting_options,
37177         which is very rich, is hidden inside quotearg.c.  So in order to
37178         allow quote customization, move its implementation to quotearg.c.
37179         * lib/quote.c: Remove.
37180         * modules/quote: Adjust.
37181         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37182         warning: provide all the members of literal structs.
37183         (quote_quoting_options): New.
37184         (quote, quote_n): Import implementation from quote.c.
37185         * lib/quote.h: Import the comments from quote.c.
37186         (quote_quoting_options): New.
37188 2012-03-06  Bruno Haible  <bruno@clisp.org>
37190         Tests for module 'expm1l-ieee'.
37191         * modules/expm1l-ieee-tests: New file.
37192         * tests/test-expm1l-ieee.c: New file.
37194         New module 'expm1l-ieee'.
37195         * modules/expm1l-ieee: New file.
37197         Tests for module 'expm1f-ieee'.
37198         * modules/expm1f-ieee-tests: New file.
37199         * tests/test-expm1f-ieee.c: New file.
37201         New module 'expm1f-ieee'.
37202         * modules/expm1f-ieee: New file.
37204         Tests for module 'expm1-ieee'.
37205         * modules/expm1-ieee-tests: New file.
37206         * tests/test-expm1-ieee.c: New file.
37207         * tests/test-expm1-ieee.h: New file.
37209         New module 'expm1-ieee'.
37210         * modules/expm1-ieee: New file.
37211         * m4/expm1-ieee.m4: New file.
37212         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37213         whether expm1 works with a minus zero argument. Replace it if not.
37214         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37216         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37217         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37218         (Depends-on): Update conditions.
37219         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37220         AIX problem.
37222 2012-03-06  Bruno Haible  <bruno@clisp.org>
37224         Work around expm1f bug on IRIX 6.5.
37225         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37226         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37227         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37228         not work.
37229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37230         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37231         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37232         (Depends-on): Update conditions.
37233         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37235 2012-03-06  Bruno Haible  <bruno@clisp.org>
37237         Tests for module 'expm1l'.
37238         * modules/expm1l-tests: New file.
37239         * tests/test-expm1l.c: New file.
37241         New module 'expm1l'.
37242         * lib/math.in.h (expm1l): New declaration.
37243         * lib/expm1l.c: New file.
37244         * m4/expm1l.m4: New file.
37245         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37247         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37248         * modules/expm1l: New file.
37249         * tests/test-math-c++.cc: Check the declaration of expm1l.
37250         * doc/posix-functions/expm1l.texi: Mention the new module.
37252 2012-03-06  Bruno Haible  <bruno@clisp.org>
37254         Tests for module 'expm1f'.
37255         * modules/expm1f-tests: New file.
37256         * tests/test-expm1f.c: New file.
37258         New module 'expm1f'.
37259         * lib/math.in.h (expm1f): New declaration.
37260         * lib/expm1f.c: New file.
37261         * m4/expm1f.m4: New file.
37262         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37264         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37265         * modules/expm1f: New file.
37266         * tests/test-math-c++.cc: Check the declaration of expm1f.
37267         * doc/posix-functions/expm1f.texi: Mention the new module.
37269 2012-03-06  Bruno Haible  <bruno@clisp.org>
37271         Tests for module 'expm1'.
37272         * modules/expm1-tests: New file.
37273         * tests/test-expm1.c: New file.
37274         * tests/test-expm1.h: New file.
37276         New module 'expm1'.
37277         * lib/math.in.h (expm1): New declaration.
37278         * lib/expm1.c: New file.
37279         * m4/expm1.m4: New file.
37280         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37282         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37283         * modules/expm1: New file.
37284         * tests/test-math-c++.cc: Check the declaration of expm1.
37285         * doc/posix-functions/expm1.texi: Mention the new module.
37287 2012-03-06  Bruno Haible  <bruno@clisp.org>
37289         math: Ensure declarations of math functions.
37290         * modules/acosf (Depends-on): Add 'extensions'.
37291         * modules/asinf (Depends-on): Likewise.
37292         * modules/atan2f (Depends-on): Likewise.
37293         * modules/atanf (Depends-on): Likewise.
37294         * modules/cbrt (Depends-on): Likewise.
37295         * modules/cbrtf (Depends-on): Likewise.
37296         * modules/cbrtl (Depends-on): Likewise.
37297         * modules/copysignf (Depends-on): Likewise.
37298         * modules/copysignl (Depends-on): Likewise.
37299         * modules/cosf (Depends-on): Likewise.
37300         * modules/coshf (Depends-on): Likewise.
37301         * modules/expf (Depends-on): Likewise.
37302         * modules/fabsf (Depends-on): Likewise.
37303         * modules/fabsl (Depends-on): Likewise.
37304         * modules/fmaf (Depends-on): Likewise.
37305         * modules/fmal (Depends-on): Likewise.
37306         * modules/fmodf (Depends-on): Likewise.
37307         * modules/fmodl (Depends-on): Likewise.
37308         * modules/frexpf (Depends-on): Likewise.
37309         * modules/frexpl (Depends-on): Likewise.
37310         * modules/hypot (Depends-on): Likewise.
37311         * modules/hypotf (Depends-on): Likewise.
37312         * modules/hypotl (Depends-on): Likewise.
37313         * modules/ldexpf (Depends-on): Likewise.
37314         * modules/ldexpl (Depends-on): Likewise.
37315         * modules/log10f (Depends-on): Likewise.
37316         * modules/log10l (Depends-on): Likewise.
37317         * modules/log1p (Depends-on): Likewise.
37318         * modules/logb (Depends-on): Likewise.
37319         * modules/logf (Depends-on): Likewise.
37320         * modules/modff (Depends-on): Likewise.
37321         * modules/modfl (Depends-on): Likewise.
37322         * modules/powf (Depends-on): Likewise.
37323         * modules/remainderf (Depends-on): Likewise.
37324         * modules/remainderl (Depends-on): Likewise.
37325         * modules/rintf (Depends-on): Likewise.
37326         * modules/rintl (Depends-on): Likewise.
37327         * modules/sinf (Depends-on): Likewise.
37328         * modules/sinhf (Depends-on): Likewise.
37329         * modules/sqrtf (Depends-on): Likewise.
37330         * modules/tanf (Depends-on): Likewise.
37331         * modules/tanhf (Depends-on): Likewise.
37332         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37333         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37334         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37335         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37336         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37337         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37338         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37339         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37340         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37341         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37342         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37343         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37344         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37345         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37346         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37347         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37348         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37349         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37350         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37351         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37352         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37353         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37354         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37355         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37357         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37358         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37359         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37360         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37361         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37362         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37363         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37364         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37365         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37366         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37367         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37368         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37369         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37370         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37371         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37372         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37374 2012-03-06  Bruno Haible  <bruno@clisp.org>
37376         math: Update module names in warnings.
37377         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37378         tanl): Use specific module name in warn-on-use warning.
37380 2012-03-06  Bruno Haible  <bruno@clisp.org>
37382         expl: Simplify computation.
37383         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37385 2012-03-05  Bruno Haible  <bruno@clisp.org>
37387         exp* tests: More tests.
37388         * tests/test-exp.h: New file.
37389         * tests/test-exp.c: Include <float.h> and test-exp.h.
37390         (main): Invoke test_function.
37391         * tests/test-expf.c: Include <float.h> and test-exp.h.
37392         (main): Invoke test_function.
37393         * tests/test-expl.c: Include <float.h> and test-exp.h.
37394         (main): Invoke test_function.
37395         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37396         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37397         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37398         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37399         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37400         (Depends-on): Add 'float'.
37401         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37403         expl: Fix precision of computed result.
37404         * lib/expl.c: Completely rewritten.
37405         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37406         (Maintainer): Add me.
37407         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37409 2012-03-05  Bruno Haible  <bruno@clisp.org>
37411         cbrt* tests: More tests.
37412         * tests/test-cbrt.h: New file.
37413         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37414         (main): Invoke test_function.
37415         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37416         (main): Invoke test_function.
37417         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37418         (main): Invoke test_function.
37419         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37420         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37421         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37422         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37423         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37424         (Depends-on): Add 'float'.
37425         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37427 2012-03-05  Bruno Haible  <bruno@clisp.org>
37429         hypot* tests: More tests.
37430         * tests/test-hypot.h: New file, partially extracted from
37431         tests/test-hypotl.c.
37432         * tests/test-hypot.c: Include test-hypot.h.
37433         (main): Invoke test_function.
37434         * tests/test-hypotf.c: Include test-hypot.h.
37435         (main): Invoke test_function.
37436         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37437         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37438         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37439         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37440         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37441         tests/randomf.c.
37442         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37443         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37444         tests/randoml.c.
37445         (Depends-on): Add 'fpucw', 'float'.
37446         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37448 2012-03-05  Bruno Haible  <bruno@clisp.org>
37450         fpucw: Doc about FreeBSD.
37451         * lib/fpucw.h: Mention FreeBSD in comments.
37453 2012-03-04  Bruno Haible  <bruno@clisp.org>
37455         sqrt* tests: More tests.
37456         * tests/test-sqrt.h: New file.
37457         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37458         (main): Invoke test_function.
37459         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37460         (main): Invoke test_function.
37461         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37462         (main): Invoke test_function.
37463         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37464         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37465         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37466         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37467         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37468         (Depends-on): Add 'float'.
37469         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37471 2012-03-04  Bruno Haible  <bruno@clisp.org>
37473         remainder* tests: More tests.
37474         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37475         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37476         (main): Invoke test_function.
37477         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37478         (main): Invoke test_function.
37479         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37480         (main): Invoke test_function.
37481         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37482         tests/randomd.c.
37483         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37484         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37485         tests/randomf.c.
37486         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37487         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37488         tests/randoml.c.
37489         (Depends-on): Add 'float'.
37490         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37492 2012-03-04  Bruno Haible  <bruno@clisp.org>
37494         remainder, remainderf, remainderl: Fix computation for large quotients.
37495         * lib/remainder.c: Completely rewritten.
37496         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37497         USE_FLOAT.
37498         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37499         USE_LONG_DOUBLE.
37500         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37501         isnand, isinf. Remove round, fma.
37502         * modules/remainderf (Files): Add lib/remainder.c.
37503         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37504         Remove roundf, fmaf.
37505         * modules/remainderl (Files): Add lib/remainder.c.
37506         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37507         isinf. Remove roundl, fmal.
37508         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37509         REMAINDER_LIBM.
37510         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37511         REMAINDERF_LIBM.
37512         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37513         REMAINDERL_LIBM.
37515 2012-03-04  Bruno Haible  <bruno@clisp.org>
37517         fmod* tests: More tests.
37518         * tests/test-fmod.h (my_ldexp): New function.
37519         (test_function): Reduce amount of random numbers to test. Add tests
37520         of very large quotients x / y.
37521         * tests/test-fmod.c (MAX_EXP): New macro.
37522         * tests/test-fmodf.c (MAX_EXP): Likewise.
37523         * tests/test-fmodl.c (MAX_EXP): Likewise.
37525 2012-03-04  Bruno Haible  <bruno@clisp.org>
37527         fmod, fmodl: Fix computation for large quotients x / y.
37528         * lib/fmod.c: Completely rewritten.
37529         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37530         USE_LONG_DOUBLE.
37531         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37532         isnand. Remove fma.
37533         * modules/fmodl (Files): Add lib/fmod.c.
37534         (Depends-on): Add float, isfinite, signbit, fabsl,
37535         frexpl, ldexpl, isnanl. Remove fma.
37536         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37537         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37539 2012-03-03  Bruno Haible  <bruno@clisp.org>
37541         fmod* tests: More tests.
37542         * tests/test-fmod.h: New file.
37543         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37544         (main): Invoke test_function.
37545         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37546         (main): Invoke test_function.
37547         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37548         (main): Invoke test_function.
37549         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37550         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37551         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37552         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37553         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37554         (Depends-on): Add 'float'.
37555         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37557 2012-03-03  Bruno Haible  <bruno@clisp.org>
37559         rint* tests: More tests.
37560         * tests/test-rint.h: New file, partially extracted from
37561         tests/test-rintl.c.
37562         * tests/test-rint.c: Include test-rint.h.
37563         (main): Invoke test_function.
37564         * tests/test-rintf.c: Include test-rint.h.
37565         (main): Invoke test_function.
37566         * tests/test-rintl.c: Include test-rint.h.
37567         (main): Invoke test_function.
37568         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37569         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37570         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37571         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37572         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37573         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37575 2012-03-03  Bruno Haible  <bruno@clisp.org>
37577         modf* tests: More tests.
37578         * tests/test-modf.h: New file.
37579         * tests/test-modf.c: Include <float.h> and test-modf.h.
37580         (main): Invoke test_function.
37581         * tests/test-modff.c: Include <float.h> and test-modf.h.
37582         (main): Invoke test_function.
37583         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37584         (main): Invoke test_function.
37585         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37586         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37587         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37588         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37589         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37590         (Depends-on): Add 'float'.
37591         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37593 2012-03-03  Bruno Haible  <bruno@clisp.org>
37595         fabs* tests: More tests.
37596         * tests/test-fabs.h: New file, partially extracted from
37597         tests/test-fabsl.c.
37598         * tests/test-fabs.c (RANDOM): New macro.
37599         * tests/test-fabsf.c (RANDOM): New macro.
37600         * tests/test-fabsl.c (RANDOM): New macro.
37601         * modules/fabs-tests (Files): Add tests/randomd.c.
37602         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37603         * modules/fabsf-tests (Files): Add tests/randomf.c.
37604         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37605         * modules/fabsl-tests (Files): Add tests/randoml.c.
37606         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37608 2012-03-03  Bruno Haible  <bruno@clisp.org>
37610         ldexp* tests: More tests.
37611         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37612         * tests/test-ldexp.c (RANDOM): New macro.
37613         * tests/test-ldexpf.c (RANDOM): New macro.
37614         * tests/test-ldexpl.c (RANDOM): New macro.
37615         * modules/ldexp-tests (Files): Add tests/randomd.c.
37616         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37617         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37618         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37619         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37620         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37622 2012-03-03  Bruno Haible  <bruno@clisp.org>
37624         frexp* tests: More tests.
37625         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37626         * tests/test-frexp.c (RANDOM): New macro.
37627         * tests/test-frexpf.c (RANDOM): New macro.
37628         * tests/test-frexpl.c (RANDOM): New macro.
37629         * modules/frexp-tests (Files): Add tests/randomd.c.
37630         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37631         * modules/frexpf-tests (Files): Add tests/randomf.c.
37632         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37633         * modules/frexpl-tests (Files): Add tests/randoml.c.
37634         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37636 2012-03-03  Bruno Haible  <bruno@clisp.org>
37638         Support for pseudo-random numbers in tests.
37639         * tests/randomf.c: New file.
37640         * tests/randomd.c: New file.
37641         * tests/randoml.c: New file.
37642         * tests/macros.h (randomf, randomd, randoml): New declarations.
37644 2012-03-03  Bruno Haible  <bruno@clisp.org>
37646         frexp* tests: Refactor.
37647         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37648         * tests/test-frexp.c: Include and use it.
37649         * tests/test-frexpf.c: Likewise.
37650         * tests/test-frexpl.c: Likewise.
37651         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37652         * modules/frexpf-tests (Files): Likewise.
37653         * modules/frexpl-tests (Files): Likewise.
37655 2012-03-02  Jim Meyering  <meyering@redhat.com>
37657         maint: don't specify XZ_OPT=-9ev in dist-related rule
37658         Using xz's -9 option is warranted only if you have a very large
37659         tarball (see xz's documentation for the sizes vs. presets), and
37660         requires 64MiB of memory at decompression time.
37661         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37662         Automake's default of just "-e" is fine.  Override on a
37663         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37665 2012-03-01  Eric Blake  <eblake@redhat.com>
37667         maint.mk: allow announcement for non-gnulib project
37668         * maint.mk (announcement): Skip gnulib version if not used.
37670 2012-03-01  Jim Meyering  <meyering@redhat.com>
37672         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37673         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37674         envvar settings cannot interfere.  Otherwise, setting envvars like
37675         prohibit=foo require=bar, etc. would cause spurious test failures.
37677 2012-03-01  Eric Blake  <eblake@redhat.com>
37679         maint.mk: add per-line exclusions to prohibitions
37680         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37681         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37682         (sc_const_long_option): Use it.
37684 2012-03-01  Bruno Haible  <bruno@clisp.org>
37686         Tests for module 'expl-ieee'.
37687         * modules/expl-ieee-tests: New file.
37688         * tests/test-expl-ieee.c: New file.
37690         New module 'expl-ieee'.
37691         * modules/expl-ieee: New file.
37693         Tests for module 'exp-ieee'.
37694         * modules/exp-ieee-tests: New file.
37695         * tests/test-exp-ieee.c: New file.
37697         New module 'exp-ieee'.
37698         * modules/exp-ieee: New file.
37700         Tests for module 'expf-ieee'.
37701         * modules/expf-ieee-tests: New file.
37702         * tests/test-expf-ieee.c: New file.
37703         * tests/test-exp-ieee.h: New file.
37705         New module 'expf-ieee'.
37706         * modules/expf-ieee: New file.
37708 2012-02-29  Bruno Haible  <bruno@clisp.org>
37710         cbrtl-ieee: Work around test failure on IRIX 6.5.
37711         * m4/cbrtl-ieee.m4: New file.
37712         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37713         test whether cbrtl works with a minus zero argument. Replace it if not.
37714         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37716         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37717         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37718         (Depends-on): Update conditions.
37719         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37720         m4/signbit.m4.
37721         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37722         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37723         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37725         Tests for module 'cbrtl-ieee'.
37726         * modules/cbrtl-ieee-tests: New file.
37727         * tests/test-cbrtl-ieee.c: New file.
37729         New module 'cbrtl-ieee'.
37730         * modules/cbrtl-ieee: New file.
37732         Tests for module 'cbrt-ieee'.
37733         * modules/cbrt-ieee-tests: New file.
37734         * tests/test-cbrt-ieee.c: New file.
37736         New module 'cbrt-ieee'.
37737         * modules/cbrt-ieee: New file.
37739         Tests for module 'cbrtf-ieee'.
37740         * modules/cbrtf-ieee-tests: New file.
37741         * tests/test-cbrtf-ieee.c: New file.
37742         * tests/test-cbrt-ieee.h: New file.
37744         New module 'cbrtf-ieee'.
37745         * modules/cbrtf-ieee: New file.
37747 2012-02-29  Bruno Haible  <bruno@clisp.org>
37749         cbrtf: Work around bug in IRIX 6.5 system function.
37750         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37751         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37752         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37753         work.
37754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37755         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37756         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37757         (Depends-on): Update conditions.
37758         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37760 2012-02-29  Bruno Haible  <bruno@clisp.org>
37762         Tests for module 'cbrtl'.
37763         * modules/cbrtl-tests: New file.
37764         * tests/test-cbrtl.c: New file.
37766         New module 'cbrtl'.
37767         * lib/math.in.h (cbrtl): New declaration.
37768         * lib/cbrtl.c: New file.
37769         * m4/cbrtl.m4: New file.
37770         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37772         HAVE_DECL_CBRTL.
37773         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37774         HAVE_DECL_CBRTL.
37775         * modules/cbrtl: New file.
37776         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37777         * doc/posix-functions/cbrtl.texi: Mention the new module.
37779 2012-02-29  Bruno Haible  <bruno@clisp.org>
37781         Tests for module 'cbrtf'.
37782         * modules/cbrtf-tests: New file.
37783         * tests/test-cbrtf.c: New file.
37785         New module 'cbrtf'.
37786         * lib/math.in.h (cbrtf): New declaration.
37787         * lib/cbrtf.c: New file.
37788         * m4/cbrtf.m4: New file.
37789         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37791         HAVE_DECL_CBRTF.
37792         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37793         HAVE_DECL_CBRTF.
37794         * modules/cbrtf: New file.
37795         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37796         * doc/posix-functions/cbrtf.texi: Mention the new module.
37798 2012-02-29  Bruno Haible  <bruno@clisp.org>
37800         cbrt: Provide replacement on MSVC and Minix.
37801         * lib/math.in.h (cbrt): New declaration.
37802         * lib/cbrt.c: New file.
37803         * m4/cbrt.m4: New file.
37804         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37806         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37807         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37808         (Depends-on): Add dependencies.
37809         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37810         * tests/test-math-c++.cc: Check the declaration of cbrt.
37811         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37812         replacement.
37814 2012-02-29  Bruno Haible  <bruno@clisp.org>
37816         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37817         * m4/hypotl-ieee.m4: New file.
37818         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37819         test whether hypotl works with mixed NaN and Infinity arguments.
37820         Replace it if not.
37821         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37823         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37824         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37825         (Depends-on): Update conditions.
37826         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37827         (Depends-on): Add hypot-ieee.
37828         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37829         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37831         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37832         * m4/hypotf-ieee.m4: New file.
37833         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37834         test whether hypotf works with mixed NaN and Infinity arguments.
37835         Replace it if not.
37836         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37837         (Depends-on): Add hypot-ieee.
37838         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37839         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37841         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37842         * lib/math.in.h (hypot): New declaration.
37843         * lib/hypot.c: New file.
37844         * m4/hypot-ieee.m4: New file.
37845         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37846         whether hypot works with mixed NaN and Infinity arguments. Replace it
37847         if not.
37848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37849         REPLACE_HYPOT.
37850         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37851         * modules/hypot (Files): Add lib/hypot.c.
37852         (Depends-on): Add dependencies.
37853         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37854         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37855         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37856         * tests/test-math-c++.cc: Check the declaration of hypot.
37857         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37859         Tests for module 'hypotl-ieee'.
37860         * modules/hypotl-ieee-tests: New file.
37861         * tests/test-hypotl-ieee.c: New file.
37863         New module 'hypotl-ieee'.
37864         * modules/hypotl-ieee: New file.
37866         Tests for module 'hypot-ieee'.
37867         * modules/hypot-ieee-tests: New file.
37868         * tests/test-hypot-ieee.c: New file.
37870         New module 'hypot-ieee'.
37871         * modules/hypot-ieee: New file.
37873         Tests for module 'hypotf-ieee'.
37874         * modules/hypotf-ieee-tests: New file.
37875         * tests/test-hypotf-ieee.c: New file.
37876         * tests/test-hypot-ieee.h: New file.
37878         New module 'hypotf-ieee'.
37879         * modules/hypotf-ieee: New file.
37881 2012-02-29  Bruno Haible  <bruno@clisp.org>
37883         Remove unused variables.
37884         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37885         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37886         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37887         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37889 2012-02-29  Eric Blake  <eblake@redhat.com>
37891         termios: fix pid_t always, not just for tcgetsid
37892         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37893         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37894         just when building tcgetsid.
37896 2012-02-29  Bruno Haible  <bruno@clisp.org>
37898         Tests for module 'hypotl'.
37899         * modules/hypotl-tests: New file.
37900         * tests/test-hypotl.c: New file.
37902         New module 'hypotl'.
37903         * lib/math.in.h (hypotl): New declaration.
37904         * lib/hypotl.c: New file.
37905         * m4/hypotl.m4: New file.
37906         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37908         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37909         * modules/hypotl: New file.
37910         * tests/test-math-c++.cc: Check the hypotl declaration.
37911         * doc/posix-functions/hypotl.texi: Mention the new module.
37913 2012-02-29  Eric Blake  <eblake@redhat.com>
37915         tcgetsid: fix cygwin header bug
37916         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37918         docs: update cygwin progress
37919         * doc/posix-functions/llround.texi (llround): Added in cygwin
37920         1.7.8.
37921         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37922         * doc/glibc-functions/program_invocation_name.texi
37923         (program_invocation_name): Likewise.
37924         * doc/glibc-functions/program_invocation_short_name.texi
37925         (program_invocation_short_name): Likewise.
37926         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37927         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37928         Likewise.
37929         * doc/posix-functions/pthread_spin_destroy.texi
37930         (pthread_spin_destroy): Added in cygwin 1.7.10.
37931         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37932         Likewise.
37933         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37934         Likewise.
37935         * doc/posix-functions/pthread_spin_trylock.texi
37936         (pthread_spin_trylock): Likewise.
37937         * doc/posix-functions/pthread_spin_unlock.texi
37938         (pthread_spin_unlock): Likewise.
37939         * doc/posix-functions/pthread_setschedprio.texi
37940         (pthread_setschedprio): Likewise.
37941         * doc/posix-functions/pthread_attr_getstack.texi
37942         (pthread_attr_getstack): Likewise.
37943         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37944         (pthread_attr_getstackaddr): Likewise.
37945         * doc/glibc-functions/pthread_getattr_np.texi
37946         (pthread_getattr_np): Likewise.
37947         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37948         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37949         * doc/posix-functions/clock_settime.texi (clock_settime):
37950         Likewise.
37951         * doc/posix-functions/pthread_attr_getguardsize.texi
37952         (pthread_attr_getguardsize): Likewise.
37953         * doc/posix-functions/pthread_attr_setguardsize.texi
37954         (pthread_attr_setguardsize): Likewise.
37955         * doc/posix-functions/pthread_attr_setstack.texi
37956         (pthread_attr_setstack): Likewise.
37957         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37958         (pthread_attr_setstackaddr): Likewise.
37959         * doc/posix-functions/clock_getcpuclockid.texi
37960         (clock_getcpuclockid): Likewise.
37961         * doc/posix-functions/pthread_getcpuclockid.texi
37962         (pthread_getcpuclockid): Likewise.
37963         * doc/glibc-functions/error.texi (error): Likewise.
37964         * doc/glibc-functions/error_at_line.texi (error_at_line):
37965         Likewise.
37966         * doc/glibc-functions/error_message_count.texi
37967         (error_message_count): Likewise.
37968         * doc/glibc-functions/error_one_per_line.texi
37969         (error_one_per_line): Likewise.
37970         * doc/glibc-functions/error_print_progname.texi
37971         (error_print_progname): Likewise.
37972         * doc/posix-functions/pthread_condattr_getclock.texi
37973         (pthread_condattr_getclock): Likewise.
37974         * doc/posix-functions/pthread_condattr_setclock.texi
37975         (pthread_condattr_setclock): Likewise.
37976         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
37977         Likewise.
37978         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
37979         * doc/glibc-functions/getpt.texi (getpt): Likewise.
37980         * doc/glibc-functions/get_current_dir_name.texi
37981         (get_current_dir_name): Likewise.
37982         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
37983         Likewise.
37984         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
37985         wrong return type.
37986         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
37987         1.7.11.
37989 2012-02-29  Bruno Haible  <bruno@clisp.org>
37991         Tests for module 'hypotf'.
37992         * modules/hypotf-tests: New file.
37993         * tests/test-hypotf.c: New file.
37995         New module 'hypotf'.
37996         * lib/math.in.h (hypotf): New declaration.
37997         * lib/hypotf.c: New file.
37998         * m4/hypotf.m4: New file.
37999         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38001         REPLACE_HYPOTF.
38002         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38003         REPLACE_HYPOTF.
38004         * modules/hypotf: New file.
38005         * tests/test-math-c++.cc: Check the hypotf declaration.
38006         * doc/posix-functions/hypotf.texi: Mention the new module.
38008         hypot: Prepare for hypotf module.
38009         * m4/hypot.m4: New file.
38010         * modules/hypot (Files): Add m4/hypot.m4.
38011         (configure.ac): Invoke gl_FUNC_HYPOT.
38013 2012-02-29  Bruno Haible  <bruno@clisp.org>
38015         hypot tests: More tests.
38016         * tests/test-hypot.c: Include <float.h>.
38017         (main): Add tests about overflow and underflow.
38019 2012-02-29  Bruno Haible  <bruno@clisp.org>
38021         math code: Add comments.
38022         * lib/acosl.c: Add comment about related glibc source files.
38023         * lib/asinl.c: Likewise.
38024         * lib/atanl.c: Likewise.
38025         * lib/expl.c: Likewise.
38026         * lib/logl.c: Likewise.
38027         * lib/sincosl.c: Likewise.
38028         * lib/sinl.c: Likewise.
38029         * lib/tanl.c: Likewise.
38030         * lib/trigl.c: Likewise.
38031         * lib/cosl.c: Likewise. Fix comments.
38033 2012-02-28  Bruno Haible  <bruno@clisp.org>
38035         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38036         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38037         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38038         HUGE_VALL are defined.
38039         (numeric_equald): Renamed from numeric_equal.
38040         (numeric_equalf, numeric_equall): New functions.
38041         (main): Check also HUGE_VALF, HUGE_VALL.
38042         * modules/math-tests (Files): Add tests/macros.h.
38043         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38044         HUGE_VALL.
38046 2012-02-28  Bruno Haible  <bruno@clisp.org>
38048         doc: Move ISO C11 feature notes into POSIX chapters.
38049         * doc/posix-functions/aligned_alloc.texi: Renamed from
38050         doc/glibc-functions/aligned_alloc.texi.
38051         * doc/posix-functions/quick_exit.texi: Renamed from
38052         doc/glibc-functions/quick_exit.texi.
38053         * doc/posix-headers/uchar.texi: Renamed from
38054         doc/glibc-headers/uchar.texi.
38055         * doc/posix-functions/c16rtomb.texi: Renamed from
38056         doc/glibc-functions/c16rtomb.texi.
38057         * doc/posix-functions/c32rtomb.texi: Renamed from
38058         doc/glibc-functions/c32rtomb.texi.
38059         * doc/posix-functions/mbrtoc16.texi: Renamed from
38060         doc/glibc-functions/mbrtoc16.texi.
38061         * doc/posix-functions/mbrtoc32.texi: Renamed from
38062         doc/glibc-functions/mbrtoc32.texi.
38063         * doc/gnulib.texi: Update.
38064         (Glibc uchar.h): Remove section.
38065         Suggested by Eric Blake.
38067 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38069         stdnoreturn: port to MSVC better
38070         MSVC standard headers use __declspec(noreturn), so #define noreturn
38071         to empty on that platform.  Reported by Bruno Haible in
38072         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38073         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
38074         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
38076 2012-02-28  Bruno Haible  <bruno@clisp.org>
38078         doc: Mention new glibc headers and functions.
38079         * doc/glibc-headers/uchar.texi: New file.
38080         * doc/glibc-functions/aligned_alloc.texi: New file.
38081         * doc/glibc-functions/c16rtomb.texi: New file.
38082         * doc/glibc-functions/c32rtomb.texi: New file.
38083         * doc/glibc-functions/clock_adjtime.texi: New file.
38084         * doc/glibc-functions/fanotify_init.texi: New file.
38085         * doc/glibc-functions/fanotify_mark.texi: New file.
38086         * doc/glibc-functions/inet6_opt_append.texi: New file.
38087         * doc/glibc-functions/inet6_opt_find.texi: New file.
38088         * doc/glibc-functions/inet6_opt_finish.texi: New file.
38089         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
38090         * doc/glibc-functions/inet6_opt_init.texi: New file.
38091         * doc/glibc-functions/inet6_opt_next.texi: New file.
38092         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
38093         * doc/glibc-functions/inet6_rth_add.texi: New file.
38094         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
38095         * doc/glibc-functions/inet6_rth_init.texi: New file.
38096         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
38097         * doc/glibc-functions/inet6_rth_segments.texi: New file.
38098         * doc/glibc-functions/inet6_rth_space.texi: New file.
38099         * doc/glibc-functions/login.texi: New file.
38100         * doc/glibc-functions/mbrtoc16.texi: New file.
38101         * doc/glibc-functions/mbrtoc32.texi: New file.
38102         * doc/glibc-functions/name_to_handle_at.texi: New file.
38103         * doc/glibc-functions/ntp_gettimex.texi: New file.
38104         * doc/glibc-functions/open_by_handle_at.texi: New file.
38105         * doc/glibc-functions/prlimit.texi: New file.
38106         * doc/glibc-functions/process_vm_readv.texi: New file.
38107         * doc/glibc-functions/process_vm_writev.texi: New file.
38108         * doc/glibc-functions/recvmmsg.texi: New file.
38109         * doc/glibc-functions/scandirat.texi: New file.
38110         * doc/glibc-functions/sendmmsg.texi: New file.
38111         * doc/glibc-functions/setns.texi: New file.
38112         * doc/glibc-functions/timespec_get.texi: New file.
38113         * doc/gnulib.texi: Include them.
38114         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38115         sections.
38116         Reported by Eric Blake.
38118 2012-02-28  Bruno Haible  <bruno@clisp.org>
38120         Avoid compilation errors with MSVC option -fp:strict.
38121         * lib/floor.c: Use MSVC specific pragma fenv_access.
38122         * lib/ceil.c: Likewise.
38123         * lib/trunc.c: Likewise.
38124         * lib/round.c: Likewise.
38125         * lib/rint.c: Likewise.
38126         * lib/fma.c: Likewise.
38127         * lib/integer_length.c: Likewise.
38128         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38130         * tests/test-floor2.c: Likewise.
38131         * tests/test-floorf2.c: Likewise.
38132         * tests/test-ceil2.c: Likewise.
38133         * tests/test-ceilf2.c: Likewise.
38134         * tests/test-trunc2.c: Likewise.
38135         * tests/test-truncf2.c: Likewise.
38136         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38138 2012-02-27  Bruno Haible  <bruno@clisp.org>
38140         Tests for module 'sqrtl-ieee'.
38141         * modules/sqrtl-ieee-tests: New file.
38142         * tests/test-sqrtl-ieee.c: New file.
38144         New module 'sqrtl-ieee'.
38145         * modules/sqrtl-ieee: New file.
38147         Tests for module 'sqrt-ieee'.
38148         * modules/sqrt-ieee-tests: New file.
38149         * tests/test-sqrt-ieee.c: New file.
38151         New module 'sqrt-ieee'.
38152         * modules/sqrt-ieee: New file.
38154         Tests for module 'sqrtf-ieee'.
38155         * modules/sqrtf-ieee-tests: New file.
38156         * tests/test-sqrtf-ieee.c: New file.
38157         * tests/test-sqrt-ieee.h: New file.
38159         New module 'sqrtf-ieee'.
38160         * modules/sqrtf-ieee: New file.
38162 2012-02-27  Bruno Haible  <bruno@clisp.org>
38164         remainderl-ieee: Work around test failure on OSF/1.
38165         * m4/remainderl-ieee.m4: New file.
38166         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38167         present, test whether remainderl works with a zero second argument.
38168         Replace it if not.
38169         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38171         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38172         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38173         (Depends-on): Update conditions.
38174         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38175         (Depends-on): Add remainder-ieee.
38176         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38177         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38178         module.
38180         remainderf-ieee: Work around test failure on OSF/1.
38181         * m4/remainderf-ieee.m4: New file.
38182         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38183         present, test whether remainderf works with a zero second argument.
38184         Replace it if not.
38185         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38187         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38188         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38189         (Depends-on): Update conditions.
38190         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38191         (Depends-on): Add remainder-ieee.
38192         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38193         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38194         module.
38196         remainder-ieee: Work around test failure on OSF/1.
38197         * m4/remainder-ieee.m4: New file.
38198         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38199         present, test whether remainder works with a zero second argument.
38200         Replace it if not.
38201         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38203         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38204         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38205         (Depends-on): Update dependencies.
38206         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38207         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38208         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38210         Tests for module 'remainderl-ieee'.
38211         * modules/remainderl-ieee-tests: New file.
38212         * tests/test-remainderl-ieee.c: New file.
38214         New module 'remainderl-ieee'.
38215         * modules/remainderl-ieee: New file.
38217         Tests for module 'remainder-ieee'.
38218         * modules/remainder-ieee-tests: New file.
38219         * tests/test-remainder-ieee.c: New file.
38221         New module 'remainder-ieee'.
38222         * modules/remainder-ieee: New file.
38224         Tests for module 'remainderf-ieee'.
38225         * modules/remainderf-ieee-tests: New file.
38226         * tests/test-remainderf-ieee.c: New file.
38227         * tests/test-remainder-ieee.h: New file.
38229         New module 'remainderf-ieee'.
38230         * modules/remainderf-ieee: New file.
38232 2012-02-27  Bruno Haible  <bruno@clisp.org>
38234         modff, modfl: Fix configure syntax error.
38235         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38236         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38238 2012-02-27  Bruno Haible  <bruno@clisp.org>
38240         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38241         * m4/fmodl-ieee.m4: New file.
38242         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38243         whether fmodl works with zero arguments. Replace it if not.
38244         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38245         (Depends-on): Add fmod-ieee.
38246         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38247         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38249         fmodf-ieee: Work around test failure on OSF/1.
38250         * m4/fmodf-ieee.m4: New file.
38251         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38252         whether fmodf works with zero arguments. Replace it if not.
38253         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38255         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38256         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38257         (Depends-on): Update dependencies.
38258         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38259         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38260         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38262         fmodf-ieee: Work around test failure on MSVC 9.
38263         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38264         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38266         fmod-ieee: Work around test failures on OSF/1, mingw.
38267         * m4/fmod-ieee.m4: New file.
38268         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38269         whether fmod works with zero arguments. Replace it if not.
38270         * lib/math.in.h (fmod): New declaration.
38271         * lib/fmod.c: New file.
38272         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38274         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38275         * modules/fmod (Files): Add lib/fmod.c.
38276         (Depends-on): Add math, isinf, trunc, fma.
38277         (configure.ac): Arrange to compile lib/fmod.c if needed.
38278         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38279         m4/signbit.m4.
38280         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38281         * tests/test-math-c++.cc: Check the declaration of fmod.
38282         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38284         fmodl-ieee: Fix test failures.
38285         * lib/fmodl.c (fmodl): Treat Inf specially.
38286         * modules/fmodl (Depends-on): Add isinf.
38288         Tests for module 'fmodl-ieee'.
38289         * modules/fmodl-ieee-tests: New file.
38290         * tests/test-fmodl-ieee.c: New file.
38292         New module 'fmodl-ieee'.
38293         * modules/fmodl-ieee: New file.
38295         Tests for module 'fmod-ieee'.
38296         * modules/fmod-ieee-tests: New file.
38297         * tests/test-fmod-ieee.c: New file.
38299         New module 'fmod-ieee'.
38300         * modules/fmod-ieee: New file.
38302         Tests for module 'fmodf-ieee'.
38303         * modules/fmodf-ieee-tests: New file.
38304         * tests/test-fmodf-ieee.c: New file.
38305         * tests/test-fmod-ieee.h: New file.
38307         New module 'fmodf-ieee'.
38308         * modules/fmodf-ieee: New file.
38310 2012-02-27  Bruno Haible  <bruno@clisp.org>
38312         Tests for module 'rintl-ieee'.
38313         * modules/rintl-ieee-tests: New file.
38314         * tests/test-rintl-ieee.c: New file.
38316         New module 'rintl-ieee'.
38317         * modules/rintl-ieee: New file.
38319         Tests for module 'rint-ieee'.
38320         * modules/rint-ieee-tests: New file.
38321         * tests/test-rint-ieee.c: New file.
38323         New module 'rint-ieee'.
38324         * modules/rint-ieee: New file.
38326         Tests for module 'rintf-ieee'.
38327         * modules/rintf-ieee-tests: New file.
38328         * tests/test-rintf-ieee.c: New file.
38329         * tests/test-rint-ieee.h: New file.
38331         New module 'rintf-ieee'.
38332         * modules/rintf-ieee: New file.
38334 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38336         regex: re_search etc. should return -2 when memory exhausted
38337         This bug was uncovered when testing 'grep'.  Without the fix,
38338         re_search and friends return -1 when memory is exhausted, but -1
38339         means no match, and this causes grep to falsely report no-match
38340         instead of memory-exhaustion.  See
38341         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38342         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38343         trouble; this can occur if re_search_internal ran out of memory.
38345 2012-02-26  Bruno Haible  <bruno@clisp.org>
38347         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38348         * m4/modfl-ieee.m4: New file.
38349         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38350         whether modfl works with Inf. Replace it if not.
38351         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38353         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38354         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38355         (Depends-on): Update dependencies.
38356         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38357         m4/signbit.m4.
38358         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38359         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38361         modfl-ieee: Fix dependencies.
38362         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38364         modfl-ieee: Fix test failures.
38365         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38366         * modules/modfl (Depends-on): Add isfinite, isinf.
38368         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38369         * m4/modff-ieee.m4: New file.
38370         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38371         whether modff works with NaN and Inf. Replace it if not.
38372         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38374         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38375         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38376         (Depends-on): Update dependencies.
38377         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38378         m4/signbit.m4.
38379         (Depends-on): Add modf-ieee.
38380         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38381         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38383         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38384         * m4/modf-ieee.m4: New file.
38385         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38386         whether modf works with NaN and Inf. Replace it if not.
38387         * lib/math.in.h (modf): New declaration.
38388         * lib/modf.c: New file.
38389         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38391         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38392         * modules/modf (Files): Add lib/modf.c.
38393         (Depends-on): Add math, isfinite, trunc, isinf.
38394         (configure.ac): Addrange to compile lib/modf.c if needed.
38395         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38396         m4/signbit.m4.
38397         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38398         * tests/test-math-c++.cc: Check the declaration of modf.
38399         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38401         Tests for module 'modfl-ieee'.
38402         * modules/modfl-ieee-tests: New file.
38403         * tests/test-modfl-ieee.c: New file.
38405         New module 'modfl-ieee'.
38406         * modules/modfl-ieee: New file.
38408         Tests for module 'modf-ieee'.
38409         * modules/modf-ieee-tests: New file.
38410         * tests/test-modf-ieee.c: New file.
38412         New module 'modf-ieee'.
38413         * modules/modf-ieee: New file.
38415         Tests for module 'modff-ieee'.
38416         * modules/modff-ieee-tests: New file.
38417         * tests/test-modff-ieee.c: New file.
38418         * tests/test-modf-ieee.h: New file.
38420         New module 'modff-ieee'.
38421         * modules/modff-ieee: New file.
38423 2012-02-26  Bruno Haible  <bruno@clisp.org>
38425         Tests for module 'fabsl-ieee'.
38426         * modules/fabsl-ieee-tests: New file.
38427         * tests/test-fabsl-ieee.c: New file.
38429         New module 'fabsl-ieee'.
38430         * modules/fabsl-ieee: New file.
38432         Tests for module 'fabs-ieee'.
38433         * modules/fabs-ieee-tests: New file.
38434         * tests/test-fabs-ieee.c: New file.
38436         New module 'fabs-ieee'.
38437         * modules/fabs-ieee: New file.
38439         Tests for module 'fabsf-ieee'.
38440         * modules/fabsf-ieee-tests: New file.
38441         * tests/test-fabsf-ieee.c: New file.
38442         * tests/test-fabs-ieee.h: New file.
38444         New module 'fabsf-ieee'.
38445         * modules/fabsf-ieee: New file.
38447 2012-02-26  Bruno Haible  <bruno@clisp.org>
38449         Tests for module 'fmal-ieee'.
38450         * modules/fmal-ieee-tests: New file.
38451         * tests/test-fmal-ieee.c: New file.
38453         New module 'fmal-ieee'.
38454         * modules/fmal-ieee: New file.
38456         Tests for module 'fma-ieee'.
38457         * modules/fma-ieee-tests: New file.
38458         * tests/test-fma-ieee.c: New file.
38460         New module 'fma-ieee'.
38461         * modules/fma-ieee: New file.
38463         Tests for module 'fmaf-ieee'.
38464         * modules/fmaf-ieee-tests: New file.
38465         * tests/test-fmaf-ieee.c: New file.
38466         * tests/test-fma-ieee.h: New file.
38468         New module 'fmaf-ieee'.
38469         * modules/fmaf-ieee: New file.
38471 2012-02-26  Bruno Haible  <bruno@clisp.org>
38473         Tests for module 'ldexpl-ieee'.
38474         * modules/ldexpl-ieee-tests: New file.
38475         * tests/test-ldexpl-ieee.c: New file.
38477         New module 'ldexpl-ieee'.
38478         * modules/ldexpl-ieee: New file.
38480         Tests for module 'ldexp-ieee'.
38481         * modules/ldexp-ieee-tests: New file.
38482         * tests/test-ldexp-ieee.c: New file.
38484         New module 'ldexp-ieee'.
38485         * modules/ldexp-ieee: New file.
38487         Tests for module 'ldexpf-ieee'.
38488         * modules/ldexpf-ieee-tests: New file.
38489         * tests/test-ldexpf-ieee.c: New file.
38490         * tests/test-ldexp-ieee.h: New file.
38492         New module 'ldexpf-ieee'.
38493         * modules/ldexpf-ieee: New file.
38495 2012-02-26  Bruno Haible  <bruno@clisp.org>
38497         Refactor frexp*-ieee tests.
38498         * tests/test-frexp-ieee.h: New file.
38499         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38500         (main): Just call test_function.
38501         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38502         (main): Just call test_function.
38503         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38504         (main): Just call test_function.
38505         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38506         * modules/frexp-ieee-tests (Files): Likewise.
38507         * modules/frexpl-ieee-tests (Files): Likewise.
38509         Tests for module 'frexpl-ieee'.
38510         * modules/frexpl-ieee-tests: New file.
38511         * tests/test-frexpl-ieee.c: New file.
38513         New module 'frexpl-ieee'.
38514         * modules/frexpl-ieee: New file.
38516         Tests for module 'frexp-ieee'.
38517         * modules/frexp-ieee-tests: New file.
38518         * tests/test-frexp-ieee.c: New file.
38520         New module 'frexp-ieee'.
38521         * modules/frexp-ieee: New file.
38523         Tests for module 'frexpf-ieee'.
38524         * modules/frexpf-ieee-tests: New file.
38525         * tests/test-frexpf-ieee.c: New file.
38527         New module 'frexpf-ieee'.
38528         * modules/frexpf-ieee: New file.
38530 2012-02-26  Bruno Haible  <bruno@clisp.org>
38532         roundl-ieee tests: More tests.
38533         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38534         (main): Add tests for [MX] shaded specification in POSIX.
38535         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38536         (Depends-on): Add isnanl-nolibm.
38538         round-ieee tests: More tests.
38539         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38540         (main): Add tests for [MX] shaded specification in POSIX.
38541         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38542         (Depends-on): Add isnand-nolibm.
38544         roundf-ieee tests: More tests.
38545         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38546         (main): Add tests for [MX] shaded specification in POSIX.
38547         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38548         (Depends-on): Add isnanf-nolibm.
38550         truncl-ieee tests: More tests.
38551         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38552         (main): Add tests for [MX] shaded specification in POSIX.
38553         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38554         (Depends-on): Add isnanl-nolibm.
38556         trunc-ieee tests: More tests.
38557         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38558         (main): Add tests for [MX] shaded specification in POSIX.
38559         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38560         (Depends-on): Add isnand-nolibm.
38562         truncf-ieee tests: More tests.
38563         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38564         (main): Add tests for [MX] shaded specification in POSIX.
38565         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38566         (Depends-on): Add isnanf-nolibm.
38568         ceill-ieee tests: More tests.
38569         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38570         (main): Add tests for [MX] shaded specification in POSIX.
38571         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38572         (Depends-on): Add isnanl-nolibm.
38574         ceil-ieee tests: More tests.
38575         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38576         (main): Add tests for [MX] shaded specification in POSIX.
38577         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38578         (Depends-on): Add isnand-nolibm.
38580         ceilf-ieee tests: More tests.
38581         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38582         (main): Add tests for [MX] shaded specification in POSIX.
38583         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38584         (Depends-on): Add isnanf-nolibm.
38586         floorl-ieee tests: More tests.
38587         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38588         (main): Add tests for [MX] shaded specification in POSIX.
38589         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38590         (Depends-on): Add isnanl-nolibm.
38592         floor-ieee tests: More tests.
38593         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38594         (main): Add tests for [MX] shaded specification in POSIX.
38595         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38596         (Depends-on): Add isnand-nolibm.
38598         floorf-ieee tests: More tests.
38599         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38600         (main): Add tests for [MX] shaded specification in POSIX.
38601         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38602         (Depends-on): Add isnanf-nolibm.
38604 2012-02-26  Bruno Haible  <bruno@clisp.org>
38606         fpieee: More comments.
38607         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38609 2012-02-25  Bruno Haible  <bruno@clisp.org>
38611         Tests for module 'log10l'.
38612         * modules/log10l-tests: New file.
38613         * tests/test-log10l.c: New file.
38614         * tests/test-math-c++.cc: Check the declaration of log10l.
38616         New module 'log10l'.
38617         * lib/math.in.h (log10l): New declaration.
38618         * lib/log10l.c: New file.
38619         * m4/log10l.m4: New file.
38620         * modules/log10l: New file.
38621         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38623         HAVE_DECL_LOG10L.
38624         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38625         HAVE_DECL_LOG10L.
38626         * doc/posix-functions/log10l.texi: Mention the new module.
38628 2012-02-25  Bruno Haible  <bruno@clisp.org>
38630         fmodl, remainder*: Avoid wrong results due to rounding errors.
38631         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38632         expected bounds.
38633         * lib/remainderf.c (remainderf): Likewise.
38634         * lib/remainder.c (remainder): Likewise.
38635         * lib/remainderl.c (remainderl): Likewise.
38637 2012-02-25  Bruno Haible  <bruno@clisp.org>
38639         Tests for module 'remainderl'.
38640         * modules/remainderl-tests: New file.
38641         * tests/test-remainderl.c: New file.
38642         * tests/test-math-c++.cc: Check the declaration of remainderl.
38644         New module 'remainderl'.
38645         * lib/math.in.h (remainderl): New declaration.
38646         * lib/remainderl.c: New file.
38647         * m4/remainderl.m4: New file.
38648         * modules/remainderl: New file.
38649         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38651         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38652         HAVE_REMAINDERL.
38653         * doc/posix-functions/remainderl.texi: Mention the new module.
38655 2012-02-25  Bruno Haible  <bruno@clisp.org>
38657         Tests for module 'remainderf'.
38658         * modules/remainderf-tests: New file.
38659         * tests/test-remainderf.c: New file.
38660         * tests/test-math-c++.cc: Check the declaration of remainderf.
38662         New module 'remainderf'.
38663         * lib/math.in.h (remainderf): New declaration.
38664         * lib/remainderf.c: New file.
38665         * m4/remainderf.m4: New file.
38666         * modules/remainderf: New file.
38667         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38669         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38670         HAVE_REMAINDERF.
38671         * doc/posix-functions/remainderf.texi: Mention the new module.
38673 2012-02-25  Bruno Haible  <bruno@clisp.org>
38675         remainder: Support for MSVC.
38676         * lib/math.in.h (remainder): New declaration.
38677         * lib/remainder.c: New file.
38678         * m4/remainder.m4: New file.
38679         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38680         (Depends-on): Add math, round, fma.
38681         (configure.ac): Use results of gl_FUNC_REMAINDER.
38682         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38684         HAVE_DECL_REMAINDER.
38685         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38686         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38687         * tests/test-math-c++.cc: Check the declaration of remainder.
38688         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38689         problems are fixed.
38691 2012-02-25  Bruno Haible  <bruno@clisp.org>
38693         Tests for module 'fmodl'.
38694         * modules/fmodl-tests: New file.
38695         * tests/test-fmodl.c: New file.
38696         * tests/test-math-c++.cc: Check the declaration of fmodl.
38698         New module 'fmodl'.
38699         * lib/math.in.h (fmodl): New declaration.
38700         * lib/fmodl.c: New file.
38701         * m4/fmodl.m4: New file.
38702         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38704         REPLACE_FMODL.
38705         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38706         REPLACE_FMODL.
38707         * modules/fmodl: New file.
38708         * doc/posix-functions/fmodl.texi: Mention the new module.
38710 2012-02-25  Bruno Haible  <bruno@clisp.org>
38712         Tests for module 'modfl'.
38713         * modules/modfl-tests: New file.
38714         * tests/test-modfl.c: New file.
38715         * tests/test-math-c++.cc: Check the declaration of modfl.
38717         New module 'modfl'.
38718         * lib/math.in.h (modfl): New declaration.
38719         * lib/modfl.c: New file.
38720         * m4/modfl.m4: New file.
38721         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38723         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38724         * modules/modfl: New file.
38725         * doc/posix-functions/modfl.texi: Mention the new module.
38727 2012-02-25  Bruno Haible  <bruno@clisp.org>
38729         Tests for module 'fabsl'.
38730         * modules/fabsl-tests: New file.
38731         * tests/test-fabsl.c: New file.
38732         * tests/test-math-c++.cc: Check the declaration of fabsl.
38734         New module 'fabsl'.
38735         * lib/math.in.h (fabsl): New declaration.
38736         * lib/fabsl.c: New file.
38737         * m4/fabsl.m4: New file.
38738         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38740         REPLACE_FABSL.
38741         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38742         REPLACE_FABSL.
38743         * modules/fabsl: New file.
38744         * doc/posix-functions/fabsl.texi: Mention the new module.
38746 2012-02-25  Bruno Haible  <bruno@clisp.org>
38748         fabs tests: More tests.
38749         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38750         (zero): New variable.
38751         (main): Add tests for signed zero.
38752         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38754         fabsf tests: More tests.
38755         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38756         (zero): New variable.
38757         (main): Add tests for signed zero.
38758         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38760 2012-02-24  Bruno Haible  <bruno@clisp.org>
38762         atanl: Provide function definition on MSVC.
38763         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38764         function pointer.
38765         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38767 2012-02-24  Bruno Haible  <bruno@clisp.org>
38769         acosl: Provide function definition on MSVC.
38770         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38771         function pointer.
38772         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38774 2012-02-24  Bruno Haible  <bruno@clisp.org>
38776         asinl: Provide function definition on MSVC.
38777         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38778         function pointer.
38779         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38781 2012-02-24  Bruno Haible  <bruno@clisp.org>
38783         tanl: Provide function definition on MSVC.
38784         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38785         function pointer.
38786         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38788 2012-02-24  Bruno Haible  <bruno@clisp.org>
38790         cosl: Provide function definition on MSVC.
38791         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38792         function pointer.
38793         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38795 2012-02-24  Bruno Haible  <bruno@clisp.org>
38797         sinl: Provide function definition on MSVC.
38798         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38799         function pointer.
38800         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38802 2012-02-24  Bruno Haible  <bruno@clisp.org>
38804         logl: Provide function definition on MSVC.
38805         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38806         function pointer.
38807         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38809 2012-02-24  Bruno Haible  <bruno@clisp.org>
38811         expl: Provide function definition on MSVC.
38812         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38813         function pointer.
38814         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38816 2012-02-24  Bruno Haible  <bruno@clisp.org>
38818         sqrtl: Provide function definition on MSVC.
38819         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38820         a function pointer.
38821         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38823 2012-02-24  Bruno Haible  <bruno@clisp.org>
38825         ceill: Provide function definition on MSVC.
38826         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38827         used as a function pointer.
38828         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38830 2012-02-24  Bruno Haible  <bruno@clisp.org>
38832         floorl: Provide function definition on MSVC.
38833         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38834         used as a function pointer.
38835         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38837 2012-02-24  Bruno Haible  <bruno@clisp.org>
38839         ceilf: Provide function definition on MSVC.
38840         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38841         used as a function pointer.
38842         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38844 2012-02-24  Bruno Haible  <bruno@clisp.org>
38846         floorf: Provide function definition on MSVC.
38847         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38848         used as a function pointer.
38849         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38851 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38853         stdnoreturn: new module
38854         This implements a replacement for C11's <stdnoreturn.h>.
38855         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38856         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38857         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38858         * tests/test-stdnoreturn.c: New files.
38860 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38862         regex: fix false multibyte matches in some regular expressions
38863         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38864         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38865         * lib/regex_internal.c (re_string_skip_chars):
38866         Fix miscomputation of remain_len that may cause incomplete
38867         multi-byte character and false match.
38869 2012-02-24  Jim Meyering  <meyering@redhat.com>
38871         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38872         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38873         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38874         Remove now-unnecessary str''cmp obfuscation.
38875         Suggested by Akim Demaille.
38877 2012-02-24  Bruno Haible  <bruno@clisp.org>
38879         streq: Rename macro.
38880         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38881         * NEWS: Mention the change.
38882         * lib/mbrtowc.c (mbrtowc): Update.
38883         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38884         * lib/wcwidth.c (wcwidth): Update.
38885         Suggested by Akim Demaille and Jim Meyering.
38887 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38889         regex: fix typo in definition of MIN
38890         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38891         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38893 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38894             Bruno Haible  <bruno@clisp.org>
38896         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38897         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38898         entries into a stack-allocated buffer directly.
38899         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38901 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38902             Bruno Haible  <bruno@clisp.org>
38904         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38906          - There were several instances of this pattern:
38908              for (;;) {
38909                n = acl (f, GETACLCNT, 0, NULL);
38910                [ allocate an array A of size N ]
38911                if (acl (f, GETACL, n, a) == n)
38912                  break;
38913              }
38915            This loop might never terminate if some other process is constantly
38916            manipulating the file's ACL.  The loop should be rewritten to
38917            terminate.
38919          - The acl (... GETACLNT ...) call is merely an optimization; its value
38920            is merely a hint as to how big to make the array.  A better
38921            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38922            and just guess a reasonably-big size, growing the size and trying
38923            again if it's not large enough.  This guarantees termination, and
38924            saves a system call.
38926         * lib/acl-internal.h: Include <limits.h>.
38927         (MIN, SIZE_MAX): New macros.
38928         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38929         a stack-allocated buffer, and use malloc if it does not fit. Don't
38930         use GETACLCNT.
38931         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38933 2012-02-19  Bruno Haible  <bruno@clisp.org>
38935         acl: Fix endless loop on Solaris with vxfs.
38936         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38937         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38938         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38939         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38940         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38941         Reported by Bill Jones in
38942         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38944 2012-02-19  Bruno Haible  <bruno@clisp.org>
38946         acl: Fix copy-acl test failure on Solaris 11.0.
38947         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38948         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38949         that this function returns 0 in some more cases.
38951 2012-02-19  Bruno Haible  <bruno@clisp.org>
38953         acl: Update doc references.
38954         * doc/acl-resources.txt: Update links to Solaris documentation.
38956 2012-02-19  Bruno Haible  <bruno@clisp.org>
38958         Fix test failure in many locales on Solaris 11.
38959         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38960         'tr' arguments.
38961         * tests/test-pipe-filter-ii1.c (main): Likewise.
38962         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38963         expressions in the C locale.
38964         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38965         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38967 2012-02-19  Bruno Haible  <bruno@clisp.org>
38969         gnulib-tool: Improve usage message.
38970         * gnulib-tool (func_usage): Move doc of --help and --version to the
38971         section "Operation modes".
38973 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
38975         README-release: make it easier to execute commands
38976         * top/README-release: break commands out on to separate lines.
38978 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
38980         GNUmakefile: simplify detection of unconfigured trees
38981         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
38982         whether the tree make is being run from is already configured or
38983         not.  Related simplifications.
38985 2012-02-13  Simon Josefsson  <simon@josefsson.org>
38987         * gnulib-tool (func_usage): Document --help and --version.
38989 2012-02-11  Jim Meyering  <meyering@redhat.com>
38991         bootstrap: don't exit 0 upon gnulib-tool failure
38992         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
38993         its exit status, not 0.
38995 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
38997         README-release: various improvements
38998         * top/README-release: Give a command to push changes for the
38999         release.  Add "distcheck" to list of other pre-release checks.
39000         Fix instance of "make stable" which should be "make TYPE".
39002 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39004         maint: replace FSF snail-mail addresses with URLs
39005         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39006         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39007         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39008         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39009         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39010         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39011         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39012         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39013         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39014         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39015         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39016         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39017         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39018         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39019         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39020         * lib/glthread/thread.c, lib/glthread/thread.h:
39021         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39022         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39023         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39024         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39025         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39026         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39027         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39028         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39029         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39030         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39031         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39032         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39033         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39034         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39035         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39036         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39037         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39038         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39039         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39040         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39041         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39042         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39043         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39044         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39045         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39046         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39047         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39048         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39049         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39050         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39051         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39052         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39053         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39054         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39055         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39056         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39057         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39058         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39059         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39060         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39061         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39062         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39063         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39064         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39065         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39066         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39067         * tests/test-poll.c, tests/test-quotearg-simple.c:
39068         * tests/test-quotearg.c, tests/test-quotearg.h:
39069         * tests/test-round-ieee.c, tests/test-round1.c:
39070         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39071         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39072         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39073         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
39074         * tests/test-strerror.c, tests/test-strerror_r.c:
39075         * tests/test-strsignal.c, tests/test-strverscmp.c:
39076         * tests/test-xmemdup0.c:
39077         Replace FSF snail mail addresses with URLs, as per GNU coding
39078         standards.  See glibc bug
39079         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
39081 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
39083         README-release: capitalize a word and split a line
39084         * top/README-release: Fix punctuation and spacing.
39086 2012-02-08  Akim Demaille  <demaille@gostai.com>
39088         fatal-signal: use C prototypes (with explicit void).
39089         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39090         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
39092 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39094         regex: spelling fix
39095         * lib/regexec.c: spelling fix
39097         regex: rely on stdint.h for SIZE_MAX
39098         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
39100 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
39102         regex: merge glibc changes
39104         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
39105         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
39106         (init_word_char): Work even if bitset words are not exactly 32 or
39107         64 bits wide.  Don't assume there are no padding bits.
39108         * lib/regex.c [_LIBC]: Do not include <config.h>.
39109         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39110         and -Wtype-limits.
39111         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39112         needless disagreement with glibc.  All uses changed.  Define it to
39113         1 only if _GNU_SOURCE, to match glibc.
39114         (_REG_RM_NAME): Remove; no longer needed, since the names in
39115         question are now all protected by __USE_GNU.
39116         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39117         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39118         * lib/regex_internal.h (MIN): New macro.
39120         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39121         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39123         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39124         * lib/regex_internal.c (re_string_fetch_byte_case):
39125         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39126         is miscompiled, and it turns out it is because of an incorrect
39127         attribute on re_string_fetch_byte_case.  Unlike
39128         re_string_peek_byte_case, this one is really not pure, it modifies
39129         memory (increments pstr->cur_idx), and with the pure attribute GCC
39130         assumed it doesn't and it cached the presumed value of
39131         regexp->cur_idx in a variable across the
39132          for (;; ++i)
39133            {
39134              if (i >= BRACKET_NAME_BUF_SIZE)
39135                return REG_EBRACK;
39136              if (token->type == OP_OPEN_CHAR_CLASS)
39137                ch = re_string_fetch_byte_case (regexp);
39138              else
39139                ch = re_string_fetch_byte (regexp);
39140              if (re_string_eoi(regexp))
39141                return REG_EBRACK;
39142              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39143                break;
39144              elem->opr.name[i] = ch;
39145            }
39147         2011-11-29 Andreas Schwab <schwab@redhat.com>
39148         * lib/regcomp.c (build_equiv_class):
39149         Fix access after end of search string in regex matcher.
39151         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39152         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39154         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39155         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39157         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39158         * lib/regcomp.c (parse_branch, parse_sub_exp):
39159         More regex memory leak fixes and tests.
39160         (parse_sub_exp, parse_bracket_exp):
39161         Fix memory leak for some invalid regular expressions.
39163         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39164         * lib/regex_internal.c, lib/regexec.c:
39165         Fix unnecessary overallocation due to incomplete character.  When
39166         incomplete characters are found at the end of a string the code
39167         ran amok and allocated lots of memory.  Stricter limits are now in
39168         place.
39170         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39171         * lib/regex.h: Update documentation.
39173         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39174         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39176         2010-05-05 Andreas Schwab <schwab@redhat.com>
39177         * lib/regexec.c (find_collation_sequence_value):
39178         Fix lookup of collation sequence value during regexp matching.
39180         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39181         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39183         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39184         * lib/regex.h: Cleanup namespace.
39186         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39187         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39189         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39190         * lib/regex_internal.h: Prevent some declarations and definitions
39191         to be seen when used in tests.
39193         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39194         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39195         __libc_lock_* macros if not _LIBC.
39196         (struct re_dfa_t): Add lock.
39198 2012-02-07  Eric Blake  <eblake@redhat.com>
39200         maint.mk: also prohibit lower-case @var@
39201         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39202         lower case, like @top_srcdir@.
39204 2012-02-04  Eric Blake  <eblake@redhat.com>
39206         canonicalize: avoid uninitialized memory use
39207         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39208         random '/' left in dest.
39209         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39211 2012-02-04  Bruno Haible  <bruno@clisp.org>
39213         isatty: Fix test failure of ptsname_r on native Windows.
39214         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39215         and don't set errno.
39216         (isatty): Test first whether fd is valid. Set errno when returning 0.
39218 2012-02-04  Bruno Haible  <bruno@clisp.org>
39220         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39221         * tests/test-spawn-pipe-main.c: Include progname.h.
39222         (main): Invoke set_program_name.
39223         * modules/spawn-pipe-tests (Depends-on): Add progname.
39225         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39226         * tests/test-nonblocking-socket-main.c: Include progname.h.
39227         (main): Invoke set_program_name.
39228         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39230         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39231         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39232         (main): Invoke set_program_name.
39233         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39235 2012-02-04  Eric Blake  <eblake@redhat.com>
39237         canonicalize-lgpl: fix // handling
39238         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39240         canonicalize: fix // handling
39241         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39242         /// to //, since only // is special.
39244 2012-02-04  Bruno Haible  <bruno@clisp.org>
39246         ioctl: Fix test failure on native Windows.
39247         * lib/ioctl.c: Include msvc-nothrow.h.
39248         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39250 2012-02-04  Bruno Haible  <bruno@clisp.org>
39252         fsync: Avoid test failure on native Windows.
39253         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39254         read-only.
39256 2012-02-04  Bruno Haible  <bruno@clisp.org>
39258         sys_select: Avoid syntax error on OpenBSD 5.0.
39259         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39260         currently being included, just include the system's <sys/select.h>.
39262 2012-02-04  Bruno Haible  <bruno@clisp.org>
39264         sys_select: Avoid syntax error on OpenBSD 5.0.
39265         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39266         <sys/select.h>, not before.
39267         Reported by Jiri B <jirib@devio.us>.
39269 2012-02-04  Bruno Haible  <bruno@clisp.org>
39271         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39272         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39273         global variables.
39274         * tests/test-get-rusage-data.c (main): Likewise.
39275         Reported by Jim Meyering.
39277 2012-02-04  Bruno Haible  <bruno@clisp.org>
39279         stdioext: Fix last commit.
39280         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39282 2012-02-03  Bruno Haible  <bruno@clisp.org>
39284         stdioext: Add tentative support for Plan9.
39285         * lib/stdio-impl.h: Include <errno.h>.
39286         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39287         * lib/freadable.c (freadable): Likewise.
39288         * lib/fwritable.c (fwritable): Likewise.
39289         * lib/fbufmode.c (fbufmode): Likewise.
39290         * lib/freading.c (freading): Likewise.
39291         * lib/fwriting.c (fwriting): Likewise.
39292         * lib/freadptr.c (freadptr): Likewise.
39293         * lib/freadseek.c (freadptrinc): Likewise.
39294         * lib/freadahead.c (freadahead): Likewise.
39295         * lib/fpurge.c (fpurge): Likewise.
39296         * lib/fseeko.c (rpl_fseeko): Likewise.
39297         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39298         Reported by Jens Staal <staal1978@gmail.com>.
39300 2012-02-02  Jim Meyering  <meyering@redhat.com>
39302         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39303         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39304         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39305         not even to try to add the attribute.  Instead, add a pragma to suppress
39306         the suggestion/warning.
39308 2012-01-31  Karl Berry  <karl@gnu.org>
39310         setstate doc: typo.
39311         * doc/posix-functions/setstate.texi (setstate): { not (.
39313 2012-01-31  Bruno Haible  <bruno@clisp.org>
39315         popen: Make more robust on Windows.
39316         * lib/popen.c: On native Windows, use the _popen based code even if
39317         HAVE_POPEN is set.
39318         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39319         environment variable on native Windows.
39321 2012-01-30  Bruno Haible  <bruno@clisp.org>
39323         pclose: Fix typo.
39324         * lib/stdio.in.h (pclose): Fix typo in warning message.
39326 2012-01-30  Bruno Haible  <bruno@clisp.org>
39328         doc about getlogin_r, setstate.
39329         * doc/posix-functions/getlogin_r.texi: List the incompatible
39330         declaration problem under "not fixed by gnulib".
39331         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39332         problem on Solaris 11 and other platforms.
39334 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39335             Bruno Haible  <bruno@clisp.org>
39337         poll tests: Make test more robust.
39338         * tests/test-poll.c: Include macros.h.
39339         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39340         return value of various I/O operations.
39341         * modules/poll-tests (Files): Add tests/macros.h.
39343 2012-01-30  Bruno Haible  <bruno@clisp.org>
39345         sys_stat: Fix support for mingw64 and MSVC.
39346         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39347         header files already do it.
39348         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39349         stat itself.
39350         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39352 2012-01-30  Bruno Haible  <bruno@clisp.org>
39354         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39356         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39358 2012-01-29  Bruno Haible  <bruno@clisp.org>
39360         quotearg: Fix test failure on MacOS X 10.5.
39361         * tests/test-quotearg-simple.c: Include localcharset.h.
39362         (main): If the locale encoding is not ASCII, bypass the tests of
39363         locale_quoting_style and clocale_quoting_style.
39364         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39366 2012-01-29  Jim Meyering  <meyering@redhat.com>
39368         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39369         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39370         detect uses of canonicalize_file_name.
39372 2012-01-28  Bruno Haible  <bruno@clisp.org>
39374         test-framework-sh: Fix test failure with AIX 7.1 diff.
39375         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39376         in column 1, like 'diff -c' does.
39377         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39378         whether 'diff -u' is used. Instead, test whether the output contains
39379         some '@' character.
39381 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39383         strtoimax: eliminate need for stdint.h, inttypes.h checks
39384         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39385         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39386         the prerequisites for a recently-introduced strtoimax test.
39387         I guess this might cause strtoimax to be replaced when not
39388         strictly necessary on older hosts, but this shouldn't introduce
39389         any bugs and it should make Emacs 'configure' faster on typical
39390         modern hosts.  Problem discovered when importing the latest gnulib
39391         to an Emacs test version.
39392         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39394 2012-01-28  Bruno Haible  <bruno@clisp.org>
39396         sys_time: Override 'struct timeval' on some native Windows platforms.
39397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39398         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39399         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39400         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39401         needs to be overridden.
39402         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39403         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39404         * tests/test-sys_select.c: Check that the tv_sec member has the same
39405         size as a 'time_t'.
39406         * tests/test-sys_time.c: Likewise.
39407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39408         is set, set also REPLACE_GETTIMEOFDAY.
39409         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39410         convert the resulting 'struct timeval' before returning.
39411         * lib/select.c: Include <sys/time.h>.
39412         (select, timeval): Undefine at the right place.
39413         * modules/select (Depends-on): Add sys_time.
39414         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39415         some Windows platforms.
39416         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39418 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39420         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39421         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39422         an integer.
39423         * lib/fcntl.c (dupfd): Likewise.
39424         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39426 2012-01-28  Bruno Haible  <bruno@clisp.org>
39428         fcntl: Avoid compilation error on native Windows.
39429         * modules/fcntl (Depends-on): Add 'close'.
39431 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39433         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39434         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39435         pointer to an integer.
39436         * lib/poll.c (IsConsoleHandle): Likewise.
39437         * lib/isatty.c (IsConsoleHandle): Likewise.
39439 2012-01-28  Jim Meyering  <meyering@redhat.com>
39441         doc: clarify README-release
39442         * top/README-release: Clarify: you should make a point to have
39443         the latest stable versions of build tools in your PATH, and the
39444         reference to buildreq is solely for its list of tool names, not
39445         for its minimal-functional version numbers.
39446         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39448         maint.mk: use more readable (yet functionally equivalent) quoting
39449         It is common to quote a single quote in a single quoted string like
39450         this:  '...'\''...'.  Unless you know the idiom, that looks like
39451         gibberish, so prefer to double-quote the string when possible.
39452         Then you can use a more readable, lone single quote: "...'..."
39453         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39454         "don't" is more readable than the equivalent 'don'\''t'.
39455         (sc_cast_of_x_alloc_return_value): Likewise.
39456         (sc_cast_of_alloca_return_value): Likewise.
39457         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39458         rather than '\'':'\''.
39460 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39462         stdalign: relax _Alignof and tighten _Alignas test
39463         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39464         as it was too strict: alignof must divide offsetof, but it need
39465         not equal offsetof.  Inspired by Joseph S. Myers's comment
39466         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39467         Conversely, tighten the _Alignas test a bit, as the resulting
39468         alignment must be exactly 8.
39470 2012-01-27  Bruno Haible  <bruno@clisp.org>
39472         stdalign: Document the last change.
39473         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39475 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39477         stdalign: check that alignof and offsetof are consistent
39478         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39479         Problem reported for gnulib by Richard W.M. Jones in
39480         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39482 2012-01-27  Jim Meyering  <meyering@redhat.com>
39484         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39485         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39486         convert a sequence with gaps to the minimal containing range.
39487         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39488         * tests/test-update-copyright.sh: Test for this.
39489         The FSF confirmed it is ok to do this, assuming there is at
39490         least one significant change per year in the affected range:
39491         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39493 2012-01-26  Bruno Haible  <bruno@clisp.org>
39495         pipe2: refine doc about thread-safety
39496         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39497         multithread-safety problem.
39498         * doc/glibc-functions/accept4.texi: Likewise.
39500 2012-01-26  Bruno Haible  <bruno@clisp.org>
39502         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39503         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39504         In the test program, include <fcntl.h>, for O_RDONLY.
39506 2012-01-26  Eric Blake  <eblake@redhat.com>
39508         pipe2: document lack of thread-safety in replacement
39509         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39510         issue in replacement.
39511         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39512         Based on a report by Eric Wong.
39514 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39515             Bruno Haible  <bruno@clisp.org>
39517         malloca: Avoid warnings on x86_64 mingw64.
39518         * lib/malloca.c: Include <stdint.h>.
39519         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39520         * modules/malloca (Depends-on): Add stdint.
39521         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39523 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39525         obstack: remove __STDC__ conditionals
39526         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39527         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39528         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39529         m4/include_next.m4 as the only gnulib-maintained places that still
39530         refer to __STDC__.
39532 2012-01-24  Bruno Haible  <bruno@clisp.org>
39534         havelib: Modern quoting.
39535         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39536         the recent change to the GNU coding standards.
39538 2012-01-24  Bruno Haible  <bruno@clisp.org>
39540         stdint: Improve support for Android.
39541         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39542         Reported by Simon Josefsson <simon@josefsson.org>.
39544 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39546         doc: omit trailing empty lines from INSTALL etc.
39547         * doc/Makefile (INSTALL): Omit trailing empty lines.
39548         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39549         omit trailing empty lines.  This simplifies the build procedure.
39551 2012-01-23  Jim Meyering  <meyering@redhat.com>
39553         tests: avoid spurious warnings about gl_sockets_startup
39554         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39555         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39556         reporting a "statement with no effect".
39557         * tests/test-accept.c (main): Mark as "(void)".
39558         * tests/test-accept4.c (main): Likewise.
39559         * tests/test-bind.c (main): Likewise.
39560         * tests/test-connect.c (main): Likewise.
39561         * tests/test-getpeername.c (main): Likewise.
39562         * tests/test-getsockname.c (main): Likewise.
39563         * tests/test-getsockopt.c (main): Likewise.
39564         * tests/test-listen.c (main): Likewise.
39565         * tests/test-recv.c (main): Likewise.
39566         * tests/test-recvfrom.c (main): Likewise.
39567         * tests/test-send.c (main): Likewise.
39568         * tests/test-sendto.c (main): Likewise.
39569         * tests/test-setsockopt.c (main): Likewise.
39570         * tests/test-shutdown.c (main): Likewise.
39572 2012-01-21  Bruno Haible  <bruno@clisp.org>
39574         locale-fr.m4: Fix for Android.
39575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39576         failure of the test program on Bionic libc.
39578 2012-01-21  Jim Meyering  <meyering@redhat.com>
39580         bootstrap: fail when bootstrap_post_import_hook fails
39581         Otherwise, it's far too easy to miss diagnostics emitted
39582         between gnulib-tool's output and that of running configure.
39583         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39585 2012-01-17  Jim Meyering  <meyering@redhat.com>
39587         maint: enable sc_trailing_blank
39588         * build-aux/pmccabe.css: Remove trailing blanks.
39589         * doc/acl-cygwin.txt: Likewise.
39590         * doc/gnu-oids.texi: Likewise
39591         * cfg.mk: Enable sc_trailing_blank.
39592         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39594 2012-01-17  Jim Meyering  <meyering@redhat.com>
39596         maint: enable sc_prohibit_openat_without_use
39597         * cfg.mk: Enable sc_prohibit_openat_without_use.
39598         Exempt lib/selinux-at.c.
39600 2012-01-17  Jim Meyering  <meyering@redhat.com>
39602         maint: enable sc_prohibit_cloexec_without_use
39603         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39604         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39606 2012-01-17  Jim Meyering  <meyering@redhat.com>
39608         maint: enable sc_prohibit_intprops_without_use
39609         * cfg.mk: Enable sc_prohibit_intprops_without_use
39610         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39612 2012-01-17  Jim Meyering  <meyering@redhat.com>
39614         maint: enable sc_prohibit_hash_pjw_without_use
39615         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39616         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39617         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39618         following " (".
39620 2012-01-17  Jim Meyering  <meyering@redhat.com>
39622         maint: enable double-word-prohibiting rule
39623         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39624         Exempt three files.
39626 2012-01-17  Jim Meyering  <meyering@redhat.com>
39628         maint: remove empty lines at EOF, but excluding modules/*
39629         Apply syntax rules at home as well as abroad.  Most changes
39630         were induced by running this:
39631           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39632             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39633             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39634         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39635         Exempt modules/* and two binary files.
39636         Also exempt doc/INSTALL*, per request from Bruno Haible.
39637         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39638         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39639         * doc/Copyright/request-assign.future: Likewise.
39640         * doc/Copyright/request-disclaim.changes: Likewise.
39641         * doc/INSTALL: Likewise.
39642         * doc/INSTALL.ISO: Likewise.
39643         * doc/INSTALL.UTF-8: Likewise.
39644         * doc/acl-cygwin.txt: Likewise.
39645         * doc/acl-resources.txt: Likewise.
39646         * doc/fdl-1.2.texi: Likewise.
39647         * doc/fdl-1.3.texi: Likewise.
39648         * doc/fdl.texi: Likewise.
39649         * lib/argp-pin.c: Likewise.
39650         * lib/round.c: Likewise.
39651         * lib/unicase/u16-totitle.c: Likewise.
39652         * lib/unictype/block_test.c: Likewise.
39653         * lib/uninorm/canonical-decomposition.c: Likewise.
39654         * m4/README: Likewise.
39655         * m4/relocatable-lib.m4: Likewise.
39656         * tests/test-isnand-nolibm.c: Likewise.
39657         * tests/test-isnand.c: Likewise.
39658         * tests/uninorm/NormalizationTest.txt: Likewise.
39660 2012-01-17  Jim Meyering  <meyering@redhat.com>
39662         maint: add framework to run syntax-check rules against gnulib sources
39663         * cfg.mk: New file, to disable all currently-failing tests.
39664         We'll enable them one by one, as they are made to pass.
39665         * Makefile (sc_maint): New rule.
39667 2012-01-21  Bruno Haible  <bruno@clisp.org>
39669         stdint: Add support for Android.
39670         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39671         include the system's <stdint.h>.
39672         Reported by Simon Josefsson <simon@josefsson.org>.
39674 2012-01-19  Jim Meyering  <meyering@redhat.com>
39676         bootstrap: add bootstrap_post_import_hook
39677         Bison does still need something like the gnulib_mk_hook whose
39678         invocation I had to remove along with slurp in commit 767ccd40.
39679         Technically, we could get along without it, but doing so would
39680         have required living with a warning and a mandatory post-bootstrap
39681         automake rerun.
39682         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39683         (bootstrap_post_import_hook): New function.
39684         Invoke it after gnulib-tool --import and before autoreconf.
39686 2012-01-18  Jim Meyering  <meyering@redhat.com>
39688         gitlog-to-changelog: don't use "no_"-prefixed variable name
39689         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39690         to enable both --cluster and --no-cluster.  Change variable name,
39691         s/\$no_cluster/$cluster/, and reverse usage to match.
39693         gitlog-to-changelog: use "||", not "or" in expressions
39694         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39695         expressions.
39697 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39699         gitlog-to-changelog: new option --no-cluster
39700         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39701         clustering of adjacent commit messages.
39703 2012-01-17  Jim Meyering  <meyering@redhat.com>
39705         maint: spell file systems with two words, not one
39706         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39707         two words, not one.
39709 2012-01-16  Jim Meyering  <meyering@redhat.com>
39711         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39712         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39714 2012-01-16  Eric Blake  <eblake@redhat.com>
39716         bootstrap: cater to autoconf 2.59
39717         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39718         is not available.
39720         bootstrap: properly check for libtool
39721         * build-aux/bootstrap (libtoolize): Also run libtool when older
39722         usage is detected.
39724 2012-01-15  Bruno Haible  <bruno@clisp.org>
39726         Improve support for MSVC 9.
39727         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39728         clashes on MSVC.
39729         * lib/fcntl.in.h: Likewise.
39730         * lib/stdlib.in.h: Likewise.
39731         * lib/sys_stat.in.h: Likewise.
39733 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39735         gnupload: we hold the master copy of this script now
39736         For motivation and more information, see:
39737         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39738         * build-aux/gnupload: Make it clear in the heading comments that the
39739         master copy of this file is maintained by gnulib.  Since we are at
39740         it, bump its copyright year and ...
39741         ($scriptversion): ... the date in its version.
39742         ($usage): Patches and bug reports should be sent to the gnulib list,
39743         not the automake one.
39744         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39745         anymore.
39747 2012-01-15  Bruno Haible  <bruno@clisp.org>
39749         Fix module 'random'.
39750         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39751         initstate, setstate are declared.
39753 2012-01-14  Bruno Haible  <bruno@clisp.org>
39755         Tests for module 'random'.
39756         * modules/random-tests: New file.
39757         * tests/test-random.c: New file, based on tests/test-random_r.c.
39759         New module 'random'.
39760         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39761         declarations.
39762         * lib/random.c: New file, based on glibc/stdlib/random.c.
39763         * m4/random.m4: New file.
39764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39765         HAVE_RANDOM.
39766         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39767         * modules/random: New file.
39768         * config/srclist.txt: Add an entry for random.c.
39769         * doc/posix-functions/random.texi: Mention the 'random' module.
39770         * doc/posix-functions/initstate.texi: Likewise.
39771         * doc/posix-functions/setstate.texi: Likewise.
39772         * doc/posix-functions/srandom.texi: Likewise.
39774 2012-01-12  Bruno Haible  <bruno@clisp.org>
39776         random_r: Use common idioms.
39777         * lib/random_r.c: Include <stdlib.h> first.
39779         random_r: Override incompatible API on AIX, OSF/1.
39780         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39781         Override the system function if REPLACE_RANDOM_R is 1.
39782         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39783         and OSF/1, set REPLACE_RANDOM_R.
39784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39785         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39786         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39787         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39788         * doc/glibc-functions/random_r.texi: Likewise.
39789         * doc/glibc-functions/setstate_r.texi: Likewise.
39791         random_r: Support for MSVC 9.
39792         * lib/random_r.c: Include stdint.h, not inttypes.h.
39794 2012-01-12  Eric Blake  <eblake@redhat.com>
39796         inet_ntop: guard extra work by IF_LINT
39797         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39798         better code generation when not checking for warnings.
39799         Suggested by Paul Eggert and Jim Meyering.
39801         strptime: fix regression on mingw
39802         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39803         Fix regression.  Reported by Bruno Haible.
39805 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39806             Bruno Haible  <bruno@clisp.org>
39808         copy-file: add error-code-returning variant.
39809         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39810         (qcopy_file_preserving): New declaration.
39811         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39812         copy_file_preserving. Change return type to 'int'. Don't emit an error
39813         message here.
39814         (copy_file_preserving): New function.
39815         * tests/test-copy-file.c: Include <stdlib.h>.
39816         (main): Test qcopy_file_preserving if the environment variable
39817         NO_STDERR_OUTPUT is set.
39818         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39819         with NO_STDERR_OUTPUT
39820         * tests/test-copy-file-2.sh: Likewise.
39822 2012-01-10  Bruno Haible  <bruno@clisp.org>
39824         copy-file: Use 'quote' module consistently.
39825         * lib/copy-file.c (copy_file_preserving): Use quote().
39827         copy-file: Refactor.
39828         * lib/copy-file.c: Include quote.h.
39829         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39830         message here.
39831         * modules/copy-file (Depends-on): Add quote.
39833         acl: Export qcopy_acl.
39834         * lib/acl.h (qcopy_acl): New declaration.
39835         * lib/copy-acl.c (qcopy_acl): Make non-static.
39837         acl: Rename a local variable.
39838         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39840         acl: Align return values of copy_acl and qcopy_acl.
39841         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39842         maybe < -1.
39844 2012-01-11  Eric Blake  <eblake@redhat.com>
39846         strptime: silence gcc warnings
39847         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39848         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39849         Reported by Daniel P. Berrange.
39851         inet_ntop: silence gcc warning
39852         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39853         Reported by Daniel P. Berrange.
39855 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39857         getloadavg test: skip the test on GNU/Linux without /proc mounted
39858         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39859         file.  When /proc is not mounted, it always fails with ENOENT.
39860         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39861         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39863 2012-01-10  Bruno Haible  <bruno@clisp.org>
39865         regex: Avoid link error on MSVC 9.
39866         * modules/regex (Depends-on): Add wctype.
39868 2012-01-10  Bruno Haible  <bruno@clisp.org>
39870         doc: Mention --with-tests option.
39871         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39872         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39873         --with-tests.
39874         Reported by Reuben Thomas.
39876 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39878         users.txt: order package names lexicographically.
39879         * users.txt: Order package names lexicographically.
39881 2012-01-10  Jim Meyering  <meyering@redhat.com>
39883         maint.mk: fix description in comment
39884         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39886         ignore-value: remove deprecated ignore_ptr function
39887         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39888         * NEWS: Note this.
39890 2012-01-09  Jim Meyering  <meyering@redhat.com>
39892         test-init.sh: avoid a subshell
39893         * tests/test-init.sh: Remove protective subshell.
39894         Suggested by Bernhard Voelker.  While a subshell is normally
39895         required to protect against older shells (Solaris, FreeBSD) that
39896         warn about a missing program before performing redirection, the
39897         shell-selection tests performed by init.sh probably exclude any
39898         offending shell.
39900 2012-01-08  Bruno Haible  <bruno@clisp.org>
39902         setlocale tests: Avoid test failure on Solaris 11.0.
39903         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39904         variable.
39906 2012-01-08  Bruno Haible  <bruno@clisp.org>
39908         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39909         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39910         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39911         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39912         macro.
39913         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39914         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39915         * lib/spawn_faction_addopen.c: Add workaround implementation if
39916         HAVE_WORKING_POSIX_SPAWN.
39917         * modules/spawn (Makefile): Substitute
39918         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39919         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39920         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39921         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39922         (Depends-on): Update conditions.
39923         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39924         the Solaris 11 bug.
39926 2012-01-08  Bruno Haible  <bruno@clisp.org>
39928         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39929         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39930         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39931         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39932         macro.
39933         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39934         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39935         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39936         HAVE_WORKING_POSIX_SPAWN.
39937         * modules/spawn (Makefile): Substitute
39938         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39939         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39940         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39941         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39942         (Depends-on): Update conditions.
39943         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39944         the Solaris 11 bug.
39946 2012-01-08  Bruno Haible  <bruno@clisp.org>
39948         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39949         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39950         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39952         HAVE_WORKING_POSIX_SPAWN.
39953         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39954         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39955         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39956         * lib/spawn_faction_addclose.c: Add workaround implementation if
39957         HAVE_WORKING_POSIX_SPAWN.
39958         * modules/spawn (Makefile): Substitute
39959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39960         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39961         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39963         (Depends-on): Update conditions.
39964         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39965         the Solaris 11 bug.
39967 2012-01-08  Bruno Haible  <bruno@clisp.org>
39969         doc: Update for Solaris 11.0.
39970         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
39971         * m4/printf.m4: Update comments.
39973 2012-01-08  Bruno Haible  <bruno@clisp.org>
39975         mktime: Avoid compilation error on Solaris 11.
39976         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
39978 2012-01-08  Bruno Haible  <bruno@clisp.org>
39980         doc: Small fix.
39981         * doc/posix-headers/nl_types.texi: Correct platforms list.
39983 2012-01-08  Simon Josefsson  <simon@josefsson.org>
39985         Add lgpl-3.0 module.
39986         * MODULES.html.sh (Support for building documentation): Add
39987         lgpl-3.0.
39988         * modules/lgpl-3.0: New file.
39990 2012-01-08  Jim Meyering  <meyering@redhat.com>
39992         select.c: indent with spaces, not TABs
39993         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
39995 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39997         quotearg: do not use grave accent for left quote
39998         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
39999         locale_quoting_style.
40000         (quotearg_buffer_restyled): Fix example.
40001         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40003 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40005         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40006         Most programs do not have translation catalogs for English and much
40007         less separate catalogs for British and American English.  Drop the
40008         suggestion to translators about these two, and provide it
40009         automatically for Unicode locales.  Like most programs, even those
40010         using American English, we use single quotation marks.  This conflicts
40011         with the American typographic convention, but works better when you
40012         cite the entire error message within double quotes.  It also tries not
40013         to clash with established practice and with what non-gnulib programs
40014         will usually do.
40015         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40016         using an UTF-8 or GB-18030 locale.  The list of other locales with
40017         quotes was provided by Bruno Haible.
40018         (quotearg_buffer_restyled): Adjust instructions to translators.
40019         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40020         text, since this would be wrong when using Unicode.
40021         * modules/quotearg: Depend on c-strcaseeq.
40023 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40025         quotearg: fix Wikipedia link
40026         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40028 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40030         Fix for mingw with MSVC9.
40031         * m4/ld-version-script.m4: Check that compiler rejects version
40032         scripts with syntax errors.  Reported by Bruno Haible
40033         <bruno@clisp.org>.
40035 2012-01-06  Bruno Haible  <bruno@clisp.org>
40037         Talk about "native Windows API", not "Woe32".
40038         * lib/accept4.c: Update comments to mention native Windows.
40039         * lib/execute.c: Likewise.
40040         * lib/fatal-signal.c: Likewise.
40041         * lib/localcharset.c: Likewise.
40042         * lib/nanosleep.c: Likewise.
40043         * lib/nl_langinfo.c: Likewise.
40044         * lib/pclose.c: Likewise.
40045         * lib/pipe-filter-gi.c: Likewise.
40046         * lib/pipe-filter-ii.c: Likewise.
40047         * lib/pipe.c: Likewise.
40048         * lib/pipe2.c: Likewise.
40049         * lib/popen.c: Likewise.
40050         * lib/progreloc.c: Likewise.
40051         * lib/relocatable.c: Likewise.
40052         * lib/sigaction.c: Likewise.
40053         * lib/sigprocmask.c: Likewise.
40054         * lib/spawn-pipe.h: Likewise.
40055         * lib/spawn-pipe.c: Likewise.
40056         * lib/spawni.c: Likewise.
40057         * lib/stat-time.h: Likewise.
40058         * lib/w32spawn.h: Likewise.
40059         * tests/test-isatty.c: Likewise.
40060         * lib/config.charset: More comments.
40061         * doc/gnulib-intro.texi: Mention native Windows.
40062         * doc/posix-functions/_Exit_C99.texi: Likewise.
40063         * doc/posix-headers/fcntl.texi: Likewise.
40065 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40067         argp: Avoid crash if translator uses % characters in a translation.
40068         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40069         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40071 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40073         doc: C11 and C++11 are now official
40074         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
40075         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
40076         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
40077         * modules/stdalign:
40078         Replace references to draft C1X to C11, and to draft C++0X to C++11.
40080 2012-01-06  Bruno Haible  <bruno@clisp.org>
40082         uc-is-grapheme-break tests: Tweak.
40083         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
40084         message.
40086 2012-01-06  Bruno Haible  <bruno@clisp.org>
40088         test-init.sh: correct the test for diff -u
40089         * tests/test-init.sh: Also redirect stdout to /dev/null.
40091 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40093         Use ', not `, for quoting output.
40094         * build-aux/announce-gen (usage, sizes, print_news_deltas)
40095         (print_changelog_deltas, get_tool_versions, main program):
40096         * build-aux/git-version-gen:
40097         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
40098         * build-aux/move-if-change (help):
40099         * build-aux/useless-if-before-free (usage, main program):
40100         * check-module (parse_module_file, usage)
40101         (find_included_lib_files, check_module):
40102         * lib/argmatch.c (main) [TEST]:
40103         * lib/argp-help.c (_help):
40104         * lib/getopt1.c (main) [TEST]:
40105         * lib/git-merge-changelog.c (usage):
40106         * lib/xstrtol-error.c (xstrtol_error):
40107         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
40108         * m4/argz.m4 (gl_FUNC_ARGZ):
40109         * m4/bison.m4 (gl_BISON):
40110         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40111         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40112         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40113         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40114         * m4/gc-random.m4 (gl_GC_RANDOM):
40115         * m4/intl.m4 (gt_CHECK_DECL):
40116         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40117         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40118         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40120         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40121         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40122         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40123         * tests/test-dirname.c (main):
40124         * tests/test-getpass.c (main):
40125         * tests/test-iconvme.c (main):
40126         * tests/test-parse-datetime.c (LOG):
40127         * tests/test-xstrtoimax.sh:
40128         * tests/test-xstrtol.sh:
40129         * tests/test-xstrtoll.sh:
40130         * tests/test-xstrtoumax.sh:
40131         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40132         * top/GNUmakefile (abort-due-to-no-makefile):
40133         Quote 'like this', not `like this', as per the recent change to
40134         the GNU coding standards.
40136 2012-01-05  Bruno Haible  <bruno@clisp.org>
40138         strtoimax: Don't force a replacement on systems where intmax_t is int.
40139         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40140         'intmax_t' is not larger than 'int'.
40141         Reported by Pádraig Brady <P@draigBrady.com>.
40143 2012-01-05  Bruno Haible  <bruno@clisp.org>
40145         doc: Mention NetBSD bugs.
40146         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40147         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40149 2012-01-05  Bruno Haible  <bruno@clisp.org>
40151         strtoumax tests: Enhance tests.
40152         * tests/test-strtoumax.c (main): Add tests for large values.
40154 2012-01-05  Bruno Haible  <bruno@clisp.org>
40156         strtoimax: Work around AIX 5.1 bug.
40157         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40158         definition.
40159         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40160         Set HAVE_STRTOIMAX.
40161         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40162         REPLACE_STRTOIMAX.
40163         * modules/inttypes-incomplete (Makefile.am): Substitute
40164         REPLACE_STRTOIMAX.
40165         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40166         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40167         (Depends-on): Update conditions.
40168         * tests/test-strtoimax.c (main): Add tests for large values.
40169         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40171 2012-01-05  Bruno Haible  <bruno@clisp.org>
40173         inttypes: Modernize.
40174         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40175         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40176         (Makefile.am): Update inttypes.h rule.
40178 2012-01-05  Jim Meyering  <meyering@redhat.com>
40180         init.sh: don't waste a subshell just to redirect stderr
40181         * tests/init.sh: In testing for diff -u and diff -c, use a
40182         stderr-redirecting exec inside `...` rather than a subshell.
40184         test-init.sh: avoid failure on HP-UX 11.00
40185         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40186         resolves to diff -c or cmp.  Reported by Bruno Haible.
40188 2012-01-05  Bruno Haible  <bruno@clisp.org>
40190         Tests for module 'strtoull'.
40191         * modules/strtoull-tests: New file.
40192         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40194 2012-01-05  Bruno Haible  <bruno@clisp.org>
40196         Tests for module 'strtoll'.
40197         * modules/strtoll-tests: New file.
40198         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40200 2012-01-05  Bruno Haible  <bruno@clisp.org>
40202         Tests for module 'strtoul'.
40203         * modules/strtoul-tests: New file.
40204         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40206 2012-01-05  Bruno Haible  <bruno@clisp.org>
40208         Tests for module 'strtol'.
40209         * modules/strtol-tests: New file.
40210         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40212 2012-01-04  Jim Meyering  <meyering@redhat.com>
40214         test-init.sh: accommodate Solaris 5.10's different diff -u output
40215         * tests/test-init.sh: Also exempt @@ lines from the comparison
40216         of diff output, since Solaris 5.10 and GNU diff formats differ.
40217         Reported by Stefano Lattarini.
40219 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40221         test-posixtm: don't assume signed integer wraparound
40222         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40223         after signed integer overflow.  Inspired by (though it may not
40224         fix) Bruno Haible's bug report in
40225         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40227         Spell out "Windows 9x" and "Windows XP".
40228         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40229         "Windows 9x" and "WinXP" with "Windows XP".
40231 2012-01-04  Jim Meyering  <meyering@redhat.com>
40233         test-vc-list-files-cvs.sh: remove obsolete comment
40234         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40235         double exit.  Now that's all encapsulated via skip_ and Exit.
40237 2012-01-04  Bruno Haible  <bruno@clisp.org>
40239         Talk about "native Windows API", not "Win32".
40240         * lib/classpath.c: Update comments to mention native Windows.
40241         * lib/csharpexec.c: Likewise.
40242         * lib/dup2.c: Likewise.
40243         * lib/error.c: Likewise.
40244         * lib/fcntl.c: Likewise.
40245         * lib/filename.h: Likewise.
40246         * lib/findprog.c: Likewise.
40247         * lib/get-rusage-as.c: Likewise.
40248         * lib/get-rusage-data.c: Likewise.
40249         * lib/getpagesize.c: Likewise.
40250         * lib/javaexec.c: Likewise.
40251         * lib/msvc-inval.c: Likewise.
40252         * lib/msvc-nothrow.c: Likewise.
40253         * lib/nanosleep.c: Likewise.
40254         * lib/nonblocking.c: Likewise.
40255         * lib/printf-parse.c: Likewise.
40256         * lib/setlocale.c: Likewise.
40257         * lib/sigaction.c: Likewise.
40258         * lib/strerror_r.c: Likewise.
40259         * lib/tmpdir.c: Likewise.
40260         * lib/vasnprintf.c: Likewise.
40261         * lib/w32spawn.h: Likewise.
40262         * lib/waitpid.c: Likewise.
40263         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40264         * m4/locale-ar.m4: Likewise.
40265         * m4/locale-fr.m4: Likewise.
40266         * m4/locale-ja.m4: Likewise.
40267         * m4/locale-tr.m4: Likewise.
40268         * m4/locale-zh.m4: Likewise.
40269         * m4/printf.m4: Likewise.
40270         * tests/test-cloexec.c: Likewise.
40271         * tests/test-copy-acl.sh: Likewise.
40272         * tests/test-copy-file.sh: Likewise.
40273         * tests/test-file-has-acl.sh: Likewise.
40274         * tests/test-set-mode-acl.sh: Likewise.
40275         * tests/test-dup-safer.c: Likewise.
40276         * tests/test-dup2.c: Likewise.
40277         * tests/test-dup3.c: Likewise.
40278         * tests/test-fcntl.c: Likewise.
40279         * tests/test-nonblocking-pipe.h: Likewise.
40280         * tests/test-nonblocking-socket.h: Likewise.
40281         * tests/test-pipe.c: Likewise.
40282         * tests/test-pipe2.c: Likewise.
40283         * tests/test-spawn-pipe-child.c: Likewise.
40284         * doc/acl-resources.txt: Likewise.
40285         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40286         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40287         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40288         * lib/localcharset.c: Update comments to mention native Windows.
40289         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40290         * lib/localename.c: Likewise.
40291         * lib/progreloc.c: Likewise.
40292         * lib/relocatable.c: Likewise.
40293         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40294         (windows_compute_revents): Renamed from win32_compute_revents.
40295         (windows_compute_revents_socket): Renamed from
40296         win32_compute_revents_socket.
40297         * lib/select.c: Update comments to mention native Windows.
40298         (windows_poll_handle): Renamed from win32_poll_handle.
40299         * m4/threadlib.m4: Update comments to mention native Windows.
40300         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40301         --enable-threads=windows instead of --enable-threads=win32. Set
40302         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40303         * lib/glthread/lock.h: Update comments to mention native Windows.
40304         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40305         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40306         USE_WIN32_THREADS.
40307         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40308         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40309         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40310         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40311         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40312         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40313         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40314         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40315         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40316         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40317         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40318         * tests/test-tls.c: Likewise.
40319         Rationale:
40320         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40321         on both 32-bit and 64-bit Windows systems.
40322         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40323         line of distinction is between "native Windows" on one side and Unix/
40324         POSIX systems on the other side. More details in
40325         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40326         Suggested by Paul Eggert.
40328 2012-01-03  Bruno Haible  <bruno@clisp.org>
40330         isatty: Support for MSVC 9.
40331         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40332         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40333         (_isatty_nothrow): New function.
40334         (isatty): Use it instead of _isatty.
40335         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40336         * lib/poll.c (IsConsoleHandle): Likewise.
40337         * lib/select.c (IsConsoleHandle): Likewise.
40338         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40339         (gl_PREREQ_ISATTY): New macro.
40340         * modules/isatty (Depends-on): Add msvc-inval.
40341         (configure.ac): Invoke gl_PREREQ_ISATTY.
40343 2012-01-03  Jim Meyering  <meyering@redhat.com>
40345         maint.mk: remove temporary transition aid from over 1.5 years ago
40346         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40347         purpose was to aid in the transition (avoiding silent malfunction)
40348         from that old name to the new _sc_search_regexp.  This shim was
40349         added by commit 219c504b.
40351         init.sh: do not try to accommodate compare arguments starting with "-"
40352         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40353         compare arguments that start with "-".  Besides, we do not worry
40354         about this when invoking diff or cmp; why start now with sed?
40355         Using "--" to separate options from argument would trigger sed
40356         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40357         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40359 2012-01-02  Bruno Haible  <bruno@clisp.org>
40361         Enhance tests for module 'isatty'.
40362         * modules/isatty-tests (Depends-on): Add pipe-posix.
40363         * tests/test-isatty.c: Include <fcntl.h>.
40364         (DEV_NULL): New macro.
40365         (main): Test the resut of isatty() also on regular files, pipes, and
40366         /dev/null.
40368         New module 'isatty'.
40369         * lib/unistd.in.h (isatty): New declaration.
40370         * lib/isatty.c: New file, based on an idea of
40371         Bastien Roucariès <roucaries.bastien@gmail.com>.
40372         * m4/isatty.m4: New file.
40373         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40374         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40375         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40376         REPLACE_ISATTY.
40377         * modules/isatty: New file.
40378         * doc/posix-functions/isatty.texi: Mention the new module.
40379         Suggested by Paolo Bonzini.
40381 2012-01-02  Bruno Haible  <bruno@clisp.org>
40383         canonicalize: Tweak 2011-12-29 commit.
40384         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40385         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40387 2012-01-02  Jim Meyering  <meyering@redhat.com>
40389         gitlog-to-changelog: describe input syntax in --help output
40390         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40392         gitlog-to-changelog: fix typo in --help: show backslash before email @
40393         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40394         in sources, but not in actual output.
40396 2011-12-30  Jim Meyering  <meyering@redhat.com>
40398         gitlog-to-changelog: don't malfunction when name contains %-directive
40399         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40400         in a name string cause trouble.  E.g., with a user name of "%s",
40401         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40403 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40405         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40406         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40407         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40408         the "  (tiny change)" notation that is appended to the standard
40409         ChangeLog "date  name  email" header line.
40411 2012-01-01  Jim Meyering  <meyering@redhat.com>
40413         test-framework-sh: init.sh: fix "make dist" failure
40414         When using gnulib-tool's --with-tests option and any module that
40415         depends on test-framework-sh, "make dist" would fail due to the
40416         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40417         in the gltests directory, and not in the gllib/ directory.
40418         One way to work around that is to move the EXTRA_DIST += init.sh
40419         from the primary module to the -tests one:
40420         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40421         * modules/test-framework-sh (Makefile.am): ...not here.
40422         Reported by Tom G. Christensen in
40423         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40425         version-etc: update copyright year reported by --version
40426         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40428 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40430         canonicalize: only stat() if required
40431         * lib/canonicalize.c (canonicalize_filename_mode):
40432         Avoid calling l?stat() when both CAN_MISSING,
40433         and CAN_NOLINKS are set, as we neither need
40434         to resolve symlinks or test component existence.
40436 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40438         doc: cover st_ino issues once; add OpenVMS etc.
40439         * doc/posix-functions/stat.texi (stat):
40440         * doc/posix-functions/lstat.texi (lstat):
40441         * doc/posix-functions/fstatat.texi (fstatat):
40442         * doc/posix-functions/fstat.texi (fstat):
40443         Move general 'struct stat' stuff to sys_stat.texi,
40444         leaving behind a pointer.
40445         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40446         Merge duplicate info about 'struct stat' problems into here.
40447         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40448         and suggest partial workarounds.
40450         same-inode: port to OpenVMS
40451         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40452         three st_ino values.
40454 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40456         canonicalize: fix references to stat() and lstat()
40457         * lib/canonicalize.c (canonicalize_filename_mode):
40458         Ensure references always resolve to a replacement
40459         function if required (even via a macro).
40461 2011-12-30  Jim Meyering  <meyering@redhat.com>
40463         gitlog-to-changelog: remove a little duplication
40464         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40465         rather than twice.
40467 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40469         canonicalize: add support for not resolving symlinks
40470         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40471         indicate we don't want to follow symlinks.  Also
40472         provide CAN_MODE_MASK to aid setting these existing
40473         mutually exclusive values.
40474         * lib/canonicalize.c (canonicalize_filename_mode):
40475         Extract the flags from can_mode parameter, which
40476         are currently just used to select between stat()
40477         and lstat().  Also ensure that mutually exclusive
40478         values are flagged immediately as invalid.
40479         * tests/test-canonicalize.c: Verify symlinks are
40480         not followed, and that invalid flag combinations
40481         are diagnosed.
40483 2011-12-25  Jim Meyering  <meyering@redhat.com>
40485         gitlog-to-changelog: do not clump multi-paragraph entries
40486         Identical header lines (date,name,email+coauthors) are suppressed,
40487         thus putting all entries with those same characteristics under
40488         a single header.  However, when a log entry consists of two or
40489         more paragraphs, it may not be clear where it starts and ends.
40490         This change makes it so that such an entry is always separated
40491         from others by a header line, even when that header would
40492         otherwise be suppressed.
40493         * build-aux/gitlog-to-changelog: Implement the above.
40494         Inspired by a related request from Stefano Lattarini in
40495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40497 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40499         announce-gen: fix `cmd' typo in diagnostic
40500         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40501         diagnostic: a missing '$' meant that the command was not output.
40503 2011-12-23  Jim Meyering  <meyering@redhat.com>
40505         test-framework-sh: distribute init.sh
40506         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40507         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40508         fail due to the lack of init.sh.
40510         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40511         * modules/atexit-tests: Rather than listing tests/init.sh,
40512         now that there's a module for it, simply depend on that new module.
40513         * modules/closein-tests: Likewise.
40514         * modules/exclude-tests: Likewise.
40515         * modules/getcwd-tests: Likewise.
40516         * modules/perror-tests: Likewise.
40517         * modules/pread-tests: Likewise.
40518         * modules/pwrite-tests: Likewise.
40519         * modules/vc-list-files-tests: Likewise.
40520         * modules/verify-tests: Likewise.
40521         * modules/xalloc-die-tests: Likewise.
40522         * modules/xstrtoimax-tests: Likewise.
40523         * modules/xstrtol-tests: Likewise.
40524         * modules/xstrtoll-tests: Likewise.
40525         * modules/xstrtoumax-tests: Likewise.
40526         * modules/yesno-tests: Likewise.
40528 2011-12-22  Jim Meyering  <meyering@redhat.com>
40530         test-framework-sh: add minimal tests of init.sh's compare function
40531         * modules/test-framework-sh-tests: New file.
40532         * tests/test-init.sh: New file.
40534         test-framework-sh: new module
40535         * modules/test-framework-sh: New file.
40536         * MODULES.html.sh (Support for maintaining and releasing projects):
40537         List it.
40539         init.sh: do not emit simulated diff output to stderr
40540         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40542 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40544         .gitignore: ignore gnulib.dvi and regex.info
40545         * doc/.gitignore:add gnulib.dvi and regex.info
40547 2011-12-22  Jim Meyering  <meyering@redhat.com>
40549         init.sh: correct previous change
40550         * tests/init.sh (compare): My previous change was wrong.
40551         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40553         init.sh: avoid unwarranted test failure when using "set -e"
40554         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40555         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40556         a use like "compare exp out" would get evoke an unconditional failure.
40558 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40560         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40561         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40562         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40563         autoreconf that did not.
40564         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40565         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40567 2011-12-17  Jim Meyering  <meyering@redhat.com>
40569         bootstrap: remove some now-unneeded code
40570         This script arose back when gnulib-tool was young.
40571         Since then, it has seen improvements that render much of this
40572         script unnecessary.  In particular, it can now make symlinks
40573         to the files it uses.  Also, I no longer see as much value in
40574         marking files as read-only via comments.
40575         If you relied on the symlink-creation feature of the preceding
40576         version of this script, you can get most of that functionality
40577         by adding the --symlink option to the definition of
40578         gnulib_tool_option_extras in your bootstrap.conf file.
40579         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40580         Run autopoint and libtoolize *before* gnulib-tool.
40581         After it, run an abbreviated autoreconf, rather than a loop around
40582         all tools.
40583         (slirp, bt_mark_as_generated): Remove functions.
40585 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40587         ftoastr: fix typo
40588         * lib/ftoastr.h: Fix misspelling in comment.
40590 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40592         * top/README-release: fix punctuation.
40594 2011-12-17  Jim Meyering  <meyering@redhat.com>
40596         bootstrap: correct the recent buildreq change
40597         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40598         had no effect.
40599         * build-aux/bootstrap (buildreq): Bracket each search term with
40600         "*...*", so that the shell "case" statement works as intended.
40601         Add comments.
40603 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40605         build: let bootstrap resort to wget when downloading .po files
40606         * build-aux/bootstrap (download_po_files): Fallback to wget when
40607         downloading the .po files via rsync fails.  This is necessary to
40608         bootstrap from behind a strict firewall.
40610 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40612         stdint: don't assume C++11 when compiling with g++
40613         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40614         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40615         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40616         work also in C++ before C++11, as that improperly inhibits
40617         generating a substitute stdint.h for that case.
40619 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40621         alloca: protect comment from gnulib-tool
40622         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40623         that gnulib-tool doesn't think it's a license, and munge it to
40624         say "GCC version 3".
40626 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40628         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40629         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40630         $(abs_top_builddir) instead of $(top_builddir).
40632 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40634         strftime-tests: also test nanoseconds
40635         * tests/test-strftime.c (T): Add a test of %N.
40637 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40639         inttypes, stdint: add C++11 support
40640         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40641         when including inttypes.h and stdint.h.  Support this change to
40642         the standard.
40643         * doc/posix-headers/inttypes.texi (inttypes.h):
40644         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40645         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40646         Define if not defined already, for the benefit of pre-C++11 hosts.
40647         Define the standard format macros (e.g., PRId8) always.
40648         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40649         Likewise, if __cpluspus.  Define the standard constant and limit
40650         macros (e.g., INT8_C, INT8_MAX) always.
40651         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40652         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40653         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40654         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40655         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40656         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40657         Likewise.
40659 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40661         nonblocking tests: Fix test failure on Linux/PPC.
40662         Suggested by Prerna Saxena in
40663         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40664         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40665         Set to 1100000.
40667 2011-12-12  Jim Meyering  <meyering@redhat.com>
40669         argmatch: don't hard-code `' when listing valid option arguments
40670         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40671         use the quote function to add quotes.  Use fputs rather than
40672         fprintf for the format string with no format directive.
40674 2011-12-07  Eric Blake  <eblake@redhat.com>
40676         bootstrap: detect tools required by gnulib-tool
40677         * build-aux/bootstrap (buildreq): Provide minimum implicit
40678         dependencies.
40679         * DEPENDENCIES: Mention patch as a prereq.
40681 2011-12-04  Bruno Haible  <bruno@clisp.org>
40683         sethostname: Port to Windows platforms.
40684         * lib/sethostname.c: Provide an alternate implementation for Windows
40685         platforms.
40686         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40687         (main): Skip the test if sethostname() fails with EPERM. On Windows
40688         platforms, don't check the result of gethostname().
40690 2011-12-04  Bruno Haible  <bruno@clisp.org>
40691             Jim Meyering  <meyering@redhat.com>
40693         tests: Avoid spurious error message on platforms without mktemp program.
40694         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40696 2011-12-04  Bruno Haible  <bruno@clisp.org>
40698         sethostname: Fix documentation.
40699         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40700         "not fixed" section.
40702 2011-12-03  Bruno Haible  <bruno@clisp.org>
40704         gnulib-tool: Verify that the License field is present and non-empty.
40705         * gnulib-tool (func_get_license_raw): New function, extracted from
40706         func_get_license.
40707         (func_get_license): Use it. Warn if the module is not a test module and
40708         has no license.
40709         Suggested by Jim Meyering.
40711 2011-12-03  Bruno Haible  <bruno@clisp.org>
40713         sethostname tests: Fix link error on mingw.
40714         * tests/test-sethostname1.c: New file, extracted from
40715         tests/test-sethostname.c.
40716         * tests/test-sethostname2.c: New file, extracted from
40717         tests/test-sethostname.c.
40718         * tests/test-sethostname.c: Remove file.
40719         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40720         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40721         (Depends-on): Add gethostname.
40722         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40723         Link the latter with $(GETHOSTNAME_LIB).
40725         sethostname tests: Fix compilation error on mingw.
40726         * tests/test-sethostname.c: Don't include <sys/types.h>.
40727         (geteuid): Use a dummy value without uid_t.
40728         * modules/sethostname-tests (Depends-on): Remove sys_types.
40730         sethostname tests: Avoid a gcc warning.
40731         * tests/test-sethostname.c (main): Remove an unused variable.
40733         Tweak last commit.
40734         * modules/sethostname-tests (Files): Sort by decreasing importance.
40735         (configure.ac): Check for geteuid.
40736         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40737         the test when there's nothing to test. Drop an unnecessary cast.
40738         Improve an error message. Verify that the final sethostname() call
40739         succeeds.
40741 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40743         Add a test suite for the sethostname module.
40744         * modules/sethostname-tests: New file.  A test program
40745         for the sethostname module.
40746         * tests/test-sethostname.c: Likewise.
40748 2011-12-03  Bruno Haible  <bruno@clisp.org>
40750         Tweak last commit.
40751         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40752         Fix preprocessor directives indentation. Fix typos.
40753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40754         * modules/unistd (Makefile): Likewise.
40756 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40758         Integrate the sethostname module into unistd.
40759         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40760         into the unistd.h header.
40761         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40762         preprocessor directives.
40763         * modules/unistd: Setup the Makefile substitutions of the
40764         SETHOSTNAME preprocessor directives.
40766 2011-12-03  Bruno Haible  <bruno@clisp.org>
40768         Tweak last commit.
40769         * lib/sethostname.c: Don't include <string.h>.
40770         (sethostname): No need to copy the argument string to the stack. Don't
40771         call clearerr. Preserve errno when fprintf failed.
40772         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40773         Don't invoke AC_REPLACE_FUNCS.
40774         * modules/sethostname (Link): Remove empty section.
40775         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40776         failure problem.
40778 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40780         New module 'sethostname'.
40781         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40782         for systems that lack it.
40783         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40784         sethostname declaration and function.
40785         * modules/sethostname: New file.  Define the sethostname module.
40787 2011-12-03  Bruno Haible  <bruno@clisp.org>
40789         Tweak last commit.
40790         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40792 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40794         Split the HOST_NAME_MAX detection into a separate m4 macro.
40795         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40796         macro so it can be used by the pending sethostname module.
40798 2011-12-03  Bruno Haible  <bruno@clisp.org>
40800         Fix module descriptions syntax.
40801         * modules/argv-iter (License): Fix syntax.
40802         * modules/di-set (License): Likewise.
40803         * modules/ino-map (License): Likewise.
40804         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40806 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40808         stdalign: port to Clang 3.0
40809         Problem reported by Simon Josefsson in
40810         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40811         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40812         which has <stdalign.h> but which does not define alignof.
40813         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40815 2011-12-01  Eric Blake  <eblake@redhat.com>
40817         mktempd: silence dd usage
40818         * build-aux/mktempd (rand_bytes): Silence dd.
40820 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40822         manywarnings: Don't mention gcc version in docstring.
40823         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40824         Jim Meyering <meyering@redhat.com>.
40826 2011-11-30  Jim Meyering  <meyering@redhat.com>
40828         hash: mark a few floating point constants with "f" suffix
40829         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40830         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40831         floating point constants with "f", since they're destined to be
40832         saved/used as "float"s.
40834 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40836         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40837         * tests/test-float.c (test_long_double): Correct and re-enable the
40838         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40840 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40842         Avoid subtracting two pointers that don't point into the same block.
40843         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40844         only pointers into the same memory block are subtracted. We cannot
40845         assume that sizeof (ptrdiff_t) == sizeof (void *).
40847 2011-11-29  Eric Blake  <eblake@redhat.com>
40849         maint.mk: add syntax check for use of compare from init.sh
40850         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40851         moved here from coreutils.
40853         manywarnings: drop -Wunsuffixed-float-constants
40854         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40855         '1.0D', which is the only way to silence this warning for 'double'.
40857 2011-11-29  Jim Meyering  <meyering@redhat.com>
40859         hash: mark compute_bucket_size with the pure attribute
40860         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40862         quotearg, propername: correct pragma guard expression
40863         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40864         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40866 2011-11-28  Jim Meyering  <meyering@redhat.com>
40868         propername: do not mark proper_name with the const attribute
40869         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40870         since it examines data pointed to by its parameter.
40871         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40872         the suggestion from -Wsuggest-attribute=const.
40874         propername: mark one more function as const
40875         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40877 2011-11-27  Jim Meyering  <meyering@redhat.com>
40879         mark functions with const and pure attributes
40881         Mark functions per suggestions from gcc-4.6 when using these options:
40882         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40883         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40884         Follow these guidelines: when possible, apply the attribute to
40885         an extern declaration, not to its definition.  Apply it to the
40886         definition only when the definition is static.
40887         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40888         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40889         * lib/base64.h (isbase64): Likewise.
40890         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40891         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40892         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40893         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40894         (c_tolower, c_toupper): Likewise.
40895         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40896         * lib/chdir-long.c (find_non_slash): Likewise.
40897         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40898         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40899         * lib/file-type.h (file_type): Likewise.
40900         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40901         * lib/filevercmp.c (verrevcmp): Likewise.
40902         * lib/freadahead.h (freadahead): Likewise.
40903         * lib/fts.c (fts_maxarglen): Likewise.
40904         * lib/hash-pjw.h (hash_pjw): Likewise.
40905         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40906         * lib/hash.c (is_prime, next_prime): Likewise.
40907         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40908         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40909         (hash_table_ok, hash_get_first, hash_string): Likewise.
40910         (compute_bucket_size): Likewise.
40911         * lib/i-ring.h (i_ring_empty): Likewise.
40912         * lib/isnan.c (isnanl): Likewise.
40913         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40914         * lib/memcasecmp.h (memcasecmp): Likewise.
40915         * lib/memchr2.h (memchr2): Likewise.
40916         * lib/memcmp2.h (memcmp2): Likewise.
40917         * lib/parse-datetime.y (lookup_zone): Likewise.
40918         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40919         [!WINDOWS_SOCKETS]: Likewise.
40920         * lib/strnlen1.h (strnlen1): Likewise.
40921         * lib/uniwidth.in.h (uc_width): Likewise.
40922         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40923         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40924         (quoting_options_from_style): Add a comment.
40925         * lib/propername.h (proper_name): Add a comment.
40927 2011-11-27  Bruno Haible  <bruno@clisp.org>
40929         Remove unused macros from !_LIBC code in glibc-borrowed files.
40930         * lib/fnmatch.c (STRCOLL): Remove macro.
40931         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40932         * lib/glob.c (__stat, __readdir64): Remove macros.
40933         * lib/tempname.c (__open64, __xstat64): Remove macros.
40934         Suggested by Paul Eggert.
40936 2011-11-27  Bruno Haible  <bruno@clisp.org>
40938         getcwd: Fix link error on MSVC 9.
40939         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40941 2011-11-27  Bruno Haible  <bruno@clisp.org>
40943         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40944         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40945         HAVE_OPENDIR is 0.
40946         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40947         HAVE_CLOSEDIR is 0.
40948         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40949         is 0.
40950         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40952 2011-11-27  Bruno Haible  <bruno@clisp.org>
40954         getcwd: Fix bug from 2011-08-17.
40955         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40956         platforms that need it.
40957         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40958         code of 4 to be a failure, not a success. This ensures that
40959         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40961 2011-11-27  Bruno Haible  <bruno@clisp.org>
40963         binary-io tests: Avoid test failure on mingw when libtool is used.
40964         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40965         Don't verify the size of t-bin-out1.tmp here.
40966         * tests/test-binary-io.sh: Verify it here.
40967         Reported by Simon Josefsson.
40969 2011-11-26  Bruno Haible  <bruno@clisp.org>
40971         Fix conflict between two instantiations of module 'unistd'.
40972         * gnulib-tool (func_emit_autoconf_snippet): Substitute
40973         ${include_guard_prefix} also in the autoconf snippet.
40974         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
40975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
40976         GNULIB_UNISTD_H_GETOPT.
40977         * modules/getopt-posix (configure.ac): Set the
40978         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
40979         * modules/getopt-gnu (configure.ac): Likewise.
40980         * modules/unistd (Makefile.am): Change the substitution value of
40981         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
40982         Reported by Simon Josefsson.
40984 2011-11-25  Bruno Haible  <bruno@clisp.org>
40986         pagealign_alloc: Doc and comments.
40987         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
40988         module.
40989         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
40991 2011-11-25  Jim Meyering  <meyering@redhat.com>
40993         test-update-copyright.sh: avoid false-positive failure
40994         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
40995         around false positive failure on Cygwin/Windows.  The latter was
40996         matching erroneously-created files with names like
40997         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
40999 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41001         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41002         * m4/valgrind-tests.m4: Check that the parameters that will be
41003         used works, not just a subset of them.  Reported by Bruno Haible
41004         <bruno@clisp.org>.
41006 2011-11-24  Jim Meyering  <meyering@redhat.com>
41008         test-stdalign.c: comment out long double tests
41009         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41010         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41011         error: '_Alignas' specifiers cannot reduce alignment of \
41012         'static_longdouble_alignas'.
41014 2011-11-22  Jim Meyering  <meyering@redhat.com>
41016         init.sh: make "compare /dev/null FILE" output more readable
41017         * tests/init.sh (compare_): Document the preferred order of arguments.
41018         (emit_diff_u_header_): New function.
41019         (compare_dev_null_): Emit a simulated diff, rather than just the
41020         contents of the unexpected file.  Suggestion from Bruno Haible.
41022 2011-11-21  Jim Meyering  <meyering@redhat.com>
41023             Eric Blake  <eblake@redhat.com>
41025         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41026         * tests/init.sh: Make our compare function slightly more portable.
41027         Reported by Bruno Haible in
41028         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41030 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41032         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41033         before using it, in code that ends up in config.h.
41035 2011-11-20  Bruno Haible  <bruno@clisp.org>
41037         getcwd: Work around getcwd bug on AIX 5..7.
41038         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41039         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41040         Use a different value for gl_cv_func_getcwd_path_max. Move the
41041         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41042         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41043         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41044         Define HAVE_MINIMALLY_WORKING_GETCWD.
41045         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41046         where it is not even minimally working, that is, on AIX.
41047         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41048         m4/getcwd-path-max.m4.
41049         (main): Update exit code computation.
41050         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41051         getcwd does not handle long file names.
41053 2011-11-20  Bruno Haible  <bruno@clisp.org>
41055         getcwd: Fix bug from 2009-09-10.
41056         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41057         like "no".
41059 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41061         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41063 2011-11-20  Bruno Haible  <bruno@clisp.org>
41065         fma tests: Avoid shadowing local variables.
41066         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41067         expected.
41069 2011-11-20  Bruno Haible  <bruno@clisp.org>
41071         copysignf tests: Fix.
41072         * tests/test-copysignf.c: Fix signature check.
41074 2011-11-20  Bruno Haible  <bruno@clisp.org>
41076         fma: Remove unused code.
41077         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
41078         unused macros.
41080 2011-11-20  Bruno Haible  <bruno@clisp.org>
41082         sethostname: Fix doc about AIX.
41083         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
41084         sethostname; it has it.
41086         sethostname: Mention more portability problems.
41087         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
41088         problem.
41089         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
41091 2011-11-19  Bruno Haible  <bruno@clisp.org>
41093         Depend on module fcntl-h when AT_FDCWD is used.
41094         * modules/utimens (Depends-on): Add fcntl-h.
41095         * modules/areadlinkat (Depends-on): Likewise.
41096         * modules/areadlinkat-with-size (Depends-on): Likewise.
41097         * modules/faccessat (Depends-on): Likewise.
41098         * modules/fchmodat (Depends-on): Likewise.
41099         * modules/fchownat (Depends-on): Likewise.
41100         * modules/getcwd (Depends-on): Likewise.
41101         * modules/mkdirat (Depends-on): Likewise.
41102         * modules/mkfifoat (Depends-on): Likewise.
41103         * modules/readlinkat (Depends-on): Likewise.
41104         * modules/symlinkat (Depends-on): Likewise.
41105         * modules/dup2-tests (Depends-on): Likewise.
41106         * modules/fdutimensat-tests (Depends-on): Likewise.
41107         * modules/futimens-tests (Depends-on): Likewise.
41109 2011-11-19  Bruno Haible  <bruno@clisp.org>
41111         euidaccess: Update a comment.
41112         * lib/euidaccess.c: Update comment about platforms with faccessat.
41114 2011-11-19  Bruno Haible  <bruno@clisp.org>
41116         openat: Fix file list.
41117         * modules/openat (Files): Remove lib/at-func.c.
41119 2011-11-19  Bruno Haible  <bruno@clisp.org>
41121         fstatat: Simplify.
41122         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41123         gnulib should define rpl_fstatat, there is a
41124         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41126 2011-11-19  Bruno Haible  <bruno@clisp.org>
41128         Ensure 'inline' can be used in tests/test-utimens-common.h.
41129         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41130         * modules/futimens-tests (configure.ac): Likewise.
41131         * modules/utimens-tests (configure.ac): Likewise.
41132         * modules/utimensat-tests (configure.ac): Likewise.
41134 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41136         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41137         not hash_insert0.
41138         (hash_insert_if_absent): Doc fix.
41140 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41142         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41144 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41146         test-getcwd: disambiguate exit status
41147         * tests/test-getcwd.c (test_long_name): Return 0..7.
41148         (main): Exit with an unambiguous exit status.  The old
41149         code yielded a mysterious mixture of two failure codes.
41151         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41152         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41153         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41154         rpl_fstatat or fstatat.  This should fix the other problem
41155         reported by Kai Habel in
41156         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41157         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41158         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41159         and I reproduced it on a Solaris 8 host we still have in production.
41161 2011-11-18  Jim Meyering  <meyering@redhat.com>
41163         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41164         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41165         Add a sentence to the comment.
41166         (hash_insert0): New function that simply calls hash_insert_if_absent.
41167         * lib/hash.h (hash_insert_if_absent): Declare it.
41168         (hash_insert0): Add deprecation attribute.
41169         (_GL_ATTRIBUTE_DEPRECATED): Define.
41170         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41171         not hash_insert0.
41172         * NEWS: Mention it, even though it's not really an incompatible change.
41174 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41176         openat: avoid compilation failure due to lack of <errno.h> inclusion
41177         * lib/openat.c: Include <errno.h>.
41179 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41181         * modules/getcwd (Depends-on): Add fdopendir.
41182         This fixes one of the two problems reported by Kai Habel in
41183         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41185         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41186         stdalign problem reported by Ian Beckwith in
41187         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41188         * modules/crypto/gc-arcfour (Depends-on):
41189         Depend conditionally on crypto/arcfour.
41190         * modules/crypto/gc-arctwo (Depends-on):
41191         Depend conditionally on crypto/arctwo.
41192         * modules/crypto/gc-des (Depends-on):
41193         Depend conditionally on crypto/des.
41194         * modules/crypto/gc-hmac-md5 (Depends-on):
41195         Depend conditionally on crypto/hmac-md5.
41196         * modules/crypto/gc-hmac-sha1 (Depends-on):
41197         Depend conditionally on crypto/hmac-sha1.
41198         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41199         * modules/crypto/gc-md4 (Depends-on):
41200         Depend conditionally on crypto/md4.
41201         * modules/crypto/gc-md5 (Depends-on):
41202         Depend conditionally on crypto/md5.
41203         * modules/crypto/gc-rijndael (Depends-on):
41204         Depend conditionally on crypto/rijndael.
41205         * modules/crypto/gc-sha1 (Depends-on):
41206         Depend conditionally on crypto/sha1.
41207         * modules/crypto/gc-arcfour:
41208         * modules/crypto/gc-arctwo:
41209         * modules/crypto/gc-des:
41210         * modules/crypto/gc-hmac-md5:
41211         * modules/crypto/gc-hmac-sha1:
41212         * modules/crypto/gc-md2:
41213         * modules/crypto/gc-md4:
41214         * modules/crypto/gc-md5:
41215         * modules/crypto/gc-rijndael:
41216         * modules/crypto/gc-sha1:
41217         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41218         now that the conditional dependencies do the work for us.
41220 2011-11-17  Jim Meyering  <meyering@redhat.com>
41222         tests: factor st_ctime-comparison out of two headers
41223         * tests/test-utimens-common.h (ctime_compare): Define.
41224         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41225         * tests/test-lutimens.h (test_lutimens): Likewise.
41226         * tests/test-utimens.h (test_utimens): Likewise.
41228         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41229         Invoke the test program via an init.sh-using wrapper.
41230         * tests/test-getcwd.sh: New file.
41231         * modules/getcwd-tests (Files): Add it.
41232         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41234 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41236         gitlog-to-changelog: support multi-author commits.
41237         The FSF cares about keeping track of all authors of patches to its
41238         projects, but Git doesn't provide obvious support for multi-author
41239         changesets. Consensus seems to be forming around the use of extra
41240         Signed-off-by inspired lines in the log message formatted as
41241         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41242         multi-author commits between version control systems.
41243         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41244         log message and output in standard ChangeLog multi-author format.
41245         Reported by Peter Rosin <peda@lysator.liu.se>
41247 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41248             Bruno Haible  <bruno@clisp.org>
41250         Fix some modules' file list.
41251         * modules/fstatat (Files): Add m4/lstat.m4.
41252         * modules/openat (Files): Likewise.
41253         * modules/unlinkat (Files): Likewise.
41255 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41257         maint.mk: fix tight-scope.mk generation in VPATH builds.
41258         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41259         reference with $(srcdir) so that the file is found correctly even
41260         when running `make syntax-check' in a VPATH build.
41262 2011-11-13  Bruno Haible  <bruno@clisp.org>
41263             Jim Meyering  <meyering@redhat.com>
41265         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41266         * tests/init.sh (compare): Remove "No differences encountered" or
41267         synonymous output from the 'diff' program.
41269 2011-11-13  Bruno Haible  <bruno@clisp.org>
41271         Makefile: Tweak indentation.
41272         * Makefile: Use tab as first character in every line that contains rule
41273         commands.
41275 2011-11-13  Bruno Haible  <bruno@clisp.org>
41277         Syntax check for copyright statements.
41278         * check-copyright: New file.
41279         * Makefile (sc_check_copyright): New rule.
41281 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41283         * build-aux/git-version-gen: Add --prefix to configure the tag
41284         match string.
41286 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41288         * build-aux/git-version-gen: Add --help and --version.
41290 2011-11-12  Jim Meyering  <meyering@redhat.com>
41292         revamp the other test-exclude?.sh scripts to use init.sh, too
41293         * tests/test-exclude1.sh: Use init.sh.
41294         * tests/test-exclude2.sh: Likewise.
41295         * tests/test-exclude3.sh: Likewise.
41296         * tests/test-exclude4.sh: Likewise.
41297         * tests/test-exclude5.sh: Likewise.
41298         * tests/test-exclude6.sh: Likewise.
41299         * tests/test-exclude7.sh: Likewise.
41300         * tests/test-exclude8.sh: Likewise.
41301         * modules/exclude-tests (Files): List init.sh.
41303         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41304         These shell scripts ignored failure of the binary test-exclude,
41305         so making the latter return 77 didn't cause them to be skipped.
41306         * tests/test-exclude5.sh: Exit with test-exclude's error status
41307         when that program fails.  Revamp to use init.sh.
41308         * tests/test-exclude2.sh: Likewise.
41310         test-exclude: fix a typo
41311         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41313 2011-11-11  Bruno Haible  <bruno@clisp.org>
41315         obstack: Fix compilation error on MSVC 9.
41316         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41318 2011-11-11  Jim Meyering  <meyering@redhat.com>
41320         test-exclude: skip tests rather than failing on deficient systems
41321         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41322         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41323         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41324         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41326 2011-11-10  Bruno Haible  <bruno@clisp.org>
41328         ptsname_r test: Avoid gcc warning on glibc systems.
41329         * tests/test-ptsname_r.c (null_ptr): New function.
41330         (test_errors): Use it.
41332 2011-11-10  Bruno Haible  <bruno@clisp.org>
41334         ptsname_r: Avoid compilation error on OSF/1 5.1.
41335         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41337         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41338         function is not declared or incompatibly declared.
41339         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41340         * modules/ptsname_r (Depends-on, configure.ac): Update.
41341         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41343 2011-11-10  Bruno Haible  <bruno@clisp.org>
41345         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41346         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41347         When cross-compiling, guess yes on all platforms except AIX.
41348         Reported by Ludovic Courtès <ludo@gnu.org>.
41350 2011-11-09  Bruno Haible  <bruno@clisp.org>
41352         ptsname_r tests: Fix bugs.
41353         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41354         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41356 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41358         fstatat: work with cross-compilation
41359         Problem reported by Ludovic Courtès in
41360         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41361         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41362         "cross-compiling" and assume the bug is present.  Replace
41363         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41364         an inverted sense, to be more conservative about our assumptions.
41365         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41367 2011-11-09  Bruno Haible  <bruno@clisp.org>
41369         Improve MODULES.html output.
41370         * modules/mkfifoat (Description): Use the word "function".
41371         * modules/readlinkat (Description): Likewise.
41372         * modules/symlinkat (Description): Likewise.
41374 2011-11-09  Eric Blake  <eblake@redhat.com>
41376         ptsname_r-tests: new test module
41377         * modules/ptsname_r-tests: New module.
41378         * tests/test-ptsname_r.c: New file.
41380         ptsname_r: new module
41381         * modules/ptsname_r: New module.
41382         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41383         * lib/ptsname.c (__ptsname_r): Split...
41384         * lib/ptsname_r.c: ...into new file.
41385         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41386         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41387         * modules/stdlib (Makefile.am): Substitute witnesses.
41388         * lib/stdlib.in.h (ptsname_r): Declare it.
41389         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41390         * MODULES.html.sh (Misc): Likewise.
41391         * modules/ptsname (Depends-on): Alter dependency.
41392         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41394 2011-11-09  Jim Meyering  <meyering@redhat.com>
41396         announce-gen: be more concise when there's only one URL+tarball
41397         * build-aux/announce-gen (get_tool_versions): When you distribute
41398         only one type of tarball, combine the first two "Here are..."
41399         sections and make the key-checking grammar independent of
41400         how many tarballs there are.
41402 2011-11-09  Eric Blake  <eblake@redhat.com>
41404         openpty: provide a stub on mingw
41405         * lib/pty.in.h (includes): Provide forward declarations.
41406         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41408         raise: fix mingw handling of SIGPIPE
41409         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41411 2011-11-08  Bruno Haible  <bruno@clisp.org>
41413         More conditional dependencies.
41414         * modules/faccessat (Depends-on): Add conditions.
41415         * modules/fchmodat (Depends-on): Likewise.
41416         * modules/fchownat (Depends-on): Likewise.
41417         * modules/fstatat (Depends-on): Likewise.
41418         * modules/mkfifoat (Depends-on): Likewise.
41419         * modules/readlinkat (Depends-on): Likewise.
41420         * modules/symlinkat (Depends-on): Likewise.
41421         * modules/unlinkat (Depends-on): Likewise.
41422         * modules/utimensat (Depends-on): Likewise.
41423         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41424         * modules/linkat (Depends-on): Refine the conditions.
41425         * modules/renameat (Depends-on): Likewise.
41427 2011-11-08  Bruno Haible  <bruno@clisp.org>
41429         faccessat: Move AC_LIBOBJ invocation to module description.
41430         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41431         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41432         invocation from here...
41433         * modules/faccessat (configure.ac): ... to here. Invoke
41434         gl_PREREQ_FACCESSAT.
41436 2011-11-08  Bruno Haible  <bruno@clisp.org>
41438         faccessat: Simplify autoconf macro.
41439         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41440         gl_FUNC_EUIDACCESS.
41442 2011-11-08  Bruno Haible  <bruno@clisp.org>
41444         renameat: Fix dependencies.
41445         * modules/renameat (Depends-on): Add stdbool.
41447 2011-11-08  Bruno Haible  <bruno@clisp.org>
41449         mkfifoat: Fix module description.
41450         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41451         not gl_UNISTD_MODULE_INDICATOR.
41453 2011-11-08  Bruno Haible  <bruno@clisp.org>
41455         fstatat: Remove unused dependency.
41456         * modules/fstatat (Depends-on): Remove fstat.
41458 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41460         GNUmakefile: behave when Makefile is missing.
41461         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41463 2011-11-08  Bruno Haible  <bruno@clisp.org>
41465         openat: Conditionalize dependencies.
41466         * lib/openat.c: Reduce the scope of some #includes.
41467         * modules/openat (Depends-on): Add conditions.
41469 2011-11-07  Jim Meyering  <meyering@redhat.com>
41471         maint.mk: extract GPG key ID without using a temporary file
41472         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41473         without using a temporary file.  Based on a suggestion from Werner Koch
41474         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41476 2011-11-07  Eric Blake  <eblake@redhat.com>
41478         grantpt: fix typo
41479         * lib/stdlib.in.h (grantpt): Check correct function.
41481         maint.mk: silence new syntax check
41482         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41484 2011-11-06  Bruno Haible  <bruno@clisp.org>
41486         Doc about floating-point and math API.
41487         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41488         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41490 2011-11-06  Bruno Haible  <bruno@clisp.org>
41492         stdalign tests: Skip the test when compiled by Sun C.
41493         * tests/test-stdalign.c (main): Skip the test on Sun C.
41495 2011-11-06  Bruno Haible  <bruno@clisp.org>
41497         ansi-c++-opt: Complete the 2011-06-05 change.
41498         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41499         does not support namespaces, set the variable to "no", not to ":".
41501 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41503         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41505 2011-11-06  Bruno Haible  <bruno@clisp.org>
41507         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41508         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41509         (minus_zerol) [HP-UX]: New macro.
41510         (unary_minus) [HP-UX]: New function.
41511         (copysignl) [HP-UX]: Use unary_minus function.
41513 2011-11-06  Bruno Haible  <bruno@clisp.org>
41515         ldexp, ldexpf, ldexpl: Enhance tests.
41516         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41517         and tests/test-ldexpl.c.
41518         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41519         LDEXP, MIN_EXP, MAX_EXP): New macros.
41520         Include test-ldexp.h.
41521         (main): Just call test_function.
41522         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41523         infinity.h, nan.h.
41524         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41525         MAX_EXP): New macros.
41526         Include test-ldexp.h.
41527         (x, y): Remove variables.
41528         (main): Just call test_function.
41529         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41530         infinity.h, nan.h.
41531         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41532         MAX_EXP): New macros.
41533         Include test-ldexp.h.
41534         (x, y): Remove variables.
41535         (main): Just call test_function.
41536         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41537         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41538         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41539         (Depends-on): Add isnand-nolibm, signbit, float.
41540         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41541         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41542         (Depends-on): Add isnanf-nolibm, signbit, float.
41544 2011-11-06  Bruno Haible  <bruno@clisp.org>
41546         math tests: Cosmetics.
41547         * tests/test-math-c++.cc: Reorder declarations.
41549 2011-11-05  Bruno Haible  <bruno@clisp.org>
41551         fma*: Simplify test.
41552         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41553         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41555         Tests for module 'fmal'.
41556         * modules/fmal-tests: New file.
41557         * tests/test-fmal1.c: New file.
41558         * tests/test-fmal2.c: New file.
41560         New module 'fmal'.
41561         * lib/math.in.h (fmal): New declaration.
41562         * lib/fmal.c: New file.
41563         * m4/fmal.m4: New file.
41564         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41566         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41567         REPLACE_FMAL.
41568         * modules/fmal: New file.
41569         * doc/posix-functions/fmal.texi: Mention the new module and the various
41570         bugs.
41572         Tests for module 'fmaf'.
41573         * modules/fmaf-tests: New file.
41574         * tests/test-fmaf1.c: New file.
41575         * tests/test-fmaf2.c: New file.
41577         New module 'fmaf'.
41578         * lib/math.in.h (fmaf): New declaration.
41579         * lib/fmaf.c: New file.
41580         * m4/fmaf.m4: New file.
41581         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41583         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41584         REPLACE_FMAF.
41585         * modules/fmaf: New file.
41586         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41587         bugs.
41589         Tests for module 'fma'.
41590         * modules/fma-tests: New file.
41591         * tests/test-fma1.c: New file.
41592         * tests/test-fma1.h: New file.
41593         * tests/test-fma2.c: New file.
41594         * tests/test-fma2.h: New file.
41596         New module 'fma'.
41597         * lib/math.in.h (fma): New declaration.
41598         * lib/fma.c: New file.
41599         * m4/fma.m4: New file.
41600         * m4/fegetround.m4: New file.
41601         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41603         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41604         REPLACE_FMA.
41605         * modules/fma: New file.
41606         * doc/posix-functions/fma.texi: Mention the new module and the various
41607         bugs.
41609         Extend gl_MATHFUNC.
41610         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41611         Support 'void' as argument type.
41612         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41614 2011-11-05  Jim Meyering  <meyering@redhat.com>
41616         maint.mk: also prohibit inclusion of dirent.h without use
41617         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41619 2011-11-05  Bruno Haible  <bruno@clisp.org>
41621         ldexpl tests: Avoid test failure on MSVC 9.
41622         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41623         value. Needed in order to enforce the conversion from a value greater
41624         than LDBL_MAX to Infinity.
41626 2011-11-05  Bruno Haible  <bruno@clisp.org>
41628         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41629         * modules/at-internal: New file, extracted from modules/openat.
41630         * modules/openat-h: New file.
41631         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41632         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41633         * modules/openat (Description): Add reference to POSIX function.
41634         (Files): Remove lib/openat.h, lib/openat-proc.c.
41635         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41636         intprops, unistd.
41637         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41638         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41639         gl_FCNTL_MODULE_INDICATOR.
41640         (Include): Remove unistd.h, openat.h.
41641         * modules/areadlinkat (Files): Add lib/at-func.c.
41642         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41643         openat-die, openat-h, save-cwd.
41644         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41645         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41646         openat-die, openat-h, save-cwd, unistd.
41647         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41648         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41649         openat-h, save-cwd. Remove fcntl-h, openat.
41650         * modules/fchmodat (Files): Remove lib/openat.h.
41651         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41652         openat, stdbool, unistd.
41653         * modules/fchownat (Files): Remove lib/openat.h.
41654         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41655         openat, stdbool, sys_stat.
41656         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41657         lib/openat-proc.c.
41658         (Depends-on): Add at-internal.
41659         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41660         * modules/fstatat (Files): Remove lib/openat.h.
41661         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41662         stdbool, unistd.
41663         * modules/fts (Depends-on): Add openat-h.
41664         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41665         openat.
41666         * modules/mkdirat (Files): Remove lib/openat.h.
41667         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41668         openat, stdbool, sys_stat.
41669         * modules/mkfifoat (Files): Add lib/at-func.c.
41670         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41671         openat-h, save-cwd. Remove fcntl-h, openat.
41672         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
41673         * modules/readlinkat (Files): Add lib/at-func.c.
41674         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41675         openat-h, save-cwd. Remove fcntl-h, openat.
41676         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41677         openat.
41678         * modules/selinux-at (Files): Add lib/at-func.c.
41679         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41680         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41681         * modules/symlinkat (Files): Add lib/at-func.c.
41682         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41683         openat-h, save-cwd. Remove fcntl-h, openat.
41684         * modules/unlinkat (Files): Remove lib/openat.h.
41685         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41686         stdbool.
41687         * modules/utimensat (Files): Add lib/at-func.c.
41688         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41689         openat-die, openat-h, save-cwd.
41690         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41691         * modules/fdutimensat-tests (Depends-on): Add openat.
41692         * modules/fstatat-tests (Depends-on): Add openat-h.
41693         * modules/readlinkat-tests (Depends-on): Add openat.
41694         * modules/symlinkat-tests (Depends-on): Add openat.
41696 2011-11-05  Bruno Haible  <bruno@clisp.org>
41698         openat: Include <stdbool.h>.
41699         * lib/openat.c: Include <stdbool.h>.
41701 2011-11-04  Bruno Haible  <bruno@clisp.org>
41703         fchownat, renameat, unlinkat: Fix dependencies.
41704         * modules/fchownat (Depends-on): Add fstatat.
41705         * modules/renameat (Depends-on): Likewise.
41706         * modules/unlinkat (Depends-on): Likewise.
41708 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41710         openat: remove direct dependency on dirent
41711         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41712         and hasn't been needed ever since fdopendir was split into its own
41713         module on 2009-08-31.
41714         * modules/openat (Depends-on): Remove dirent.
41716 2011-11-04  Bruno Haible  <bruno@clisp.org>
41718         renameat: Optimize code size.
41719         * modules/renameat (configure.ac): Don't compile at-func2.c if
41720         REPLACE_RENAMEAT is 1.
41722 2011-11-04  Bruno Haible  <bruno@clisp.org>
41724         openat tests: Fix file list.
41725         * modules/openat-tests (Files): Add tests/test-open.h.
41727 2011-11-04  Bruno Haible  <bruno@clisp.org>
41729         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41730         * modules/fchmodat (Depends-on): Add openat-die.
41731         * modules/fchownat (Depends-on): Likewise.
41732         * modules/linkat (Depends-on): Likewise.
41733         * modules/renameat (Depends-on): Likewise.
41734         * modules/openat (Depends-on): Add dirent.
41736 2011-11-04  Jim Meyering  <meyering@redhat.com>
41738         at-func*.c: fix comments
41739         * lib/at-func2.c: Correct/improve first-line comment.
41740         * lib/at-func.c: Correct grammar in first-line comment.
41742 2011-11-04  Bruno Haible  <bruno@clisp.org>
41744         New module 'mkdirat', split off from module 'openat'.
41745         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41746         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41747         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41748         * modules/mkdirat: New file, extracted from modules/openat.
41749         * modules/openat (Files): Remove lib/mkdirat.c.
41750         (Depends-on): Remove mkdir.
41751         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41752         (Include): Remove <sys/stat.h>.
41753         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41754         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41755         tests/test-mkdir.h.
41756         (Depends-on): Remove ignore-value.
41757         (Makefile.am): Remove rules for test-mkdirat.
41758         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41759         of module 'openat'.
41760         * NEWS: Mention the change.
41762 2011-11-04  Bruno Haible  <bruno@clisp.org>
41764         closedir: Avoid warning on mingw.
41765         * lib/closedir.c: Include <unistd.h>.
41767 2011-11-04  Bruno Haible  <bruno@clisp.org>
41769         New module 'fstatat', split off from module 'openat'.
41770         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41771         defined.
41772         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41773         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41774         gl_FUNC_FSTATAT.
41775         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41776         * modules/fstatat: New file, extracted from modules/openat.
41777         * modules/openat (Files): Remove lib/fstatat.c.
41778         (Depends-on): Remove lstat.
41779         (configure.ac): Remove AC_LIBOBJ of fstatat.
41780         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41781         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41782         tests/test-lstat.h, tests/test-stat.h.
41783         (Depends-on): Remove getcwd-lgpl.
41784         (Makefile.am): Remove rules for test-fstatat.
41785         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41786         of module 'openat'.
41787         * NEWS: Mention the change.
41788         * modules/getcwd (Depends-on): Add fstatat.
41789         * modules/linkat (Depends-on): Likewise.
41790         * modules/mkfifoat-tests (Depends-on): Likewise.
41791         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41793 2011-11-03  Bruno Haible  <bruno@clisp.org>
41795         New module 'unlinkat', split off from module 'openat'.
41796         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41797         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41798         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41799         * modules/unlinkat: New file, extracted from modules/openat. Correct
41800         the dependency conditions.
41801         * modules/openat (Files): Remove lib/unlinkat.c.
41802         (Depends-on): Remove rmdir, unlink.
41803         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41804         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41805         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41806         tests/test-rmdir.h, tests/test-unlink.h.
41807         (Depends-on): Remove unlinkdir.
41808         (Makefile.am): Remove rules for test-unlinkat.
41809         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41810         of module 'openat'.
41811         * NEWS: Mention the change.
41812         * modules/linkat-tests (Depends-on): Add unlinkat.
41813         * modules/mkfifoat-tests (Depends-on): Likewise.
41814         * modules/readlinkat-tests (Depends-on): Likewise.
41816 2011-11-02  Bruno Haible  <bruno@clisp.org>
41818         New module 'fchmodat', split off from module 'openat'.
41819         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41820         defined.
41821         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41822         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41823         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41824         * modules/fchmodat: New file, extracted from modules/openat.
41825         * modules/openat (Files): Remove lib/fchmodat.c.
41826         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41827         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41828         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41829         (Makefile.am): Remove rules for test-fchmodat.
41830         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41831         of module 'openat'.
41832         * NEWS: Mention the change.
41834 2011-11-02  Jim Meyering  <meyering@redhat.com>
41836         putenv: indent #definition of "environ" to placate cppi
41837         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41839         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41840         Git logs are often treated as immutable, because editing them
41841         changes the SHA1 checksums of all descendants.  Thus, errors in
41842         git logs tend to stay there forever.  However, when we generate
41843         a ChangeLog file -- typically for distribution -- from that git log,
41844         we can actually make corrections in the generated file.  The key
41845         lies in recording in machine-readable/applicable form the desired
41846         corrections.  See --help for description and an example.
41847         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41848         (usage): Describe it; alphabetize option descriptions.
41849         (main): Honor the new option, carefully.
41851 2011-11-01  Jim Meyering  <meyering@redhat.com>
41853         gitlog-to-changelog: avoid an infloop
41854         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41855         that ends up being empty.
41857 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41859         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41860         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41861         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41862         contains (possibly-quoted) backslashes.  This should avoid
41863         all-too-common shell bugs if COMPLICATED contains backslashes in
41864         the "wrong" places.  Reported by David Evans in
41865         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41866         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41867         because we want ASCII ranges.  Is there some reason we don't use
41868         the C locale everywhere in this script?
41869         (func_module, top level): Avoid unwanted pathname expansion when
41870         $repo_url_prefix or $repo_url_suffix_repl contain shell
41871         metacharacters like '?' and '*'.
41873 2011-11-01  Bruno Haible  <bruno@clisp.org>
41875         fchownat: Improve description.
41876         * modules/fchownat (Description): Add link to function.
41878 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41880         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41881         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41882         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41883         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41885 2011-11-01  Bruno Haible  <bruno@clisp.org>
41887         alignof: Avoid collision with stdalign module.
41888         * lib/alignof.h (alignof): Remove macro.
41889         * NEWS: Mention the change.
41890         Reported by Paul Eggert.
41892 2011-11-01  Bruno Haible  <bruno@clisp.org>
41894         New module 'fchownat', split off from module 'openat'.
41895         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41896         defined.
41897         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41898         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41899         invoke gl_FUNC_FCHOWNAT.
41900         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41901         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41902         * modules/fchownat: New file, extracted from modules/openat.
41903         * modules/openat (Files): Remove lib/fchownat.c.
41904         (Depends-on): Remove lchown.
41905         (configure.ac): Remove AC_LIBOBJ of fchownat.
41906         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41907         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41908         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41909         (Depends-on): Remove mgetgroups, usleep, stat-time.
41910         (configure.ac): Remove test for getegid.
41911         (Makefile.am): Remove rules for test-fchownat.
41912         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41913         of module 'openat'.
41914         * NEWS: Mention the change.
41916 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41918         stdalign: port better to MSVC and to Sun C 5.11
41919         This fixes some of the problems reported by Bruno Haible in
41920         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41921         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41922         shortcomings of MSVC and of Sun C 5.11.
41923         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41924         around __declspec arg.
41925         * modules/stdalign-tests (Files): Add tests/macros.h.
41926         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41927         Include macros.h, for ASSERT.
41928         (DECLARE_ALIGNED): Remove.
41929         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41930         to catch bug), and to 1 if not (simplifies the rest of the code).
41931         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41932         (CHECK_AUTO): Remove.
41933         (CHECK_ALIGNED): Check only the alignment of the static vars,
41934         since auto var alignment isn't supported by Sun C 5.11.
41935         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41936         ASSERT failures are easier to diagnose.
41938 2011-10-31  Bruno Haible  <bruno@clisp.org>
41940         doc about some IRIX 5.3 problems.
41941         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41942         on IRIX 5.3.
41943         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41944         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41945         5.3.
41946         * doc/posix-functions/grantpt.texi: Likewise.
41947         * doc/posix-functions/unlockpt.texi: Likewise.
41948         * doc/posix-functions/lgamma.texi: Likewise.
41949         * doc/posix-functions/nextafter.texi: Likewise.
41950         * doc/posix-functions/remainder.texi: Likewise.
41951         * doc/posix-functions/select.texi: Mention misplaced declaration on
41952         IRIX 5.3.
41953         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41955 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41957         gitlog-to-changelog: fix git-log invocation.
41958         git-log mishandles date strings before 1970-01-01 UTC, and there is
41959         no use to specify --since=1970-01-01 by default anyway.
41960         * build-aux/gitlog-to-changelog: By default, when no --since option
41961         was given, do not specify explicit --since option to git-log.
41963 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41965         gitlog-to-changelog: new option --append-dot.
41966         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41967         first non-blank line of each commit message terminated with a dot.
41969 2011-10-30  Bruno Haible  <bruno@clisp.org>
41971         ffsl, ffsll: Avoid compilation error due to 'restrict'.
41972         * lib/ffsl.h: Include <config.h>.
41973         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
41975 2011-10-30  Jim Meyering  <meyering@redhat.com>
41977         GNUmakefile: reenable "make syntax-check" for most projects
41978         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
41979         build-aux variable", "syntax-check" would do nothing but succeed with
41980         the "No version control files detected..." diagnostic (unless you
41981         happened to override _build-aux via cfg.mk).
41982         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
41983         to precede inclusion of maint.mk.  Otherwise, these variables would
41984         be used undefined in any project that does not override the default.
41986 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
41988         gitlog-to-changelog: treat a message with only blank lines as empty.
41989         * build-aux/gitlog-to-changelog: Move the code that removes leading and
41990         trailing blank lines before the code that issues a warning about an
41991         empty commit message.
41993 2011-10-30  Jim Meyering  <meyering@redhat.com>
41995         test-parse-datetime.c: avoid new DST-related false positive test failure
41996         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
41997         based on the time/date we'll convert, not the current time.
41998         Otherwise, the moment we cross a DST boundary like today's in
41999         Europe, (CEST to CET), that offset ends up being one hour off.
42001 2011-10-27  Bruno Haible  <bruno@clisp.org>
42003         fstat: Tweak documentation.
42004         * modules/fstat (Description): More precise description.
42006 2011-10-27  Bruno Haible  <bruno@clisp.org>
42008         Update documentation regarding 'largefile' module.
42009         * doc/posix-functions/fstat.texi: Tweak wording.
42010         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42011         problems with huge directories and/or small ino_t types.
42012         * doc/posix-functions/readdir.texi: Likewise.
42013         * doc/posix-functions/rewinddir.texi: Likewise.
42015 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42017         maint.mk: don't maintain a second build-aux variable.
42018         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42019         depends on GNUmakefile, which already maintains a cfg.mk
42020         overridable $(_build-aux) for projects with a non-standard
42021         build-aux directory location, although without the $(srcdir)
42022         prefix.  Use that variable consistently instead of introducing a
42023         second one.  Adjust all call sites.
42025 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42027         Add stdalign module and use it in other modules.
42028         This is based on a previous proposal by Bruno Haible
42029         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42031         stdalign: new module
42032         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42033         * modules/stdalign: New files.
42034         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42035         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42037         stdalign-tests: new module
42038         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42040         argp: use stdalign
42041         * lib/argp-parse.c: Include <stdalign.h>.
42042         (alignof): Remove.
42043         * modules/argp (Depends-on): Add stdalign.
42045         crypto libraries: use stdalign
42046         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42047         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42048         Do not include <stdlib.h> twice, in md4.c.
42049         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42050         because we are accessing a pointer's bit-pattern, not a size.
42051         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42052         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42053         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42054         * modules/crypto/sha512: Likewise.
42056         sys_socket: use stdalign, not alignof
42057         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42058         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42060 2011-10-27  Bruno Haible  <bruno@clisp.org>
42062         raise test: Avoid a test failure on Linux/MIPS.
42063         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42064         because 99 is a valid signal on Linux/MIPS.
42066 2011-10-27  Bruno Haible  <bruno@clisp.org>
42068         nonblocking tests: Fix test failure on Linux/MIPS.
42069         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42070         Set to 270000.
42072 2011-10-27  Bruno Haible  <bruno@clisp.org>
42074         utimensat: Work around problem on Linux/hppa.
42075         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
42076         values.
42077         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
42079 2011-10-25  Jim Meyering  <meyering@redhat.com>
42081         maint.mk: fix a bug in sc_prohibit_stddef_without_use
42082         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
42083         after symbols like NULL, size_t, etc.
42084         Reported by Alfred M. Szmidt.
42086         maint.mk: exempt ENODATA from a syntax-check rule
42087         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
42088         from the sc_prohibit_always-defined_macros syntax-check rule.
42089         Add a comment.  See this for more details:
42090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
42092 2011-10-23  Jim Meyering  <meyering@redhat.com>
42094         fts: close parent dir FD before returning from post-traversal fts_read
42095         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
42096         unlink A, even though an FD open on A remained.  This is suboptimal
42097         (holding a file descriptor open longer than needed), but otherwise not
42098         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
42099         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
42100         that represents a real problem: it causes the removal of A to fail
42101         with e.g., "rm: cannot remove `A': Device or resource busy"
42103         fts visits each directory twice and keeps a cache (fts_fd_ring) of
42104         directory file descriptors.  After completing the final, FTS_DP,
42105         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
42106         cache, but then proceeded to add a new FD to it via the subsequent
42107         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
42108         final file descriptor would be closed only via fts_close's call to
42109         fd_ring_clear.  Now, it is usually closed earlier, via the final
42110         FTS_DP-returning fts_read call.
42111         * lib/fts.c (restore_initial_cwd): New function, converted from
42112         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42113         Update callers.
42114         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42115         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42117 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42118             Bruno Haible  <bruno@clisp.org>
42119             Jim Meyering  <jim@meyering.net>
42121         readme-release: improve safety of release prep instructions.
42122         * README-release: Don't git pull all branches when only master
42123         is needed for the release process.
42124         Run make maintainer-clean before changing trees and merging.
42125         Don't try to run ./configure right after git pull in case files
42126         that influence the bootstrap process have changed, move the
42127         ./configure step to after running ./bootstrap.
42128         Don't bootstrap "one last time"... it's the first time!
42130 2011-10-22  Bruno Haible  <bruno@clisp.org>
42132         errno, strerror-override: Support for MSVC 10.
42133         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42134         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42135         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42136         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42137         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42138         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42139         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42140         Assign values compatible with MSVC 10.
42141         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42142         New macros.
42143         (GNULIB_defined_EWINSOCK): New macro.
42144         * lib/strerror-override.c (strerror_override): Update accordingly.
42145         * lib/strerror-override.h: Likewise.
42146         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42147         longer equal to the corresponding errno value.
42148         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42150 2011-10-22  Bruno Haible  <bruno@clisp.org>
42152         perror: Recognize when test program crashes.
42153         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42154         strerror, set gl_cv_func_perror_works to no.
42155         Reported by Daniel Richard G. <skunk@iskunk.org>.
42157         perror: Fix indentation.
42158         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42160 2011-10-22  Bruno Haible  <bruno@clisp.org>
42162         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42163         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42164         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42165         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42166         functions, not as a macro.
42167         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42168         macros.
42169         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42170         absence of macro.
42171         Suggested by Eric Blake.
42172         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42174 2011-10-21  Bruno Haible  <bruno@clisp.org>
42176         relocatable-prog-wrapper: Don't leave object files behind.
42177         * build-aux/install-reloc: Re-synchronize list of .o files to be
42178         removed with list of compilation units.
42180 2011-10-20  Bruno Haible  <bruno@clisp.org>
42182         openpty, posix_openpt: Remove code duplication.
42183         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42184         * lib/openpty.c: Include <stdlib.h>.
42185         (openpty): Use posix_openpt on all platforms except IRIX.
42186         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42188 2011-10-20  Bruno Haible  <bruno@clisp.org>
42190         unlockpt: Detect invalid argument.
42191         * lib/unlockpt.c: Include <fcntl.h>.
42192         (unlockpt): Check whether fd is valid, using fcntl().
42193         * modules/unlockpt (Depends-on): Add fcntl-h.
42195 2011-10-20  Bruno Haible  <bruno@clisp.org>
42197         openpty: Avoid compilation error on AIX 6.1.
42198         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42200 2011-10-20  Bruno Haible  <bruno@clisp.org>
42202         posix_openpt: Support for OpenBSD.
42203         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42204         (posix_openpt) [OpenBSD]: New code.
42205         * lib/grantpt.c: Include <fcntl.h>.
42206         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42207         * modules/grantpt (Depends-on): Add fcntl-h.
42209 2011-10-20  Bruno Haible  <bruno@clisp.org>
42211         posix_openpt test: Coding style.
42212         * tests/test-posix_openpt.c: Use GNU coding style.
42214 2011-10-20  Bruno Haible  <bruno@clisp.org>
42216         grantpt: Support --avoid=pt_chown.
42217         * modules/grantpt (Files): Add lib/pty-private.h.
42219 2011-10-20  Bruno Haible  <bruno@clisp.org>
42221         posix_openpt: Fix autoconf macro.
42222         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42223         unneeded check for _getpty.
42225 2011-10-20  Bruno Haible  <bruno@clisp.org>
42227         openpty: Update comments.
42228         * lib/openpty.c: Add comments about Minix.
42230 2011-10-19  Eric Blake  <eblake@redhat.com>
42232         openpty: relax license
42233         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42235         pt_chown: use configmake to simplify build
42236         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42238         ptsname and others: relax license
42239         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42240         * modules/unlockpt (License): Likewise.
42241         * modules/pt_chown (License): Likewise.
42242         * modules/ptsname (License): Likewise.
42243         * modules/ttyname_r (License): Likewise.
42245 2011-10-19  Jim Meyering  <meyering@redhat.com>
42247         posix_openpt: remove spurious #endif
42248         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42250 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42252         maint.mk: Respect $(build_aux) in web-manual rule.
42253         * top/maint.mk (web-manual): Find gen-announce script in user's
42254         $(build_aux) directory instead of hard-coding 'build-aux'.
42256 2011-10-19  Bruno Haible  <bruno@clisp.org>
42258         posix_openpt: Fix compilation error.
42259         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42260         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42261         Mention the openpty module as an alternative.
42263 2011-10-19  Bruno Haible  <bruno@clisp.org>
42265         Support for old NeXTstep 3.3 frexp().
42266         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42267         execution time of the test to 5 seconds.
42268         Reported by Daniel Richard G. <skunk@iskunk.org>.
42270 2011-10-19  Bruno Haible  <bruno@clisp.org>
42272         Support for old NeXTstep 3.3 sed.
42273         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42274         part, use /.../, not \|...|. Escape periods in the header file name.
42275         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42276         Reported by Daniel Richard G. <skunk@iskunk.org>.
42278 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42280         Support for old NeXTstep 3.3 gcc.
42281         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42282         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42283         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42284         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42285         * lib/regex.h (_Restrict_arr_): Likewise.
42286         * lib/regex_internal.h (re_token_t): Likewise.
42287         * lib/regexec.c (check_node_accept_bytes): Likewise.
42288         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42290 2011-10-18  Eric Blake  <eblake@redhat.com>
42292         posix_openpt: new module
42293         * modules/posix_openpt: New module.
42294         * m4/posix_openpt.m4: New file.
42295         * lib/posix_openpt.c: Likewise.
42296         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42297         (gl_STDLIB_H_DEFAULTS): Set defaults.
42298         * modules/stdlib (Makefile.am): Substitute macros.
42299         * lib/stdlib.in.h (posix_openpt): Declare.
42300         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42301         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42302         * modules/posix_openpt-tests: New test module.
42303         * tests/test-posix_openpt.c: New test.
42305 2011-10-15  Bruno Haible  <bruno@clisp.org>
42307         xstrtoll: Fix compilation failure.
42308         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42309         from lib/strtol.c.
42310         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42311         some platforms.
42312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42314 2011-10-15  Bruno Haible  <bruno@clisp.org>
42316         vasnprintf: Optimize bit search operation.
42317         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42319         gl_DOUBLE_EXPONENT_LOCATION.
42320         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42321         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42322         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42323         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42324         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42325         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42326         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42327         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42328         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42330 2011-10-15  Bruno Haible  <bruno@clisp.org>
42332         vasnprintf: Fix comments.
42333         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42335 2011-10-14  Bruno Haible  <bruno@clisp.org>
42337         Tests for module 'integer_length_ll'.
42338         * modules/integer_length_ll-tests: New file.
42339         * tests/test-integer_length_ll.c: New file.
42341         New module 'integer_length_ll'.
42342         * lib/integer_length_ll.c: New file.
42343         * modules/integer_length_ll: New file.
42345 2011-10-14  Bruno Haible  <bruno@clisp.org>
42347         Tests for module 'integer_length_l'.
42348         * modules/integer_length_l-tests: New file.
42349         * tests/test-integer_length_l.c: New file.
42351         New module 'integer_length_l'.
42352         * lib/integer_length_l.c: New file.
42353         * modules/integer_length_l: New file.
42355 2011-10-14  Bruno Haible  <bruno@clisp.org>
42357         Tests for module 'integer_length'.
42358         * modules/integer_length-tests: New file.
42359         * tests/test-integer_length.c: New file.
42361         New module 'integer_length'.
42362         * lib/integer_length.h: New file.
42363         * lib/integer_length.c: New file.
42364         * modules/integer_length: New file.
42366 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42368         popen: Fix dependency conditions.
42369         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42371 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42373         perror: Fix autoconf test.
42374         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42375         <stdlib.h> and <string.h>.
42377 2011-10-14  Bruno Haible  <bruno@clisp.org>
42379         ffsl: Optimize on 64-bit platforms.
42380         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42381         unrolling.
42383 2011-10-13  Bruno Haible  <bruno@clisp.org>
42385         ffsl: Optimize on 32-bit platforms.
42386         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42387         use ffs() without a loop.
42389         ffsl, ffsll: Optimize for GCC.
42390         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42391         * lib/ffsl.c (GCC_BUILTIN): New macro.
42392         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42394 2011-10-13  Bruno Haible  <bruno@clisp.org>
42396         ffs, bcopy, memset: Support symbol renaming via config.h.
42397         * lib/ffs.c: Include <config.h>.
42398         * lib/bcopy.c: Likewise.
42399         * lib/memset.c: Likewise.
42401 2011-10-10  Bruno Haible  <bruno@clisp.org>
42403         atanl: Simplify for platforms where 'long double' == 'double'.
42404         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42405         alternative implementation.
42406         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42407         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42408         * modules/atanl (Depends-on): Add atan. Update conditions.
42410 2011-10-10  Bruno Haible  <bruno@clisp.org>
42412         acosl: Simplify for platforms where 'long double' == 'double'.
42413         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42414         alternative implementation.
42415         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42416         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42417         * modules/acosl (Depends-on): Add acos. Update conditions.
42419 2011-10-10  Bruno Haible  <bruno@clisp.org>
42421         asinl: Simplify for platforms where 'long double' == 'double'.
42422         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42423         alternative implementation.
42424         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42425         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42426         * modules/asinl (Depends-on): Add asin. Update conditions.
42428 2011-10-10  Bruno Haible  <bruno@clisp.org>
42430         tanl: Simplify for platforms where 'long double' == 'double'.
42431         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42432         implementation.
42433         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42434         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42435         * modules/tanl (Depends-on): Add tan. Update conditions.
42436         (configure.ac): Don't compile trigl.c if
42437         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42439 2011-10-10  Bruno Haible  <bruno@clisp.org>
42441         cosl: Simplify for platforms where 'long double' == 'double'.
42442         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42443         implementation.
42444         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42445         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42446         * modules/cosl (Depends-on): Add cos. Update conditions.
42447         (configure.ac): Don't compile sincosl.c and trigl.c if
42448         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42450 2011-10-10  Bruno Haible  <bruno@clisp.org>
42452         sinl: Simplify for platforms where 'long double' == 'double'.
42453         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42454         implementation.
42455         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42456         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42457         * modules/sinl (Depends-on): Add sin. Update conditions.
42458         (configure.ac): Don't compile sincosl.c and trigl.c if
42459         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42461 2011-10-10  Bruno Haible  <bruno@clisp.org>
42463         logl: Simplify for platforms where 'long double' == 'double'.
42464         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42465         implementation.
42466         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42467         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42468         * modules/logl (Depends-on): Add log. Update conditions.
42470 2011-10-10  Bruno Haible  <bruno@clisp.org>
42472         expl: Simplify for platforms where 'long double' == 'double'.
42473         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42474         implementation.
42475         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42476         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42477         * modules/expl (Depends-on): Add exp. Update conditions.
42479 2011-10-10  Bruno Haible  <bruno@clisp.org>
42481         sqrtl: Simplify for platforms where 'long double' == 'double'.
42482         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42483         alternative implementation.
42484         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42485         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42486         * modules/sqrtl (Depends-on): Update conditions.
42488 2011-10-10  Bruno Haible  <bruno@clisp.org>
42490         ldexpl: Simplify for platforms where 'long double' == 'double'.
42491         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42492         alternative implementation.
42493         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42494         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42495         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42497 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42499         ffsll: set correct witness
42500         * modules/ffsll (configure.ac): Fix typo.
42502 2011-10-10  Bruno Haible  <bruno@clisp.org>
42504         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42505         * lib/printf-frexpl.c: Include <config.h>.
42506         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42507         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42508         second time.
42509         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42510         gl_LONG_DOUBLE_VS_DOUBLE.
42511         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42512         conditions.
42514 2011-10-10  Bruno Haible  <bruno@clisp.org>
42516         frexpl: Simplify for platforms where 'long double' == 'double'.
42517         * lib/frexpl.c: Include <config.h>.
42518         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42519         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42520         time.
42521         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42522         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42523         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42524         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42525         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42526         conditions.
42528 2011-10-10  Jim Meyering  <meyering@redhat.com>
42530         test-renameat: don't leave behind a temporary file
42531         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42532           ERROR: files left in build directory after distclean:
42533           ./gltests/test-renameat.too
42534           make[1]: *** [distcleancheck] Error 1
42535         Reported by Tom G. Christensen.
42537 2011-10-09  Bruno Haible  <bruno@clisp.org>
42539         rint: Determine RINT_LIBM correctly on AIX 7.
42540         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42541         directly, not only through a function pointer. Also accept an optional
42542         4th argument with extra code.
42543         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42544         rintf() call by gcc when optimizing.
42546         mathfunc.m4: Refactor.
42547         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42548         m4 variable.
42550 2011-10-09  Bruno Haible  <bruno@clisp.org>
42552         rintl: Simplify for platforms where 'long double' == 'double'.
42553         * lib/rintl.c: Include <config.h>.
42554         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42555         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42556         time.
42557         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42558         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42559         * modules/rintl (Depends-on): Add rint. Update conditions.
42561 2011-10-09  Bruno Haible  <bruno@clisp.org>
42563         roundl: Simplify for platforms where 'long double' == 'double'.
42564         * lib/roundl.c: Include <config.h>.
42565         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42566         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42567         time.
42568         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42569         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42570         * modules/roundl (Depends-on): Add round. Update conditions.
42572 2011-10-09  Bruno Haible  <bruno@clisp.org>
42574         truncl: Simplify for platforms where 'long double' == 'double'.
42575         * lib/truncl.c: Include <config.h>.
42576         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42577         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42578         time.
42579         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42580         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42581         * modules/truncl (Depends-on): Add trunc. Update conditions.
42583 2011-10-09  Bruno Haible  <bruno@clisp.org>
42585         ceill: Simplify for platforms where 'long double' == 'double'.
42586         * lib/ceill.c: Include <config.h>.
42587         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42588         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42589         time.
42590         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42591         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42592         * modules/ceill (Depends-on): Add ceil. Update conditions.
42594 2011-10-09  Bruno Haible  <bruno@clisp.org>
42596         floorl: Simplify for platforms where 'long double' == 'double'.
42597         * lib/floorl.c: Include <config.h>.
42598         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42599         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42600         time.
42601         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42602         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42603         * modules/floorl (Depends-on): Add floor. Update conditions.
42605 2011-10-09  Bruno Haible  <bruno@clisp.org>
42607         rint: Fix ordering constraints.
42608         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42609         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42610         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42612 2011-10-09  Bruno Haible  <bruno@clisp.org>
42614         copysignl: Simplify for platforms where 'long double' == 'double'.
42615         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42616         alternative.
42617         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42618         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42619         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42621 2011-10-09  Bruno Haible  <bruno@clisp.org>
42623         Tests for module 'rintl'.
42624         * modules/rintl-tests: New file.
42625         * tests/test-rintl.c: New file.
42627         New module 'rintl'.
42628         * lib/math.in.h (rintl): New declaration.
42629         * lib/rintl.c: New file.
42630         * m4/rintl.m4: New file.
42631         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42633         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42634         * modules/rintl: New file.
42635         * tests/test-math-c++.cc: Check the declaration of rintl.
42636         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42637         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42638         * doc/posix-functions/rintl.texi: Mention the new module.
42640 2011-10-09  Bruno Haible  <bruno@clisp.org>
42642         Tests for module 'rintf'.
42643         * modules/rintf-tests: New file.
42644         * tests/test-rintf.c: New file.
42646         New module 'rintf'.
42647         * lib/math.in.h (rintf): New declaration.
42648         * lib/rintf.c: New file.
42649         * m4/rintf.m4: New file.
42650         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42652         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42653         * modules/rintf: New file.
42654         * tests/test-math-c++.cc: Check the declaration of rintf.
42655         * doc/posix-functions/rintf.texi: Mention the new module.
42657 2011-10-09  Bruno Haible  <bruno@clisp.org>
42659         rint: Support for MSVC.
42660         * lib/math.in.h (rint): New declaration.
42661         * lib/rint.c: New file.
42662         * m4/rint.m4: New file.
42663         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42665         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42666         * modules/rint (Description): Fix.
42667         (Files): Add lib/rint.c, m4/rint.m4.
42668         (Depends-on): Add math.
42669         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42670         gl_MATH_MODULE_INDICATOR.
42671         * tests/test-math-c++.cc: Check the declaration of rint.
42672         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42673         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42674         * doc/posix-functions/rint.texi: Mention the replacement provided by
42675         the module.
42677         rint tests: More tests.
42678         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42679         minus-zero.h, infinity.h, nan.h.
42680         (main): Skip the test if the current rounding mode is not standard. Add
42681         tests for negative numbers, minus zero, infinity, NaN.
42682         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42683         tests/nan.h.
42684         (Depends-on): Add isnand-nolibm.
42686 2011-10-09  Bruno Haible  <bruno@clisp.org>
42688         Tests for module 'copysignl'.
42689         * modules/copysignl-tests: New file.
42690         * tests/test-copysignl.c: New file.
42692         New module 'copysignl'.
42693         * lib/math.in.h (copysignl): New declaration.
42694         * lib/copysignl.c: New file.
42695         * m4/copysignl.m4: New file.
42696         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42698         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42699         HAVE_COPYSIGNL.
42700         * modules/copysignl: New file.
42701         * tests/test-math-c++.cc: Check the declaration of copysignl.
42702         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42703         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42704         * doc/posix-functions/copysignl.texi: Mention the new module.
42706 2011-10-09  Bruno Haible  <bruno@clisp.org>
42708         Tests for module 'copysignf'.
42709         * modules/copysignf-tests: New file.
42710         * tests/test-copysignf.c: New file.
42712         New module 'copysignf'.
42713         * lib/math.in.h (copysignf): New declaration.
42714         * lib/copysignf.c: New file.
42715         * m4/copysignf.m4: New file.
42716         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42718         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42719         HAVE_COPYSIGNF.
42720         * modules/copysignf: New file.
42721         * tests/test-math-c++.cc: Check the declaration of copysignf.
42722         * doc/posix-functions/copysignf.texi: Mention the new module.
42724 2011-10-09  Bruno Haible  <bruno@clisp.org>
42726         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42727         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42729         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42730         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42731         gl_SIGNAL_H_DEFAULTS.
42733 2011-10-09  Bruno Haible  <bruno@clisp.org>
42735         poll: Make macro safer.
42736         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42737         ac_cv_header_poll_h is not set.
42739 2011-10-09  Bruno Haible  <bruno@clisp.org>
42741         copysign: Provide replacement.
42742         * lib/math.in.h (copysign): New declaration.
42743         * lib/copysign.c: New file.
42744         * m4/copysign.m4: New file.
42745         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42747         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42748         HAVE_COPYSIGN.
42749         * modules/copysign (Description): Clarify.
42750         (Files): Add lib/copysign.c, m4/copysign.m4.
42751         (Depends-on): Add math, signbit.
42752         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42753         gl_MATH_MODULE_INDICATOR.
42754         * tests/test-math-c++.cc: Check the declaration of copysign.
42755         * doc/posix-functions/copysign.texi: Mention the effects of the module
42756         on Minix and MSVC.
42758 2011-10-09  Bruno Haible  <bruno@clisp.org>
42760         isinf: Ensure macro on AIX 5.1.
42761         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42762         macro.
42763         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42765 2011-10-09  Bruno Haible  <bruno@clisp.org>
42767         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42768         * modules/snprintf-posix-tests (configure.ac): Require
42769         gl_LONG_DOUBLE_VS_DOUBLE.
42770         * modules/sprintf-posix-tests (configure.ac): Likewise.
42771         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42772         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42773         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42774         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42775         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42776         tests on platforms where 'long double' is the same as 'double'.
42777         * tests/test-sprintf-posix.h (test_function): Likewise.
42778         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42779         * tests/test-vasprintf-posix.c (test_function): Likewise.
42781         *printf: Fix for platforms where 'long double' == 'double'.
42782         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42783         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42784         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42785         * modules/fprintf-posix (Files): Likewise.
42786         * modules/obstack-printf-posix (Files): Likewise.
42787         * modules/snprintf-posix (Files): Likewise.
42788         * modules/sprintf-posix (Files): Likewise.
42789         * modules/vasnprintf (Files): Likewise.
42790         * modules/vasnprintf-posix (Files): Likewise.
42791         * modules/vasprintf-posix (Files): Likewise.
42792         * modules/vdprintf-posix (Files): Likewise.
42793         * modules/vfprintf-posix (Files): Likewise.
42794         * modules/vsnprintf-posix (Files): Likewise.
42795         * modules/vsprintf-posix (Files): Likewise.
42796         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42797         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42798         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42799         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42800         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42801         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42802         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42804         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42805         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42806         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42807         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42808         'long double'.
42809         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42811         isinf: Fix for platforms where 'long double' == 'double'.
42812         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42813         Don't blindly assume 80-bit 'long double'.
42815         isfinite: Fix for platforms where 'long double' == 'double'.
42816         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42817         Don't blindly assume 80-bit 'long double'.
42819         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42820         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42821         * modules/isfinite-tests (configure.ac): Require
42822         gl_LONG_DOUBLE_VS_DOUBLE.
42823         * modules/isinf-tests (configure.ac): Likewise.
42824         * modules/isnan-tests (configure.ac): Likewise.
42825         * modules/isnanl-tests (configure.ac): Likewise.
42826         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42827         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42828         tests on platforms where 'long double' is the same as 'double'.
42829         * tests/test-isinf.c (test_isinfl): Likewise.
42830         * tests/test-isnan.c (test_long_double): Likewise.
42831         * tests/test-isnanl.h (main): Likewise.
42833 2011-10-08  Bruno Haible  <bruno@clisp.org>
42835         Tests for module 'tanhf'.
42836         * modules/tanhf-tests: New file.
42837         * tests/test-tanhf.c: New file.
42839         New module 'tanhf'.
42840         * lib/math.in.h (tanhf): New declaration.
42841         * lib/tanhf.c: New file.
42842         * m4/tanhf.m4: New file.
42843         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42845         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42846         * modules/tanhf: New file.
42847         * tests/test-math-c++.cc: Check the declaration of tanhf.
42848         * doc/posix-functions/tanhf.texi: Mention the new module.
42850         tanh: Use a .m4 file.
42851         * m4/tanh.m4: New file.
42852         * modules/tanh (Files): Add it.
42853         (configure.ac): Just invoke gl_FUNC_TANH.
42855 2011-10-08  Bruno Haible  <bruno@clisp.org>
42857         Tests for module 'coshf'.
42858         * modules/coshf-tests: New file.
42859         * tests/test-coshf.c: New file.
42861         New module 'coshf'.
42862         * lib/math.in.h (coshf): New declaration.
42863         * lib/coshf.c: New file.
42864         * m4/coshf.m4: New file.
42865         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42867         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42868         * modules/coshf: New file.
42869         * tests/test-math-c++.cc: Check the declaration of coshf.
42870         * doc/posix-functions/coshf.texi: Mention the new module.
42872         cosh: Use a .m4 file.
42873         * m4/cosh.m4: New file.
42874         * modules/cosh (Files): Add it.
42875         (configure.ac): Just invoke gl_FUNC_COSH.
42877 2011-10-08  Bruno Haible  <bruno@clisp.org>
42879         Tests for module 'sinhf'.
42880         * modules/sinhf-tests: New file.
42881         * tests/test-sinhf.c: New file.
42883         New module 'sinhf'.
42884         * lib/math.in.h (sinhf): New declaration.
42885         * lib/sinhf.c: New file.
42886         * m4/sinhf.m4: New file.
42887         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42889         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42890         * modules/sinhf: New file.
42891         * tests/test-math-c++.cc: Check the declaration of sinhf.
42892         * doc/posix-functions/sinhf.texi: Mention the new module.
42894         sinh: Use a .m4 file.
42895         * m4/sinh.m4: New file.
42896         * modules/sinh (Files): Add it.
42897         (configure.ac): Just invoke gl_FUNC_SINH.
42899 2011-10-08  Bruno Haible  <bruno@clisp.org>
42901         Tests for module 'atan2f'.
42902         * modules/atan2f-tests: New file.
42903         * tests/test-atan2f.c: New file.
42905         New module 'atan2f'.
42906         * lib/math.in.h (atan2f): New declaration.
42907         * lib/atan2f.c: New file.
42908         * m4/atan2f.m4: New file.
42909         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42911         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42912         * modules/atan2f: New file.
42913         * tests/test-math-c++.cc: Check the declaration of atan2f.
42914         * doc/posix-functions/atan2f.texi: Mention the new module.
42916         atan2: Use a .m4 file.
42917         * m4/atan2.m4: New file.
42918         * modules/atan2 (Files): Add it.
42919         (configure.ac): Just invoke gl_FUNC_ATAN2.
42921 2011-10-08  Bruno Haible  <bruno@clisp.org>
42923         Tests for module 'atanf'.
42924         * modules/atanf-tests: New file.
42925         * tests/test-atanf.c: New file.
42927         New module 'atanf'.
42928         * lib/math.in.h (atanf): New declaration.
42929         * lib/atanf.c: New file.
42930         * m4/atanf.m4: New file.
42931         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42933         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42934         * modules/atanf: New file.
42935         * tests/test-math-c++.cc: Check the declaration of atanf.
42936         * doc/posix-functions/atanf.texi: Mention the new module.
42938         atan: Use a .m4 file.
42939         * m4/atan.m4: New file.
42940         * modules/atan (Files): Add it.
42941         (configure.ac): Just invoke gl_FUNC_ATAN.
42943 2011-10-08  Bruno Haible  <bruno@clisp.org>
42945         Tests for module 'acosf'.
42946         * modules/acosf-tests: New file.
42947         * tests/test-acosf.c: New file.
42949         New module 'acosf'.
42950         * lib/math.in.h (acosf): New declaration.
42951         * lib/acosf.c: New file.
42952         * m4/acosf.m4: New file.
42953         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42955         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42956         * modules/acosf: New file.
42957         * tests/test-math-c++.cc: Check the declaration of acosf.
42958         * doc/posix-functions/acosf.texi: Mention the new module.
42960         acos: Use a .m4 file.
42961         * m4/acos.m4: New file.
42962         * modules/acos (Files): Add it.
42963         (configure.ac): Just invoke gl_FUNC_ACOS.
42965 2011-10-08  Bruno Haible  <bruno@clisp.org>
42967         Tests for module 'asinf'.
42968         * modules/asinf-tests: New file.
42969         * tests/test-asinf.c: New file.
42971         New module 'asinf'.
42972         * lib/math.in.h (asinf): New declaration.
42973         * lib/asinf.c: New file.
42974         * m4/asinf.m4: New file.
42975         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
42976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
42977         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
42978         * modules/asinf: New file.
42979         * tests/test-math-c++.cc: Check the declaration of asinf.
42980         * doc/posix-functions/asinf.texi: Mention the new module.
42982         asin: Use a .m4 file.
42983         * m4/asin.m4: New file.
42984         * modules/asin (Files): Add it.
42985         (configure.ac): Just invoke gl_FUNC_ASIN.
42987 2011-10-08  Bruno Haible  <bruno@clisp.org>
42989         Tests for module 'tanf'.
42990         * modules/tanf-tests: New file.
42991         * tests/test-tanf.c: New file.
42993         New module 'tanf'.
42994         * lib/math.in.h (tanf): New declaration.
42995         * lib/tanf.c: New file.
42996         * m4/tanf.m4: New file.
42997         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
42998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
42999         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43000         * modules/tanf: New file.
43001         * tests/test-math-c++.cc: Check the declaration of tanf.
43002         * doc/posix-functions/tanf.texi: Mention the new module.
43004         tan: Use a .m4 file.
43005         * m4/tan.m4: New file.
43006         * modules/tan (Files): Add it.
43007         (configure.ac): Just invoke gl_FUNC_TAN.
43009 2011-10-08  Bruno Haible  <bruno@clisp.org>
43011         Tests for module 'cosf'.
43012         * modules/cosf-tests: New file.
43013         * tests/test-cosf.c: New file.
43015         New module 'cosf'.
43016         * lib/math.in.h (cosf): New declaration.
43017         * lib/cosf.c: New file.
43018         * m4/cosf.m4: New file.
43019         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43021         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43022         * modules/cosf: New file.
43023         * tests/test-math-c++.cc: Check the declaration of cosf.
43024         * doc/posix-functions/cosf.texi: Mention the new module.
43026         cos: Use a .m4 file.
43027         * m4/cos.m4: New file.
43028         * modules/cos (Files): Add it.
43029         (configure.ac): Just invoke gl_FUNC_COS.
43031 2011-10-08  Bruno Haible  <bruno@clisp.org>
43033         Tests for module 'sinf'.
43034         * modules/sinf-tests: New file.
43035         * tests/test-sinf.c: New file.
43037         New module 'sinf'.
43038         * lib/math.in.h (sinf): New declaration.
43039         * lib/sinf.c: New file.
43040         * m4/sinf.m4: New file.
43041         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43043         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43044         * modules/sinf: New file.
43045         * tests/test-math-c++.cc: Check the declaration of sinf.
43046         * doc/posix-functions/sinf.texi: Mention the new module.
43048         sin: Use a .m4 file.
43049         * m4/sin.m4: New file.
43050         * modules/sin (Files): Add it.
43051         (configure.ac): Just invoke gl_FUNC_SIN.
43053 2011-10-08  Bruno Haible  <bruno@clisp.org>
43055         Tests for module 'powf'.
43056         * modules/powf-tests: New file.
43057         * tests/test-powf.c: New file.
43059         New module 'powf'.
43060         * lib/math.in.h (powf): New declaration.
43061         * lib/powf.c: New file.
43062         * m4/powf.m4: New file.
43063         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43065         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43066         * modules/powf: New file.
43067         * tests/test-math-c++.cc: Check the declaration of powf.
43068         * doc/posix-functions/powf.texi: Mention the new module.
43070         pow: Use a .m4 file.
43071         * m4/pow.m4: New file.
43072         * modules/pow (Files): Add it.
43073         (configure.ac): Just invoke gl_FUNC_POW.
43075 2011-10-08  Bruno Haible  <bruno@clisp.org>
43077         Tests for module 'log10f'.
43078         * modules/log10f-tests: New file.
43079         * tests/test-log10f.c: New file.
43081         New module 'log10f'.
43082         * lib/math.in.h (log10f): New declaration.
43083         * lib/log10f.c: New file.
43084         * m4/log10f.m4: New file.
43085         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
43086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
43087         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
43088         * modules/log10f: New file.
43089         * tests/test-math-c++.cc: Check the declaration of log10f.
43090         * doc/posix-functions/log10f.texi: Mention the new module.
43092         log10: Use a .m4 file.
43093         * m4/log10.m4: New file.
43094         * modules/log10 (Files): Add it.
43095         (configure.ac): Just invoke gl_FUNC_LOG10.
43097 2011-10-08  Bruno Haible  <bruno@clisp.org>
43099         Tests for module 'logf'.
43100         * modules/logf-tests: New file.
43101         * tests/test-logf.c: New file.
43103         New module 'logf'.
43104         * lib/math.in.h (logf): New declaration.
43105         * lib/logf.c: New file.
43106         * m4/logf.m4: New file.
43107         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
43108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43109         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43110         * modules/logf: New file.
43111         * tests/test-math-c++.cc: Check the declaration of logf.
43112         * doc/posix-functions/logf.texi: Mention the new module.
43114         log: Use a .m4 file.
43115         * m4/log.m4: New file.
43116         * modules/log (Files): Add it.
43117         (configure.ac): Just invoke gl_FUNC_LOG.
43119 2011-10-08  Bruno Haible  <bruno@clisp.org>
43121         Tests for module 'expf'.
43122         * modules/expf-tests: New file.
43123         * tests/test-expf.c: New file.
43125         New module 'expf'.
43126         * lib/math.in.h (expf): New declaration.
43127         * lib/expf.c: New file.
43128         * m4/expf.m4: New file.
43129         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43131         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43132         * modules/expf: New file.
43133         * tests/test-math-c++.cc: Check the declaration of expf.
43134         * doc/posix-functions/expf.texi: Mention the new module.
43136         exp: Use a .m4 file.
43137         * m4/exp.m4: New file.
43138         * modules/exp (Files): Add it.
43139         (configure.ac): Just invoke gl_FUNC_EXP.
43141 2011-10-08  Bruno Haible  <bruno@clisp.org>
43143         Tests for module 'sqrtf'.
43144         * modules/sqrtf-tests: New file.
43145         * tests/test-sqrtf.c: New file.
43147         New module 'sqrtf'.
43148         * lib/math.in.h (sqrtf): New declaration.
43149         * lib/sqrtf.c: New file.
43150         * m4/sqrtf.m4: New file.
43151         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43153         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43154         * modules/sqrtf: New file.
43155         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43156         * doc/posix-functions/sqrtf.texi: Mention the new module.
43158 2011-10-08  Bruno Haible  <bruno@clisp.org>
43160         Tests: Avoid link failures w.r.t. libintl.
43161         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43162         $(LIBINTL).
43163         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43164         $(LIBINTL).
43165         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43166         against $(LIBINTL).
43167         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43168         $(LIBINTL).
43169         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43170         $(LIBINTL).
43171         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43173 2011-10-08  Bruno Haible  <bruno@clisp.org>
43175         pow tests: Defeat compiler optimizations.
43176         * tests/test-pow.c (main): Assign arguments to x and y before use.
43178 2011-10-08  Bruno Haible  <bruno@clisp.org>
43180         gnulib-tool: Improve last commit.
43181         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43182         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43183         ignore dependencies that are not among the modules list.
43185 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43187         gnulib-tool: don't follow dependencies to avoided modules
43188         This fixes a bug that is related to the previous one.
43189         * gnulib-tool (func_modules_transitive_closure)
43190         (func_emit_autoconf_snippets):
43191         Check whether a dependency is acceptable before using it.
43192         (--extract-dependencies): Report an error if --avoid is also used,
43193         since this combination of options is not yet supported.
43195         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43196         Problem reported by Peter Dyballa in
43197         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43198         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43199         when echoing "$condition".
43201 2011-10-07  Bruno Haible  <bruno@clisp.org>
43203         Fix documentation about math functions on MacOS X.
43204         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43205         MacOS X 10.5.
43206         * doc/posix-functions/fdim.texi: Likewise.
43207         * doc/posix-functions/feclearexcept.texi: Likewise.
43208         * doc/posix-functions/fegetenv.texi: Likewise.
43209         * doc/posix-functions/fegetround.texi: Likewise.
43210         * doc/posix-functions/feholdexcept.texi: Likewise.
43211         * doc/posix-functions/feraiseexcept.texi: Likewise.
43212         * doc/posix-functions/fesetenv.texi: Likewise.
43213         * doc/posix-functions/fesetround.texi: Likewise.
43214         * doc/posix-functions/fetestexcept.texi: Likewise.
43215         * doc/posix-functions/feupdateenv.texi: Likewise.
43216         * doc/posix-functions/fmax.texi: Likewise.
43217         * doc/posix-functions/fmin.texi: Likewise.
43218         * doc/posix-functions/log2.texi: Likewise.
43219         * doc/posix-functions/modff.texi: Likewise.
43220         * doc/posix-functions/nan.texi: Likewise.
43221         * doc/posix-functions/nanf.texi: Likewise.
43222         * doc/posix-functions/nextafterf.texi: Likewise.
43223         * doc/posix-functions/remquo.texi: Likewise.
43225 2011-10-07  Bruno Haible  <bruno@clisp.org>
43227         modff: Drop assumption about library that defines modff.
43228         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43229         AC_CHECK_FUNCS.
43230         * modules/modff (Files): Add m4/mathfunc.m4.
43232 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43234         raise tests: Avoid a GCC warning.
43235         * tests/test-raise.c (handler): Use _Noreturn.
43237 2011-10-07  Bruno Haible  <bruno@clisp.org>
43239         Tests for module 'ldexpf'.
43240         * modules/ldexpf-tests: New file.
43241         * tests/test-ldexpf.c: New file.
43243         New module 'ldexpf'.
43244         * lib/math.in.h (ldexpf): New declaration.
43245         * lib/ldexpf.c: New file.
43246         * m4/ldexpf.m4: New file.
43247         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43249         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43250         * modules/ldexpf: New file.
43251         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43252         * doc/posix-functions/ldexpf.texi: Mention the new module.
43254 2011-10-06  Bruno Haible  <bruno@clisp.org>
43256         frexpf: Work around problems on IRIX and mingw.
43257         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43259         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43260         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43261         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43262         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43263         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43265 2011-10-06  Bruno Haible  <bruno@clisp.org>
43267         fabsf: Drop assumption about library that defines fabsf.
43268         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43269         AC_CHECK_FUNCS.
43270         * modules/fabsf (Files): Add m4/mathfunc.m4.
43272 2011-10-06  Bruno Haible  <bruno@clisp.org>
43274         frexpf: Drop assumption about library that defines frexpf.
43275         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43276         'int *', 'float *', 'long double *', 'float', 'long double'.
43277         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43278         AC_CHECK_FUNCS.
43279         * modules/frexpf (Files): Add m4/mathfunc.m4.
43281         Tests for module 'frexpf'.
43282         * modules/frexpf-tests: New file.
43283         * tests/test-frexpf.c: New file.
43285         New module 'frexpf'.
43286         * lib/math.in.h (frexpf): New declaration.
43287         * lib/frexpf.c: New file.
43288         * m4/frexpf.m4: New file.
43289         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43291         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43292         * modules/frexpf: New file.
43293         * tests/test-math-c++.cc: Check the declaration of frexpf.
43294         * doc/posix-functions/frexpf.texi: Mention the new module.
43296 2011-10-06  Bruno Haible  <bruno@clisp.org>
43298         math: Sort function declarations of math.in.h.
43299         * lib/math.in.h (frexp, logb): Move declarations.
43301 2011-10-05  Bruno Haible  <bruno@clisp.org>
43303         Tests for module 'modff'.
43304         * modules/modff-tests: New file.
43305         * tests/test-modff.c: New file.
43307         New module 'modff'.
43308         * lib/math.in.h (modff): New declaration.
43309         * lib/modff.c: New file.
43310         * m4/modff.m4: New file.
43311         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43313         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43314         * modules/modff: New file.
43315         * tests/test-math-c++.cc: Check the declaration of modff.
43316         * doc/posix-functions/modff.texi: Mention the new module.
43318         modf tests: Make test sharper.
43319         * tests/test-modf.c (main): Strengthen upper bound.
43321         modf: Use a .m4 file.
43322         * m4/modf.m4: New file.
43323         * modules/modf (Files): Add it.
43324         (configure.ac): Just invoke gl_FUNC_MODF.
43326 2011-10-05  Bruno Haible  <bruno@clisp.org>
43328         Tests for module 'fmodf'.
43329         * modules/fmodf-tests: New file.
43330         * tests/test-fmodf.c: New file.
43332         New module 'fmodf'.
43333         * lib/math.in.h (fmodf): New declaration.
43334         * lib/fmodf.c: New file.
43335         * m4/fmodf.m4: New file.
43336         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43338         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43339         * modules/fmodf: New file.
43340         * tests/test-math-c++.cc: Check the declaration of fmodf.
43341         * doc/posix-functions/fmodf.texi: Mention the new module.
43343         fmod: Use a .m4 file.
43344         * m4/fmod.m4: New file.
43345         * modules/fmod (Files): Add it.
43346         (configure.ac): Just invoke gl_FUNC_FMOD.
43348 2011-10-05  Bruno Haible  <bruno@clisp.org>
43350         Tests for module 'fabsf'.
43351         * modules/fabsf-tests: New file.
43352         * tests/test-fabsf.c: New file.
43354         New module 'fabsf'.
43355         * lib/math.in.h (fabsf): New declaration.
43356         * lib/fabsf.c: New file.
43357         * m4/fabsf.m4: New file.
43358         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43360         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43361         * modules/fabsf: New file.
43362         * tests/test-math-c++.cc: Check the declaration of fabsf.
43363         * doc/posix-functions/fabsf.texi: Mention the new module.
43365         fabs: Use a .m4 file.
43366         * m4/fabs.m4: New file.
43367         * modules/fabs (Files): Add it.
43368         (configure.ac): Just invoke gl_FUNC_FABS.
43370 2011-10-05  Jim Meyering  <meyering@redhat.com>
43372         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43373         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43374         ls -lL regression introduced in coreutils-8.12, it does so at the
43375         cost of an additional stat call in the common case.  Besides, now
43376         that the kernel change that prompted commit 95f7c57f has been reverted
43377         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43378         we have no use for commit 95f7c57f, "file-has-acl: use
43379         acl_extended_file_nofollow if available".
43381 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43383         file-has-acl: revert unintended change in behavior of ls -L
43384         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43385         derived from...
43386         (file_has_acl): ...code here.  Call it.
43387         This problem was introduced with 2011-07-22 commit 95f7c57f,
43388         "file-has-acl: use acl_extended_file_nofollow if available".
43389         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43391 2011-10-03  Bruno Haible  <bruno@clisp.org>
43393         poll: Avoid link errors on MSVC.
43394         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43395         * modules/poll (Depends-on): Add sockets.
43396         (Link): New section.
43397         * NEWS: Mention the change.
43398         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43399         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43400         $(LIB_POLL) instead of $(LIBSOCKET).
43402 2011-10-03  Bruno Haible  <bruno@clisp.org>
43404         sys_select tests: Fix link error on MSVC 9.
43405         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43406         with $(LIB_SELECT) instead of $(LIBSOCKET).
43408 2011-10-03  Bruno Haible  <bruno@clisp.org>
43410         sys_select: Fix compilation error on mingw.
43411         * lib/sys_select.in.h: On native Windows, include <io.h>.
43413 2011-10-03  Bruno Haible  <bruno@clisp.org>
43415         wmemset: Support for MSVC.
43416         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43417         whether wmemset() exists.
43419 2011-10-03  Bruno Haible  <bruno@clisp.org>
43421         wmemmove: Support for MSVC.
43422         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43423         whether wmemmove() exists.
43425 2011-10-03  Bruno Haible  <bruno@clisp.org>
43427         wmemcpy: Support for MSVC.
43428         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43429         whether wmemcpy() exists.
43431 2011-10-03  Bruno Haible  <bruno@clisp.org>
43433         wmemcmp: Support for MSVC.
43434         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43435         whether wmemcmp() exists.
43437 2011-10-03  Bruno Haible  <bruno@clisp.org>
43439         wmemchr: Support for MSVC.
43440         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43441         whether wmemchr() exists.
43443 2011-10-03  Bruno Haible  <bruno@clisp.org>
43445         glthread/*, strsignal: Support for MSVC.
43446         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43447         including <winsock.h> on MSVC 9.
43448         * lib/glthread/lock.h: Likewise.
43449         * lib/glthread/thread.h: Likewise.
43450         * lib/glthread/tls.h: Likewise.
43451         * lib/glthread/yield.h: Likewise.
43452         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43453         if HAVE_UNISTD_H is false.
43454         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43456 2011-10-03  Bruno Haible  <bruno@clisp.org>
43458         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43459         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43460         Set to 100000.
43462 2011-10-03  Bruno Haible  <bruno@clisp.org>
43464         acl: Fix specification.
43465         * lib/file-has-acl.c (file_has_acl): Fix specification.
43467 2011-10-03  Bruno Haible  <bruno@clisp.org>
43469         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43470         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43471         (compute_curr_prefix, shared_library_fullname,
43472         find_shared_library_fullname, get_shared_library_fullname, relocate):
43473         Use it together with PIC && INSTALLDIR.
43474         Reported by <jojelino@gmail.com>
43475         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43477 2011-10-01  Jim Meyering  <meyering@redhat.com>
43479         maint.mk: adjust a release-related rule not to require use of gzip
43480         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43481         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43482         projects that build only .tar.xz files.  Also fix an erroneous test.
43484         test-linkat: don't leave behind a temporary file
43485         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43486         Otherwise, coreutils' "make distcheck" would fail with this:
43487           Only in /c/cu/tests/torture/coreutils/test/\
43488             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43489           make[2]: *** [my-distcheck] Error 1
43491         float, math: add omitted file
43492         * lib/itold.c: Add file, required for yesterday's float change.
43494 2011-10-01  Bruno Haible  <bruno@clisp.org>
43496         isinf: Fix for OpenBSD/x86.
43497         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43498         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43499         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43501 2011-10-01  Bruno Haible  <bruno@clisp.org>
43503         isfinite: Fix syntax error in configure test.
43504         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43506         isfinite: Fix typo.
43507         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43508         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43510 2011-10-01  Bruno Haible  <bruno@clisp.org>
43512         nonblocking tests: Fix test failure on Linux/IA-64.
43513         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43514         Set to 270000.
43516 2011-10-01  Bruno Haible  <bruno@clisp.org>
43518         mkfifoat tests: Fix a test failure on mingw.
43519         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43520         with error ENOSYS.
43522 2011-09-30  Bruno Haible  <bruno@clisp.org>
43524         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43525         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43526         'long double'. Set REPLACE_ITOLD.
43527         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43528         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43529         * lib/itold.c: New file.
43530         * modules/float (Files): Add lib/itold.c.
43531         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43532         (Makefile.am): Substitute REPLACE_ITOLD.
43533         * modules/math (Depends-on): Add float.
43534         (Makefile.am): Substitute REPLACE_ITOLD.
43535         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43536         * doc/posix-headers/math.texi: Likewise.
43537         * doc/posix-functions/logl.texi: Likewise.
43539 2011-09-30  Bruno Haible  <bruno@clisp.org>
43541         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43542         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43543         Set to 140000.
43545 2011-09-30  Bruno Haible  <bruno@clisp.org>
43547         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43548         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43549         invocation, say "right after AC_PROG_CC_STDC", not "right after
43550         AC_PROG_CC".
43551         Reported by Gary V. Vaughan <gary@gnu.org>.
43553 2011-09-30  Bruno Haible  <bruno@clisp.org>
43555         Centralize C99 requirement.
43556         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43557         * modules/stdarg (configure.ac-early): Invoke it instead of
43558         AC_PROG_CC_STDC.
43559         Reported by Gary V. Vaughan and Paul Eggert.
43561 2011-09-29  Bruno Haible  <bruno@clisp.org>
43563         float: Fix LDBL_MAX value on Linux/PowerPC.
43564         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43565         on Linux/PowerPC.
43566         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43567         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43568         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43569         platform.
43570         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43572 2011-09-29  Bruno Haible  <bruno@clisp.org>
43574         doc: Improve doc about gl_EARLY.
43575         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43576         AC_PROG_CC_STDC invocation.
43577         Reported by Gary V. Vaughan <gary@gnu.org>.
43579 2011-09-28  Bruno Haible  <bruno@clisp.org>
43581         fgetc, fputc, fread, fwrite tests: Fix link error.
43582         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43583         on non-MSVC platforms.
43584         * tests/test-fputc.c (main): Likewise.
43585         * tests/test-fread.c (main): Likewise.
43586         * tests/test-fwrite.c (main): Likewise.
43587         Reported by Jim Meyering.
43589 2011-09-27  Bruno Haible  <bruno@clisp.org>
43591         fputc, fwrite tests: Avoid test failure on MSVC.
43592         * tests/test-fgetc.c: Include msvc-inval.h.
43593         (main): Invoke gl_msvc_inval_ensure_handler.
43594         * tests/test-fputc.c: Include msvc-inval.h.
43595         (main): Invoke gl_msvc_inval_ensure_handler.
43596         * tests/test-fread.c: Include msvc-inval.h.
43597         (main): Invoke gl_msvc_inval_ensure_handler.
43598         * tests/test-fwrite.c: Include msvc-inval.h.
43599         (main): Invoke gl_msvc_inval_ensure_handler.
43600         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43601         * modules/fputc-tests (Depends-on): Likewise.
43602         * modules/fread-tests (Depends-on): Likewise.
43603         * modules/fwrite-tests (Depends-on): Likewise.
43605 2011-09-27  Bruno Haible  <bruno@clisp.org>
43607         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43608         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43609         (raise): Remove older, duplicated declaration.
43610         (_gl_raise_SIGPIPE): New declaration.
43611         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43612         (rpl_raise): Remove function.
43613         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43614         a gnulib-defined SIGPIPE here.
43615         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43616         'sigprocmask' has detected missing signal-blocking and the module
43617         'sigpipe' is enabled.
43618         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43620 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43622         base64-tests: avoid memory leak
43623         * tests/test-base64.c (main): Plug memory leak.
43625         base32: new module
43626         * modules/base32: New module.
43627         * lib/base32.c: New file.
43628         * lib/base32.h: Likewise.
43629         * m4/base32.m4: Likewise.
43630         * modules/base32-tests: New test.
43631         * tests/test-base32.c: Likewise.
43632         * MODULES.html.sh (Misc): Mention it.
43634 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43636         gnulib: use more-standard license notice wording
43637         * gnulib-tool (func_emit_copyright_notice): When emitting a
43638         license notice into a file, use the standard wording as suggested
43639         by the current information for GNU maintainers, except say "file"
43640         rather than "program".  The new wording gives a license version
43641         number, which addresses an issue raised by Glenn Morris in
43642         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43643         * m4/onceonly.m4: Use that same wording here, too.
43645         dup2: minor simplification
43646         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43647         as lib/dup2.c no longer uses 'inline'.
43649 2011-09-25  Bruno Haible  <bruno@clisp.org>
43651         strings: Fix compilation error on MSVC.
43652         * lib/strings.in.h: Include <stddef.h> for size_t.
43654 2011-09-25  Bruno Haible  <bruno@clisp.org>
43656         fflush et al.: Document limitation on MSVC.
43657         * doc/posix-functions/fflush.texi: Document possible crash in handling
43658         mode other than DEFAULT_HANDLING.
43659         * doc/posix-functions/fgetc.texi: Likewise.
43660         * doc/posix-functions/fputc.texi: Likewise.
43661         * doc/posix-functions/fread.texi: Likewise.
43662         * doc/posix-functions/fwrite.texi: Likewise.
43664 2011-09-25  Bruno Haible  <bruno@clisp.org>
43666         msvc-inval: Allow three invalid parameter handling modes.
43667         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43668         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43669         macros.
43670         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43671         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43672         SANE_LIBRARY_HANDLING as a no-op.
43673         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43674         <stdlib.h>.
43675         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43677 2011-09-25  Bruno Haible  <bruno@clisp.org>
43679         msvc-inval: Make handler multithread-safe.
43680         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43681         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43682         declarations.
43683         (gl_msvc_inval_current): New declaration.
43684         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43685         Operate on the structure returned by gl_msvc_inval_current().
43686         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43687         Remove varaiables.
43688         (tls_index, tls_initialized): New variables.
43689         (not_per_thread): New variable.
43690         (gl_msvc_inval_current): New function.
43691         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43692         returned by gl_msvc_inval_current().
43694 2011-09-25  Bruno Haible  <bruno@clisp.org>
43696         msvc-inval: Install handler globally.
43697         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43698         !_MSC_VER.
43699         (gl_msvc_invalid_parameter_handler): Remove declaration.
43700         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43701         declarations.
43702         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43703         Install the handler globally, don't uninstall it.
43704         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43705         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43706         currently valid, call RaiseException instead.
43707         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43708         for !_MSC_VER.
43710 2011-09-25  Bruno Haible  <bruno@clisp.org>
43712         strerror_r-posix: Fix for MSVC 9.
43713         * lib/strerror_r.c (local_snprintf): New function.
43714         (snprintf): Define to local_snprintf, not to _snprintf.
43716 2011-09-25  Bruno Haible  <bruno@clisp.org>
43718         ftruncate: Support for MSVC 9.
43719         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43720         (chsize_nothrow): New function.
43721         (chsize): Redefine as a macro.
43722         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43723         * modules/ftruncate (Depends-on): Add msvc-inval.
43725 2011-09-25  Bruno Haible  <bruno@clisp.org>
43727         New module 'fstat'.
43728         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43729         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43730         * lib/fchdir.c (rpl_fstat): Remove function.
43731         * m4/fstat.m4: New file.
43732         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43734         declared.
43735         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43736         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43737         * modules/fstat: New file.
43738         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43739         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43740         is set.
43741         * doc/posix-functions/fstat.texi: Mention the new module and the
43742         problem on MSVC.
43743         * NEWS: Mention the change.
43744         * modules/acl (Depends-on): Add fstat.
43745         * modules/chdir-safer (Depends-on): Likewise.
43746         * modules/chown (Depends-on): Likewise.
43747         * modules/copy-file (Depends-on): Likewise.
43748         * modules/fchdir (Depends-on): Likewise.
43749         * modules/fdopendir (Depends-on): Likewise.
43750         * modules/fopen (Depends-on): Likewise.
43751         * modules/fts (Depends-on): Likewise.
43752         * modules/getcwd (Depends-on): Likewise.
43753         * modules/isapipe (Depends-on): Likewise.
43754         * modules/linkat (Depends-on): Likewise.
43755         * modules/lseek (Depends-on): Likewise.
43756         * modules/mkdir-p (Depends-on): Likewise.
43757         * modules/open (Depends-on): Likewise.
43758         * modules/openat (Depends-on): Likewise.
43759         * modules/read-file (Depends-on): Likewise.
43760         * modules/renameat (Depends-on): Likewise.
43761         * modules/utimens (Depends-on): Likewise.
43763 2011-09-25  Bruno Haible  <bruno@clisp.org>
43765         linkat: Fix compilation on MSVC 9.
43766         * lib/linkat.c: Don't include <stdint.h>.
43768 2011-09-25  Bruno Haible  <bruno@clisp.org>
43770         fclose: Support for MSVC 9.
43771         * lib/fclose.c: Include msvc-inval.h.
43772         (fclose_nothrow): New function.
43773         (rpl_fclose): Use it.
43774         * modules/fclose (Depends-on): Add msvc-inval.
43775         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43777 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43779         dup2: minor simplifications
43780         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43781         that it's a performance win.
43782         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43783         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43785 2011-09-24  Jim Meyering  <meyering@redhat.com>
43787         test-futimens: avoid a warning from gcc -Wshadow
43788         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43789         to avoid a shadowing warning.
43791 2011-09-24  Bruno Haible  <bruno@clisp.org>
43793         fdopen: Support for MSVC 9.
43794         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43795         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43796         * lib/fdopen.c: Include msvc-inval.h.
43797         (fdopen_nothrow): New function.
43798         (rpl_fdopen): Use it.
43799         * modules/fdopen (Depends-on): Add msvc-inval.
43800         * modules/fclose-tests (Depends-on): Add fdopen.
43801         * modules/fflush-tests (Depends-on): Likewise.
43802         * modules/fgetc-tests (Depends-on): Likewise.
43803         * modules/fputc-tests (Depends-on): Likewise.
43804         * modules/fread-tests (Depends-on): Likewise.
43805         * modules/freopen-tests (Depends-on): Likewise.
43806         * modules/fseeko-tests (Depends-on): Likewise.
43807         * modules/ftello-tests (Depends-on): Likewise.
43808         * modules/fwrite-tests  (Depends-on): Likewise.
43809         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43811 2011-09-24  Bruno Haible  <bruno@clisp.org>
43813         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43814         * modules/fgetc-tests (Depends-on): Add unistd.
43815         * modules/fputc-tests (Depends-on): Likewise.
43816         * modules/fread-tests (Depends-on): Likewise.
43817         * modules/fwrite-tests (Depends-on): Likewise.
43819 2011-09-24  Bruno Haible  <bruno@clisp.org>
43821         dup: Simplify autoconf test.
43822         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43823         on gl_MSVC_INVAL's result.
43825 2011-09-24  Bruno Haible  <bruno@clisp.org>
43827         Tests for function fwrite().
43828         * modules/fwrite-tests: New file.
43829         * tests/test-fwrite.c: New file.
43830         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43832         Tests for function fread().
43833         * modules/fread-tests: New file.
43834         * tests/test-fread.c: New file.
43835         * modules/stdio-tests (Depends-on): Add fread-tests.
43837         Activate fputc tests.
43838         * modules/stdio-tests (Depends-on): Add fputc-tests.
43840         Enhance fgetc, fputc tests.
43841         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43842         * tests/test-fputc.c (main): Likewise.
43844 2011-09-24  Bruno Haible  <bruno@clisp.org>
43846         write: Support for MSVC 9.
43847         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43848         is not 1.
43849         * lib/write.c (write_nothrow): New function.
43850         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43851         not 1. Use write_nothrow.
43852         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43853         invalid parameter handler.
43854         (gl_PREREQ_WRITE): New macro.
43855         * modules/write (Depends-on): Add msvc-inval.
43856         (configure.ac): Invoke gl_PREREQ_WRITE.
43857         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43859 2011-09-24  Bruno Haible  <bruno@clisp.org>
43861         read: Fix last commit.
43862         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43864 2011-09-24  Bruno Haible  <bruno@clisp.org>
43866         dup2: Fix last commit.
43867         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43868         (rpl_dup2): Disable fcntl workaround on native Windows.
43870         sigprocmask: Make code safer.
43871         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43872         section that changes macro definitions for this compilation unit.
43874 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43876         dup2: clarify by coalescing Windows-specific material
43877         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43878         "msvc-nothrow.h"' to the Windows-specific section, so that the
43879         Emacs source need not contain these include files.
43880         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43881         Windows-specific fixes into this function rather than just the
43882         nothrow fix, as this shortens and clarifies the code.  Always
43883         define as a function, as that's a bit cleaner than having it be
43884         sometimes a function and sometimes a macro.
43885         (rpl_dup2): Move the Windows-specific stuff out of here and into
43886         ms_windows_dup2.  Don't protect the Haiku-related fix with
43887         "#if !defined __linux__", as the same code also works around
43888         a Linux kernel bug, and it doesn't add any system calls on any
43889         platform.  Add comment about FreeBSD 6.1.
43891         sigprocmask: move #include directive
43892         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43893         Windows-specific section, so that the Emacs source need not
43894         contain msvc-inval.h.
43896 2011-09-23  Bruno Haible  <bruno@clisp.org>
43898         read: Support for MSVC 9.
43899         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43900         is not 1.
43901         * lib/read.c (read_nothrow): New function.
43902         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43903         read_nothrow.
43904         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43905         invalid parameter handler.
43906         (gl_PREREQ_READ): New macro.
43907         * modules/read (Depends-on): Add msvc-inval.
43908         (configure.ac): Invoke gl_PREREQ_READ.
43909         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43911 2011-09-23  Bruno Haible  <bruno@clisp.org>
43913         close: Support for MSVC 9.
43914         * lib/close.c: Include <errno.h>, msvc-inval.h.
43915         (close_nothrow): New function.
43916         (rpl_close): Use it.
43917         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43918         invalid parameter handler.
43919         * modules/close (Depends-on): Add msvc-inval.
43920         * modules/dup2-tests (Depends-on): Add close.
43921         * modules/dup3-tests (Depends-on): Likewise.
43922         * modules/fcntl-tests (Depends-on): Likewise.
43923         * modules/spawn-pipe-tests (Depends-on): Likewise.
43924         * modules/unistd-safer-tests (Depends-on): Likewise.
43925         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43927 2011-09-23  Bruno Haible  <bruno@clisp.org>
43929         New module 'dup'.
43930         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43931         Allow replacement.
43932         * lib/dup.c: New file.
43933         * lib/fchdir.c (rpl_dup): Remove function.
43934         * m4/dup.m4: New file.
43935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43936         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43937         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43938         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43939         * modules/dup: New file.
43940         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43941         'dup' module is in use.
43942         * modules/fdopendir (Depends-on): Add dup.
43943         * modules/fdutimensat-tests (Depends-on): Likewise.
43944         * modules/fts (Depends-on): Likewise.
43945         * modules/futimens-tests (Depends-on): Likewise.
43946         * modules/posix_spawnp-tests (Depends-on): Likewise.
43947         * modules/unistd-safer-tests (Depends-on): Likewise.
43948         * modules/utimens-tests (Depends-on): Likewise.
43949         * doc/posix-functions/dup.texi: Mention the new module and the problem
43950         on MSVC.
43952 2011-09-23  Bruno Haible  <bruno@clisp.org>
43954         getdtablesize: Support for MSVC 9.
43955         * lib/getdtablesize.c: Include msvc-inval.h.
43956         (_setmaxstdio_nothrow): New function.
43957         (_setmaxstdio): Redefine it.
43958         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43959         * modules/getdtablesize (Depends-on): Add msvc-inval.
43960         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43962 2011-09-23  Bruno Haible  <bruno@clisp.org>
43964         signal-h: Rename from signal.
43965         * modules/signal-h: Renamed from modules/signal.
43966         * modules/pthread_sigmask (Depends-on): Update.
43967         * modules/raise (Depends-on): Likewise.
43968         * modules/sigaction (Depends-on): Likewise.
43969         * modules/sigpipe (Depends-on): Likewise.
43970         * modules/sigprocmask (Depends-on): Likewise.
43971         * modules/sys_select (Depends-on): Likewise.
43972         * modules/signal-h-tests: Renamed from modules/signal-tests.
43973         (Files, Depends-on, Makefile.am): Update.
43974         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
43975         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
43976         (Files, Makefile.am): Update.
43977         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
43978         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
43979         * modules/signal: New placeholder file.
43980         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
43981         * doc/posix-headers/signal.texi: Update.
43982         * NEWS: Mention the change.
43984 2011-09-23  Bruno Haible  <bruno@clisp.org>
43986         sigprocmask: Avoid crashes through signal() on MSVC 9.
43987         * lib/sigprocmask.c: Include msvc-inval.h.
43988         (signal_nothrow): New function.
43989         (signal): Redefine it.
43990         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
43991         * modules/sigprocmask (Depends-on): Add msvc-inval.
43992         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
43994 2011-09-23  Bruno Haible  <bruno@clisp.org>
43996         Tests for module 'raise'.
43997         * modules/raise-tests: New file.
43998         * tests/test-raise.c: New file.
44000         raise: Support for MSVC.
44001         * lib/signal.in.h (raise): New declaration.
44002         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44003         for native Windows platforms.
44004         * m4/raise.m4: New file.
44005         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44006         HAVE_RAISE, REPLACE_RAISE.
44007         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44008         REPLACE_RAISE.
44009         * modules/raise (Status, Notice): Remove fields.
44010         (Files): Add m4/raise.m4.
44011         (Depends-on): Add signal, msvc-inval.
44012         (configure.ac): Use the common idioms.
44013         (Maintainer): Add me.
44014         * tests/test-signal-c++.cc: Check the signature of raise.
44015         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44017 2011-09-23  Bruno Haible  <bruno@clisp.org>
44019         pipe2: Fix compilation on pre-C99 compilers.
44020         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44022 2011-09-23  Bruno Haible  <bruno@clisp.org>
44024         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44025         * lib/msvc-nothrow.h: New file.
44026         * lib/msvc-nothrow.c: New file.
44027         * m4/msvc-nothrow.m4: New file.
44028         * modules/msvc-nothrow: New file.
44029         * lib/dup2.c: Include msvc-nothrow.h.
44030         (rpl_dup2): No need to protect _get_osfhandle call here.
44031         * lib/accept4.c: Include msvc-nothrow.h.
44032         * lib/error.c: Likewise.
44033         * lib/fcntl.c: Likewise.
44034         * lib/lseek.c: Likewise.
44035         * lib/nonblocking.c: Likewise.
44036         * lib/poll.c: Likewise.
44037         * lib/read.c: Likewise.
44038         * lib/select.c: Likewise.
44039         * lib/sockets.h: Likewise.
44040         * lib/sockets.c: Likewise.
44041         * lib/stdio-read.c: Likewise.
44042         * lib/stdio-write.c: Likewise.
44043         * lib/write.c: Likewise.
44044         * lib/w32sock.h: Likewise.
44045         * lib/w32spawn.h: Likewise.
44046         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44047         * lib/fsync.c: Likewise.
44048         * lib/isapipe.c: Likewise.
44049         * modules/dup2 (Depends-on): Add msvc-nothrow.
44050         * modules/accept4 (Depends-on): Likewise.
44051         * modules/error (Depends-on): Likewise.
44052         * modules/fcntl (Depends-on): Likewise.
44053         * modules/lseek (Depends-on): Likewise.
44054         * modules/nonblocking (Depends-on): Likewise.
44055         * modules/poll (Depends-on): Likewise.
44056         * modules/read (Depends-on): Likewise.
44057         * modules/select (Depends-on): Likewise.
44058         * modules/sockets (Depends-on): Likewise.
44059         * modules/sigpipe (Depends-on): Likewise.
44060         * modules/write (Depends-on): Likewise.
44061         * modules/accept (Depends-on): Likewise.
44062         * modules/bind (Depends-on): Likewise.
44063         * modules/connect (Depends-on): Likewise.
44064         * modules/gethostname (Depends-on): Likewise.
44065         * modules/getpeername (Depends-on): Likewise.
44066         * modules/getsockname (Depends-on): Likewise.
44067         * modules/getsockopt (Depends-on): Likewise.
44068         * modules/ioctl (Depends-on): Likewise.
44069         * modules/listen (Depends-on): Likewise.
44070         * modules/recv (Depends-on): Likewise.
44071         * modules/recvfrom (Depends-on): Likewise.
44072         * modules/send (Depends-on): Likewise.
44073         * modules/sendto (Depends-on): Likewise.
44074         * modules/setsockopt (Depends-on): Likewise.
44075         * modules/shutdown (Depends-on): Likewise.
44076         * modules/socket (Depends-on): Likewise.
44077         * modules/execute (Depends-on): Likewise.
44078         * modules/spawn-pipe (Depends-on): Likewise.
44079         * modules/flock (Depends-on): Likewise.
44080         * modules/fsync (Depends-on): Likewise.
44081         * modules/isapipe (Depends-on): Likewise.
44082         * tests/test-cloexec.c: Include msvc-nothrow.h.
44083         * tests/test-dup-safer.c: Likewise.
44084         * tests/test-dup2.c: Likewise.
44085         * tests/test-dup3.c: Likewise.
44086         * tests/test-fcntl.c: Likewise.
44087         * tests/test-pipe.c: Likewise.
44088         * tests/test-pipe2.c: Likewise.
44089         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
44090         * modules/unistd-safer-tests (Depends-on): Likewise.
44091         * modules/dup2-tests (Depends-on): Likewise.
44092         * modules/dup3-tests (Depends-on): Likewise.
44093         * modules/fcntl-tests (Depends-on): Likewise.
44094         * modules/pipe-posix-tests (Depends-on): Likewise.
44095         * modules/pipe2-tests (Depends-on): Likewise.
44097 2011-09-23  Bruno Haible  <bruno@clisp.org>
44099         dup2: Make code more maintainable.
44100         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
44101         (rpl_dup2): Use it.
44102         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
44103         * modules/dup2 (configure.ac): Invoke it.
44104         Reported by Paul Eggert.
44106 2011-09-23  Bruno Haible  <bruno@clisp.org>
44108         msvc-inval: Fix compilation error.
44109         * lib/msvc-inval.h: Include <excpt.h>.
44111 2011-09-23  Bruno Haible  <bruno@clisp.org>
44113         mkdir: Tweak for MSVC 9.
44114         * lib/sys_stat.in.h: Update comments.
44115         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44117         Tests for module 'chdir'.
44118         * modules/chdir-tests: New file.
44119         * tests/test-chdir.c: New file.
44121         New module 'chdir'.
44122         * modules/chdir: New file.
44123         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44124         (chdir): New declaration.
44125         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44126         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44127         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44128         * tests/test-unistd-c++.cc: Check signature of chdir.
44129         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44130         * modules/chdir-long (Depends-on): Add chdir.
44131         * modules/fchdir (Depends-on): Likewise.
44132         * modules/rename (Depends-on): Likewise.
44133         * modules/savewd (Depends-on): Likewise.
44135         rmdir: Support for mingw, MSVC 9.
44136         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44137         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44139         getcwd: Tweak for MSVC 9.
44140         * lib/unistd.in.h: Update comments.
44141         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44143 2011-09-22  Bruno Haible  <bruno@clisp.org>
44145         strerror_r-posix: Avoid a link error on MSVC.
44146         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44147         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44149 2011-09-22  Bruno Haible  <bruno@clisp.org>
44151         select: Avoid link errors on MSVC.
44152         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44153         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44154         * modules/pselect (Link): Likewise.
44155         * NEWS: Mention the change.
44156         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44157         test-select-stdin against $(LIB_SELECT).
44158         * modules/pselect-tests (Makefile.am): Link test-pselect against
44159         $(LIB_SELECT).
44161 2011-09-22  Bruno Haible  <bruno@clisp.org>
44163         select: Avoid compilation error on MSVC.
44164         * lib/select.c: Don't include <stdbool.h>.
44166 2011-09-21  Bruno Haible  <bruno@clisp.org>
44168         Consolidate all uses of PATH_MAX in *.m4 files.
44169         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44170         macros.
44171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44172         and gl_PATHMAX_SNIPPET.
44173         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44175         * modules/chdir-long (Files): Add m4/pathmax.m4.
44176         * modules/getcwd (Files): Likewise.
44178 2011-09-21  Bruno Haible  <bruno@clisp.org>
44180         ftruncate: Un-deprecate, concentrate on Win32 support.
44181         * modules/ftruncate (Status, Notice): Remove sections.
44182         (Depends-on): Add largefile.
44183         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44184         non-mingw platforms.
44185         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44186         include <io.h>.
44187         * modules/perror-tests (Depends-on): Add ftruncate.
44188         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44189         'ftruncate' module.
44191 2011-09-21  Bruno Haible  <bruno@clisp.org>
44193         Add dependencies to new dirent related modules.
44194         * modules/opendir (Depends-on): Add closedir.
44195         * modules/getcwd (Depends-on): Add opendir, closedir.
44196         * modules/dirent-safer-tests (Depends-on): Likewise.
44197         * modules/fdopendir-tests (Depends-on): Likewise.
44198         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44199         * modules/renameat-tests (Depends-on): Likewise.
44201 2011-09-21  Bruno Haible  <bruno@clisp.org>
44203         opendir: Avoid compilation error on mingw.
44204         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44205         * modules/opendir (Depends-on): Add unistd.
44207 2011-09-21  Bruno Haible  <bruno@clisp.org>
44209         ftruncate tests: Avoid a test failure on mingw.
44210         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44212 2011-09-21  Bruno Haible  <bruno@clisp.org>
44214         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44215         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44216         native Windows.
44218 2011-09-21  Bruno Haible  <bruno@clisp.org>
44220         New module 'fdopen'.
44221         * lib/stdio.in.h (fdopen): New declaration.
44222         * lib/fdopen.c: New file.
44223         * m4/fdopen.m4: New file.
44224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44225         REPLACE_FDOPEN.
44226         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44227         REPLACE_FDOPEN.
44228         * modules/fdopen: New file.
44229         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44230         * tests/test-stdio-c++.cc: Check signature of fdopen.
44231         * doc/posix-functions/fdopen.texi: Mention the new module.
44233 2011-09-21  Bruno Haible  <bruno@clisp.org>
44235         unlockpt tests: Avoid test failure on NetBSD 5.1.
44236         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44237         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44239 2011-09-21  Bruno Haible  <bruno@clisp.org>
44241         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44242         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44243         * tests/test-getlogin_r.c (main): Likewise.
44245 2011-09-20  Bruno Haible  <bruno@clisp.org>
44247         time tests: Don't require pid_t.
44248         * doc/posix-headers/time.texi: Revert last change.
44249         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44250         * tests/test-time.c: Comment out the check for pid_t.
44252 2011-09-20  Bruno Haible  <bruno@clisp.org>
44254         fsync tests: Avoid a test failure on mingw.
44255         * tests/test-fsync.c (main): Allow a failure with EIO.
44257 2011-09-20  Bruno Haible  <bruno@clisp.org>
44259         euidaccess: Update comments.
44260         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44262 2011-09-20  Bruno Haible  <bruno@clisp.org>
44264         Ensure EBADF returns for socket functions on mingw.
44265         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44266         descriptor is invalid.
44267         * lib/bind.c (rpl_bind): Likewise.
44268         * lib/connect.c (rpl_connect): Likewise.
44269         * lib/getpeername.c (rpl_getpeername): Likewise.
44270         * lib/getsockname.c (rpl_getsockname): Likewise.
44271         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44272         * lib/listen.c (rpl_listen): Likewise.
44273         * lib/recv.c (rpl_recv): Likewise.
44274         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44275         * lib/send.c (rpl_send): Likewise.
44276         * lib/sendto.c (rpl_sendto): Likewise.
44277         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44278         * lib/shutdown.c (rpl_shutdown): Likewise.
44280 2011-09-20  Bruno Haible  <bruno@clisp.org>
44282         select tests: EBADF tests.
44283         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44284         test_bad_fd): New functions.
44285         (test_function): Invoke also test_bad_fd.
44287 2011-09-20  Bruno Haible  <bruno@clisp.org>
44289         Tests for module 'posix_spawn_file_actions_addopen.
44290         * modules/posix_spawn_file_actions_addopen-tests: New file.
44291         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44293         Tests for module 'posix_spawn_file_actions_adddup2'.
44294         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44295         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44297         Tests for module 'posix_spawn_file_actions_addclose'.
44298         * modules/posix_spawn_file_actions_addclose-tests: New file.
44299         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44301 2011-09-20  Bruno Haible  <bruno@clisp.org>
44303         Tests for module 'unlockpt'.
44304         * modules/unlockpt-tests: New file.
44305         * tests/test-unlockpt.c: New file.
44306         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44308         Tests for module 'grantpt'.
44309         * modules/grantpt-tests: New file.
44310         * tests/test-grantpt.c: New file.
44311         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44313 2011-09-20  Bruno Haible  <bruno@clisp.org>
44315         freopen tests: EBADF tests.
44316         * tests/test-freopen.c: Include errno.h, unistd.h.
44317         (main): Add tests for EBADF, commented out for the moment.
44319         fclose tests: EBADF tests.
44320         * tests/test-fclose.c (main): Add tests for EBADF.
44322         fflush tests: EBADF tests.
44323         * tests/test-fflush.c: Include errno.h, macros.h.
44324         (main): Add tests for EBADF.
44326         ftello tests: EBADF tests.
44327         * tests/test-ftello4.sh: New file.
44328         * tests/test-ftello4.c: New file.
44329         * modules/ftello-tests (Files): Add them.
44330         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44332         fseeko tests: EBADF tests.
44333         * tests/test-fseeko4.sh: New file.
44334         * tests/test-fseeko4.c: New file.
44335         * modules/fseeko-tests (Files): Add them.
44336         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44338         Tests for function fputc().
44339         * modules/fputc-tests: New file.
44340         * tests/test-fputc.c: New file.
44341         * modules/stdio-tests (Depends-on): Add fputc-tests.
44343         Tests for function fgetc().
44344         * modules/fgetc-tests: New file.
44345         * tests/test-fgetc.c: New file.
44346         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44348         Tests for function fdopen().
44349         * modules/fdopen-tests: New file.
44350         * tests/test-fdopen.c: New file.
44351         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44353         Tests for module 'vdprintf'.
44354         * modules/vdprintf-tests: New file.
44355         * tests/test-vdprintf.c: New file.
44357         Tests for module 'dprintf'.
44358         * modules/dprintf-tests: New file.
44359         * tests/test-dprintf.c: New file.
44361 2011-09-20  Bruno Haible  <bruno@clisp.org>
44363         Tests for module 'ioctl'.
44364         * modules/ioctl-tests: New file.
44365         * tests/test-ioctl.c: New file.
44367 2011-09-20  Bruno Haible  <bruno@clisp.org>
44369         fcntl tests: EBADF tests.
44370         * tests/test-fcntl.c (main): Add more tests for EBADF.
44372 2011-09-20  Bruno Haible  <bruno@clisp.org>
44374         utimensat tests: EBADF tests.
44375         * tests/test-utimensat.c (main): Add tests for EBADF.
44377         renameat tests: EBADF tests.
44378         * tests/test-renameat.c (main): Add tests for EBADF.
44380         mkfifoat tests: EBADF tests.
44381         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44383         readlinkat tests: EBADF tests.
44384         * tests/test-readlinkat.c (main): Add tests for EBADF.
44386         symlinkat tests: EBADF tests.
44387         * tests/test-symlinkat.c (main): Add tests for EBADF.
44389         linkat tests: EBADF tests.
44390         * tests/test-linkat.c (main): Add tests for EBADF.
44392         Tests for module 'faccessat'.
44393         * modules/faccessat-tests: New file.
44394         * tests/test-faccessat.c: New file.
44396         fdopendir tests: EBADF tests.
44397         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44399         openat tests: EBADF tests.
44400         * tests/test-fchownat.c (main): Add tests for EBADF.
44401         * tests/test-fstatat.c (main): Likewise.
44402         * tests/test-mkdirat.c (main): Likewise.
44403         * tests/test-openat.c (main): Likewise.
44404         * tests/test-unlinkat.c (main): Likewise.
44405         * tests/test-fchmodat.c: New file.
44406         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44407         (Makefile.am): Also run 'test-fchmodat'.
44409 2011-09-20  Bruno Haible  <bruno@clisp.org>
44411         utimens, futimens, fdutimensat tests: EBADF tests.
44412         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44414         Tests for function fstat().
44415         * modules/fstat-tests: New file.
44416         * tests/test-fstat.c: New file.
44417         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44419 2011-09-20  Bruno Haible  <bruno@clisp.org>
44421         test-ttyname_r tests: EBADF tests.
44422         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44424         Tests for module 'isatty'.
44425         * modules/isatty-tests: New file.
44426         * tests/test-isatty.c: New file.
44428         Tests for module 'write'.
44429         * modules/write-tests: New file.
44430         * tests/test-write.c: New file.
44432         Tests for module 'read'.
44433         * modules/read-tests: New file.
44434         * tests/test-read.c: New file.
44436         pwrite tests: EBADF tests.
44437         * tests/test-pwrite.c (main): Add tests for EBADF.
44439         pread tests: EBADF tests.
44440         * tests/test-pread.c (main): Add tests for EBADF.
44442         lseek tests: EBADF tests.
44443         * tests/test-lseek.c (main): Add more tests for EBADF.
44445         Tests for module 'ftruncate'.
44446         * modules/ftruncate-tests: New file.
44447         * tests/test-ftruncate.sh: New file.
44448         * tests/test-ftruncate.c: New file.
44450         fsync tests: EBADF tests.
44451         * tests/test-fsync.c (main): Add more tests for EBADF.
44453         fdatasync tests: EBADF tests.
44454         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44456         Tests for module 'fchown'.
44457         * modules/fchown-tests: New file.
44458         * tests/test-fchown.c: New file.
44460         Tests for module 'fchmod'.
44461         * modules/fchmod-tests: New file.
44462         * tests/test-fchmod.c: New file.
44464         fchdir tests: EBADF tests.
44465         * tests/test-fchdir.c (main): Add more tests for EBADF.
44467         dup2 tests: EBADF tests.
44468         * tests/test-dup2.c (main): Add more tests for EBADF.
44470         Tests for module 'dup'.
44471         * modules/dup-tests: New file.
44472         * tests/test-dup.c: New file.
44474         Tests for module 'close'.
44475         * modules/close-tests: New file.
44476         * tests/test-close.c: New file.
44478 2011-09-20  Bruno Haible  <bruno@clisp.org>
44480         Tests for module 'shutdown'.
44481         * modules/shutdown-tests: New file.
44482         * tests/test-shutdown.c: New file.
44484         Tests for module 'setsockopt'.
44485         * modules/setsockopt-tests: New file.
44486         * tests/test-setsockopt.c: New file.
44488         Tests for module 'sendto'.
44489         * modules/sendto-tests: New file.
44490         * tests/test-sendto.c: New file.
44492         Tests for module 'send'.
44493         * modules/send-tests: New file.
44494         * tests/test-send.c: New file.
44496         Tests for module 'recvfrom'.
44497         * modules/recvfrom-tests: New file.
44498         * tests/test-recvfrom.c: New file.
44500         Tests for module 'recv'.
44501         * modules/recv-tests: New file.
44502         * tests/test-recv.c: New file.
44504         Tests for module 'listen'.
44505         * modules/listen-tests: New file.
44506         * tests/test-listen.c: New file.
44508         Tests for module 'getsockopt'.
44509         * modules/getsockopt-tests: New file.
44510         * tests/test-getsockopt.c: New file.
44512         Tests for module 'getsockname'.
44513         * modules/getsockname-tests: New file.
44514         * tests/test-getsockname.c: New file.
44516         Tests for module 'getpeername'.
44517         * modules/getpeername-tests: New file.
44518         * tests/test-getpeername.c: New file.
44520         Tests for module 'connect'.
44521         * modules/connect-tests: New file.
44522         * tests/test-connect.c: New file.
44524         Tests for module 'bind'.
44525         * modules/bind-tests: New file.
44526         * tests/test-bind.c: New file.
44528         accept4 tests: Fix for native Windows.
44529         * tests/test-accept4.c: Include sockets.h.
44530         (main): Invoke gl_sockets_startup.
44531         * modules/accept4-tests (Depends-on): Add sockets.
44533         accept tests: Fix for native Windows.
44534         * tests/test-accept.c: Include sockets.h.
44535         (main): Invoke gl_sockets_startup.
44536         * modules/accept-tests (Depends-on): Add sockets.
44538 2011-09-19  Bruno Haible  <bruno@clisp.org>
44540         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44541         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44542         do...while(0).
44543         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44544         Suggested by Paul Eggert.
44546 2011-09-19  Bruno Haible  <bruno@clisp.org>
44548         sched: Ensure pid_t is defined.
44549         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44550         not define pid_t.
44551         * lib/sched.in.h: Include <sys/types.h>.
44552         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44555 2011-09-19  Bruno Haible  <bruno@clisp.org>
44557         msvc-inval: Ensure the entire expansion is a single statement.
44558         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44559         of braces.
44561 2011-09-19  Jim Meyering  <meyering@redhat.com>
44563         tests: use printf, not echo in init.sh's warn_ function
44564         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44565         misbehave when given strings containing a backslash or starting
44566         with e.g., -n.  James Youngman suggested setting IFS.
44568 2011-09-19  Eric Blake  <eblake@redhat.com>
44570         futimens: enhance test
44571         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44572         closed non-negative fd.
44574         date: accept 'hence' as opposite of 'ago'
44575         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44576         * tests/test-parse-datetime.c (main): Enhance test.
44577         Suggested by Jesse Wilson.
44579 2011-09-19  Jim Meyering  <meyering@redhat.com>
44581         getcwd: don't fail in a deep directory on a system without openat
44582         Before this change, getcwd would fail when called from a directory
44583         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44584         the non-openat implementation used "..", "../..", "../../..", etc.
44585         to access ancestor directories.  With too many, that string would
44586         be longer than PATH_MAX.
44587         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44588         using gnulib's openat replacement.
44589         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44590         we're using the replacement function.
44592 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44594         maint.mk: avoid warnings from perl about missing files
44595         * top/maint.mk (def_sym_regex): Ignore files listed in
44596         $(gl_other_headers_) that do not exist, say because a project
44597         does not use a corresponding module.
44599 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44601         stat: use pathmax.h only if needed
44602         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44603         This is better for Emacs, which does not have a mingw port and
44604         therefore can avoid the pathmax module.
44606         utimens: remove dependency on dup2
44607         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44608         to work around the Linux kernel bug.
44609         * modules/utimens (Depends-on): Remove dup2.
44611 2011-09-18  Bruno Haible  <bruno@clisp.org>
44613         inet_ntop, inet_pton: Look for it also in libresolv.
44614         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44615         libnsl, search for it in libresolv.
44616         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44617         Needed on Solaris 7.
44619 2011-09-18  Bruno Haible  <bruno@clisp.org>
44621         accept, accept4 tests: Avoid link error on Solaris.
44622         * modules/accept-tests (Makefile.am): Link test-accept against
44623         $(LIBSOCKET).
44624         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44625         $(LIBSOCKET).
44627         accept4: Avoid link error on Solaris.
44628         * modules/accept4 (Link): New section.
44630         socket functions: Avoid link errors on Solaris.
44631         * modules/accept (Depends-on): Add socketlib.
44632         (Link): New section.
44633         * modules/bind (Depends-on): Add socketlib.
44634         (Link): New section.
44635         * modules/connect (Depends-on): Add socketlib.
44636         (Link): New section.
44637         * modules/getpeername (Depends-on): Add socketlib.
44638         (Link): New section.
44639         * modules/getsockname (Depends-on): Add socketlib.
44640         (Link): New section.
44641         * modules/getsockopt (Depends-on): Add socketlib.
44642         (Link): New section.
44643         * modules/listen (Depends-on): Add socketlib.
44644         (Link): New section.
44645         * modules/recv (Depends-on): Add socketlib.
44646         (Link): New section.
44647         * modules/recvfrom (Depends-on): Add socketlib.
44648         (Link): New section.
44649         * modules/send (Depends-on): Add socketlib.
44650         (Link): New section.
44651         * modules/sendto (Depends-on): Add socketlib.
44652         (Link): New section.
44653         * modules/setsockopt (Depends-on): Add socketlib.
44654         (Link): New section.
44655         * modules/shutdown (Depends-on): Add socketlib.
44656         (Link): New section.
44657         * modules/socket (Depends-on): Add socketlib.
44658         (Link): New section.
44660 2011-09-18  Bruno Haible  <bruno@clisp.org>
44662         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44663         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44664         than 5 seconds.
44665         * modules/ptsname-tests (configure.ac): Test for alarm.
44667 2011-09-18  Bruno Haible  <bruno@clisp.org>
44669         posix_spawn_file_actions_add*: Fix module dependencies.
44670         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44671         posix_spawn_file_actions_init.
44672         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44673         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44675 2011-09-18  Bruno Haible  <bruno@clisp.org>
44677         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44678         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44679         * tests/test-renameat.c (main): Likewise.
44681 2011-09-18  Bruno Haible  <bruno@clisp.org>
44683         Tests for module 'accept4'.
44684         * modules/accept4-tests: New file.
44685         * tests/test-accept4.c: New file.
44687 2011-09-18  Bruno Haible  <bruno@clisp.org>
44689         Tests for module 'accept'.
44690         * modules/accept-tests: New file.
44691         * tests/test-accept.c: New file.
44693 2011-09-18  Bruno Haible  <bruno@clisp.org>
44695         dup2: Support for MSVC.
44696         * lib/dup2.c: Include msvc-inval.h.
44697         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44698         _get_osfhandle calls.
44699         * modules/dup2 (Depends-on): Add msvc-inval.
44700         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44702         New module 'msvc-inval'.
44703         * lib/msvc-inval.h: New file.
44704         * lib/msvc-inval.c: New file.
44705         * m4/msvc-inval.m4: New file.
44706         * modules/msvc-inval: New file.
44708 2011-09-17  Bruno Haible  <bruno@clisp.org>
44710         Tests for module 'pclose'.
44711         * modules/pclose-tests: New file.
44713         New module 'pclose'.
44714         * lib/stdio.in.h (pclose): New declaration.
44715         * lib/pclose.c: New file.
44716         * m4/pclose.m4: New file.
44717         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44718         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44719         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44720         * modules/pclose: New file.
44721         * modules/popen-tests (Depends-on): Add pclose.
44722         * modules/popen-safer-tests (Depends-on): Likewise.
44723         * doc/posix-functions/pclose.texi: Mention the new module.
44725 2011-09-17  Bruno Haible  <bruno@clisp.org>
44727         popen: Support for MSVC.
44728         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44729         * lib/popen.c (popen): Provide alternate definition for native Windows.
44730         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44732         * modules/popen (Depends-on, configure.ac): Update condition.
44733         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44734         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44735         fixed.
44737 2011-09-17  Bruno Haible  <bruno@clisp.org>
44739         isnanl, isnand, isnanf: Work around MSVC bug.
44740         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44742 2011-09-17  Bruno Haible  <bruno@clisp.org>
44744         sys_socket tests: Fix recent mistake.
44745         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44747 2011-09-17  Bruno Haible  <bruno@clisp.org>
44749         putenv: Support for MSVC.
44750         * modules/putenv (Depends-on): Add environ.
44751         * lib/putenv.c (environ): Disable declaration.
44752         * lib/unistd.in.h: Update comment.
44754 2011-09-17  Bruno Haible  <bruno@clisp.org>
44756         math: Avoid macro redefinition warnings on MSVC.
44757         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44758         Undefine before redefining.
44760 2011-09-17  Bruno Haible  <bruno@clisp.org>
44762         doc: Mention functions which are declared as macros.
44763         * doc/posix-functions/*[fl].texi: Mention that some functions are
44764         defined as macros with arguments only.
44766 2011-09-17  Bruno Haible  <bruno@clisp.org>
44768         Add dependencies to new dirent related modules.
44769         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44770         * modules/fts (Depends-on): Likewise.
44771         * modules/glob (Depends-on): Likewise.
44772         * modules/savedir (Depends-on): Likewise.
44773         * modules/scandir (Depends-on): Likewise.
44774         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44775         * modules/fdopendir (Depends-on): Add opendir.
44777 2011-09-17  Bruno Haible  <bruno@clisp.org>
44779         inet_pton: Support for MSVC on Windows Vista or newer.
44780         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44781         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44782         HAVE_DECL_INET_PTON is defined.
44783         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44784         On platforms with <winsock2.h>, test whether inet_pton is declared in
44785         <ws2tcpip.h>. If so, arrange to replace it.
44786         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44787         REPLACE_INET_PTON.
44788         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44789         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44790         (Depends-on, configure.ac): Update condition.
44791         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44793 2011-09-17  Bruno Haible  <bruno@clisp.org>
44795         inet_ntop: Support for MSVC on Windows Vista or newer.
44796         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44797         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44798         HAVE_DECL_INET_NTOP is defined.
44799         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44800         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44801         <ws2tcpip.h>. If so, arrange to replace it.
44802         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44803         REPLACE_INET_NTOP.
44804         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44805         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44806         (Depends-on, configure.ac): Update condition.
44807         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44809 2011-09-16  Eric Blake  <eblake@redhat.com>
44811         test-fsync: yet another enhancement
44812         * tests/test-fsync.c (main): Also test behavior on read-only text
44813         file.
44815 2011-09-16  Bruno Haible  <bruno@clisp.org>
44817         Enhance fsync, fdatasync tests.
44818         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44819         * tests/test-fdatasync.c (main): Likewise.
44821 2011-09-16  Bruno Haible  <bruno@clisp.org>
44823         Support for MSVC compiler: Ensure mode_t gets defined.
44824         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44825         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44827         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44828         * tests/test-fcntl-h.c: Check that mode_t is defined.
44829         * tests/test-sys_stat.c: Likewise.
44830         * tests/test-sys_types.c: Likewise.
44831         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44832         * doc/posix-headers/sys_stat.texi: Likewise.
44833         * doc/posix-headers/sys_types.texi: Likewise.
44835 2011-09-16  Bruno Haible  <bruno@clisp.org>
44837         sys_stat: Support for MSVC.
44838         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44839         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44840         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44841         MSVC.
44843 2011-09-16  Bruno Haible  <bruno@clisp.org>
44845         Support for MSVC compiler: Ensure off_t gets defined.
44846         * lib/unistd.in.h: Include <sys/types.h>.
44847         * tests/test-fcntl-h.c: Check that off_t is defined.
44848         * tests/test-sys_stat.c: Likewise.
44849         * tests/test-sys_types.c: Likewise.
44851 2011-09-16  Eric Blake  <eblake@redhat.com>
44853         fdatasync: port to Solaris
44854         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44855         * modules/fdatasync (Link): Document it.
44856         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44858         fdatasync: port to MacOS X 10.7
44859         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44860         declared.
44861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44862         * modules/unistd (Makefile.am): Substitute it.
44863         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44864         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44866         fdatasync: minor improvements
44867         * modules/fdatasync (Depends-on): Add condition for fsync.
44868         * lib/fdatasync.c (fdatasync): Add comment.
44869         * tests/test-unistd-c++.cc: Test fdatasync.
44871         unistd: update refs to newer POSIX
44872         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44873         Suggested by Bruno Haible.
44875         fdatasync: new module
44876         * modules/fsync (Description): Document difference to fdatasync.
44877         * modules/fdatasync: New module.
44878         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44879         * lib/fdatasync.c (fdatasync): Likewise.
44880         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44881         defaults.
44882         * modules/unistd (Makefile.am): Set witnesses.
44883         * lib/unistd.in.h (fdatasync): Declare.
44884         * MODULES.html.sh: Document it.
44885         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44886         * modules/fdatasync-tests: New test.
44887         * tests/test-fdatasync.c: Likewise.
44889 2011-09-16  Eric Blake  <eblake@redhat.com>
44891         test-fsync: enhance tests
44892         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44893         * tests/test-fsync.c (main): Enhance test.
44895 2011-09-15  Bruno Haible  <bruno@clisp.org>
44897         Support for MSVC compiler: Ensure ssize_t gets defined.
44898         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44899         * doc/posix-headers/stdio.texi: Likewise.
44900         * modules/stdio (Depends-on): Add ssize_t.
44901         * modules/sys_socket (Depends-on): Likewise.
44902         * modules/sys_types (Depends-on): Likewise.
44903         * modules/sys_uio (Depends-on): Likewise.
44904         * modules/unistd (Depends-on): Likewise.
44905         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44906         * tests/test-sys_types.c: Check that ssize_t is defined.
44908 2011-09-14  Bruno Haible  <bruno@clisp.org>
44910         Avoid using #, the m4 comment starter character, near brackets.
44911         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44912         delimiter character in sed expressions.
44913         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44914         Suggested by Eric Blake.
44916         Properly quote AC_CHECK_DECLS' 4th argument.
44917         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44918         argument.
44919         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44920         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44921         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44922         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44923         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44924         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44925         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44926         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44927         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44928         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44929         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44930         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44931         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44932         * m4/isinf.m4 (gl_ISINF): Likewise.
44933         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44934         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44935         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44936         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44938         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44939         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44940         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44941         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44942         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44943         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44946         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44948         Reported by Eric Blake.
44950         Properly quote AC_CHECK_DECL's 4th argument.
44951         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44952         argument.
44953         * m4/argp.m4 (gl_ARGP): Likewise.
44954         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44955         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44956         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44957         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44958         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44959         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44960         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44961         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44962         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44963         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44964         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44965         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44966         Reported by Eric Blake.
44968 2011-09-14  Eric Blake  <eblake@redhat.com>
44970         opendir: avoid compile warning
44971         * lib/opendir.c (includes): Always include errno.h.
44972         Reported by Tatsuro MATSUOKA.
44974 2011-09-14  Jim Meyering  <meyering@redhat.com>
44976         maint.mk: sc_tight_scope: propagate failure from sub-make
44977         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
44978         Reported by Martin von Gagern.
44980 2011-09-13  Bruno Haible  <bruno@clisp.org>
44982         tempname: Support for MSVC.
44983         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
44984         MSVC.
44985         * modules/tempname (Depends-on): Add fcntl-h.
44987 2011-09-13  Bruno Haible  <bruno@clisp.org>
44989         sys_time: Support for MSVC.
44990         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
44991         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
44992         include <winsock2.h>.
44993         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
44994         function declarations that collide with POSIX.
44995         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
44996         (Makefile.am): Substitute HAVE_WINSOCK2_H.
44998 2011-09-13  Bruno Haible  <bruno@clisp.org>
45000         stat: Support for MSVC.
45001         * lib/stat.c: Include pathmax.h.
45002         * modules/stat (Depends-on): Add pathmax.
45004         pathmax: Support for native Windows.
45005         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45007 2011-09-12  Bruno Haible  <bruno@clisp.org>
45009         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45010         * lib/dirent.in.h (struct dirent): New type.
45011         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45012         DT_WHT): New macros.
45013         (DIR): New type.
45014         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45015         (readdir, rewinddir): New declarations.
45016         * lib/dirent-private.h: New file.
45017         * lib/opendir.c: New file.
45018         * lib/readdir.c: New file.
45019         * lib/rewinddir.c: New file.
45020         * lib/closedir.c: New file.
45021         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45022         * m4/opendir.m4: New file.
45023         * m4/readdir.m4: New file.
45024         * m4/rewinddir.m4: New file.
45025         * m4/closedir.m4: New file.
45026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45027         REPLACE_CLOSEDIR here.
45028         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45029         readdir, rewinddir are declared.
45030         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45031         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45032         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45033         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45034         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45035         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45036         * modules/opendir: New file.
45037         * modules/readdir: New file.
45038         * modules/rewinddir: New file.
45039         * modules/closedir: New file.
45040         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45041         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45042         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45043         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45044         * NEWS: Mention the 'fchdir' change.
45046 2011-09-11  Bruno Haible  <bruno@clisp.org>
45048         asm-underscore.m4: Support for MSVC.
45049         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45050         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45052 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45054         Doc about crypt functions.
45055         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45056         needing for _GNU_SOURCE to get crypt.
45057         * doc/posix-functions/encrypt.texi: Likewise.
45058         * doc/posix-functions/setkey.texi: Likewise.
45060 2011-09-11  Bruno Haible  <bruno@clisp.org>
45062         doc: Update regarding MSVC 9.
45063         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45064         tested".
45065         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45066         * doc/posix-headers/*.texi: Likewise.
45067         * doc/pastposix-functions/*.texi: Likewise.
45068         * doc/glibc-functions/*.texi: Likewise.
45069         * doc/glibc-headers/*.texi: Likewise.
45071 2011-09-11  Bruno Haible  <bruno@clisp.org>
45073         unistd et al.: Don't assume <unistd.h> exists.
45074         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
45075         does not exist.
45076         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
45077         exist. But include <stdlib.h>.
45078         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
45079         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
45080         symlink() does not exist.
45081         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
45082         include <io.h> instead.
45083         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
45084         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
45085         include <direct.h> instead.
45086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45088         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
45089         <io.h> instead.
45090         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
45091         correctly if the system does not have hard links.
45092         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
45093         <direct.h> instead.
45094         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
45095         it when looking for function declarations.
45096         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
45097         <direct.h> and <io.h> instead.
45098         * doc/posix-headers/unistd.texi: More details about MSVC problem.
45100 2011-09-11  Bruno Haible  <bruno@clisp.org>
45102         strcase: Support for MSVC.
45103         * modules/strcase (Status, Notice): Remove obsoletion mark.
45104         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
45105         * doc/posix-functions/strncasecmp.texi: Likewise.
45107         strings: Don't assume <strings.h> exists.
45108         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45109         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45110         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45111         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45113 2011-09-11  Bruno Haible  <bruno@clisp.org>
45115         dirent: Don't assume <dirent.h> exists.
45116         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45117         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45118         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45119         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45121 2011-09-11  Bruno Haible  <bruno@clisp.org>
45123         Fix wint_t on MSVC.
45124         * lib/wchar.in.h (wint_t): On MSVC, override it.
45125         * lib/wctype.in.h (wint_t): Likewise.
45126         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45127         MSVC.
45128         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45129         * doc/posix-headers/wctype.texi: Likewise.
45131 2011-09-11  Bruno Haible  <bruno@clisp.org>
45133         sys_types: Fix typo.
45134         * lib/sys_types.in.h: Fix typo in comment.
45135         Reported by Paul Eggert.
45137         Support for MSVC compiler: Ensure size_t gets defined.
45138         * modules/strings (Depends-on): Add 'sys_types'.
45139         * modules/sys_uio (Depends-on): Likewise.
45140         * lib/sys_uio.in.h: Update comment.
45142         C++ tests for module 'sys_types'.
45143         * modules/sys_types-c++-tests: New file.
45144         * tests/test-sys_types-c++.cc: New file.
45146         Tests for module 'sys_types'.
45147         * modules/sys_types-tests: New file.
45148         * tests/test-sys_types.c: New file.
45150         New module 'sys_types'.
45151         * lib/sys_types.in.h: New file.
45152         * m4/sys_types_h.m4: New file.
45153         * modules/sys_types: New file.
45154         * doc/posix-headers/sys_types.texi: Mention the new module and the
45155         size_t problem on MSVC 9.
45157 2011-09-11  Bruno Haible  <bruno@clisp.org>
45159         Support for MSVC compiler: Avoid division by a literal 0.
45160         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45161         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45162         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45163         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45164         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45165         * tests/infinity.h: New file.
45166         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45167         on MSVC.
45168         * tests/test-ceilf1.c: Include infinity.h.
45169         (main): Use Infinityf.
45170         * tests/test-ceil1.c: Include infinity.h.
45171         (main): Use Infinityd.
45172         * tests/test-ceill.c: Include infinity.h.
45173         (main): Use Infinityl.
45174         * tests/test-dprintf-posix.c: Include infinity.h.
45175         (test_function): Use Infinityd.
45176         * tests/test-floorf1.c: Include infinity.h.
45177         (main): Use Infinityf.
45178         * tests/test-floor1.c: Include infinity.h.
45179         (main): Use Infinityd.
45180         * tests/test-floorl.c: Include infinity.h.
45181         (main): Use Infinityl.
45182         * tests/test-fprintf-posix.c: Include infinity.h.
45183         (test_function): Use Infinityd.
45184         * tests/test-frexp.c: Include infinity.h.
45185         (main): Use Infinityd.
45186         * tests/test-frexpl.c: Include infinity.h.
45187         (main): Use Infinityl.
45188         * tests/test-isfinite.c: Include infinity.h.
45189         (test_isfinitef): Use Infinityf.
45190         (test_isfinited): Use Infinityd.
45191         (test_isfinitel): Use Infinityl.
45192         * tests/test-isinf.c: Include infinity.h.
45193         (test_isinff): Use Infinityf.
45194         (test_isinfd): Use Infinityd.
45195         (test_isinfl): Use Infinityl.
45196         * tests/test-isnan.c: Include infinity.h.
45197         (test_float): Use Infinityf.
45198         (test_double): Use Infinityd.
45199         (test_long_double): Use Infinityl.
45200         * tests/test-isnanf.h: Include infinity.h.
45201         (main): Use Infinityf.
45202         * tests/test-isnand.h: Include infinity.h.
45203         (main): Use Infinityd.
45204         * tests/test-isnanl.h: Include infinity.h.
45205         (main): Use Infinityl.
45206         * tests/test-ldexpl.c: Include infinity.h.
45207         (main): Use Infinityl.
45208         * tests/test-printf-posix.h: Include infinity.h.
45209         (test_function): Use Infinityd.
45210         * tests/test-roundf1.c: Include infinity.h.
45211         (main): Use Infinityf.
45212         * tests/test-round1.c: Include infinity.h.
45213         (main): Use Infinityd.
45214         * tests/test-roundl.c: Include infinity.h.
45215         (main): Use Infinityl.
45216         * tests/test-signbit.c: Include infinity.h.
45217         (test_signbitf): Use Infinityf.
45218         (test_signbitd): Use Infinityd.
45219         (test_signbitl): Use Infinityl.
45220         * tests/test-snprintf-posix.h: Include infinity.h.
45221         (test_function): Use Infinityd, Infinityl.
45222         * tests/test-sprintf-posix.h: Include infinity.h.
45223         (test_function): Use Infinityd, Infinityl.
45224         * tests/test-truncf1.c: Include infinity.h.
45225         (main): Use Infinityf.
45226         * tests/test-trunc1.c: Include infinity.h.
45227         (main): Use Infinityd.
45228         * tests/test-truncl.c: Include infinity.h.
45229         (main): Use Infinityl.
45230         * tests/test-vasnprintf-posix.c: Include infinity.h.
45231         (test_function): Use Infinityd, Infinityl.
45232         * tests/test-vasprintf-posix.c: Include infinity.h.
45233         (test_function): Use Infinityd, Infinityl.
45234         * modules/ceilf-tests (Files): Add tests/infinity.h.
45235         * modules/ceil-tests (Files): Likewise.
45236         * modules/ceill-tests (Files): Likewise.
45237         * modules/dprintf-posix-tests (Files): Likewise.
45238         * modules/floorf-tests (Files): Likewise.
45239         * modules/floor-tests (Files): Likewise.
45240         * modules/floorl-tests (Files): Likewise.
45241         * modules/fprintf-posix-tests (Files): Likewise.
45242         * modules/frexp-tests (Files): Likewise.
45243         * modules/frexp-nolibm-tests (Files): Likewise.
45244         * modules/frexpl-tests (Files): Likewise.
45245         * modules/frexpl-nolibm-tests (Files): Likewise.
45246         * modules/isfinite-tests (Files): Likewise.
45247         * modules/isinf-tests (Files): Likewise.
45248         * modules/isnan-tests (Files): Likewise.
45249         * modules/isnanf-tests (Files): Likewise.
45250         * modules/isnanf-nolibm-tests (Files): Likewise.
45251         * modules/isnand-tests (Files): Likewise.
45252         * modules/isnand-nolibm-tests (Files): Likewise.
45253         * modules/isnanl-tests (Files): Likewise.
45254         * modules/isnanl-nolibm-tests (Files): Likewise.
45255         * modules/ldexpl-tests (Files): Likewise.
45256         * modules/printf-posix-tests (Files): Likewise.
45257         * modules/roundf-tests (Files): Likewise.
45258         * modules/round-tests (Files): Likewise.
45259         * modules/roundl-tests (Files): Likewise.
45260         * modules/signbit-tests (Files): Likewise.
45261         * modules/snprintf-posix-tests (Files): Likewise.
45262         * modules/sprintf-posix-tests (Files): Likewise.
45263         * modules/truncf-tests (Files): Likewise.
45264         * modules/trunc-tests (Files): Likewise.
45265         * modules/truncl-tests (Files): Likewise.
45266         * modules/vasnprintf-posix-tests (Files): Likewise.
45267         * modules/vasprintf-posix-tests (Files): Likewise.
45268         * modules/vdprintf-posix-tests (Files): Likewise.
45269         * modules/vfprintf-posix-tests (Files): Likewise.
45270         * modules/vprintf-posix-tests (Files): Likewise.
45271         * modules/vsnprintf-posix-tests (Files): Likewise.
45272         * modules/vsprintf-posix-tests (Files): Likewise.
45273         * modules/xprintf-posix-tests (Files): Likewise.
45275 2011-09-11  Bruno Haible  <bruno@clisp.org>
45277         Ensure pid_t gets defined.
45278         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45279         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45280         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45281         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45282         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45283         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45284         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45285         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45286         * tests/test-fcntl-h.c: Check that pid_t is defined.
45287         * tests/test-sched.c: Likewise.
45288         * tests/test-termios.c: Likewise.
45289         * tests/test-time.c: Likewise.
45290         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45291         * doc/posix-headers/signal.texi: Likewise.
45292         * doc/posix-headers/sys_types.texi: Likewise.
45293         * doc/posix-headers/time.texi: Likewise.
45295 2011-09-11  Bruno Haible  <bruno@clisp.org>
45297         acl: Fix compilation on Solaris 10 (older version).
45298         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45299         of ACE_EVERYONE.
45300         * lib/set-mode-acl.c (qset_acl): Likewise.
45301         Reported by Christian Jullien <eligis@orange.fr>.
45303 2011-09-10  Bruno Haible  <bruno@clisp.org>
45305         iconv, unsetenv: Add support for MSVC compiler.
45306         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45307         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45309 2011-09-10  Bruno Haible  <bruno@clisp.org>
45311         *printf: Add support for MSVC compiler.
45312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45313         handles the exception caused by the %n directive. When cross-compiling,
45314         guess no on native Windows.
45315         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45316         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45317         emulate it through vsnprintf.
45318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45319         * doc/posix-functions/dprintf.texi: Update documentation regarding
45320         MSVC 9.
45321         * doc/posix-functions/fprintf.texi: Likewise.
45322         * doc/posix-functions/printf.texi: Likewise.
45323         * doc/posix-functions/snprintf.texi: Likewise.
45324         * doc/posix-functions/sprintf.texi: Likewise.
45325         * doc/posix-functions/swprintf.texi: Likewise.
45326         * doc/posix-functions/vdprintf.texi: Likewise.
45327         * doc/posix-functions/vfprintf.texi: Likewise.
45328         * doc/posix-functions/vprintf.texi: Likewise.
45329         * doc/posix-functions/vsnprintf.texi: Likewise.
45330         * doc/posix-functions/vsprintf.texi: Likewise.
45331         * doc/glibc-functions/asprintf.texi: Likewise.
45332         * doc/glibc-functions/obstack_printf.texi: Likewise.
45333         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45334         * doc/glibc-functions/vasprintf.texi: Likewise.
45336 2011-09-10  Bruno Haible  <bruno@clisp.org>
45338         nocrash: Add support for native Windows.
45339         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45341 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45342             Bruno Haible  <bruno@clisp.org>
45344         absolute-header, include-next: Add support for MSVC compiler.
45345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45346         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45347         directory separator in #line directives.
45348         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45349         recognize also backslash as directory separator in #line directives.
45351 2011-09-08  Jim Meyering  <meyering@redhat.com>
45353         maint.mk: mark the post-release commit log with "maint: " prefix
45354         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45355         one-line commit-log summary.
45357 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45358             Bruno Haible  <bruno@clisp.org>
45360         Doc about crypt functions.
45361         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45362         systems.
45363         * doc/posix-functions/encrypt.texi: Likewise.
45364         * doc/posix-functions/setkey.texi: Likewise.
45366 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45368         * lib/gc.h: Fix copyright header.
45370 2011-09-07  Bruno Haible  <bruno@clisp.org>
45372         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45373         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45374         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45376 2011-09-07  Bruno Haible  <bruno@clisp.org>
45378         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45379         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45380         * lib/freopen.c: Likewise.
45381         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45382         * lib/lstat.c: Likewise.
45383         * lib/stat.c: Likewise.
45384         * lib/open.c: Use different syntax for include of <fcntl.h>.
45385         * lib/openat.c: Include fcntl.h again, explicitly.
45387 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45389         parse-datetime: document the newly accepted format
45390         * doc/parse-datetime.texi (Combined date and time of day items):
45391         New section.
45393 2011-09-06  Bruno Haible  <bruno@clisp.org>
45395         acl: Fix a test failure on newer Solaris 10 with ZFS.
45396         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45397         ENOSYS as no ACL.
45398         Reported by Jim Meyering.
45400 2011-09-06  Bruno Haible  <bruno@clisp.org>
45402         acl: Update for AIX >= 5.3 with NFS.
45403         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45404         ENOSYS as no ACL.
45406         acl: Fix a test failure on AIX >= 5.3 with NFS.
45407         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45408         as no ACL.
45410 2011-09-06  Bruno Haible  <bruno@clisp.org>
45412         acl: Fix a test failure on IRIX 6.5 with NFS.
45413         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45414         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45415         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45416         * lib/copy-acl.c (qcopy_acl): Likewise.
45418 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45420         openat: port to AIX 7.1 with large files
45421         AIX 7.1 does a "#define openat open64at" if large files are in use,
45422         so we can't simply #undef openat.  Use the orig_openat trick (similar
45423         to orig_open in lib/open.c) to work around the problem.  Problem
45424         reported by Kevin Brott for GNU tar, in the thread containing
45425         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45426         * lib/openat.c (__need_system_fcntl_h): Define first.
45427         Include <fcntl.h> and <sys/types.h> before undefining.
45428         (orig_openat) [HAVE_OPENAT]: New inline function.
45429         (openat) [HAVE_OPENAT]: Do not undef.
45430         (rpl_openat): Use orig_openat, not openat.
45432 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45433             Bruno Haible  <bruno@clisp.org>
45435         acl: Avoid errors on NonStop Kernel.
45436         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45437         ENOTSUP errors.
45439 2011-09-05  Bruno Haible  <bruno@clisp.org>
45441         acl: Clean up Solaris code.
45442         * lib/acl-internal.h: Remove no-op #if.
45443         * lib/file-has-acl.c: Likewise.
45444         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45445         * lib/copy-acl.c (qcopy_acl): Likewise.
45447 2011-09-05  Bruno Haible  <bruno@clisp.org>
45449         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45450         binaries built on the original Solaris 10.
45451         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45452         trivial.
45454 2011-09-05  Bruno Haible  <bruno@clisp.org>
45456         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45457         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45458         10.
45459         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45460         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45461         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45462         instead of acl_get, facl_get, acl_set, facl_set.
45464 2011-09-05  Bruno Haible  <bruno@clisp.org>
45466         copy-file: Try unit tests on more file systems.
45467         * tests/test-copy-file-1.sh: New file.
45468         * tests/test-copy-file-2.sh: New file.
45469         * modules/copy-file-tests (Files): Add them.
45470         (Makefile.am): Add them to TESTS.
45472         acl: Try unit tests on more file systems.
45473         * tests/test-file-has-acl-1.sh: New file.
45474         * tests/test-file-has-acl-2.sh: New file.
45475         * tests/test-set-mode-acl-1.sh: New file.
45476         * tests/test-set-mode-acl-2.sh: New file.
45477         * tests/test-copy-acl-1.sh: New file.
45478         * tests/test-copy-acl-2.sh: New file.
45479         * modules/acl-tests (Files): Add them.
45480         (Makefile.am): Add them to TESTS.
45482 2011-09-04  Bruno Haible  <bruno@clisp.org>
45484         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45485         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45486         10.
45487         (OLD_ALLOW, OLD_DENY): New macros.
45488         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45489         ACE_ACCESS_ALLOWED_ACE_TYPE.
45490         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45491         ACE_ACCESS_DENIED_ACE_TYPE.
45492         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45493         (NEW_ACE_EXECUTE): Fix value.
45494         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45495         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45496         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45497         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45498         NEW_ACE_SYNCHRONIZE): New macros.
45499         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45500         instead of acl_fromtext, acl_set, facl_set.
45501         Fixes a coreutils/tests/cp/perm failure.
45503 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45505         openat: test for fstatat (..., 0) bug
45506         Further testing with tar suggests that fstatat (..., 0)
45507         does not work in general, on AIX 7.1; see
45508         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45509         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45510         replacement fstatat (which is what older AIX releases were using
45511         anyway).
45512         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45513         use is now changed to orig_fstatat.  This was probably the right
45514         thing to do anyway.
45515         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45516         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45517         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45518         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45519         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45520         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45521         if the bug is found.
45523         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45524         This tests for another fstatat bug on AIX 7.1:
45525         fstatat (AT_FDCWD, ..., 0) does not work.  See
45526         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45527         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45528         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45529         (rpl_fstatat): Adjust so that it works around either (or both)
45530         bugs if present.
45531         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45533 2011-09-03  Karl Berry  <karl@gnu.org>
45535         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45536         in index entries.
45538 2011-09-02  Bruno Haible  <bruno@clisp.org>
45540         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45541         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45542         values of AR, ARFLAGS, RANLIB.
45543         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45545 2011-09-02  Bruno Haible  <bruno@clisp.org>
45547         Find 'ar' program that fits with --host argument.
45548         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45550 2011-09-02  Bruno Haible  <bruno@clisp.org>
45552         tests: init.sh: Support any non-GNU diff.
45553         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45554         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45555         Solaris 8.
45557 2011-09-02  Bruno Haible  <bruno@clisp.org>
45559         tests: init.sh: work also with any non-GNU diff that supports -u
45560         * tests/init.sh: Relax check for diff -u support.
45561         Rather than checking for GNU diff via --version, simply check
45562         for support for -u itself.  Useful at least on OpenBSD 4.9,
45563         AIX 7.1, IRIX 6.5, and Solaris 10.
45565 2011-09-01  Bruno Haible  <bruno@clisp.org>
45567         strtoimax, strtoumax: Document problem on HP-UX 11.
45568         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45569         * doc/posix-functions/strtoumax.texi: Likewise.
45571 2011-09-01  Bruno Haible  <bruno@clisp.org>
45573         strtoumax: Avoid link error on OSF/1 with DTK cc.
45574         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45575         defined as a function.
45576         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45577         strtoumax is defined, not whether it is declared.
45579 2011-09-01  Bruno Haible  <bruno@clisp.org>
45581         strtoimax: Avoid link error on OSF/1 with DTK cc.
45582         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45583         defined as a function.
45584         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45585         strtoimax is defined, not whether it is declared.
45587 2011-09-01  Bruno Haible  <bruno@clisp.org>
45589         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45590         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45591         as a function.
45592         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45593         whether it is declared.
45595 2011-09-01  Bruno Haible  <bruno@clisp.org>
45597         imaxabs: Avoid link error on OSF/1 with DTK cc.
45598         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45599         as a function.
45600         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45601         whether it is declared.
45603 2011-09-01  Bruno Haible  <bruno@clisp.org>
45605         Tests for module 'strtoumax'.
45606         * modules/strtoumax-tests: New file.
45607         * tests/test-strtoumax.c: New file.
45609         Tests for module 'strtoimax'.
45610         * modules/strtoimax-tests: New file.
45611         * tests/test-strtoimax.c: New file.
45613         Tests for module 'imaxdiv'.
45614         * modules/imaxdiv-tests: New file.
45615         * tests/test-imaxdiv.c: New file.
45617         Tests for module 'imaxabs'.
45618         * modules/imaxabs-tests: New file.
45619         * tests/test-imaxabs.c: New file.
45621 2011-09-01  Bruno Haible  <bruno@clisp.org>
45623         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45624         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45625         pthread_create.
45627 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45629         openat: work around AIX 7.1 fstatat issue
45630         This should fix the problem that was not properly fixed
45631         in the previous change, dated 2011-08-30.
45632         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45633         __need_system_stat_h defined.
45634         (orig_fstatat) [HAVE_FSTATAT]: New function.
45635         (rpl_fstatat): Go back to the old way of doing things,
45636         except call orig_fstatat instead of fstatat.
45637         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45638         Remove unnecessary check whether fstatat fills in st_size etc.
45640 2011-09-01  Bruno Haible  <bruno@clisp.org>
45642         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45643         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45644         just include the system's header.
45646 2011-08-31  Jim Meyering  <meyering@redhat.com>
45648         tests: avoid spurious assertion failure in test-float.c on ppc64
45649         * tests/test-float.c (test_long_double): Comment out an assertion,
45650         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45651         with gcc-4.4.4.
45653         maint: indent with spaces, not TABs
45654         I need to get in the habit of running gnulib's "make check".
45655         Both of these would have been caught.
45656         * m4/largefile.m4: Indent with spaces, not TABs.
45657         * lib/parse-datetime.y (iso_8601_time): Likewise.
45658         Spotted by Pádraig Brady.
45660         test-parse-datetime.c: accommodate a relatively strict gcc warning
45661         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45662         to avoid a warning from gcc's -Werror=missing-declarations.
45663         Insert a few spaces-before-funcall-parenthesis.
45665 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45667         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45668         The parser now accepts ISO 8601 date-time strings with "T" as the
45669         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45670         with a space between the date and time strings.  Now it also parses
45671         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45672         variants like "2004-02-29T16:21:42.333-07:00"
45673         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45674         of day representation using the 'T' separator character.
45675         * doc/parse-datetime.texi (General date syntax): replace use of
45676         deprecated --iso-8601 option with --rfc-3339 in example of date
45677         command output formats that can be parsed.
45678         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45679         lib/parse-datetime.y.
45680         (gmt_offset): New function.
45681         (main): Add additional test cases to validate ISO8601 extended
45682         date and time of day parsing.
45684 2011-08-31  Bruno Haible  <bruno@clisp.org>
45686         freopen: Documentation.
45687         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45688         name.
45689         Reported by Claudio Bley <claudio.bley@gmail.com>.
45691 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45693         freopen: Don't crash if the filename argument is NULL.
45694         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45695         NULL.
45697 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45699         openat: work around AIX 7.1 fstatat bug
45700         Problem reported by Kevin Brott for GNU tar, in the thread containing
45701         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45702         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45703         FSTATAT_ST_SIZE_ETC_BROKEN.
45704         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45705         rpl_fstatat.
45706         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45707         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45708         AC_CHECK_FUNCS_ONCE for fstatat.
45709         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45710         fchmodat, mkdirat, openat and unlinkat.
45712 2011-08-30  Bruno Haible  <bruno@clisp.org>
45714         Avoid endless recursions if config.h includes some header files.
45715         * lib/fopen.c (__need_FILE): Define already before including config.h.
45716         * lib/freopen.c (__need_FILE): Likewise.
45717         * lib/open.c (__need_system_fcntl_h): Likewise.
45718         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45719         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45720         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45722 2011-08-25  Karl Berry  <karl@gnu.org>
45724         * config/srclist.txt (ylwrap): new try.
45725         * build-aux/ylwrap: new file.
45727 2011-08-23  Bruno Haible  <bruno@clisp.org>
45729         tmpdir: Use a good default directory on native Windows.
45730         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45731         (P_tmpdir): Default to _P_tmpdir on native Windows.
45732         (path_search): On native Windows, try the value returned by GetTempPath
45733         before trying P_tmpdir.
45734         * modules/tmpdir (Depends-on): Add pathmax.
45735         Suggested by John Darrington <john@darrington.wattle.id.au>.
45737 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45739         doc: fix typo in README-release
45740         * top/README-release: Capitalize first word of a sentence.
45742 2011-08-19  Jim Meyering  <meyering@redhat.com>
45744         fts: do not exhaust memory when processing million-entry directories
45745         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45746         directory would require about 256*N bytes of memory.  Thus, it was
45747         easy to construct a directory too large to be processed by any of
45748         those tools.  With this change, fts' maximum memory utilization is
45749         now limited to around 30MB.
45750         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45751         (fts_read): When we've processed the final entry (i.e., when
45752         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45753         using the parent entry to read any remaining entries.  Dispatch
45754         depending on what fts_build returns:
45755         - NULL+stop, aka failure: stop
45756         - NULL otherwise: move up in the dir hierarchy
45757         - non-NULL: handle this new entry
45758         (fts_build): Declare and use new local, continue_readdir.
45759         Prepare to be called from fts_read, when the entries
45760         from a partially-read directory have just been exhausted.
45761         In that case, we'll skip the opendir and instead use the parent's
45762         fts_dirp and derive dir_fd from that.
45763         Finally, in the readdir loop, if we read max_entries entries,
45764         exit the loop ensuring *not* to call closedir.  This is required
45765         so that fts_dirp can be reused on a subsequent call.
45766         Prompted by Ben England's report of memory exhaustion in find
45767         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45769         maint: fts: move decl of `dp' down into while loop; split a long line
45770         * lib/fts.c (fts_build): No semantic change.
45772         fts: add/use new struct member, fts_dirp
45773         We are about to use this to manage any directory with
45774         too many entries to read all of them into memory at once.
45775         To do that, we'll need to save the DIR* pointer in each
45776         affected FTSENT struct.
45777         * lib/fts_.h: Include <dirent.h>.
45778         (struct FTSENT) [fts_dirp]: New member.
45779         * lib/fts.c (closedir_and_clear): Define.
45780         Use it in place of closedir so that we are sure to
45781         clear the new fts_dirp member when done with it.
45782         (fts_alloc): Initialize the new member.
45783         (fts_lfree): Free, if needed.
45785         maint: fts: give __opendir2 a new parameter and rename
45786         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45787         than surreptitiously using sole caller's "dir_fd".
45788         (fts_opendir): Rename from __opendir2.
45790         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45791         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45793         maint: fts.c: correct off-by-one indentation
45794         * lib/fts.c (fts_build): Correct indentation, change style
45795         of a couple of block comments, and bracing style.
45797         maint: fts.c: move __opendir2 #define "up" out of function body
45798         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45800         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45801         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45802         out for a long time and besides was useful only on BSD systems.
45804 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45806         regex: port to Stratus OpenVOS
45807         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45808         define to empty, rather than attempting nonportable optimizations.
45809         Problem reported by Paul Green in:
45810         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45811         and fix suggested by Eric Blake in:
45812         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45814 2011-08-17  Eric Blake  <eblake@redhat.com>
45816         getcwd: fix test failures on mingw
45817         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45818         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45819         test if long directory cannot be created, and allow mingw errno.
45821         getcwd-lgpl: fix m4 to match relaxed test for BSD
45822         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45823         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45824         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45825         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45826         signature problem.
45828         getcwd: fix compilation on mingw64
45829         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45830         getcwd.
45831         Reported by Marc-André Lureau.
45833         pipe2: silence compiler warning
45834         * lib/pipe2.c (pipe2): Hide label if it is not used.
45836 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45838         relocatable-prog: fix link error
45839         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45840         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45841         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45842         into modules/relocatable-lib without noticing that
45843         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45844         also needs to build relocatable.c.
45846 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45848         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45850         shell code: it contained a 'break' that was not in a loop.
45851         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45852         via a shell-language loop; this may have been true in old Autoconf
45853         versions, but it's not true in Autoconf 2.68.  I found this bug
45854         when testing coreutils git on Solaris 8, whose shell complains
45855         about the syntax error.
45857 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45859         * lib/base64.c: Fix comment to reference RFC 4648.
45860         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45861         <gvtulder@gmail.com>.
45863 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45865         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45867         po/Makefile.in.in: fix make -q problem
45868         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45869         rule, since there's no file named 'check-macro-version' and its
45870         use as a file breaks make -q.
45871         (all): Don't depend on check-macro-version.
45872         (CHECK_MACRO_VERSION): New macro.
45873         (stamp-po): Use it.
45875         configmake: fix make -q problem
45876         * modules/configmake (configmake.h): Update configmake.h's time stamp
45877         even if the file does not change.  Otherwise, 'make -q' fails.
45878         Problem reported by Simon Josefsson in
45879         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45881 2011-08-11  Jim Meyering  <meyering@redhat.com>
45883         git-version-gen: correct the advice in a comment
45884         * build-aux/git-version-gen: Correct comment.
45885         Don't recommend to list .tarball-version in .gitignore.
45887 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45889         base64: fix off-by-one buffer size bug
45890         Problem and (trivial) fix reported by Gijs van Tulder in
45891         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45892         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45893         * tests/test-base64.c (main): Catch the bug.
45895 2011-08-10  Eric Blake  <eblake@redhat.com>
45897         closein: correct comments
45898         * lib/closein.c (close_stdin): Improve comments.
45900 2011-08-09  Bruno Haible  <bruno@clisp.org>
45902         More tests for 'fseeko'.
45903         * tests/test-fseeko3.c: New file, from Eric Blake.
45904         * tests/test-fseeko3.sh: New file.
45905         * modules/fseeko-tests (Files): Add them.
45906         (TESTS): Add test-fseeko3.sh.
45907         (check_PROGRAMS): Add test-fseeko3.
45909 2011-08-09  Eric Blake  <eblake@redhat.com>
45911         fseeko: remove unneeded hack
45912         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45914         fseeko: fix bug on glibc
45915         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45916         Reported by John W. Eaton.
45918 2011-08-08  Bruno Haible  <bruno@clisp.org>
45920         unictype/base: Fix interoperability with preinstalled libunistring.
45921         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45922         Reported by Simon Josefsson.
45924 2011-08-08  Bruno Haible  <bruno@clisp.org>
45926         iswblank: Detect declaration correctly.
45927         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45928         AC_CHECK_DECLS invocation.
45930 2011-08-08  Bruno Haible  <bruno@clisp.org>
45932         tcgetsid: Detect declaration correctly.
45933         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45934         AC_CHECK_DECLS invocation.
45935         Reported by Simon Josefsson.
45937 2011-08-08  Eric Blake  <eblake@redhat.com>
45939         largefile: fix typo that regressed large file support
45940         * modules/largefile (configure.ac-early): Fix section name.
45942 2011-08-06  Karl Berry  <karl@gnu.org>
45944         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45945         a separate module.
45947 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45949         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45950         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45951         get prototype for free.
45953 2011-08-04  Bruno Haible  <bruno@clisp.org>
45955         Tests for module 'pathmax'.
45956         * modules/pathmax-tests: New file.
45957         * tests/test-pathmax.c: New file.
45959         canonicalize-lgpl: Support larger filenames on the Hurd.
45960         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45961         Reported by Paul Eggert.
45963         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45964         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45965         * lib/chdir-long.h: Include pathmax.h.
45966         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45967         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
45968         (PATH_MAX): Remove code that is done by pathmax.h.
45969         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
45970         * lib/tmpfile.c: Add a comment.
45971         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
45972         * modules/chdir-long (Depends-on): Add pathmax.
45973         * modules/getcwd (Depends-on): Add pathmax.
45974         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
45975         is not defined.
45976         * doc/posix-headers/limits.texi: Mention the pathmax module.
45977         * NEWS: Mention the change.
45979 2011-08-02  Bruno Haible  <bruno@clisp.org>
45981         pthread_sigmask: Actually use results of gl_THREADLIB.
45982         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
45983         gl_THREADLIB, not gl_[]THREADLIB.
45984         Reported by Eric Blake.
45986 2011-08-02  Jim Meyering  <meyering@redhat.com>
45988         maint.mk: relax the default _gl_TS_function_match regexp
45989         * top/maint.mk (_gl_TS_function_match): Don't require at least one
45990         space between function name and "(" in an "extern" declaration.
45991         That would fail to match a decl with no space there: extern void foo();
45993 2011-07-31  Iain Nicol  <iain@thenicols.net>
45995         git-version-gen: document that EXTRA_DIST must include .version
45996         * build-aux/git-version-gen: In the how-to-use comment, document
45997         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
45998         will fail when run from an unpacked distribution tarball.
46000 2011-08-01  Bruno Haible  <bruno@clisp.org>
46002         wctype-h: Fix last change.
46003         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46004         REPLACE_TOWLOWER to 0.
46005         Reported by Sam Steingold <sds@gnu.org>.
46007 2011-07-31  Bruno Haible  <bruno@clisp.org>
46009         frexpl: Update autoconf test.
46010         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46011         according to changes of 2011-06-20.
46013 2011-07-31  Bruno Haible  <bruno@clisp.org>
46015         sys_utsname: Add support for Minix.
46016         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46017         <sys/utsname.h>.
46018         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46019         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46021 2011-07-31  Bruno Haible  <bruno@clisp.org>
46023         strings: Add support for Minix.
46024         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46025         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46026         * doc/posix-headers/strings.texi: Document the Minix problem.
46028 2011-07-31  Bruno Haible  <bruno@clisp.org>
46030         wctype-h: Add support for Minix.
46031         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46032         REPLACE_TOWLOWER.
46033         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46034         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46035         REPLACE_ISWCNTRL.
46037 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46039         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46040         This is a performance improvement for 64-bit hosts: it causes the
46041         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46043 2011-07-31  Bruno Haible  <bruno@clisp.org>
46045         stdioext: Add support for Minix.
46046         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46047         * lib/fpurge.c (fpurge): Likewise.
46048         * lib/freadahead.c (freadahead): Likewise.
46049         * lib/freadable.c (freadable): Likewise.
46050         * lib/freading.c (freading): Likewise.
46051         * lib/freadptr.c (freadptr): Likewise.
46052         * lib/freadseek.c (freadptrinc): Likewise.
46053         * lib/fseeko.c (rpl_fseeko): Likewise.
46054         * lib/fseterr.c (fseterr): Likewise.
46055         * lib/fwritable.c (fwritable): Likewise.
46056         * lib/fwriting.c (fwriting): Likewise.
46057         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46058         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46060 2011-07-31  Bruno Haible  <bruno@clisp.org>
46062         errno: Port to Minix.
46063         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46064         ECONNABORTED are defined.
46065         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46066         GNULIB_defined_ECONNABORTED): New macros.
46067         * lib/strerror-override.h (strerror_override): Test also
46068         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46069         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46070         ECONNABORTED.
46071         * doc/posix-headers/errno.texi: Mention the Minix problem.
46073 2011-07-31  Bruno Haible  <bruno@clisp.org>
46075         Work around declaration collisions on Minix.
46076         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
46077         defined, set REPLACE_MBSINIT.
46078         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
46079         defined, set REPLACE_MBRTOWC.
46080         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
46081         set REPLACE_MBRLEN.
46082         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
46083         defined, set REPLACE_MBSRTOWCS.
46084         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
46085         defined, set REPLACE_WCRTOMB.
46086         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
46087         defined, set REPLACE_WCSRTOMBS.
46089 2011-07-31  Bruno Haible  <bruno@clisp.org>
46091         Add support for Minix with ACK compiler.
46092         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
46093         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
46094         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
46096 2011-07-31  Bruno Haible  <bruno@clisp.org>
46098         Documentation about Minix.
46099         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
46100         * doc/glibc-headers/*.texi: Likewise.
46101         * doc/posix-functions/*.texi: Likewise.
46102         * doc/glibc-functions/*.texi: Likewise.
46104 2011-07-31  Bruno Haible  <bruno@clisp.org>
46106         snippet/warn-on-use: Fix indentation.
46107         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46109 2011-07-25  Jim Meyering  <meyering@redhat.com>
46111         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46112         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46113         commands.
46115 2011-07-27  Jim Meyering  <meyering@redhat.com>
46117         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46118         * top/maint.mk (gl_extract_significant_defines_): Now that
46119         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46120         gnulib/lib/signal.in.h, and now that we recommend to
46121         define-if-undefined those two symbols in application code,
46122         we must filter them out of the "significant" list.
46123         This avoids a "make syntax-check" failure in coreutils.
46125 2011-07-26  Eric Blake  <eblake@redhat.com>
46127         warnings: add comments about previous patch
46128         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46129         * m4/include_next.m4: Likewise.
46130         * m4/warn-on-use.m4: Likewise.
46131         * m4/warnings.m4: Likewise, and simplify use.
46132         Suggested by Stefano Lattarini.
46134         include-next, warnings: support older autoconf
46135         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46136         AS_VAR_PUSHDEF in a way that works with older autoconf.
46137         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46138         Reported by Daniel P. Berrange.
46140 2011-07-25  Bruno Haible  <bruno@clisp.org>
46142         fseek, ftell: Fix doc.
46143         * doc/posix-functions/fseek.texi: Reword statement about
46144         AC_SYS_LARGEFILE.
46145         * doc/posix-functions/ftell.texi: Likewise.
46147 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46148             Bruno Haible  <bruno@clisp.org>
46150         Add dependencies to the 'largefile' module.
46151         * modules/fopen (Depends-on): Add 'largefile'.
46152         * modules/freopen (Depends-on): Likewise.
46153         * modules/fseeko (Depends-on): Likewise.
46154         * modules/ftello (Depends-on): Likewise.
46155         * modules/glob (Depends-on): Likewise.
46156         * modules/lseek (Depends-on): Likewise.
46157         * modules/lstat (Depends-on): Likewise.
46158         * modules/mkostemp (Depends-on): Likewise.
46159         * modules/mkostemps (Depends-on): Likewise.
46160         * modules/mkstemp (Depends-on): Likewise.
46161         * modules/mkstemps (Depends-on): Likewise.
46162         * modules/open (Depends-on): Likewise.
46163         * modules/openat (Depends-on): Likewise.
46164         * modules/pread (Depends-on): Likewise.
46165         * modules/pwrite (Depends-on): Likewise.
46166         * modules/scandir (Depends-on): Likewise.
46167         * modules/stat (Depends-on): Likewise.
46168         * modules/tmpfile (Depends-on): Likewise.
46169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46170         since the containing module now depends on the largefile module.
46171         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46172         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46173         off_t is fixed by gnulib.
46174         * doc/posix-functions/freopen.texi: Likewise.
46175         * doc/posix-functions/fseeko.texi: Likewise.
46176         * doc/posix-functions/fstatat.texi: Likewise.
46177         * doc/posix-functions/ftello.texi: Likewise.
46178         * doc/posix-functions/glob.texi: Likewise.
46179         * doc/posix-functions/lseek.texi: Likewise.
46180         * doc/posix-functions/lstat.texi: Likewise.
46181         * doc/posix-functions/mkstemp.texi: Likewise.
46182         * doc/posix-functions/open.texi: Likewise.
46183         * doc/posix-functions/openat.texi: Likewise.
46184         * doc/posix-functions/pread.texi: Likewise.
46185         * doc/posix-functions/pwrite.texi: Likewise.
46186         * doc/posix-functions/scandir.texi: Likewise.
46187         * doc/posix-functions/stat.texi: Likewise.
46188         * doc/posix-functions/tmpfile.texi: Likewise.
46189         * doc/glibc-functions/mkostemp.texi: Likewise.
46190         * doc/glibc-functions/mkostemps.texi: Likewise.
46191         * doc/glibc-functions/mkstemps.texi: Likewise.
46193 2011-07-25  Bruno Haible  <bruno@clisp.org>
46195         fcntl: Move AC_LIBOBJ invocation to module description.
46196         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46197         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46199         fcntl: Remove call-in from fchdir.m4.
46200         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46203         dup3: Remove potential call-in from fchdir.m4.
46204         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46207         dup2: Move AC_LIBOBJ invocation to module description.
46208         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46209         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46210         Don't invoke AC_LIBOBJ.
46211         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46213         dup2: Remove call-in from fchdir.m4.
46214         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46217         fclose: Move AC_LIBOBJ invocation to module description.
46218         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46219         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46220         to 1.
46221         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46223         fclose: Remove call-in from close.m4.
46224         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46225         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46227         close: Move AC_LIBOBJ invocation to module description.
46228         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46229         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46230         1.
46231         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46233         close: Remove call-in from fchdir.m4.
46234         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46237         open: Move AC_LIBOBJ invocation to module description.
46238         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46239         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46240         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46242         open: Remove call-in from fchdir.m4.
46243         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46246         fchdir: Start to remove gl_REPLACE_* idiom.
46247         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46248         (gl_FUNC_FCHDIR): Invoke it.
46250 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46252         * lib/ftell.c (ftell): Comment out cast.
46254         close: use gl_REPLACE_FCLOSE only if defined
46255         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46256         is defined.  The close module doesn't depend on the fclose module
46257         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46258         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46259         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46261 2011-07-24  Jim Meyering  <meyering@redhat.com>
46263         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46264         * tests/test-select.h (test_function): Declare as "static".
46266 2011-07-24  Bruno Haible  <bruno@clisp.org>
46268         doc: Mention the effects of AC_SYS_LARGEFILE.
46269         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46270         on this function.
46271         * doc/posix-functions/aio_error.texi: Likewise.
46272         * doc/posix-functions/aio_fsync.texi: Likewise.
46273         * doc/posix-functions/aio_read.texi: Likewise.
46274         * doc/posix-functions/aio_return.texi: Likewise.
46275         * doc/posix-functions/aio_suspend.texi: Likewise.
46276         * doc/posix-functions/aio_write.texi: Likewise.
46277         * doc/posix-functions/fgetpos.texi: Likewise.
46278         * doc/posix-functions/fopen.texi: Likewise.
46279         * doc/posix-functions/freopen.texi: Likewise.
46280         * doc/posix-functions/fsetpos.texi: Likewise.
46281         * doc/posix-functions/fstatvfs.texi: Likewise.
46282         * doc/posix-functions/ftruncate.texi: Likewise.
46283         * doc/posix-functions/ftw.texi: Likewise.
46284         * doc/posix-functions/getrlimit.texi: Likewise.
46285         * doc/posix-functions/glob.texi: Likewise.
46286         * doc/posix-functions/lio_listio.texi: Likewise.
46287         * doc/posix-functions/lockf.texi: Likewise.
46288         * doc/posix-functions/mkstemp.texi: Likewise.
46289         * doc/posix-functions/mmap.texi: Likewise.
46290         * doc/posix-functions/nftw.texi: Likewise.
46291         * doc/posix-functions/openat.texi: Likewise.
46292         * doc/posix-functions/opendir.texi: Likewise.
46293         * doc/posix-functions/posix_fadvise.texi: Likewise.
46294         * doc/posix-functions/posix_fallocate.texi: Likewise.
46295         * doc/posix-functions/pread.texi: Likewise.
46296         * doc/posix-functions/pwrite.texi: Likewise.
46297         * doc/posix-functions/readdir.texi: Likewise.
46298         * doc/posix-functions/readdir_r.texi: Likewise.
46299         * doc/posix-functions/rewinddir.texi: Likewise.
46300         * doc/posix-functions/scandir.texi: Likewise.
46301         * doc/posix-functions/seekdir.texi: Likewise.
46302         * doc/posix-functions/setrlimit.texi: Likewise.
46303         * doc/posix-functions/statvfs.texi: Likewise.
46304         * doc/posix-functions/telldir.texi: Likewise.
46305         * doc/posix-functions/tmpfile.texi: Likewise.
46306         * doc/posix-functions/truncate.texi: Likewise.
46307         * doc/glibc-functions/fallocate.texi: Likewise.
46308         * doc/glibc-functions/fstatfs.texi: Likewise.
46309         * doc/glibc-functions/fts_children.texi: Likewise.
46310         * doc/glibc-functions/fts_read.texi: Likewise.
46311         * doc/glibc-functions/getdirentries.texi: Likewise.
46312         * doc/glibc-functions/mkostemp.texi: Likewise.
46313         * doc/glibc-functions/mkostemps.texi: Likewise.
46314         * doc/glibc-functions/mkstemps.texi: Likewise.
46315         * doc/glibc-functions/preadv.texi: Likewise.
46316         * doc/glibc-functions/pwritev.texi: Likewise.
46317         * doc/glibc-functions/sendfile.texi: Likewise.
46318         * doc/glibc-functions/statfs.texi: Likewise.
46320 2011-07-24  Bruno Haible  <bruno@clisp.org>
46322         doc: Fix typo.
46323         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46325 2011-07-24  Bruno Haible  <bruno@clisp.org>
46327         doc: Mention fsusage.
46328         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46330 2011-07-24  Bruno Haible  <bruno@clisp.org>
46332         doc: Mention new glibc headers and functions.
46333         * doc/glibc-headers/gshadow.texi: New file.
46334         * doc/glibc-functions/endsgent.texi: New file.
46335         * doc/glibc-functions/fgetsgent.texi: New file.
46336         * doc/glibc-functions/fgetsgent_r.texi: New file.
46337         * doc/glibc-functions/getsgent.texi: New file.
46338         * doc/glibc-functions/getsgent_r.texi: New file.
46339         * doc/glibc-functions/getsgnam.texi: New file.
46340         * doc/glibc-functions/getsgnam_r.texi: New file.
46341         * doc/glibc-functions/putsgent.texi: New file.
46342         * doc/glibc-functions/setsgent.texi: New file.
46343         * doc/glibc-functions/sgetsgent.texi: New file.
46344         * doc/glibc-functions/sgetsgent_r.texi: New file.
46345         * doc/glibc-functions/malloc_info.texi: New file.
46346         * doc/glibc-functions/preadv.texi: New file.
46347         * doc/glibc-functions/pwritev.texi: New file.
46348         * doc/glibc-functions/register_printf_modifier.texi: New file.
46349         * doc/glibc-functions/register_printf_specifier.texi: New file.
46350         * doc/glibc-functions/register_printf_type.texi: New file.
46351         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46352         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46353         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46354         * doc/glibc-functions/pthread_getname_np.texi: New file.
46355         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46356         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46357         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46358         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46359         * doc/glibc-functions/pthread_setname_np.texi: New file.
46360         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46361         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46362         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46363         * doc/glibc-functions/qsort_r.texi: New file.
46364         * doc/glibc-functions/quick_exit.texi: New file.
46365         * doc/glibc-functions/syncfs.texi: New file.
46366         * doc/gnulib.texi: Include them.
46367         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46368         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46369         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46370         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46371         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46372         * doc/glibc-functions/execvpe.texi: Likewise.
46374 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46376         ftell: don't include <unistd.h>
46377         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46378         guaranteed to define off_t, and the ftell module depends on the
46379         stdio module.
46381         ftell: do not assume wraparound signed arithmetic
46382         * lib/ftell.c: Include <limits.h>.
46383         (ftell): Don't assume wraparound signed arithmetic.
46385 2011-07-24  Bruno Haible  <bruno@clisp.org>
46387         close: No longer depend on module 'fclose'.
46388         * modules/close (Depends-on): Remove fclose.
46389         * NEWS: Mention the change.
46390         Suggested by Sam Steingold <sds@gnu.org>.
46392 2011-07-24  Bruno Haible  <bruno@clisp.org>
46394         fsusage: Enable large volume support on AIX >= 5.2.
46395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46396         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46397         instead of STAT_STATVFS.
46398         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46400         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46401         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46402         f_blocks field only on MacOS X.
46404         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46406         * modules/fsusage (Depends-on): Add largefile.
46408 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46410         * README: Modernize discussion of signed integers.
46411         Assuming overflow wraparound is no longer safe.
46412         Mention ones' complement and signed magnitude.
46414 2011-07-22  Bruno Haible  <bruno@clisp.org>
46416         select tests, pselect tests: Refactor.
46417         * tests/test-select.h: New file, extracted from tests/test-select.c.
46418         (select_fn): New type.
46419         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46420         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46421         test_pipe): Add my_select argument.
46422         (test_function): Renamed from main. Add my_select argument.
46423         * tests/test-select.c: Move most code to tests/test-select.h. Include
46424         test-select.h.
46425         * modules/select-tests (Files): Add tests/test-select.h.
46426         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46427         (my_select, main): New functions.
46428         * modules/pselect-tests (Files): Add tests/test-select.h,
46429         tests/macros.h, tests/signature.h.
46430         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46431         (configure.ac): Check for <sys/wait.h>.
46433 2011-07-22  Bruno Haible  <bruno@clisp.org>
46435         sys_select tests: Check the signature of FD_*.
46436         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46437         signature tests from here...
46438         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46439         here.
46440         * modules/sys_select-tests (Files): Add tests/signature.h.
46442 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46444         largefile: new module, replacing large-inode
46445         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46446         * MODULES.html.sh: Add largefile, remove large-inode.
46447         * modules/largefile, m4/largefile.m4: New files.
46448         * modules/large-inode, m4/large-inode.m4: Remove.
46450         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46451         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46452         implementations that use only 32 bits to count blocks.
46453         On typical hosts with 1024-byte blocks, this fails with file
46454         systems as small as 4 TiB.  Problem reported by Herb Wartens
46455         <http://debbugs.gnu.org/9140> and this should also fix a similar
46456         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46458         large-inode: New module
46459         * MODULES.html.sh: Add it.
46460         * modules/large-inode, m4/large-inode.m4: New files.
46462         extensions: Enable extensions on MacOS X 10.5 and later.
46463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46465 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46467         file-has-acl: use acl_extended_file_nofollow if available
46468         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46469         (acl_extended_file): New macro.
46470         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46471         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46473 2011-07-21  Bruno Haible  <bruno@clisp.org>
46475         Declare system functions in a way that works with C++.
46476         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46477         declare fdopendir as extern "C".
46478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46479         declare frexpl as extern "C".
46480         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46481         declare gai_strerror as extern "C".
46482         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46483         programs, declare gai_strerror as extern "C".
46484         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46485         declare getlogin_r as extern "C".
46486         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46487         as extern "C".
46488         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46489         declare ldexpl as extern "C".
46490         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46491         as extern "C".
46492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46493         program, declare getmntinfo as extern "C".
46494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46495         stpncpy as extern "C".
46496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46497         program, declare __xpg_strerror_r as extern "C".
46498         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46499         strndup as extern "C".
46500         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46501         declare memset and bzero as extern "C".
46502         Reported by Sam Steingold <sds@gnu.org>.
46504 2011-07-12  Jim Meyering  <meyering@redhat.com>
46506         maint.mk: prohibit inclusion of "verify.h" without use
46507         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46509 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46511         timer-time: A new module to check for timer_settime()
46512         * m4/timer_time.m4: Check for the posix function.
46513         * modules/timer-time: Add the new module.
46514         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46515         Mention it.
46517 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46518             Bruno Haible  <bruno@clisp.org>
46520         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46521         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46522         not defined, assume POSIX threads and look for pthread_sigmask in
46523         $LIBS, without changing $CPPFLAGS.
46525 2011-07-19  Bruno Haible  <bruno@clisp.org>
46527         strstr: Update cross-compilation guess.
46528         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46529         CPUs, guess no, in view of glibc
46530         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46531         Suggested by Eric Blake. Reported by Reuben Thomas.
46533 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46535         getopt-gnu: suppress core dumps from detection code
46536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46537         to suppress core dumps that may well occur on glibc systems.
46538         * modules/getopt-gnu: Depend on nocrash.
46540 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46542         pthread_sigmask: ensure usleep is declared
46543         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46544         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46546 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46548         doc: Document NonStop portability issues.
46549         * doc/posix-functions/sigaction.texi (sigaction):
46550         * doc/posix-headers/signal.texi (signal.h):
46551         Document NonStop.  See Joachim Schmitz in
46552         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46554 2011-07-15  Bruno Haible  <bruno@clisp.org>
46556         ffsl, ffsll: Avoid unportable behaviour.
46557         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46559 2011-07-15  Bruno Haible  <bruno@clisp.org>
46561         ffs: More tests.
46562         * tests/test-ffs.c (NBITS): New macro.
46563         (main): Add more tests.
46564         * tests/test-ffsl.c (NBITS): New macro.
46565         (main): Add more tests.
46566         * tests/test-ffsll.c (NBITS): New macro.
46567         (main): Add more tests.
46569 2011-07-15  Eric Blake  <eblake@redhat.com>
46571         ffsl, ffsll: new modules
46572         * modules/ffsl: New file.
46573         * modules/ffsll: Likewise.
46574         * m4/ffsl.m4: Likewise.
46575         * m4/ffsll.m4: Likewise.
46576         * lib/ffsl.c: Likewise.
46577         * lib/ffsl.h: Likewise.
46578         * lib/ffsll.c: Likewise.
46579         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46580         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46581         * modules/string (Makefile.am): Substitute witnesses.
46582         * lib/strings.in.h (ffsl, ffsll): Declare.
46583         * modules/ffsl-tests: New test file.
46584         * modules/ffsll-tests: Likewise.
46585         * tests/test-ffsl.c: Likewise.
46586         * tests/test-ffsll.c: Likewise.
46587         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46588         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46589         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46591         ffs: fix m4 prerequisite
46592         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46594         ffs: avoid undefined behavior
46595         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46596         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46597         Reported by Bruno Haible.
46599 2011-07-12  Bruno Haible  <bruno@clisp.org>
46601         pthread_sigmask: Rely on module 'threadlib'.
46602         * modules/pthread_sigmask (Depends-on): Add threadlib.
46603         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46604         is defined.
46606 2011-07-12  Bruno Haible  <bruno@clisp.org>
46608         regex: Depend on module 'strcase'.
46609         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46611 2011-07-12  Jim Meyering  <meyering@redhat.com>
46613         warn-on-use: fix typo in file name
46614         * modules/snippet/warn-on-use (Files): Correct file name:
46615         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46617 2011-07-12  Bruno Haible  <bruno@clisp.org>
46619         strings: Document module.
46620         * doc/posix-headers/strings.texi: Mention module 'strings'.
46622 2011-07-12  Bruno Haible  <bruno@clisp.org>
46624         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46625         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46626         (Files, Makefile.am): Update.
46627         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46628         * modules/stdlib (Depends-on): Update.
46630 2011-07-12  Bruno Haible  <bruno@clisp.org>
46632         * NEWS: Mention the changes.
46634         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46635         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46636         (Files, Makefile.am): Update.
46637         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46638         * modules/arpa_inet (Depends-on): Update.
46639         * modules/ctype (Depends-on): Update.
46640         * modules/dirent (Depends-on): Update.
46641         * modules/fcntl-h (Depends-on): Update.
46642         * modules/glob (Depends-on): Update.
46643         * modules/iconv-h (Depends-on): Update.
46644         * modules/inttypes-incomplete (Depends-on): Update.
46645         * modules/langinfo (Depends-on): Update.
46646         * modules/locale (Depends-on): Update.
46647         * modules/math (Depends-on): Update.
46648         * modules/netdb (Depends-on): Update.
46649         * modules/poll-h (Depends-on): Update.
46650         * modules/pty (Depends-on): Update.
46651         * modules/search (Depends-on): Update.
46652         * modules/signal (Depends-on): Update.
46653         * modules/spawn (Depends-on): Update.
46654         * modules/stdio (Depends-on): Update.
46655         * modules/stdlib (Depends-on): Update.
46656         * modules/string (Depends-on): Update.
46657         * modules/strings (Depends-on): Update.
46658         * modules/sys_file (Depends-on): Update.
46659         * modules/sys_ioctl (Depends-on): Update.
46660         * modules/sys_select (Depends-on): Update.
46661         * modules/sys_socket (Depends-on): Update.
46662         * modules/sys_stat (Depends-on): Update.
46663         * modules/sys_time (Depends-on): Update.
46664         * modules/sys_times (Depends-on): Update.
46665         * modules/sys_utsname (Depends-on): Update.
46666         * modules/sys_wait (Depends-on): Update.
46667         * modules/termios (Depends-on): Update.
46668         * modules/time (Depends-on): Update.
46669         * modules/unistd (Depends-on): Update.
46670         * modules/wchar (Depends-on): Update.
46671         * modules/wctype-h (Depends-on): Update.
46672         * MODULES.html.sh (Support for building libraries and executables):
46673         Update.
46675         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46676         * modules/snippet/unused-parameter: Renamed from
46677         modules/unused-parameter.
46678         (Files, Makefile.am): Update.
46679         * build-aux/snippet/unused-parameter.h: Renamed from
46680         build-aux/unused-parameter.h.
46681         * modules/selinux-h (Depends-on): Update.
46682         * modules/unistr/base (Depends-on): Update.
46683         * MODULES.html.sh (Core language properties): Update.
46685         Rename module 'link-warning' to 'snippet/link-warning'.
46686         * modules/snippet/link-warning: Renamed from modules/link-warning.
46687         (Files, Makefile.am): Update.
46688         * build-aux/snippet/link-warning.h: Renamed from
46689         build-aux/link-warning.h.
46690         * MODULES.html.sh (Support for building libraries and executables):
46691         Update.
46693         Rename module 'c++defs' to 'snippet/c++defs'.
46694         * modules/snippet/c++defs: Renamed from modules/c++defs.
46695         (Files, Makefile.am): Update.
46696         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46697         * modules/arpa_inet (Depends-on): Update.
46698         * modules/ctype (Depends-on): Update.
46699         * modules/dirent (Depends-on): Update.
46700         * modules/fcntl-h (Depends-on): Update.
46701         * modules/glob (Depends-on): Update.
46702         * modules/iconv-h (Depends-on): Update.
46703         * modules/langinfo (Depends-on): Update.
46704         * modules/locale (Depends-on): Update.
46705         * modules/math (Depends-on): Update.
46706         * modules/netdb (Depends-on): Update.
46707         * modules/poll-h (Depends-on): Update.
46708         * modules/pty (Depends-on): Update.
46709         * modules/search (Depends-on): Update.
46710         * modules/signal (Depends-on): Update.
46711         * modules/spawn (Depends-on): Update.
46712         * modules/stdio (Depends-on): Update.
46713         * modules/stdlib (Depends-on): Update.
46714         * modules/string (Depends-on): Update.
46715         * modules/strings (Depends-on): Update.
46716         * modules/sys_ioctl (Depends-on): Update.
46717         * modules/sys_select (Depends-on): Update.
46718         * modules/sys_socket (Depends-on): Update.
46719         * modules/sys_stat (Depends-on): Update.
46720         * modules/sys_time (Depends-on): Update.
46721         * modules/sys_wait (Depends-on): Update.
46722         * modules/termios (Depends-on): Update.
46723         * modules/time (Depends-on): Update.
46724         * modules/unistd (Depends-on): Update.
46725         * modules/wchar (Depends-on): Update.
46726         * modules/wctype-h (Depends-on): Update.
46728         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46729         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46730         (Files, Makefile.am): Update.
46731         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46732         * modules/argv-iter (Depends-on): Update.
46733         * modules/arpa_inet (Depends-on): Update.
46734         * modules/dirent (Depends-on): Update.
46735         * modules/fcntl-h (Depends-on): Update.
46736         * modules/fnmatch (Depends-on): Update.
46737         * modules/getopt-posix (Depends-on): Update.
46738         * modules/glob (Depends-on): Update.
46739         * modules/iconv-h (Depends-on): Update.
46740         * modules/inttypes-incomplete (Depends-on): Update.
46741         * modules/locale (Depends-on): Update.
46742         * modules/math (Depends-on): Update.
46743         * modules/netdb (Depends-on): Update.
46744         * modules/search (Depends-on): Update.
46745         * modules/signal (Depends-on): Update.
46746         * modules/spawn (Depends-on): Update.
46747         * modules/stdio (Depends-on): Update.
46748         * modules/stdlib (Depends-on): Update.
46749         * modules/string (Depends-on): Update.
46750         * modules/strings (Depends-on): Update.
46751         * modules/sys_socket (Depends-on): Update.
46752         * modules/sys_stat (Depends-on): Update.
46753         * modules/sys_time (Depends-on): Update.
46754         * modules/sys_times (Depends-on): Update.
46755         * modules/sys_utsname (Depends-on): Update.
46756         * modules/time (Depends-on): Update.
46757         * modules/unistd (Depends-on): Update.
46758         * modules/wchar (Depends-on): Update.
46759         * MODULES.html.sh (Support for building libraries and executables):
46760         Update.
46762 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46764         Improvements on _Noreturn and related modules.
46766         modules/_Exit-tests: test _Noreturn too
46767         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46768         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46769         (main): Use them.
46771         stdnoreturn, stdnoreturn-tests: remove modules
46772         They're not needed here and a bit premature for use elsewhere.  See
46773         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46774         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46775         * tests/test-stdnoreturn.c: Remove files.
46776         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46777         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46778         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46779         and using noreturn.
46780         * modules/openat, modules/sigpipe-die, modules/xalloc:
46781         * modules/xmemdup0, modules/xstrtol:
46782         Remove dependency on stdnoreturn.
46784         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46785         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46786         Reparenthesize to avoid GCC warning.
46787         Support Microsoft's syntax.
46788         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46790         _Noreturn-tests: remove module
46791         * modules/_Noreturn-tests: Remove.
46792         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46793         * tests/test-_Noreturn.c: Remove.
46794         * tests/test-stdnoreturn.c: Merge from the old
46795         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46797 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46799         _Noreturn, stdnoreturn, and related modules.
46801         * top/maint.mk: Adjust to new noreturn support.
46802         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46803         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46805         xalloc: use stdnoreturn.h
46806         * lib/xalloc.h: Include <stdnoreturn.h>.
46807         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46808         * modules/xalloc (Depends-on): Add stdnoreturn.
46810         xstrtol: use stdnoreturn.h
46811         * lib/xstrtol.h: Include <stdnoreturn.h>.
46812         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46813         * modules/xstrtol (Depends-on): Add stdnoreturn.
46815         xmemdup0: use stdnoreturn.h
46816         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46817         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46818         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46820         sigpipe-die: use stdnoreturn.h
46821         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46822         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46823         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46825         openat: use stdnoreturn.h
46826         * lib/openat.h: Include <stdnoreturn.h>.
46827         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46828         * modules/openat (Depends-on): Add stdnoreturn.
46830         * lib/openat-die.c (openat_save_fail): Modernize comment.
46832         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46834         * lib/glthread/thread.h: Modernize comment.
46836         obstack: use _Noreturn
46837         * lib/obstack.c (__attribute__): Remove macro.
46838         (print_and_abort): Use _Noreturn.
46840         c-stack: use _Noreturn
46841         * lib/c-stack.c (die, overflow_handler, segv_handler):
46842         Use _Noreturn rather than __attribute__((noreturn)).
46844         argmatch-tests, exclude_tests: use _Noreturn
46845         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46846         Remove.
46847         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46849         stdlib: use _Noreturn
46850         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46851         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46852         * modules/stdlib (Depends-on): Add _Noreturn.
46853         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46855         stdnoreturn-tests: new module
46856         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46858         stdnoreturn: new module
46859         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46860         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46862         _Noreturn-tests: new module
46863         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46865         _Noreturn: new module
46866         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46867         New section, mentioning it.
46868         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46870         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46872 2011-07-11  Eric Blake  <eblake@redhat.com>
46874         ffs: new module
46875         * modules/ffs: New file.
46876         * m4/ffs.m4: Likewise.
46877         * lib/ffs.c: Likewise.
46878         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46879         * modules/strings (Makefile.am): Substitute witness.
46880         (Depends-on): Add c++defs.
46881         * lib/strings.in.h (ffs): Declare.
46882         * modules/ffs-tests: New test file.
46883         * tests/test-ffs.c: Test new module.
46884         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46885         * doc/posix-functions/ffs.texi (ffs): Likewise.
46887         regex: avoid compiler warning
46888         * lib/regex.c (includes): Include <strings.h>, for use of
46889         strcasecmp in regcomp.c.
46890         Reported by Joachim Schmitz.
46892 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46894         stdint: respect system's intmax_t if INTMAX_MAX
46895         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46896         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46897         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46898         long but int64_t is long long, and where we will clash with the
46899         system intmax_t if we override it.  See
46900         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46901         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46902         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46903         similarly for UINTMAX_C.
46905 2011-07-08  Bruno Haible  <bruno@clisp.org>
46907         pthread_sigmask tests: Avoid a compiler warning.
46908         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46909         non-zero.
46911         sigprocmask tests: A better way to avoid a compiler warning.
46912         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46913         (main): Complain if system() returns non-zero.
46914         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46916 2011-07-08  Bruno Haible  <bruno@clisp.org>
46918         pthread_sigmask: Work around IRIX bug.
46919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46920         bug.
46921         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46922         there may be unblocked pending signals.
46923         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46925 2011-07-08  Bruno Haible  <bruno@clisp.org>
46927         pthread_sigmask: Work around Cygwin bug.
46928         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46929         bug.
46930         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46931         the system's pthread_sigmask function.
46932         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46934 2011-07-08  Bruno Haible  <bruno@clisp.org>
46936         pthread_sigmask: Work around bug in single-threaded implementation.
46937         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46938         FreeBSD, HP-UX, Solaris bug.
46939         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46940         * lib/pthread_sigmask.c: Include <stddef.h>.
46941         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46942         the system's pthread_sigmask function.
46943         * modules/pthread_sigmask (configure.ac): Invoke
46944         gl_PREREQ_PTHREAD_SIGMASK.
46945         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46946         HP-UX, Solaris.
46948 2011-07-08  Eric Blake  <eblake@redhat.com>
46950         test-sigprocmask: avoid compiler warning
46951         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46952         * tests/test-sigprocmask.c (main): Use it to silence warning.
46953         Reported by Jim Meyering.
46955         test-snprintf: avoid compiler warning
46956         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46957         * tests/test-vsnprintf.c (main): Likewise.
46958         Reported by Jim Meyering.
46960 2011-07-08  Bruno Haible  <bruno@clisp.org>
46962         Tests for module 'pthread_sigmask'.
46963         * modules/pthread_sigmask-tests: New file.
46964         * tests/test-pthread_sigmask1.c: New file, based on
46965         tests/test-sigprocmask.c.
46966         * tests/test-pthread_sigmask2.c: New file.
46968 2011-07-08  Jim Meyering  <meyering@redhat.com>
46970         test-getopt.h: avoid warning about an unused variable
46971         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
46973 2011-07-07  Jim Meyering  <meyering@redhat.com>
46975         maint: reduce list of files exempt from sc_prohibit_leading_TABs
46976         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
46977         now that it no longer contains leading TABs.
46978         Remove unused "url=FIXME" statement.
46980 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46982         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
46983         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46984         When gl_THREADLIB is not in use, assume that the POSIX sematics
46985         are desired.  This is better for Emacs, which uses POSIX semantics
46986         on GNUish and/or POSIXish platforms, and does not use threads at
46987         all otherwise.
46989         pthread_sigmask: fix typo when testing for libraries
46990         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46991         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
46993 2011-07-08  Eric Blake  <eblake@redhat.com>
46995         fts: introduce FTS_NOATIME
46996         * lib/fts_.h (FTS_NOATIME): New bit flag.
46997         (FTS_OPTIONMASK): Adjust.
46998         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
46999         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47001 2011-07-08  Bruno Haible  <bruno@clisp.org>
47003         Tests for module 'thread'.
47004         * modules/thread-tests: New file.
47005         * tests/test-thread_self.c: New file.
47006         * tests/test-thread_create.cc: New file.
47008 2011-07-08  Bruno Haible  <bruno@clisp.org>
47010         thread: Avoid gcc warnings when using gl_thread_self().
47011         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47012         'void *'.
47013         (gl_thread_self_pointer): Update.
47015 2011-07-07  Bruno Haible  <bruno@clisp.org>
47017         signal-c++-tests: Check declaration of pthread_sigmask.
47018         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47019         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47020         $(LIB_PTHREAD_SIGMASK).
47022 2011-07-07  Bruno Haible  <bruno@clisp.org>
47024         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47025         * lib/signal.in.h (pthread_sigmask): Override if
47026         REPLACE_PTHREAD_SIGMASK is 1.
47027         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47028         REPLACE_PTHREAD_SIGMASK.
47029         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47030         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47031         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47032         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47033         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47035 2011-07-07  Bruno Haible  <bruno@clisp.org>
47037         pthread_sigmask: Ensure declaration in <signal.h>.
47038         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47039         include <pthread.h>.
47040         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47041         problem.
47043 2011-07-07  Bruno Haible  <bruno@clisp.org>
47045         pthread_sigmask: Document the module.
47046         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47048 2011-07-07  Bruno Haible  <bruno@clisp.org>
47050         pthread_sigmask: Follow gnulib conventions.
47051         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47052         gl_PTHREAD_SIGMASK.
47053         * modules/pthread_sigmask (configure.ac): Update.
47055 2011-07-07  Bruno Haible  <bruno@clisp.org>
47057         pthread_sigmask: Make declaration C++ safe.
47058         * lib/signal.in.h: In two special conditions, just do an #include_next.
47059         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47060         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47061         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47062         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47063         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47064         not REPLACE_PTHREAD_MASK.
47065         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47066         not REPLACE_PTHREAD_MASK.
47067         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47069 2011-07-07  Bruno Haible  <bruno@clisp.org>
47071         pthread_sigmask: Fix return value.
47072         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47073         * lib/pthread_sigmask.c: New file.
47074         * modules/pthread_sigmask (Files): Add it.
47075         (configure.ac): Invoke AC_LIBOBJ.
47077 2011-07-07  Eric Blake  <eblake@redhat.com>
47079         getopt: more portable argv creation
47080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
47081         const, use char arrays rather than strings.
47082         Suggested by Paul Eggert.
47084 2011-07-07  Bruno Haible  <bruno@clisp.org>
47086         Tests for module 'sigprocmask'.
47087         * modules/sigprocmask-tests: New file.
47088         * tests/test-sigprocmask.c: New file.
47090 2011-07-07  Bruno Haible  <bruno@clisp.org>
47092         float tests: Tweak.
47093         * tests/test-float.c (main): Tweak skip message.
47095 2011-07-07  Eric Blake  <eblake@redhat.com>
47097         getopt: avoid compiler warning during configure
47098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
47099         assigning string literals to non-const pointer.
47101         getopt-gnu: avoid crash in glibc getopt
47102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
47103         * tests/test-getopt.h (test_getopt): Enhance test.
47104         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47105         * doc/posix-functions/getopt.texi (getopt): Document it.
47106         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47107         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47108         Likewise.
47110 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47112         getopt: handle W; without long options in getopt [BZ #12922]
47113         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47114         but no long options are defined, just return 'W'.
47116 2011-07-07  Bruno Haible  <bruno@clisp.org>
47118         Avoid literal tabs.
47119         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47120         variable containing a tab instead of a literal tab.
47121         Reported by Jim Meyering.
47123 2011-07-07  Bruno Haible  <bruno@clisp.org>
47125         Comments.
47126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47128 2011-07-06  Bruno Haible  <bruno@clisp.org>
47130         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47131         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47132         <winsock2.h>.
47133         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47134         lib/sys_socket.in.h.
47135         (close, gethostname): Hide declarations from <winsock2.h>.
47136         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47137         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47138         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47139         (select): Don't override if gnulib's <sys/select.h> was already
47140         included.
47141         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47142         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47143         setsockopt, shutdown, select): Tweak indentation.
47145 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47147         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47148         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47149         in an application that does not use the sys_select module.
47151 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47153         poll: do not return 0 on timeout=-1
47154         * lib/poll.c: Loop with yield if no events occurred.
47156 2011-07-06  Eric Blake  <eblake@redhat.com>
47158         pthread_sigmask: always replace when not using pthread
47159         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47160         replacement when using some threading other than pthread.  Fix
47161         logic bug.
47163 2011-07-06  Bruno Haible  <bruno@clisp.org>
47165         Comments.
47166         * m4/printf.m4: Update comments about mingw.
47168 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47170         sys_select: define sigset_t more portably
47171         * lib/sys_select.in.h: Always include <sys/types.h>, since
47172         we now need sigset_t and mingw defines it there.
47173         Include <signal.h> before split inclusion guard, to avoid
47174         mishaps on Solaris, whose <signal.h> eventually includes us.
47175         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47176         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47177         which come from ...
47178         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47179         gl_CHECK_TYPE_SIGSET_T.
47180         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47181         does the real work.
47182         * modules/sys_select (Depends-on): Add 'signal'.
47184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47185         Suggested by Bruno Haible.
47187         pselect: Use pthread_sigmask, not sigprocmask.
47188         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47189         multithreaded apps better than sigprocmask does.
47190         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47191         sigprocmask directly.
47193 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47195         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47196         Don't #undef,  since we don't need any underlying pselect.
47197         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47198         (Depends-on): Add select.
47199         (Link): Add $(LIBSOCKET).
47200         These changes suggested by Bruno Haible.
47202         pselect: document better
47203         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47204         * doc/posix-functions/pselect.texi (pselect): Document new module.
47206         pthread_sigmask: new module
47207         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47208         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47209         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47210         This is done only as a macro; I don't know how well that'll
47211         work for C++.  Move <sys/types.h> include before the include_next,
47212         to avoid mishap on Solaris.
47213         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47214         * modules/signal (Makefile.am): Substitute the check's results.
47215         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47217         test-pselect: new module
47218         * modules/pselect-tests, tests/test-pselect.c: New files.
47219         * tests/test-select.c, tests/test-sys_select-c++.cc:
47220         If TEST_PSELECT is defined, test pselect instead of testing select.
47222         * tests/test-sys_select.c (sigset_t): Test for it, too.
47223         Suggested by Bruno Haible.
47225 2011-07-05  Eric Blake  <eblake@redhat.com>
47227         snprintf: guarantee %1$d, for libintl
47228         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47229         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47230         * doc/posix-functions/snprintf.texi (snprintf): Update.
47231         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47232         * tests/test-snprintf.c (main): Enhance test.
47233         * tests/test-vsnprintf.c (main): Likewise.
47235 2011-07-05  Jim Meyering  <meyering@redhat.com>
47237         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47238         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47239         per Bruno's request, to accommodate this idiom (no space after "#")
47240         even when the function is inside an #if block:
47241         char *
47242         gets (char *s)
47243         #undef gets
47244         {
47245           ...
47246         }
47248 2011-07-04  Jim Meyering  <meyering@redhat.com>
47250         maint: indent with spaces, not TABs, and add a rule to check this
47251         * tests/test-userspec.c: Indent with spaces, not TABs.
47252         * tests/test-argp.c: Likewise.
47253         * tests/test-c-stack2.sh: Likewise.
47254         * tests/test-parse-duration.sh: Likewise
47255         * m4/strtod.m4: Likewise.
47256         * m4/alloca.m4: Likewise.
47257         * m4/pselect.m4: Likewise.
47258         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47260 2011-07-03  Jim Meyering  <meyering@redhat.com>
47262         maint.mk: correct omissions in prohibit_argmatch_without_use check
47263         This rule would mistakenly report that argmatch.h is included without
47264         use even when both the argmatch and invalid_arg macro were used.
47265         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47266         of argmatch and invalid_arg.
47268 2011-07-03  Bruno Haible  <bruno@clisp.org>
47270         Comments about EINTR.
47271         * lib/safe-read.h: Explain the purpose of this module.
47272         * lib/safe-write.h: Likewise.
47273         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47274         module.
47275         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47276         module.
47277         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47279 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47281         xnanosleep: Rewrite to use new dtotimespec module.
47282         It has the conversion code that used to be in xnanosleep.
47283         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47284         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47285         (TIME_T_MAX): Remove.
47286         (xnanosleep): Rewrite in terms of dtotimespec.
47287         * modules/xnanosleep (Depends-on): Add dtotimespec.
47288         Remove intprops, stdbool.
47290         timespec-add, timespec-sub: new modules
47291         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47292         * lib/timespec-add.c, lib/timespec-sub.c:
47293         * modules/timespec-add, modules/timespec-sub: New files.
47295         dtotimespec: new module
47296         * lib/timespec.h (dtotimespec): New decl.
47297         * lib/dtotimespec.c, modules/dtotimespec: New files.
47299         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47301         pselect: new module
47302         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47303         (pselect): New decls.
47304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47305         since the standard pselect decl uses 'restrict'.
47306         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47307         HAVE_PSELECT, REPLACE_PSELECT.
47308         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47309         HAVE_PSELECT, REPLACE_PSELECT.
47310         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47312         sys_select: don't depend on sys_socket
47313         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47314         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47315         This fix works on GNU and GNU-like platforms, but has not been tested
47316         on native Windows.
47317         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47319         gl_HEADER_SYS_SOCKET.
47320         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47321         gl_PREREQ_SYS_H_WINSOCK2.
47323 2011-06-29  Eric Blake  <eblake@redhat.com>
47325         pipe2: fix C89 compile problem
47326         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47327         Reported by Bruno Haible.
47329         pipe, pipe2: don't corrupt fd on error
47330         * lib/pipe.c (pipe): Leave fd unchanged on error.
47331         * lib/pipe2.c (pipe2): Likewise.
47332         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47333         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47335 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47337         mmap-anon: do not use regular expressions inadvertently
47338         * m4/mmap-anon.m4: Remove trailing period from strings sought
47339         in the output.
47341 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47343         nanosleep: fix integer overflow problem
47344         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47345         arithmetic wraps around on overflow.
47347         nanosleep: simplify carrying
47348         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47349         first call to the underyling nanosleep, not for the last one.
47350         This doesn't fix any bugs, but it simplifies the computation of
47351         the remaining delay.  Found while auditing integer overflow issues.
47353         dup2: remove test for existence of fcntl
47354         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47355         "#if HAVE_FCNTL", in the configure-time test program.
47356         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47357         and therefore speeds up "configure" a bit.  Found while
47358         adding the dup2 module to Emacs.
47360 2011-06-24  Eric Blake  <eblake@redhat.com>
47362         maint.mk: enhance useless header checks
47363         * top/maint.mk (_sc_header_without_use): Check both include
47364         styles.
47365         (sc_prohibit_assert_without_use)
47366         (sc_prohibit_close_stream_without_use)
47367         (sc_prohibit_getopt_without_use)
47368         (sc_prohibit_quotearg_without_use)
47369         (sc_prohibit_quote_without_use)
47370         (sc_prohibit_long_options_without_use)
47371         (sc_prohibit_inttostr_without_use)
47372         (sc_prohibit_ignore_value_without_use)
47373         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47374         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47375         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47376         (sc_prohibit_hash_pjw_without_use)
47377         (sc_prohibit_safe_read_without_use)
47378         (sc_prohibit_argmatch_without_use)
47379         (sc_prohibit_canonicalize_without_use)
47380         (sc_prohibit_root_dev_ino_without_use)
47381         (sc_prohibit_openat_without_use)
47382         (sc_prohibit_c_ctype_without_use)
47383         (sc_prohibit_signal_without_use)
47384         (sc_prohibit_stdio--_without_use)
47385         (sc_prohibit_stdio-safer_without_use)
47386         (sc_prohibit_strings_without_use)
47387         (sc_prohibit_intprops_without_use)
47388         (sc_prohibit_stddef_without_use)
47389         (sc_prohibit_xfreopen_without_use): Update clients.
47391 2011-06-24  Jim Meyering  <meyering@redhat.com>
47393         syntax-check: keep one maint.mk rule in sync with its header
47394         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47395         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47396         I prefer to avoid temporary files here, so use <(...), but that
47397         is not supported by /bin/sh, so...
47398         (SHELL): Define to /bin/bash.
47400 2011-06-24  Eric Blake  <eblake@redhat.com>
47402         maint.mk: update sc_prohibit_intprops_without_use
47403         * top/maint.mk (_intprops_names): Match recent changes.
47405 2011-06-24  Bruno Haible  <bruno@clisp.org>
47407         strerror-override: No-op tweak.
47408         * lib/strerror-override.h (strerror_override): Reorder conditions,
47409         for consistency with lib/strerror-override.c.
47411 2011-06-23  Eric Blake  <eblake@redhat.com>
47413         maint.mk: test further PATH_MAX issues
47414         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47415         (sc_prohibit_path_max_allocation): ...and also test alloca.
47416         Suggested by Jim Meyering.
47418 2011-06-22  Eric Blake  <eblake@redhat.com>
47420         maint.mk: add syntax-check to avoid char[PATH_MAX]
47421         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47423         stat: be robust to PATH_MAX definition
47424         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47425         * modules/stat (Depends-on): Add verify.
47427         link: work around IRIX bug
47428         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47429         * lib/link.c (rpl_link): Work around it.
47430         * tests/test-link.h (test_link): Enhance test.
47431         * doc/posix-functions/link.texi (link): Document the bug.
47433         getopt: silence clang warning
47434         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47435         dereference.
47436         Reported by Gustavo Martin Domato.
47438 2011-06-22  Jim Meyering  <meyering@redhat.com>
47440         bootstrap: do not insert a blank line into each .gitignore file
47441         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47443 2011-06-21  Eric Blake  <eblake@redhat.com>
47445         perror: test for output mismatch
47446         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47447         perror on IRIX.
47449         strerror_r: fix OpenBSD behavior on out-of-range
47450         * lib/strerror_r.c (strerror_r): Always use maximal string.
47451         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47453         strerror_r: fix OpenBSD behavior on 0
47454         * lib/strerror-override.c (strerror_override): Also override 0
47455         when needed.
47456         * lib/strerror-override.h (strerror_override): Likewise.
47457         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47458         earlier.
47459         * lib/strerror_r.c (strerror_r): Likewise.
47460         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47461         behavior...
47462         (gl_FUNC_STRERROR_0): ...into new macro.
47463         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47464         is overridden.
47465         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47466         * modules/strerror-override (Files): Add strerror.m4.
47467         (configure.ac): Also provide override for 0 when needed.
47468         * doc/posix-functions/strerror.texi (strerror): Document this.
47469         * doc/posix-functions/perror.texi (perror): Likewise.
47471         perror: adjust array size
47472         * modules/perror (Depends-on): Add strerror-override.
47473         * lib/perror.c (perror): Use it to avoid magic number.
47475         strerror-override: reduce size
47476         * lib/strerror-override.c (strerror_override): Use fewer lines.
47478 2011-06-20  Bruno Haible  <bruno@clisp.org>
47480         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47481         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47483 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47485         alloca: port to compilers that can optimize like GCC 4.6.0
47486         * lib/alloca.c (find_stack_direction): New signature, taken from
47487         Autoconf git.  This works with GCC 4.6.0.  This code should never
47488         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47489         be used with other compilers that optimize as well as GCC 4.6.0 does.
47490         (alloca): Adjust to new signature.
47491         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47492         New macro, which patches Autoconf in a similar way.
47494         c-stack: stop worrying about stack direction
47495         * lib/c-stack.c (find_stack_direction): Remove.
47496         (segv_handler): Don't worry about stack direction growth, as it's
47497         too much of a pain to configure this correctly, given how compilers
47498         are optimizing-away our stack-growth detection code.  Instead, assume
47499         that any access to just before or just after the stack is OK.
47500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47501         Don't require AC_FUNC_ALLOCA; no longer needed.
47503 2011-06-20  Eric Blake  <eblake@redhat.com>
47505         test-stat: don't allocate PATH_MAX bytes
47506         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47507         PATH_MAX-sized buffer.
47508         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47509         * modules/stat-tests (Depends-on): Likewise.
47510         * tests/test-fstatat.c (includes): Drop pathmax.h.
47511         * tests/test-stat.c (includes): Likewise.
47512         Reported by Bruno Haible.
47514 2011-06-20  Bruno Haible  <bruno@clisp.org>
47516         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47517         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47518         * lib/float.c: New file.
47519         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47520         REPLACE_FLOAT_LDBL.
47521         * modules/float (Files): Add lib/float.c.
47522         (configure.ac): Invoke AC_LIBOBJ.
47523         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47525 2011-06-20  Bruno Haible  <bruno@clisp.org>
47527         Tests for module 'float'.
47528         * modules/float-tests: New file.
47529         * tests/test-float.c: New file.
47531 2011-06-19  Bruno Haible  <bruno@clisp.org>
47533         isinf: Coding style.
47534         * lib/isinf.c: Use GNU coding style.
47536 2011-06-19  Bruno Haible  <bruno@clisp.org>
47538         linkat test: Avoid test failure on AIX 7.1.
47539         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47540         * tests/test-link.h (test_link): Likewise.
47542 2011-06-19  Bruno Haible  <bruno@clisp.org>
47544         pread test: Avoid test failure on OpenBSD 4.9.
47545         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47547 2011-06-19  Bruno Haible  <bruno@clisp.org>
47549         sprintf-posix: Fix test failure on AIX 7.1.
47550         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47551         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47552         on AIX.
47553         * doc/posix-functions/fprintf.texi: Likewise.
47554         * doc/posix-functions/printf.texi: Likewise.
47555         * doc/posix-functions/snprintf.texi: Likewise.
47556         * doc/posix-functions/sprintf.texi: Likewise.
47557         * doc/posix-functions/vdprintf.texi: Likewise.
47558         * doc/posix-functions/vfprintf.texi: Likewise.
47559         * doc/posix-functions/vprintf.texi: Likewise.
47560         * doc/posix-functions/vsnprintf.texi: Likewise.
47561         * doc/posix-functions/vsprintf.texi: Likewise.
47563 2011-06-19  Bruno Haible  <bruno@clisp.org>
47565         roundl-ieee: Fix test failure on AIX 7.1.
47566         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47567         * doc/posix-functions/roundl.texi: Mention problem with negative
47568         arguments.
47570 2011-06-19  Bruno Haible  <bruno@clisp.org>
47572         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47573         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47574         * doc/posix-functions/round.texi: Mention problem with negative
47575         arguments.
47576         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47578 2011-06-19  Bruno Haible  <bruno@clisp.org>
47580         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47581         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47582         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47583         * doc/posix-functions/roundf.texi: Mention problem with negative
47584         arguments.
47585         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47587 2011-06-19  Bruno Haible  <bruno@clisp.org>
47589         ceilf-ieee: Work around bug on MacOS X 10.5.
47590         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47592         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47593         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47594         IEEE compliant, avoid compiler optimizations.
47595         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47596         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47597         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47598         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47599         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47600         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47603         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47604         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47606 2011-06-19  Bruno Haible  <bruno@clisp.org>
47608         ceilf-ieee: Work around bug on AIX 7.1.
47609         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47610         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47612 2011-06-19  Bruno Haible  <bruno@clisp.org>
47614         ceil-ieee: Work around bug on AIX 7.1.
47615         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47616         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47618 2011-06-18  Bruno Haible  <bruno@clisp.org>
47620         fsync test: Avoid test failure on MacOS X and AIX.
47621         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47622         EINVAL.
47624 2011-06-18  Bruno Haible  <bruno@clisp.org>
47626         openat, fdopendir tests: Fix link errors.
47627         * modules/openat-tests (Depends-on): Add progname.
47628         * modules/fdopendir-tests (Depends-on): Likewise.
47629         * tests/test-fchownat.c: Include progname.h.
47630         (main): Call set_program_name.
47631         * tests/test-fstatat.c: Include progname.h.
47632         (main): Call set_program_name.
47633         * tests/test-mkdirat.c: Include progname.h.
47634         (main): Call set_program_name.
47635         * tests/test-openat.c: Include progname.h.
47636         (main): Call set_program_name.
47637         * tests/test-unlinkat.c: Include progname.h.
47638         (main): Call set_program_name.
47639         * tests/test-fdopendir.c: Include progname.h.
47640         (main): Call set_program_name.
47642 2011-06-18  Bruno Haible  <bruno@clisp.org>
47644         Doc update.
47645         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47646         HP-UX.
47647         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47649 2011-06-18  Bruno Haible  <bruno@clisp.org>
47651         getcwd tests: Avoid compilation error on HP-UX 11.31.
47652         * modules/getcwd-tests (Depends-on): Add pathmax.
47653         * tests/test-getcwd.c: Include pathmax.h.
47655 2011-06-18  Bruno Haible  <bruno@clisp.org>
47657         isfinite, isinf: Fix link error on AIX 6 and 7.
47658         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47659         needed, also test the macro with a 'float' argument.
47660         * m4/isinf.m4 (gl_ISINF): Likewise.
47662 2011-06-18  Bruno Haible  <bruno@clisp.org>
47664         getloadavg: Don't clobber LIBS. Regression from previous commit.
47665         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47666         AC_CHECK_LIB from here...
47667         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47668         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47669         gl_func_getloadavg_done.
47670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47672 2011-06-18  Bruno Haible  <bruno@clisp.org>
47674         clean-temp: Improve documentation.
47675         * lib/clean-temp.h: Explain better how to use this module.
47676         Reported by John Darrington <john@darrington.wattle.id.au>.
47678 2011-06-17  Bruno Haible  <bruno@clisp.org>
47680         pread, pwrite: Avoid cc warning on AIX.
47681         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47682         (pwrite): Likewise.
47684 2011-06-17  Bruno Haible  <bruno@clisp.org>
47686         spawn-pipe tests: Fix link error.
47687         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47690 2011-06-17  Bruno Haible  <bruno@clisp.org>
47692         Tests: Remove unnecessary dependency.
47693         * modules/canonicalize-tests (Depends-on): Remove progname.
47694         * modules/chown-tests (Depends-on): Likewise.
47695         * modules/dirname-tests (Depends-on): Likewise.
47696         * modules/fdopendir-tests (Depends-on): Likewise.
47697         * modules/fdutimensat-tests (Depends-on): Likewise.
47698         * modules/hash-tests (Depends-on): Likewise.
47699         * modules/lchown-tests (Depends-on): Likewise.
47700         * modules/linkat-tests (Depends-on): Likewise.
47701         * modules/renameat-tests (Depends-on): Likewise.
47702         * modules/spawn-pipe-tests (Depends-on): Likewise.
47703         * modules/utimensat-tests (Depends-on): Likewise.
47705 2011-06-17  Bruno Haible  <bruno@clisp.org>
47707         spawn-pipe tests: Fix link error.
47708         * tests/test-spawn-pipe-child.c: Undefine fflush.
47710 2011-06-17  Bruno Haible  <bruno@clisp.org>
47712         Fix tests link errors.
47713         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47714         * modules/chown-tests (Makefile.am): Don't link test-chown with
47715         LIBINTL.
47716         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47717         LIBINTL.
47718         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47719         LIBINTL.
47720         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47721         LIBINTL.
47723 2011-06-16  Bruno Haible  <bruno@clisp.org>
47725         crypto/gc-sha1: Fix recent regression.
47726         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47727         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47729         crypto/gc-md5: Fix recent regression.
47730         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47732         crypto/gc-md4: Fix recent regression.
47733         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47734         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47736         crypto/gc-arctwo: Fix recent regression.
47737         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47738         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47740         crypto/gc-rijndael: Fix recent regression.
47741         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47742         (configure.ac): Invoke AC_LIBOBJ here.
47743         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47746         crypto/gc-hmac-sha1: Fix recent regression.
47747         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47748         (configure.ac): Invoke AC_LIBOBJ here.
47749         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47752         crypto/gc-hmac-md5: Fix recent regression.
47753         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47754         (configure.ac): Invoke AC_LIBOBJ here.
47755         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47758         crypto/gc-des: Fix recent regression.
47759         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47760         (configure.ac): Invoke AC_LIBOBJ here.
47761         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47764         crypto/gc-arcfour: Fix recent regression.
47765         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47766         (configure.ac): Invoke AC_LIBOBJ here.
47767         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47770 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47772         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47773         After the 2011-05-21 change, this macro requires
47774         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47775         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47777 2011-06-16  Bruno Haible  <bruno@clisp.org>
47779         fprintftime: Move AC_LIBOBJ invocations to module description.
47780         * m4/fprintftime.m4: Remove file.
47781         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47782         (configure.ac): Remove gl_FPRINTFTIME call.
47783         (Makefile.am): Augment lib_SOURCES.
47784         Reported by Jim Meyering.
47786 2011-06-16  Bruno Haible  <bruno@clisp.org>
47788         tmpfile-safer: Finish 2011-05-23 commit.
47789         * m4/stdio-safer.m4: Really remove file.
47790         Reported by Jim Meyering.
47792 2011-06-16  Bruno Haible  <bruno@clisp.org>
47794         syntax-check: Fix typo.
47795         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47796         printf-posix.m4.
47797         Reported by Jim Meyering.
47799 2011-06-13  Jim Meyering  <meyering@redhat.com>
47801         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47802         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47804 2011-05-23  Bruno Haible  <bruno@clisp.org>
47806         yesno: Move AC_LIBOBJ invocations to module description.
47807         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47808         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47810 2011-05-23  Bruno Haible  <bruno@clisp.org>
47812         xstrtol: Move AC_LIBOBJ invocations to module description.
47813         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47814         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47816 2011-05-23  Bruno Haible  <bruno@clisp.org>
47818         xstrtold: Move AC_LIBOBJ invocations to module description.
47819         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47820         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47822 2011-05-23  Bruno Haible  <bruno@clisp.org>
47824         xstrtod: Move AC_LIBOBJ invocations to module description.
47825         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47826         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47828 2011-05-23  Bruno Haible  <bruno@clisp.org>
47830         xnanosleep: Move AC_LIBOBJ invocations to module description.
47831         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47832         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47834 2011-05-23  Bruno Haible  <bruno@clisp.org>
47836         xgetcwd: Move AC_LIBOBJ invocations to module description.
47837         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47838         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47840 2011-05-23  Bruno Haible  <bruno@clisp.org>
47842         xalloc: Move AC_LIBOBJ invocations to module description.
47843         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47844         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47846 2011-05-23  Bruno Haible  <bruno@clisp.org>
47848         write-any-file: Move AC_LIBOBJ invocations to module description.
47849         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47850         invocation.
47851         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47853 2011-05-23  Bruno Haible  <bruno@clisp.org>
47855         utimens: Move AC_LIBOBJ invocations to module description.
47856         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47857         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47859 2011-05-23  Bruno Haible  <bruno@clisp.org>
47861         utimecmp: Move AC_LIBOBJ invocations to module description.
47862         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47863         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47865 2011-05-23  Bruno Haible  <bruno@clisp.org>
47867         userspec: Move AC_LIBOBJ invocations to module description.
47868         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47869         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47871 2011-05-23  Bruno Haible  <bruno@clisp.org>
47873         unlinkdir: Move AC_LIBOBJ invocations to module description.
47874         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47875         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47877 2011-05-23  Bruno Haible  <bruno@clisp.org>
47879         unistd-safer: Move AC_LIBOBJ invocations to module description.
47880         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47881         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47883 2011-05-23  Bruno Haible  <bruno@clisp.org>
47885         tempname: Move AC_LIBOBJ invocations to module description.
47886         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47887         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47889 2011-05-23  Bruno Haible  <bruno@clisp.org>
47891         strftime: Move AC_LIBOBJ invocations to module description.
47892         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47893         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47895 2011-05-23  Bruno Haible  <bruno@clisp.org>
47897         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47898         * m4/stdlib-safer.m4: Remove file.
47899         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47900         (configure.ac): Remove gl_STDLIB_SAFER call.
47901         (Makefile.am): Augment lib_SOURCES.
47903 2011-05-23  Bruno Haible  <bruno@clisp.org>
47905         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47906         * m4/stdio-safer.m4: Remove file.
47907         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47908         (configure.ac): Remove gl_TMPFILE_SAFER call.
47909         (Makefile.am): Augment lib_SOURCES.
47911 2011-05-23  Bruno Haible  <bruno@clisp.org>
47913         popen-safer: Move AC_LIBOBJ invocations to module description.
47914         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47915         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47916         (configure.ac): Remove gl_POPEN_SAFER call.
47917         (Makefile.am): Augment lib_SOURCES.
47919 2011-05-23  Bruno Haible  <bruno@clisp.org>
47921         freopen-safer: Move AC_LIBOBJ invocations to module description.
47922         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47923         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47924         (configure.ac): Remove gl_FREOPEN_SAFER call.
47925         (Makefile.am): Augment lib_SOURCES.
47927 2011-05-23  Bruno Haible  <bruno@clisp.org>
47929         fopen-safer: Move AC_LIBOBJ invocations to module description.
47930         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47931         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47932         (configure.ac): Remove gl_FOPEN_SAFER call.
47933         (Makefile.am): Augment lib_SOURCES.
47935 2011-05-23  Bruno Haible  <bruno@clisp.org>
47937         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47938         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47939         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47941 2011-05-23  Bruno Haible  <bruno@clisp.org>
47943         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47944         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47945         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47947 2011-05-23  Bruno Haible  <bruno@clisp.org>
47949         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47950         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47951         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47953 2011-05-23  Bruno Haible  <bruno@clisp.org>
47955         settime: Move AC_LIBOBJ invocations to module description.
47956         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47957         * modules/settime (Makefile.am): Augment lib_SOURCES.
47959 2011-05-23  Bruno Haible  <bruno@clisp.org>
47961         savedir: Move AC_LIBOBJ invocations to module description.
47962         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47963         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47965 2011-05-23  Bruno Haible  <bruno@clisp.org>
47967         save-cwd: Move AC_LIBOBJ invocations to module description.
47968         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
47969         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
47971 2011-05-23  Bruno Haible  <bruno@clisp.org>
47973         same: Move AC_LIBOBJ invocations to module description.
47974         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
47975         * modules/same (Makefile.am): Augment lib_SOURCES.
47977 2011-05-23  Bruno Haible  <bruno@clisp.org>
47979         safe-write: Move AC_LIBOBJ invocations to module description.
47980         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
47981         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
47982         instead of gl_SAFE_WRITE.
47983         (Makefile.am): Augment lib_SOURCES.
47985 2011-05-23  Bruno Haible  <bruno@clisp.org>
47987         safe-read: Move AC_LIBOBJ invocations to module description.
47988         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
47989         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
47990         of gl_SAFE_READ.
47991         (Makefile.am): Augment lib_SOURCES.
47993 2011-05-23  Bruno Haible  <bruno@clisp.org>
47995         safe-alloc: Move AC_LIBOBJ invocations to module description.
47996         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
47997         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
47999 2011-05-23  Bruno Haible  <bruno@clisp.org>
48001         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48002         * m4/rijndael.m4: Remove file.
48003         * modules/crypto/rijndael (Files): Remove it.
48004         (configure.ac): Remove gl_RIJNDAEL call.
48005         (Makefile.am): Augment lib_SOURCES.
48007 2011-05-23  Bruno Haible  <bruno@clisp.org>
48009         readtokens: Move AC_LIBOBJ invocations to module description.
48010         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48011         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48013 2011-05-23  Bruno Haible  <bruno@clisp.org>
48015         read-file: Move AC_LIBOBJ invocations to module description.
48016         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48017         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48018         of gl_FUNC_READ_FILE.
48019         (Makefile.am): Augment lib_SOURCES.
48021 2011-05-23  Bruno Haible  <bruno@clisp.org>
48023         quotearg: Move AC_LIBOBJ invocations to module description.
48024         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48025         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48027 2011-05-23  Bruno Haible  <bruno@clisp.org>
48029         quote: Move AC_LIBOBJ invocations to module description.
48030         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48031         * modules/quote (Makefile.am): Augment lib_SOURCES.
48033 2011-05-23  Bruno Haible  <bruno@clisp.org>
48035         posixver: Move AC_LIBOBJ invocations to module description.
48036         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48037         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48039 2011-05-23  Bruno Haible  <bruno@clisp.org>
48041         posixtm: Move AC_LIBOBJ invocations to module description.
48042         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48043         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48045 2011-05-23  Bruno Haible  <bruno@clisp.org>
48047         physmem: Move AC_LIBOBJ invocations to module description.
48048         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48049         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48051 2011-05-23  Bruno Haible  <bruno@clisp.org>
48053         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48054         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48055         invocation.
48056         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48058 2011-05-23  Bruno Haible  <bruno@clisp.org>
48060         mpsort: Move AC_LIBOBJ invocations to module description.
48061         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48062         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48064 2011-05-23  Bruno Haible  <bruno@clisp.org>
48066         modechange: Move AC_LIBOBJ invocations to module description.
48067         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48068         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48070 2011-05-23  Bruno Haible  <bruno@clisp.org>
48072         mkdir-p: Move AC_LIBOBJ invocations to module description.
48073         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
48074         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
48076 2011-05-23  Bruno Haible  <bruno@clisp.org>
48078         mkancesdirs: Move AC_LIBOBJ invocations to module description.
48079         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
48080         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
48082 2011-05-23  Bruno Haible  <bruno@clisp.org>
48084         mgetgroups: Move AC_LIBOBJ invocations to module description.
48085         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
48086         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
48088 2011-05-23  Bruno Haible  <bruno@clisp.org>
48090         memxor: Move AC_LIBOBJ invocations to module description.
48091         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
48092         * modules/memxor (Makefile.am): Augment lib_SOURCES.
48094 2011-05-23  Bruno Haible  <bruno@clisp.org>
48096         memcoll: Move AC_LIBOBJ invocations to module description.
48097         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
48098         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
48100 2011-05-23  Bruno Haible  <bruno@clisp.org>
48102         memcasecmp: Move AC_LIBOBJ invocations to module description.
48103         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
48104         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
48106 2011-05-23  Bruno Haible  <bruno@clisp.org>
48108         crypto/md5: Move AC_LIBOBJ invocations to module description.
48109         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48110         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48112 2011-05-23  Bruno Haible  <bruno@clisp.org>
48114         crypto/md4: Move AC_LIBOBJ invocations to module description.
48115         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48116         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48118 2011-05-23  Bruno Haible  <bruno@clisp.org>
48120         crypto/md2: Move AC_LIBOBJ invocations to module description.
48121         * m4/md2.m4: Remove file.
48122         * modules/crypto/md2 (Files): Remove it.
48123         (configure.ac): Remove gl_MD2 call.
48124         (Makefile.am): Augment lib_SOURCES.
48126 2011-05-23  Bruno Haible  <bruno@clisp.org>
48128         long-options: Move AC_LIBOBJ invocations to module description.
48129         * m4/long-options.m4: Remove file.
48130         * modules/long-options (Files): Remove it.
48131         (configure.ac): Remove gl_LONG_OPTIONS call.
48132         (Makefile.am): Augment lib_SOURCES.
48134 2011-05-23  Bruno Haible  <bruno@clisp.org>
48136         i-ring: Move AC_LIBOBJ invocations to module description.
48137         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48138         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48140 2011-05-23  Bruno Haible  <bruno@clisp.org>
48142         idcache: Move AC_LIBOBJ invocations to module description.
48143         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48144         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48146 2011-05-23  Bruno Haible  <bruno@clisp.org>
48148         human: Move AC_LIBOBJ invocations to module description.
48149         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48150         * modules/human (Makefile.am): Augment lib_SOURCES.
48152 2011-05-23  Bruno Haible  <bruno@clisp.org>
48154         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48155         * m4/hmac-sha1.m4: Remove file.
48156         * modules/crypto/hmac-sha1 (Files): Remove it.
48157         (configure.ac): Remove gl_HMAC_SHA1 call.
48158         (Makefile.am): Augment lib_SOURCES.
48160 2011-05-23  Bruno Haible  <bruno@clisp.org>
48162         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48163         * m4/hmac-md5.m4: Remove file.
48164         * modules/crypto/hmac-md5 (Files): Remove it.
48165         (configure.ac): Remove gl_HMAC_MD5 call.
48166         (Makefile.am): Augment lib_SOURCES.
48168 2011-05-23  Bruno Haible  <bruno@clisp.org>
48170         hash: Move AC_LIBOBJ invocations to module description.
48171         * m4/hash.m4: Remove file.
48172         * modules/hash (Files): Remove it.
48173         (configure.ac): Remove gl_HASH call.
48174         (Makefile.am): Augment lib_SOURCES.
48176 2011-05-23  Bruno Haible  <bruno@clisp.org>
48178         hard-locale: Move AC_LIBOBJ invocations to module description.
48179         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48180         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48182 2011-05-23  Bruno Haible  <bruno@clisp.org>
48184         getugroups: Move AC_LIBOBJ invocations to module description.
48185         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48186         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48188 2011-05-23  Bruno Haible  <bruno@clisp.org>
48190         gettime: Move AC_LIBOBJ invocations to module description.
48191         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48192         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48194 2011-05-23  Bruno Haible  <bruno@clisp.org>
48196         getndelim2: Move AC_LIBOBJ invocations to module description.
48197         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48198         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48200 2011-05-23  Bruno Haible  <bruno@clisp.org>
48202         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48203         * m4/gc-pbkdf2-sha1.m4: Remove file.
48204         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48205         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48206         (Makefile.am): Augment lib_SOURCES.
48208 2011-05-23  Bruno Haible  <bruno@clisp.org>
48210         fts: Move AC_LIBOBJ invocations to module description.
48211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48212         * modules/fts (configure.ac): ... to here.
48214 2011-05-23  Bruno Haible  <bruno@clisp.org>
48216         file-type: Move AC_LIBOBJ invocations to module description.
48217         * m4/file-type.m4: Remove file.
48218         * modules/file-type (Files): Remove it.
48219         (configure.ac): Remove gl_FILE_TYPE call.
48220         (Makefile.am): Augment lib_SOURCES.
48222 2011-05-23  Bruno Haible  <bruno@clisp.org>
48224         filenamecat*: Respect rules for use of AC_LIBOBJ.
48225         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48226         Remove AC_LIBOBJ invocation.
48227         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48228         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48230 2011-05-23  Bruno Haible  <bruno@clisp.org>
48232         filemode: Move AC_LIBOBJ invocations to module description.
48233         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48234         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48236 2011-05-23  Bruno Haible  <bruno@clisp.org>
48238         openat-safer: Move AC_LIBOBJ invocations to module description.
48239         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48240         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48242 2011-05-23  Bruno Haible  <bruno@clisp.org>
48244         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48246         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48248 2011-05-23  Bruno Haible  <bruno@clisp.org>
48250         exclude: Move AC_LIBOBJ invocations to module description.
48251         * m4/exclude.m4: Remove file.
48252         * modules/exclude (Files): Remove it.
48253         (configure.ac): Remove gl_EXCLUDE call.
48254         (Makefile.am): Augment lib_SOURCES.
48256 2011-05-23  Bruno Haible  <bruno@clisp.org>
48258         dirname*: Respect rules for use of AC_LIBOBJ.
48259         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48260         invocations.
48261         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48262         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48264 2011-05-23  Bruno Haible  <bruno@clisp.org>
48266         dirent-safer: Move AC_LIBOBJ invocations to module description.
48267         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48268         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48270 2011-05-23  Bruno Haible  <bruno@clisp.org>
48272         crypto/des: Move AC_LIBOBJ invocations to module description.
48273         * m4/des.m4: Remove file.
48274         * modules/crypto/des (Files): Remove it.
48275         (configure.ac): Remove gl_DES call.
48276         (Makefile.am): Augment lib_SOURCES.
48278 2011-05-23  Bruno Haible  <bruno@clisp.org>
48280         cycle-check: Move AC_LIBOBJ invocations to module description.
48281         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48282         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48284 2011-05-23  Bruno Haible  <bruno@clisp.org>
48286         c-strtold: Move AC_LIBOBJ invocations to module description.
48287         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48288         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48290 2011-05-23  Bruno Haible  <bruno@clisp.org>
48292         c-strtod: Move AC_LIBOBJ invocations to module description.
48293         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48294         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48296 2011-05-23  Bruno Haible  <bruno@clisp.org>
48298         crc: Move AC_LIBOBJ invocations to module description.
48299         * m4/crc.m4: Remove file.
48300         * modules/crc (Files): Remove it.
48301         (configure.ac): Remove gl_CRC call.
48302         (Makefile.am): Augment lib_SOURCES.
48304 2011-05-23  Bruno Haible  <bruno@clisp.org>
48306         close-stream: Move AC_LIBOBJ invocations to module description.
48307         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48308         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48310 2011-05-23  Bruno Haible  <bruno@clisp.org>
48312         closeout: Move AC_LIBOBJ invocations to module description.
48313         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48314         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48316 2011-05-23  Bruno Haible  <bruno@clisp.org>
48318         closein: Move AC_LIBOBJ invocations to module description.
48319         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48320         * modules/closein (Makefile.am): Augment lib_SOURCES.
48322 2011-05-23  Bruno Haible  <bruno@clisp.org>
48324         cloexec: Move AC_LIBOBJ invocations to module description.
48325         * m4/cloexec.m4: Remove file.
48326         * modules/cloexec (Files): Remove it.
48327         (configure.ac): Remove gl_CLOEXEC call.
48328         (Makefile.am): Augment lib_SOURCES.
48330 2011-05-23  Bruno Haible  <bruno@clisp.org>
48332         check-version: Move AC_LIBOBJ invocations to module description.
48333         * m4/check-version.m4: Remove file.
48334         * modules/check-version (Files): Remove it.
48335         (configure.ac): Remove gl_CHECK_VERSION call.
48336         (Makefile.am): Augment lib_SOURCES.
48338 2011-05-23  Bruno Haible  <bruno@clisp.org>
48340         chdir-safer: Move AC_LIBOBJ invocations to module description.
48341         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48342         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48344 2011-05-23  Bruno Haible  <bruno@clisp.org>
48346         canonicalize: Move AC_LIBOBJ invocations to module description.
48347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48348         AC_LIBOBJ invocation.
48349         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48351 2011-05-23  Bruno Haible  <bruno@clisp.org>
48353         canon-host: Move AC_LIBOBJ invocations to module description.
48354         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48355         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48356         instead of gl_CANON_HOST.
48357         (Makefile.am): Augment lib_SOURCES.
48359 2011-05-23  Bruno Haible  <bruno@clisp.org>
48361         backupfile: Move AC_LIBOBJ invocations to module description.
48362         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48363         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48365 2011-05-23  Bruno Haible  <bruno@clisp.org>
48367         argmatch: Move AC_LIBOBJ invocations to module description.
48368         * m4/argmatch.m4: Remove file.
48369         * modules/argmatch (Files): Remove it.
48370         (configure.ac): Remove gl_ARGMATCH call.
48371         (Makefile.am): Augment lib_SOURCES.
48373 2011-05-23  Bruno Haible  <bruno@clisp.org>
48375         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48376         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48377         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48379 2011-05-23  Bruno Haible  <bruno@clisp.org>
48381         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48382         * m4/arcfour.m4: Remove file.
48383         * modules/crypto/arcfour (Files): Remove it.
48384         (configure.ac): Remove gl_ARCFOUR call.
48385         (Makefile.am): Augment lib_SOURCES.
48387 2011-05-22  Bruno Haible  <bruno@clisp.org>
48389         write: Move AC_LIBOBJ invocations to module description.
48390         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48391         * modules/write (configure.ac): ... to here.
48393 2011-05-22  Bruno Haible  <bruno@clisp.org>
48395         wmemset: Move AC_LIBOBJ invocations to module description.
48396         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48397         here...
48398         * modules/wmemset (configure.ac): ... to here.
48400 2011-05-22  Bruno Haible  <bruno@clisp.org>
48402         wmemmove: Move AC_LIBOBJ invocations to module description.
48403         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48404         here...
48405         * modules/wmemmove (configure.ac): ... to here.
48407 2011-05-22  Bruno Haible  <bruno@clisp.org>
48409         wmemcpy: Move AC_LIBOBJ invocations to module description.
48410         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48411         here...
48412         * modules/wmemcpy (configure.ac): ... to here.
48414 2011-05-22  Bruno Haible  <bruno@clisp.org>
48416         wmemcmp: Move AC_LIBOBJ invocations to module description.
48417         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48418         here...
48419         * modules/wmemcmp (configure.ac): ... to here.
48421 2011-05-22  Bruno Haible  <bruno@clisp.org>
48423         wmemchr: Move AC_LIBOBJ invocations to module description.
48424         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48425         here...
48426         * modules/wmemchr (configure.ac): ... to here.
48428 2011-05-22  Bruno Haible  <bruno@clisp.org>
48430         wcswidth: Move AC_LIBOBJ invocations to module description.
48431         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48432         here...
48433         * modules/wcswidth (configure.ac): ... to here.
48435 2011-05-22  Bruno Haible  <bruno@clisp.org>
48437         wcwidth: Respect rules for use of AC_LIBOBJ.
48438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48439         invocation from here...
48440         * modules/wcwidth (configure.ac): ... to here.
48441         (Depends-on): Update conditions.
48443 2011-05-22  Bruno Haible  <bruno@clisp.org>
48445         wctype: Move AC_LIBOBJ invocations to module description.
48446         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48447         invocation from here...
48448         * modules/wctype (configure.ac): ... to here.
48449         (Depends-on): Update conditions.
48451 2011-05-22  Bruno Haible  <bruno@clisp.org>
48453         wctrans: Move AC_LIBOBJ invocations to module description.
48454         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48455         invocation from here...
48456         * modules/wctrans (configure.ac): ... to here.
48458 2011-05-22  Bruno Haible  <bruno@clisp.org>
48460         wctomb: Move AC_LIBOBJ invocations to module description.
48461         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48462         invocations from here...
48463         * modules/wctomb (configure.ac): ... to here.
48465 2011-05-22  Bruno Haible  <bruno@clisp.org>
48467         wctob: Move AC_LIBOBJ invocations to module description.
48468         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48469         gl_PREREQ_WCTOB invocations from here...
48470         * modules/wctob (configure.ac): ... to here.
48471         (Depends-on): Update conditions.
48473 2011-05-22  Bruno Haible  <bruno@clisp.org>
48475         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48476         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48477         here...
48478         * modules/wcsxfrm (configure.ac): ... to here.
48480 2011-05-22  Bruno Haible  <bruno@clisp.org>
48482         wcstok: Move AC_LIBOBJ invocations to module description.
48483         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48484         * modules/wcstok (configure.ac): ... to here.
48486 2011-05-22  Bruno Haible  <bruno@clisp.org>
48488         wcsstr: Move AC_LIBOBJ invocations to module description.
48489         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48490         * modules/wcsstr (configure.ac): ... to here.
48492 2011-05-22  Bruno Haible  <bruno@clisp.org>
48494         wcsspn: Move AC_LIBOBJ invocations to module description.
48495         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48496         * modules/wcsspn (configure.ac): ... to here.
48498 2011-05-22  Bruno Haible  <bruno@clisp.org>
48500         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48501         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48502         gl_PREREQ_WCSRTOMBS invocations from here...
48503         * modules/wcsrtombs (configure.ac): ... to here.
48505 2011-05-22  Bruno Haible  <bruno@clisp.org>
48507         wcsrchr: Move AC_LIBOBJ invocations to module description.
48508         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48509         here...
48510         * modules/wcsrchr (configure.ac): ... to here.
48512 2011-05-22  Bruno Haible  <bruno@clisp.org>
48514         wcspbrk: Move AC_LIBOBJ invocations to module description.
48515         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48516         here...
48517         * modules/wcspbrk (configure.ac): ... to here.
48519 2011-05-22  Bruno Haible  <bruno@clisp.org>
48521         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48522         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48523         gl_PREREQ_WCSNRTOMBS invocations from here...
48524         * modules/wcsnrtombs (configure.ac): ... to here.
48526 2011-05-22  Bruno Haible  <bruno@clisp.org>
48528         wcsnlen: Move AC_LIBOBJ invocations to module description.
48529         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48530         here...
48531         * modules/wcsnlen (configure.ac): ... to here.
48533 2011-05-22  Bruno Haible  <bruno@clisp.org>
48535         wcsncpy: Move AC_LIBOBJ invocations to module description.
48536         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48537         here...
48538         * modules/wcsncpy (configure.ac): ... to here.
48540 2011-05-22  Bruno Haible  <bruno@clisp.org>
48542         wcsncmp: Move AC_LIBOBJ invocations to module description.
48543         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48544         here...
48545         * modules/wcsncmp (configure.ac): ... to here.
48547 2011-05-22  Bruno Haible  <bruno@clisp.org>
48549         wcsncat: Move AC_LIBOBJ invocations to module description.
48550         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48551         here...
48552         * modules/wcsncat (configure.ac): ... to here.
48554 2011-05-22  Bruno Haible  <bruno@clisp.org>
48556         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48557         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48558         from here...
48559         * modules/wcsncasecmp (configure.ac): ... to here.
48561 2011-05-22  Bruno Haible  <bruno@clisp.org>
48563         wcslen: Move AC_LIBOBJ invocations to module description.
48564         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48565         * modules/wcslen (configure.ac): ... to here.
48567 2011-05-22  Bruno Haible  <bruno@clisp.org>
48569         wcsdup: Move AC_LIBOBJ invocations to module description.
48570         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48571         * modules/wcsdup (configure.ac): ... to here.
48573 2011-05-22  Bruno Haible  <bruno@clisp.org>
48575         wcscspn: Move AC_LIBOBJ invocations to module description.
48576         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48577         here...
48578         * modules/wcscspn (configure.ac): ... to here.
48580 2011-05-22  Bruno Haible  <bruno@clisp.org>
48582         wcscpy: Move AC_LIBOBJ invocations to module description.
48583         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48584         * modules/wcscpy (configure.ac): ... to here.
48586 2011-05-22  Bruno Haible  <bruno@clisp.org>
48588         wcscoll: Move AC_LIBOBJ invocations to module description.
48589         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48590         here...
48591         * modules/wcscoll (configure.ac): ... to here.
48593 2011-05-22  Bruno Haible  <bruno@clisp.org>
48595         wcscmp: Move AC_LIBOBJ invocations to module description.
48596         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48597         * modules/wcscmp (configure.ac): ... to here.
48599 2011-05-22  Bruno Haible  <bruno@clisp.org>
48601         wcschr: Move AC_LIBOBJ invocations to module description.
48602         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48603         * modules/wcschr (configure.ac): ... to here.
48605 2011-05-22  Bruno Haible  <bruno@clisp.org>
48607         wcscat: Move AC_LIBOBJ invocations to module description.
48608         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48609         * modules/wcscat (configure.ac): ... to here.
48611 2011-05-22  Bruno Haible  <bruno@clisp.org>
48613         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48614         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48615         here...
48616         * modules/wcscasecmp (configure.ac): ... to here.
48618 2011-05-22  Bruno Haible  <bruno@clisp.org>
48620         wcrtomb: Move AC_LIBOBJ invocations to module description.
48621         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48622         invocations from here...
48623         * modules/wcrtomb (configure.ac): ... to here.
48625 2011-05-22  Bruno Haible  <bruno@clisp.org>
48627         wcpncpy: Move AC_LIBOBJ invocations to module description.
48628         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48629         here...
48630         * modules/wcpncpy (configure.ac): ... to here.
48632 2011-05-22  Bruno Haible  <bruno@clisp.org>
48634         wcpcpy: Move AC_LIBOBJ invocations to module description.
48635         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48636         * modules/wcpcpy (configure.ac): ... to here.
48638 2011-05-22  Bruno Haible  <bruno@clisp.org>
48640         waitpid: Move AC_LIBOBJ invocations to module description.
48641         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48642         invocation from here...
48643         * modules/waitpid (configure.ac): ... to here.
48645 2011-05-22  Bruno Haible  <bruno@clisp.org>
48647         utimensat: Move AC_LIBOBJ invocations to module description.
48648         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48649         here...
48650         * modules/utimensat (configure.ac): ... to here.
48652 2011-05-22  Bruno Haible  <bruno@clisp.org>
48654         usleep: Move AC_LIBOBJ invocations to module description.
48655         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48656         here...
48657         * modules/usleep (configure.ac): ... to here.
48659 2011-05-22  Bruno Haible  <bruno@clisp.org>
48661         unlockpt: Move AC_LIBOBJ invocations to module description.
48662         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48663         gl_PREREQ_UNLOCKPT invocations from here...
48664         * modules/unlockpt (configure.ac): ... to here.
48666 2011-05-22  Bruno Haible  <bruno@clisp.org>
48668         unlink: Respect rules for use of AC_LIBOBJ.
48669         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48670         * modules/unlink (configure.ac): ... to here.
48672 2011-05-22  Bruno Haible  <bruno@clisp.org>
48674         uname: Move AC_LIBOBJ invocations to module description.
48675         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48677         here...
48678         * modules/uname (configure.ac): ... to here.
48680 2011-05-22  Bruno Haible  <bruno@clisp.org>
48682         ttyname_r: Move AC_LIBOBJ invocations to module description.
48683         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48684         gl_PREREQ_TTYNAME_R invocations from here...
48685         * modules/ttyname_r (configure.ac): ... to here.
48687 2011-05-22  Bruno Haible  <bruno@clisp.org>
48689         tsearch: Move AC_LIBOBJ invocations to module description.
48690         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48691         invocations from here...
48692         * modules/tsearch (configure.ac): ... to here.
48694 2011-05-22  Bruno Haible  <bruno@clisp.org>
48696         towctrans: Move AC_LIBOBJ invocations to module description.
48697         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48698         AC_LIBOBJ invocation from here...
48699         * modules/towctrans (configure.ac): ... to here.
48701 2011-05-22  Bruno Haible  <bruno@clisp.org>
48703         tmpfile: Move AC_LIBOBJ invocations to module description.
48704         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48705         invocations from here...
48706         * modules/tmpfile (configure.ac): ... to here.
48708 2011-05-22  Bruno Haible  <bruno@clisp.org>
48710         times: Move AC_LIBOBJ invocations to module description.
48711         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48712         * modules/times (configure.ac): ... to here.
48714 2011-05-22  Bruno Haible  <bruno@clisp.org>
48716         time_r: Move AC_LIBOBJ invocations to module description.
48717         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48718         invocations from here...
48719         * modules/time_r (configure.ac): ... to here.
48721 2011-05-22  Bruno Haible  <bruno@clisp.org>
48723         timegm: Move AC_LIBOBJ invocations to module description.
48724         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48725         invocations from here...
48726         * modules/timegm (configure.ac): ... to here.
48728 2011-05-22  Bruno Haible  <bruno@clisp.org>
48730         tcgetsid: Move AC_LIBOBJ invocations to module description.
48731         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48732         and gl_PREREQ_TCGETSID invocations from here...
48733         * modules/tcgetsid (configure.ac): ... to here.
48734         (Depends-on): Update conditions.
48736 2011-05-22  Bruno Haible  <bruno@clisp.org>
48738         symlinkat: Move AC_LIBOBJ invocations to module description.
48739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48740         here...
48741         * modules/symlinkat (configure.ac): ... to here.
48743 2011-05-22  Bruno Haible  <bruno@clisp.org>
48745         symlink: Move AC_LIBOBJ invocations to module description.
48746         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48747         here...
48748         * modules/symlink (configure.ac): ... to here.
48750 2011-05-22  Bruno Haible  <bruno@clisp.org>
48752         strverscmp: Move AC_LIBOBJ invocations to module description.
48753         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48755         from here...
48756         * modules/strverscmp (configure.ac): ... to here.
48758 2011-05-22  Bruno Haible  <bruno@clisp.org>
48760         strtok_r: Move AC_LIBOBJ invocations to module description.
48761         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48762         and gl_PREREQ_STRTOK_R invocations from here...
48763         * modules/strtok_r (configure.ac): ... to here.
48764         (Depends-on): Update conditions.
48766 2011-05-22  Bruno Haible  <bruno@clisp.org>
48768         strtoumax: Move AC_LIBOBJ invocations to module description.
48769         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48771         from here...
48772         * modules/strtoumax (configure.ac): ... to here.
48774 2011-05-22  Bruno Haible  <bruno@clisp.org>
48776         strtoimax: Move AC_LIBOBJ invocations to module description.
48777         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48779         from here...
48780         * modules/strtoimax (configure.ac): ... to here.
48782 2011-05-22  Bruno Haible  <bruno@clisp.org>
48784         strtoull: Move AC_LIBOBJ invocations to module description.
48785         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48787         from here...
48788         * modules/strtoull (configure.ac): ... to here.
48790 2011-05-22  Bruno Haible  <bruno@clisp.org>
48792         strtoll: Move AC_LIBOBJ invocations to module description.
48793         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48794         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48795         here...
48796         * modules/strtoll (configure.ac): ... to here.
48798 2011-05-22  Bruno Haible  <bruno@clisp.org>
48800         strtoul: Move AC_LIBOBJ invocations to module description.
48801         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48802         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48803         * modules/strtoul (configure.ac): ... to here.
48805 2011-05-22  Bruno Haible  <bruno@clisp.org>
48807         strtol: Move AC_LIBOBJ invocations to module description.
48808         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48809         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48810         * modules/strtol (configure.ac): ... to here.
48812 2011-05-22  Bruno Haible  <bruno@clisp.org>
48814         strtod: Move AC_LIBOBJ invocations to module description.
48815         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48816         invocations from here...
48817         * modules/strtod (configure.ac): ... to here.
48819 2011-05-22  Bruno Haible  <bruno@clisp.org>
48821         strstr*: Move AC_LIBOBJ invocations to module description.
48822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48823         invocations from here...
48824         * modules/strstr-simple (configure.ac): ... to here.
48825         * modules/strstr (configure.ac): ... and here.
48827 2011-05-22  Bruno Haible  <bruno@clisp.org>
48829         strsignal: Move AC_LIBOBJ invocations to module description.
48830         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48831         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48832         * modules/strsignal (configure.ac): ... to here.
48833         (Depends-on): Update conditions.
48835 2011-05-22  Bruno Haible  <bruno@clisp.org>
48837         strsep: Move AC_LIBOBJ invocations to module description.
48838         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48839         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48840         here...
48841         * modules/strsep (configure.ac): ... to here.
48843 2011-05-22  Bruno Haible  <bruno@clisp.org>
48845         strptime: Move AC_LIBOBJ invocations to module description.
48846         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48847         gl_PREREQ_STRPTIME invocations from here...
48848         * modules/strptime (configure.ac): ... to here.
48850 2011-05-22  Bruno Haible  <bruno@clisp.org>
48852         strpbrk: Move AC_LIBOBJ invocations to module description.
48853         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48855         here...
48856         * modules/strpbrk (configure.ac): ... to here.
48858 2011-05-22  Bruno Haible  <bruno@clisp.org>
48860         strnlen: Move AC_LIBOBJ invocations to module description.
48861         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48862         invocations from here...
48863         * modules/strnlen (configure.ac): ... to here.
48865 2011-05-22  Bruno Haible  <bruno@clisp.org>
48867         strndup: Move AC_LIBOBJ invocations to module description.
48868         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48869         invocations from here...
48870         * modules/strndup (configure.ac): ... to here.
48871         (Depends-on): Update conditions.
48873 2011-05-22  Bruno Haible  <bruno@clisp.org>
48875         strncat: Move AC_LIBOBJ invocations to module description.
48876         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48877         invocations from here...
48878         * modules/strncat (configure.ac): ... to here.
48880 2011-05-22  Bruno Haible  <bruno@clisp.org>
48882         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48883         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48884         invocations from here...
48885         * modules/strdup (configure.ac): ... to here.
48886         * modules/strdup-posix (configure.ac): ... and here.
48888 2011-05-22  Bruno Haible  <bruno@clisp.org>
48890         strcspn: Move AC_LIBOBJ invocations to module description.
48891         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48892         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48893         here...
48894         * modules/strcspn (configure.ac): ... to here.
48896 2011-05-22  Bruno Haible  <bruno@clisp.org>
48898         strchrnul: Move AC_LIBOBJ invocations to module description.
48899         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48900         gl_PREREQ_STRCHRNUL invocations from here...
48901         * modules/strchrnul (configure.ac): ... to here.
48903 2011-05-22  Bruno Haible  <bruno@clisp.org>
48905         strcasestr*: Move AC_LIBOBJ invocations to module description.
48906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48907         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48908         * modules/strcasestr-simple (configure.ac): ... to here.
48909         * modules/strcasestr (configure.ac): ... and here.
48911 2011-05-22  Bruno Haible  <bruno@clisp.org>
48913         strcase: Move AC_LIBOBJ invocations to module description.
48914         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48915         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48916         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48917         gl_PREREQ_STRNCASECMP invocations from here...
48918         * modules/strcase (configure.ac): ... to here.
48920 2011-05-22  Bruno Haible  <bruno@clisp.org>
48922         stpncpy: Move AC_LIBOBJ invocations to module description.
48923         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48924         here...
48925         * modules/stpncpy (configure.ac): ... to here.
48927 2011-05-22  Bruno Haible  <bruno@clisp.org>
48929         stpcpy: Move AC_LIBOBJ invocations to module description.
48930         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48931         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48932         here...
48933         * modules/stpcpy (configure.ac): ... to here.
48935 2011-05-21  Bruno Haible  <bruno@clisp.org>
48937         stat: Move AC_LIBOBJ invocations to module description.
48938         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48939         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48940         here...
48941         * modules/stat (configure.ac): ... to here.
48943 2011-05-21  Bruno Haible  <bruno@clisp.org>
48945         sleep: Move AC_LIBOBJ invocations to module description.
48946         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48947         * modules/sleep (configure.ac): ... to here.
48949 2011-05-21  Bruno Haible  <bruno@clisp.org>
48951         signbit: Move AC_LIBOBJ invocations to module description.
48952         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48953         * modules/signbit (configure.ac): ... to here.
48955 2011-05-21  Bruno Haible  <bruno@clisp.org>
48957         sigprocmask: Move AC_LIBOBJ invocations to module description.
48958         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48959         gl_PREREQ_SIGPROMASK invocations from here...
48960         * modules/sigprocmask (configure.ac): ... to here.
48962 2011-05-21  Bruno Haible  <bruno@clisp.org>
48964         sigaction: Move AC_LIBOBJ invocations to module description.
48965         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48966         gl_PREREQ_SIGACTION invocations from here...
48967         * modules/sigaction (configure.ac): ... to here.
48969 2011-05-21  Bruno Haible  <bruno@clisp.org>
48971         sig2str: Move AC_LIBOBJ invocations to module description.
48972         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
48973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
48974         here...
48975         * modules/sig2str (configure.ac): ... to here.
48977 2011-05-21  Bruno Haible  <bruno@clisp.org>
48979         setlocale: Move AC_LIBOBJ invocations to module description.
48980         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
48981         gl_PREREQ_SETLOCALE invocations from here...
48982         * modules/setlocale (configure.ac): ... to here.
48984 2011-05-21  Bruno Haible  <bruno@clisp.org>
48986         unsetenv: Move AC_LIBOBJ invocations to module description.
48987         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
48988         and gl_PREREQ_UNSETENV invocations from here...
48989         * modules/unsetenv (configure.ac): ... to here.
48990         (Depends-on): Update.
48992 2011-05-21  Bruno Haible  <bruno@clisp.org>
48994         setenv: Move AC_LIBOBJ invocations to module description.
48995         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
48996         here...
48997         * modules/setenv (configure.ac): ... to here.
48999 2011-05-21  Bruno Haible  <bruno@clisp.org>
49001         selinux-h: Move AC_LIBOBJ invocations to module description.
49002         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49003         AC_LIBOBJ invocation from here...
49004         * modules/selinux-h (configure.ac): ... to here.
49006 2011-05-21  Bruno Haible  <bruno@clisp.org>
49008         select: Respect rules for use of AC_LIBOBJ.
49009         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49010         here...
49011         * modules/select (configure.ac): ... to here.
49013 2011-05-21  Bruno Haible  <bruno@clisp.org>
49015         scandir: Move AC_LIBOBJ invocations to module description.
49016         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49017         invocations from here...
49018         * modules/scandir (configure.ac): ... to here.
49020 2011-05-21  Bruno Haible  <bruno@clisp.org>
49022         rpmatch: Move AC_LIBOBJ invocations to module description.
49023         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49025         here...
49026         * modules/rpmatch (configure.ac): ... to here.
49028 2011-05-21  Bruno Haible  <bruno@clisp.org>
49030         rmdir: Respect rules for use of AC_LIBOBJ.
49031         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49032         * modules/rmdir (configure.ac): ... to here.
49034 2011-05-21  Bruno Haible  <bruno@clisp.org>
49036         renameat: Move AC_LIBOBJ invocations to module description.
49037         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49038         here...
49039         * modules/renameat (configure.ac): ... to here.
49041 2011-05-21  Bruno Haible  <bruno@clisp.org>
49043         rename: Respect rules for use of AC_LIBOBJ.
49044         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49045         here...
49046         * modules/rename (configure.ac): ... to here.
49048 2011-05-21  Bruno Haible  <bruno@clisp.org>
49050         remove: Move AC_LIBOBJ invocations to module description.
49051         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49052         here...
49053         * modules/remove (configure.ac): ... to here.
49055 2011-05-21  Bruno Haible  <bruno@clisp.org>
49057         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49058         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49059         macro.
49060         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49061         * modules/relocatable-lib (configure.ac): ... to here.
49062         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49063         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49065 2011-05-21  Bruno Haible  <bruno@clisp.org>
49067         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49068         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49069         here...
49070         * modules/relocatable-prog (configure.ac): ... to here.
49072 2011-05-21  Bruno Haible  <bruno@clisp.org>
49074         regex: Move AC_LIBOBJ invocations to module description.
49075         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
49076         invocations from here...
49077         * modules/regex (configure.ac): ... to here.
49079 2011-05-21  Bruno Haible  <bruno@clisp.org>
49081         realloc-*: Move AC_LIBOBJ invocations to module description.
49082         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
49083         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
49084         AC_LIBOBJ invocations from here...
49085         * modules/realloc-gnu (configure.ac): ... to here.
49086         * modules/realloc-posix (configure.ac): ... and here.
49088 2011-05-21  Bruno Haible  <bruno@clisp.org>
49090         readutmp: Move AC_LIBOBJ invocations to module description.
49091         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
49092         * modules/readutmp (configure.ac): ... to here.
49094 2011-05-21  Bruno Haible  <bruno@clisp.org>
49096         readlinkat: Move AC_LIBOBJ invocations to module description.
49097         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
49098         here...
49099         * modules/readlinkat (configure.ac): ... to here.
49101 2011-05-21  Bruno Haible  <bruno@clisp.org>
49103         readlink: Move AC_LIBOBJ invocations to module description.
49104         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
49105         gl_PREREQ_READLINK invocations from here...
49106         * modules/readlink (configure.ac): ... to here.
49108 2011-05-21  Bruno Haible  <bruno@clisp.org>
49110         readline: Move AC_LIBOBJ invocations to module description.
49111         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49112         gl_PREREQ_READLINE invocations from here...
49113         * modules/readline (configure.ac): ... to here.
49115 2011-05-21  Bruno Haible  <bruno@clisp.org>
49117         read: Move AC_LIBOBJ invocations to module description.
49118         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49119         * modules/read (configure.ac): ... to here.
49121 2011-05-21  Bruno Haible  <bruno@clisp.org>
49123         rawmemchr: Move AC_LIBOBJ invocations to module description.
49124         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49126         from here...
49127         * modules/rawmemchr (configure.ac): ... to here.
49129 2011-05-21  Bruno Haible  <bruno@clisp.org>
49131         random_r: Move AC_LIBOBJ invocations to module description.
49132         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49133         gl_PREREQ_RANDOM_R invocations from here...
49134         * modules/random_r (configure.ac): ... to here.
49136 2011-05-21  Bruno Haible  <bruno@clisp.org>
49138         pwrite: Move AC_LIBOBJ invocations to module description.
49139         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49140         * modules/pwrite (configure.ac): ... to here.
49142 2011-05-21  Bruno Haible  <bruno@clisp.org>
49144         putenv: Move AC_LIBOBJ invocations to module description.
49145         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49146         * modules/putenv (configure.ac): ... to here.
49148 2011-05-21  Bruno Haible  <bruno@clisp.org>
49150         login_tty: Move AC_LIBOBJ invocations to module description.
49151         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49152         * modules/login_tty (configure.ac): ... to here.
49154 2011-05-21  Bruno Haible  <bruno@clisp.org>
49156         openpty: Move AC_LIBOBJ invocations to module description.
49157         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49158         * modules/openpty (configure.ac): ... to here.
49160 2011-05-21  Bruno Haible  <bruno@clisp.org>
49162         forkpty: Move AC_LIBOBJ invocations to module description.
49163         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49164         * modules/forkpty (configure.ac): ... to here.
49166 2011-05-21  Bruno Haible  <bruno@clisp.org>
49168         ptsname: Move AC_LIBOBJ invocations to module description.
49169         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49170         invocations from here...
49171         * modules/ptsname (configure.ac): ... to here.
49173 2011-05-21  Bruno Haible  <bruno@clisp.org>
49175         pread: Move AC_LIBOBJ invocations to module description.
49176         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49177         * modules/pread (configure.ac): ... to here.
49179 2011-05-21  Bruno Haible  <bruno@clisp.org>
49181         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49182         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49183         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49184         * modules/posix_spawn (configure.ac): ... to here.
49185         * modules/posix_spawnp (configure.ac): ... and here.
49187 2011-05-21  Bruno Haible  <bruno@clisp.org>
49189         popen: Move AC_LIBOBJ invocations to module description.
49190         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49191         invocations from here...
49192         * modules/popen (configure.ac): ... to here.
49194 2011-05-21  Bruno Haible  <bruno@clisp.org>
49196         poll: Move AC_LIBOBJ invocations to module description.
49197         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49198         invocations from here...
49199         * modules/poll (configure.ac): ... to here.
49201 2011-05-21  Bruno Haible  <bruno@clisp.org>
49203         pipe-posix: Move AC_LIBOBJ invocations to module description.
49204         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49205         * modules/pipe-posix (configure.ac): ... to here.
49207 2011-05-21  Bruno Haible  <bruno@clisp.org>
49209         openat: Respect rules for use of AC_LIBOBJ.
49210         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49211         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49212         * modules/openat (configure.ac): ... to here.
49214 2011-05-21  Bruno Haible  <bruno@clisp.org>
49216         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49217         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49218         invocation from here...
49219         * modules/obstack-printf (configure.ac): ... to here.
49220         * modules/obstack-printf-posix (configure.ac): ... and here.
49222 2011-05-21  Bruno Haible  <bruno@clisp.org>
49224         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49225         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49226         from here...
49227         * modules/nl_langinfo (configure.ac): ... to here.
49229 2011-05-21  Bruno Haible  <bruno@clisp.org>
49231         nanosleep: Move AC_LIBOBJ invocations to module description.
49232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49233         gl_PREREQ_NANOSLEEP invocations from here...
49234         * modules/nanosleep (configure.ac): ... to here.
49236 2011-05-21  Bruno Haible  <bruno@clisp.org>
49238         mountlist: Move AC_LIBOBJ invocations to module description.
49239         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49240         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49241         * modules/mountlist (configure.ac): ... to here.
49243 2011-05-21  Bruno Haible  <bruno@clisp.org>
49245         mktime: Respect rules for use of AC_LIBOBJ.
49246         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49247         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49248         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49249         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49250         * modules/mktime (configure.ac): ... to here.
49251         * modules/mktime-internal (configure.ac): ... and here.
49252         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49254 2011-05-21  Bruno Haible  <bruno@clisp.org>
49256         mkstemps: Move AC_LIBOBJ invocations to module description.
49257         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49258         here...
49259         * modules/mkstemps (configure.ac): ... to here.
49261 2011-05-21  Bruno Haible  <bruno@clisp.org>
49263         mkstemp: Move AC_LIBOBJ invocations to module description.
49264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49265         gl_PREREQ_MKSTEMP invocations from here...
49266         * modules/mkstemp (configure.ac): ... to here.
49268 2011-05-21  Bruno Haible  <bruno@clisp.org>
49270         mkostemps: Move AC_LIBOBJ invocations to module description.
49271         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49272         here...
49273         * modules/mkostemps (configure.ac): ... to here.
49275 2011-05-21  Bruno Haible  <bruno@clisp.org>
49277         mkostemp: Move AC_LIBOBJ invocations to module description.
49278         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49279         gl_PREREQ_MKOSTEMP invocations from here...
49280         * modules/mkostemp (configure.ac): ... to here.
49282 2011-05-21  Bruno Haible  <bruno@clisp.org>
49284         mknod: Move AC_LIBOBJ invocations to module description.
49285         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49286         * modules/mknod (configure.ac): ... to here.
49288 2011-05-21  Bruno Haible  <bruno@clisp.org>
49290         mkfifoat: Move AC_LIBOBJ invocations to module description.
49291         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49292         here...
49293         * modules/mkfifoat (configure.ac): ... to here.
49295 2011-05-21  Bruno Haible  <bruno@clisp.org>
49297         mkfifo: Respect rules for use of AC_LIBOBJ.
49298         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49299         here...
49300         * modules/mkfifo (configure.ac): ... to here.
49302 2011-05-21  Bruno Haible  <bruno@clisp.org>
49304         mkdtemp: Move AC_LIBOBJ invocations to module description.
49305         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49306         invocations from here...
49307         * modules/mkdtemp (configure.ac): ... to here.
49309 2011-05-21  Bruno Haible  <bruno@clisp.org>
49311         mkdir: Move AC_LIBOBJ invocations to module description.
49312         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49313         * modules/mkdir (configure.ac): ... to here.
49315 2011-05-21  Bruno Haible  <bruno@clisp.org>
49317         memset: Move AC_LIBOBJ invocations to module description.
49318         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49320         here...
49321         * modules/memset (configure.ac): ... to here.
49323 2011-05-21  Bruno Haible  <bruno@clisp.org>
49325         memrchr: Move AC_LIBOBJ invocations to module description.
49326         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49328         here...
49329         * modules/memrchr (configure.ac): ... to here.
49331 2011-05-21  Bruno Haible  <bruno@clisp.org>
49333         mempcpy: Move AC_LIBOBJ invocations to module description.
49334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49336         here...
49337         * modules/mempcpy (configure.ac): ... to here.
49339 2011-05-21  Bruno Haible  <bruno@clisp.org>
49341         memmove: Move AC_LIBOBJ invocations to module description.
49342         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49344         here...
49345         * modules/memmove (configure.ac): ... to here.
49347 2011-05-21  Bruno Haible  <bruno@clisp.org>
49349         memmem*: Move AC_LIBOBJ invocations to module description.
49350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49351         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49352         here...
49353         (gl_FUNC_MEMMEM): ... and here...
49354         * modules/memmem-simple (configure.ac): ... to here.
49355         * modules/memmem (configure.ac): ... and here.
49357 2011-05-21  Bruno Haible  <bruno@clisp.org>
49359         memcpy: Move AC_LIBOBJ invocations to module description.
49360         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49362         here...
49363         * modules/memcpy (configure.ac): ... to here.
49365 2011-05-21  Bruno Haible  <bruno@clisp.org>
49367         memcmp: Simplify autoconf macro.
49368         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49369         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49370         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49372 2011-05-21  Bruno Haible  <bruno@clisp.org>
49374         memcmp: Move AC_LIBOBJ invocations to module description.
49375         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49376         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49377         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49378         * modules/memcmp (configure.ac): ... to here.
49379         (Depends-on): Update conditions.
49381 2011-05-21  Bruno Haible  <bruno@clisp.org>
49383         memchr: Respect rules for use of AC_LIBOBJ.
49384         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49385         invocations from here...
49386         * modules/memchr (configure.ac): ... to here.
49388 2011-05-21  Bruno Haible  <bruno@clisp.org>
49390         mbtowc: Move AC_LIBOBJ invocations to module description.
49391         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49392         invocations from here...
49393         * modules/mbtowc (configure.ac): ... to here.
49395 2011-05-21  Bruno Haible  <bruno@clisp.org>
49397         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49398         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49399         gl_PREREQ_MBSRTOWCS invocations from here...
49400         * modules/mbsrtowcs (configure.ac): ... to here.
49402 2011-05-21  Bruno Haible  <bruno@clisp.org>
49404         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49405         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49406         gl_PREREQ_MBSNRTOWCS invocations from here...
49407         * modules/mbsnrtowcs (configure.ac): ... to here.
49409 2011-05-21  Bruno Haible  <bruno@clisp.org>
49411         mbsinit: Move AC_LIBOBJ invocations to module description.
49412         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49413         invocations from here...
49414         * modules/mbsinit (configure.ac): ... to here.
49416 2011-05-21  Bruno Haible  <bruno@clisp.org>
49418         mbrlen: Move AC_LIBOBJ invocations to module description.
49419         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49420         invocations from here...
49421         * modules/mbrlen (configure.ac): ... to here.
49423 2011-05-21  Bruno Haible  <bruno@clisp.org>
49425         mbrtowc: Respect rules for use of AC_LIBOBJ.
49426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49427         invocations from here...
49428         * modules/mbrtowc (configure.ac): ... to here.
49430 2011-05-21  Bruno Haible  <bruno@clisp.org>
49432         malloc-*: Move AC_LIBOBJ invocations to module description.
49433         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49434         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49435         AC_LIBOBJ invocations from here...
49436         * modules/malloc-gnu (configure.ac): ... to here.
49437         * modules/malloc-posix (configure.ac): ... and here.
49439 2011-05-21  Bruno Haible  <bruno@clisp.org>
49441         lstat, openat: Respect rules for use of AC_LIBOBJ.
49442         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49444         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49445         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49446         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49447         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49448         here.
49449         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49451 2011-05-21  Bruno Haible  <bruno@clisp.org>
49453         lseek: Move AC_LIBOBJ invocations to module description.
49454         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49455         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49456         * modules/lseek (configure.ac): ... to here.
49458 2011-05-21  Bruno Haible  <bruno@clisp.org>
49460         linkat: Move AC_LIBOBJ invocations to module description.
49461         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49462         here...
49463         * modules/linkat (configure.ac): ... to here.
49465 2011-05-21  Bruno Haible  <bruno@clisp.org>
49467         link: Respect rules for use of AC_LIBOBJ.
49468         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49469         * modules/link (configure.ac): ... to here.
49471 2011-05-21  Bruno Haible  <bruno@clisp.org>
49473         lchown: Move AC_LIBOBJ invocations to module description.
49474         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49475         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49476         * modules/lchown (configure.ac): ... to here.
49478 2011-05-21  Bruno Haible  <bruno@clisp.org>
49480         iswctype: Move AC_LIBOBJ invocations to module description.
49481         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49482         here...
49483         * modules/iswctype (configure.ac): ... to here.
49485 2011-05-21  Bruno Haible  <bruno@clisp.org>
49487         iswblank: Move AC_LIBOBJ invocations to module description.
49488         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49489         here...
49490         * modules/iswblank (configure.ac): ... to here.
49492 2011-05-21  Bruno Haible  <bruno@clisp.org>
49494         atanl: Move AC_LIBOBJ invocations to module description.
49495         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49496         * modules/atanl (configure.ac): ... to here.
49498 2011-05-21  Bruno Haible  <bruno@clisp.org>
49500         acosl: Move AC_LIBOBJ invocations to module description.
49501         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49502         * modules/acosl (configure.ac): ... to here.
49504 2011-05-21  Bruno Haible  <bruno@clisp.org>
49506         asinl: Respect rules for use of AC_LIBOBJ.
49507         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49508         * modules/asinl (configure.ac): ... to here.
49510 2011-05-21  Bruno Haible  <bruno@clisp.org>
49512         tanl: Move AC_LIBOBJ invocations to module description.
49513         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49514         * modules/tanl (configure.ac): ... to here.
49516 2011-05-21  Bruno Haible  <bruno@clisp.org>
49518         cosl: Move AC_LIBOBJ invocations to module description.
49519         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49520         * modules/cosl (configure.ac): ... to here.
49522 2011-05-21  Bruno Haible  <bruno@clisp.org>
49524         sinl: Move AC_LIBOBJ invocations to module description.
49525         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49526         * modules/sinl (configure.ac): ... to here.
49528 2011-05-21  Bruno Haible  <bruno@clisp.org>
49530         logl: Move AC_LIBOBJ invocations to module description.
49531         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49532         * modules/logl (configure.ac): ... to here.
49534 2011-05-21  Bruno Haible  <bruno@clisp.org>
49536         expl: Move AC_LIBOBJ invocations to module description.
49537         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49538         * modules/expl (configure.ac): ... to here.
49540 2011-05-21  Bruno Haible  <bruno@clisp.org>
49542         roundl: Move AC_LIBOBJ invocations to module description.
49543         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49544         * modules/roundl (configure.ac): ... to here.
49546 2011-05-21  Bruno Haible  <bruno@clisp.org>
49548         round: Move AC_LIBOBJ invocations to module description.
49549         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49550         * modules/round (configure.ac): ... to here.
49552 2011-05-21  Bruno Haible  <bruno@clisp.org>
49554         roundf: Move AC_LIBOBJ invocations to module description.
49555         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49556         * modules/roundf (configure.ac): ... to here.
49558 2011-05-21  Bruno Haible  <bruno@clisp.org>
49560         truncl: Move AC_LIBOBJ invocations to module description.
49561         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49562         * modules/truncl (configure.ac): ... to here.
49564 2011-05-21  Bruno Haible  <bruno@clisp.org>
49566         trunc: Move AC_LIBOBJ invocations to module description.
49567         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49568         * modules/trunc (configure.ac): ... to here.
49570 2011-05-21  Bruno Haible  <bruno@clisp.org>
49572         truncf: Move AC_LIBOBJ invocations to module description.
49573         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49574         * modules/truncf (configure.ac): ... to here.
49576 2011-05-21  Bruno Haible  <bruno@clisp.org>
49578         ceill: Move AC_LIBOBJ invocations to module description.
49579         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49580         * modules/ceill (configure.ac): ... to here.
49582 2011-05-21  Bruno Haible  <bruno@clisp.org>
49584         ceil: Move AC_LIBOBJ invocations to module description.
49585         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49586         * modules/ceil (configure.ac): ... to here.
49588 2011-05-21  Bruno Haible  <bruno@clisp.org>
49590         ceilf: Move AC_LIBOBJ invocations to module description.
49591         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49592         * modules/ceilf (configure.ac): ... to here.
49594 2011-05-21  Bruno Haible  <bruno@clisp.org>
49596         floorl: Respect rules for use of AC_LIBOBJ.
49597         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49598         * modules/floorl (configure.ac): ... to here.
49600 2011-05-21  Bruno Haible  <bruno@clisp.org>
49602         floor: Respect rules for use of AC_LIBOBJ.
49603         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49604         * modules/floor (configure.ac): ... to here.
49606 2011-05-21  Bruno Haible  <bruno@clisp.org>
49608         floorf: Move AC_LIBOBJ invocations to module description.
49609         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49610         * modules/floorf (configure.ac): ... to here.
49612 2011-05-20  Bruno Haible  <bruno@clisp.org>
49614         sqrtl: Respect rules for use of AC_LIBOBJ.
49615         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49616         * modules/sqrtl (configure.ac): ... to here.
49618 2011-05-20  Bruno Haible  <bruno@clisp.org>
49620         ldexpl: Respect rules for use of AC_LIBOBJ.
49621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49622         * modules/ldexpl (configure.ac): ... to here.
49624 2011-05-20  Bruno Haible  <bruno@clisp.org>
49626         frexpl*: Respect rules for use of AC_LIBOBJ.
49627         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49628         invocation from here...
49629         * modules/frexpl (configure.ac): ... to here.
49630         * modules/frexpl-nolibm (configure.ac): ... and here.
49632 2011-05-20  Bruno Haible  <bruno@clisp.org>
49634         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49635         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49636         invocation from here...
49637         * modules/frexp (configure.ac): ... to here.
49638         * modules/frexp-nolibm (configure.ac): ... and here.
49640 2011-05-20  Bruno Haible  <bruno@clisp.org>
49642         isnan: Respect rules for use of AC_LIBOBJ.
49643         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49644         invocations here.
49645         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49646         REPLACE_ISNAN.
49647         * modules/isnand (configure.ac): Likewise.
49648         * modules/isnanl (configure.ac): Likewise.
49650 2011-05-20  Bruno Haible  <bruno@clisp.org>
49652         isnanl*: Respect rules for use of AC_LIBOBJ.
49653         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49654         invocation from here...
49655         * modules/isnanl (configure.ac): ... to here.
49656         * modules/isnanl-nolibm (configure.ac): ... and here.
49658 2011-05-20  Bruno Haible  <bruno@clisp.org>
49660         isnand*: Move AC_LIBOBJ invocations to module description.
49661         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49662         invocation from here...
49663         * modules/isnand (configure.ac): ... to here.
49664         * modules/isnand-nolibm (configure.ac): ... and here.
49666 2011-05-20  Bruno Haible  <bruno@clisp.org>
49668         isnanf*: Move AC_LIBOBJ invocations to module description.
49669         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49670         invocation from here...
49671         * modules/isnanf (configure.ac): ... to here.
49672         * modules/isnanf-nolibm (configure.ac): ... and here.
49674 2011-05-20  Bruno Haible  <bruno@clisp.org>
49676         isnan*: Separate the AC_LIBOBJ invocations.
49677         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49678         AC_LIBOBJ invocation.
49679         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49680         here.
49681         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49682         AC_LIBOBJ invocation.
49683         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49684         here.
49685         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49686         AC_LIBOBJ invocation.
49687         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49688         here.
49689         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49691 2011-05-08  Bruno Haible  <bruno@clisp.org>
49693         isinf: Move AC_LIBOBJ invocations to module description.
49694         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49695         * modules/isinf (configure.ac): ... to here.
49697 2011-05-08  Bruno Haible  <bruno@clisp.org>
49699         isfinite: Move AC_LIBOBJ invocations to module description.
49700         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49701         * modules/isfinite (configure.ac): ... to here.
49703 2011-05-08  Bruno Haible  <bruno@clisp.org>
49705         isblank: Move AC_LIBOBJ invocations to module description.
49706         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49707         here...
49708         * modules/isblank (configure.ac): ... to here.
49710 2011-05-08  Bruno Haible  <bruno@clisp.org>
49712         isapipe: Move AC_LIBOBJ invocations to module description.
49713         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49714         gl_PREREQ_ISAPIPE invocations from here...
49715         * modules/isapipe (configure.ac): ... to here.
49716         (Depends-on): Update condition.
49718 2011-05-08  Bruno Haible  <bruno@clisp.org>
49720         ioctl: Move AC_LIBOBJ invocations to module description.
49721         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49722         invocations from here...
49723         * modules/ioctl (configure.ac): ... to here.
49724         (Depends-on): Update condition.
49726 2011-05-08  Bruno Haible  <bruno@clisp.org>
49728         imaxdiv: Move AC_LIBOBJ invocations to module description.
49729         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49730         invocations from here...
49731         * modules/imaxdiv (configure.ac): ... to here.
49733 2011-05-08  Bruno Haible  <bruno@clisp.org>
49735         imaxabs: Move AC_LIBOBJ invocations to module description.
49736         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49737         invocations from here...
49738         * modules/imaxabs (configure.ac): ... to here.
49740 2011-05-08  Bruno Haible  <bruno@clisp.org>
49742         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49744         AC_LIBOBJ invocations from here...
49745         * modules/getaddrinfo (configure.ac): ... to here.
49746         (Depends-on): Add conditions.
49748 2011-05-08  Bruno Haible  <bruno@clisp.org>
49750         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49751         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49752         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49753         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49754         (gl_PREREQ_INET_PTON): ... from here.
49755         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49756         gl_PREREQ_INET_PTON here.
49757         (Depends-on): Update condition.
49759 2011-05-08  Bruno Haible  <bruno@clisp.org>
49761         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49762         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49763         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49764         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49765         (gl_PREREQ_INET_NTOP): ... from here.
49766         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49767         gl_PREREQ_INET_NTOP here.
49768         (Depends-on): Update condition.
49770 2011-05-08  Bruno Haible  <bruno@clisp.org>
49772         iconv_open: Move AC_LIBOBJ invocations to module description.
49773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49774         AC_LIBOBJ invocations from here...
49775         * modules/iconv_open (configure.ac): ... to here.
49777 2011-05-08  Bruno Haible  <bruno@clisp.org>
49779         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49780         If module 'iconv_open' is among the main modules and module
49781         'iconv_open-utf' is among the tests dependencies, then
49782         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49783         return the special iconv_t values. Therefore iconv() and iconv_close()
49784         must support these special iconv_t values, already in lib, not only in
49785         tests.
49786         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49788         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49789         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49790         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49791         (Depends-on): Add the dependencies of iconv_open-utf.
49792         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49793         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49794         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49796 2011-05-08  Bruno Haible  <bruno@clisp.org>
49798         group-member: Move AC_LIBOBJ invocations to module description.
49799         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49800         gl_PREREQ_GROUP_MEMBER invocations from here...
49801         * modules/group-member (configure.ac): ... to here.
49803 2011-05-08  Bruno Haible  <bruno@clisp.org>
49805         grantpt: Move AC_LIBOBJ invocations to module description.
49806         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49807         invocations from here...
49808         * modules/grantpt (configure.ac): ... to here.
49810 2011-05-08  Bruno Haible  <bruno@clisp.org>
49812         glob: Move AC_LIBOBJ invocations to module description.
49813         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49814         from here...
49815         * modules/glob (configure.ac): ... to here.
49817 2011-05-08  Bruno Haible  <bruno@clisp.org>
49819         getusershell: Move AC_LIBOBJ invocations to module description.
49820         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49821         Move AC_LIBOBJ invocation from here...
49822         * modules/getusershell (configure.ac): ... to here.
49823         (Depends-on): Update condition.
49825 2011-05-08  Bruno Haible  <bruno@clisp.org>
49827         gettimeofday: Move AC_LIBOBJ invocations to module description.
49828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49829         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49830         gl_PREREQ_GETTIMEOFDAY invocations from here...
49831         * modules/gettimeofday (configure.ac): ... to here.
49833 2011-05-08  Bruno Haible  <bruno@clisp.org>
49835         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49836         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49837         just gl_FUNC_TZSET.
49838         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49839         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49841         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49843 2011-05-08  Bruno Haible  <bruno@clisp.org>
49845         getsubopt: Move AC_LIBOBJ invocations to module description.
49846         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49847         gl_PREREQ_GETSUBOPT invocations from here...
49848         * modules/getsubopt (configure.ac): ... to here.
49850 2011-05-08  Bruno Haible  <bruno@clisp.org>
49852         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49853         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49854         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49855         * modules/getpass-gnu (configure.ac): ... to here.
49857 2011-05-08  Bruno Haible  <bruno@clisp.org>
49859         getpass: Move AC_LIBOBJ invocations to module description.
49860         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49861         gl_PREREQ_GETPASS invocations from here...
49862         * modules/getpass (configure.ac): ... to here.
49864 2011-05-08  Bruno Haible  <bruno@clisp.org>
49866         getpagesize: Move AC_LIBOBJ invocations to module description.
49867         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49868         from here...
49869         * modules/getpagesize (configure.ac): ... to here.
49871 2011-05-08  Bruno Haible  <bruno@clisp.org>
49873         getopt: Move AC_LIBOBJ invocations to module description.
49874         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49875         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49876         invocations from here...
49877         * modules/getopt-gnu (configure.ac): ... to here.
49878         * modules/getopt-posix (configure.ac): ... and here.
49879         (Depends-on): Update condition.
49881 2011-05-08  Bruno Haible  <bruno@clisp.org>
49883         getopt, argp: Respect rules for use of AC_LIBOBJ.
49884         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49885         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49886         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49887         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49889 2011-05-08  Bruno Haible  <bruno@clisp.org>
49891         getlogin_r: Move AC_LIBOBJ invocations to module description.
49892         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49893         gl_PREREQ_GETLOGIN_R invocations from here...
49894         * modules/getlogin_r (configure.ac): ... to here.
49896 2011-05-08  Bruno Haible  <bruno@clisp.org>
49898         getlogin: Move AC_LIBOBJ invocations to module description.
49899         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49900         here...
49901         * modules/getlogin (configure.ac): ... to here.
49903 2011-05-08  Bruno Haible  <bruno@clisp.org>
49905         getloadavg: Move AC_LIBOBJ invocations to module description.
49906         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49907         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49908         * modules/getloadavg (configure.ac): ... to here.
49910 2011-05-08  Bruno Haible  <bruno@clisp.org>
49912         gethrxtime: Move AC_LIBOBJ invocations to module description.
49913         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49914         LIB_GETHRXTIME from here...
49915         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49916         invocations from here...
49917         * modules/gethrxtime (configure.ac): ... to here.
49919 2011-05-08  Bruno Haible  <bruno@clisp.org>
49921         gethostname: Move AC_LIBOBJ invocations to module description.
49922         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49923         gl_PREREQ_GETHOSTNAME invocations from here...
49924         * modules/gethostname (configure.ac): ... to here.
49926 2011-05-08  Bruno Haible  <bruno@clisp.org>
49928         getgroups: Move AC_LIBOBJ invocations to module description.
49929         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49930         here...
49931         * modules/getgroups (configure.ac): ... to here.
49933 2011-05-08  Bruno Haible  <bruno@clisp.org>
49935         getdtablesize: Move AC_LIBOBJ invocations to module description.
49936         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49937         invocation from here...
49938         * modules/getdtablesize (configure.ac): ... to here.
49940 2011-05-08  Bruno Haible  <bruno@clisp.org>
49942         getdomainname: Move AC_LIBOBJ invocations to module description.
49943         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49944         gl_PREREQ_GETDOMAINNAME invocations from here...
49945         * modules/getdomainname (configure.ac): ... to here.
49947 2011-05-08  Bruno Haible  <bruno@clisp.org>
49949         getline: Move AC_LIBOBJ invocations to module description.
49950         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49951         invocations from here...
49952         * modules/getline (configure.ac): ... to here.
49954 2011-05-08  Bruno Haible  <bruno@clisp.org>
49956         getline: Simplify.
49957         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49958         It's already handled through the module dependency.
49960 2011-05-08  Bruno Haible  <bruno@clisp.org>
49962         getdelim: Move AC_LIBOBJ invocations to module description.
49963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49964         and gl_PREREQ_GETDELIM invocations from here...
49965         * modules/getdelim (configure.ac): ... to here.
49966         (Depends-on): Fix condition.
49968 2011-05-08  Bruno Haible  <bruno@clisp.org>
49970         getcwd: Move AC_LIBOBJ invocations to module description.
49971         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
49972         invocations from here...
49973         * modules/getcwd (configure.ac): ... to here.
49975 2011-05-08  Bruno Haible  <bruno@clisp.org>
49977         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
49978         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
49979         here...
49980         * modules/getcwd-lgpl (configure.ac): ... to here.
49982 2011-05-07  Bruno Haible  <bruno@clisp.org>
49984         crypto/gc: Move AC_LIBOBJ invocations to module description.
49985         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
49986         * modules/crypto/gc (configure.ac): ... to here.
49988 2011-05-07  Bruno Haible  <bruno@clisp.org>
49990         fwriting: Move AC_LIBOBJ invocations to module description.
49991         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
49992         here...
49993         * modules/fwriting (configure.ac): ... to here.
49995 2011-05-07  Bruno Haible  <bruno@clisp.org>
49997         fwritable: Move AC_LIBOBJ invocations to module description.
49998         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
49999         here...
50000         * modules/fwritable (configure.ac): ... to here.
50002 2011-05-07  Bruno Haible  <bruno@clisp.org>
50004         futimens: Move AC_LIBOBJ invocations to module description.
50005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50006         here...
50007         * modules/futimens (configure.ac): ... to here.
50009 2011-05-07  Bruno Haible  <bruno@clisp.org>
50011         ftruncate: Move AC_LIBOBJ invocations to module description.
50012         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50013         gl_PREREQ_FTRUNCATE invocations from here...
50014         * modules/ftruncate (configure.ac): ... to here.
50016 2011-05-07  Bruno Haible  <bruno@clisp.org>
50018         fsync: Move AC_LIBOBJ invocations to module description.
50019         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50020         invocations from here...
50021         * modules/fsync (configure.ac): ... to here.
50023 2011-05-07  Bruno Haible  <bruno@clisp.org>
50025         fsusage: Move AC_LIBOBJ invocations to module description.
50026         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50027         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50028         * modules/fsusage (configure.ac): ... to here.
50030 2011-05-07  Bruno Haible  <bruno@clisp.org>
50032         freopen: Move AC_LIBOBJ invocations to module description.
50033         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50034         invocations from here...
50035         * modules/freopen (configure.ac): ... to here.
50037 2011-05-07  Bruno Haible  <bruno@clisp.org>
50039         free: Move AC_LIBOBJ invocations to module description.
50040         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50041         invocations from here...
50042         * modules/free (configure.ac): ... to here.
50044 2011-05-07  Bruno Haible  <bruno@clisp.org>
50046         freadable: Move AC_LIBOBJ invocations to module description.
50047         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50048         here...
50049         * modules/freadable (configure.ac): ... to here.
50051 2011-05-07  Bruno Haible  <bruno@clisp.org>
50053         fpurge: Move AC_LIBOBJ invocations to module description.
50054         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50055         invocations from here...
50056         * modules/fpurge (configure.ac): ... to here.
50058 2011-05-07  Bruno Haible  <bruno@clisp.org>
50060         fpending: Move AC_LIBOBJ invocations to module description.
50061         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50062         gl_FUNC_FPENDING.
50063         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50064         invocations from here...
50065         * modules/fpending (configure.ac): ... to here.
50067 2011-05-07  Bruno Haible  <bruno@clisp.org>
50069         fopen: Move AC_LIBOBJ invocations to module description.
50070         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50071         invocations from here...
50072         * modules/fopen (configure.ac): ... to here.
50074 2011-05-07  Bruno Haible  <bruno@clisp.org>
50076         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
50077         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
50078         gl_FUNC_FNMATCH_POSIX.
50079         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
50080         invocations from here...
50081         * modules/fnmatch (configure.ac): ... to here.
50082         * modules/fnmatch-gnu (configure.ac): ... and here.
50084 2011-05-07  Bruno Haible  <bruno@clisp.org>
50086         flock: Move AC_LIBOBJ invocations to module description.
50087         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
50088         invocations from here...
50089         * modules/flock (configure.ac): ... to here.
50091 2011-05-07  Bruno Haible  <bruno@clisp.org>
50093         fileblocks: Move AC_LIBOBJ invocations to module description.
50094         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
50095         gl_PREREQ_FILEBLOCKS invocations from here...
50096         * modules/fileblocks (configure.ac): ... to here.
50098 2011-05-06  Bruno Haible  <bruno@clisp.org>
50100         fflush: Move AC_LIBOBJ invocations to module description.
50101         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
50102         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
50103         invocations from here...
50104         * modules/fflush (configure.ac): ... to here.
50106 2011-05-06  Bruno Haible  <bruno@clisp.org>
50108         fdopendir: Move AC_LIBOBJ invocations to module description.
50109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50110         here...
50111         * modules/fdopendir (configure.ac): ... to here.
50112         (Depends-on): Improve conditions.
50114 2011-05-06  Bruno Haible  <bruno@clisp.org>
50116         _Exit: Move AC_LIBOBJ invocations to module description.
50117         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50118         invocations from here...
50119         * modules/_Exit (configure.ac): ... to here.
50121 2011-05-21  Bruno Haible  <bruno@clisp.org>
50123         euidaccess: Respect rules for use of AC_LIBOBJ.
50124         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50126         from here...
50127         * modules/euidaccess (configure.ac): ... to here.
50129 2011-05-06  Bruno Haible  <bruno@clisp.org>
50131         error: Move AC_LIBOBJ invocations to module description.
50132         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50133         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50134         invocations from here...
50135         * modules/error (configure.ac): ... to here.
50137 2011-05-06  Bruno Haible  <bruno@clisp.org>
50139         duplocale: Move AC_LIBOBJ invocations to module description.
50140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50141         gl_PREREQ_DUPLOCALE invocations from here...
50142         * modules/duplocale (configure.ac): ... to here.
50144 2011-05-05  Bruno Haible  <bruno@clisp.org>
50146         dirfd: Move AC_LIBOBJ invocations to module description.
50147         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50148         gl_FUNC_DIRFD.
50149         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50150         here...
50151         * modules/dirfd (configure.ac): ... to here.
50152         (Depends-on): Fix condition.
50154 2011-05-05  Bruno Haible  <bruno@clisp.org>
50156         chown: Respect rules for use of AC_LIBOBJ.
50157         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50158         * modules/chown (configure.ac): ... to here.
50160 2011-05-05  Bruno Haible  <bruno@clisp.org>
50162         chdir-long: Move AC_LIBOBJ invocations to module description.
50163         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50164         gl_PREREQ_CHDIR_LONG invocations from here...
50165         * modules/chdir-long (configure.ac): ... to here.
50167 2011-05-05  Bruno Haible  <bruno@clisp.org>
50169         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50170         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50171         from here...
50172         * modules/canonicalize-lgpl (configure.ac): ... to here.
50174 2011-05-05  Bruno Haible  <bruno@clisp.org>
50176         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50177         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50178         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50179         REPLACE_CALLOC.
50180         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50181         * modules/calloc-gnu (configure.ac): Likewise.
50183 2011-05-05  Bruno Haible  <bruno@clisp.org>
50185         btowc: Move AC_LIBOBJ invocations to module description.
50186         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50187         invocations from here...
50188         * modules/btowc (configure.ac): ... to here.
50190 2011-05-21  Bruno Haible  <bruno@clisp.org>
50192         atexit: Move AC_LIBOBJ invocations to module description.
50193         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50195         here...
50196         * modules/atexit (configure.ac): ... to here.
50198 2011-05-05  Bruno Haible  <bruno@clisp.org>
50200         atoll: Move AC_LIBOBJ invocations to module description.
50201         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50202         invocations from here...
50203         * modules/atoll (configure.ac): ... to here.
50205 2011-05-05  Bruno Haible  <bruno@clisp.org>
50207         argz: Move AC_LIBOBJ invocations to module description.
50208         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50209         * modules/argz (configure.ac): ... to here.
50211 2011-05-05  Bruno Haible  <bruno@clisp.org>
50213         alphasort: Move AC_LIBOBJ invocations to module description.
50214         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50215         gl_PREREQ_ALPHASORT invocations from here...
50216         * modules/alphasort (configure.ac): ... to here.
50218 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50220         verify: new macro verify_expr; verify_true deprecated
50221         * NEWS: Mention this.
50222         * doc/verify.texi (Compile-time Assertions): Document this.
50223         * lib/verify.h (verify_true): Deprecate.
50224         (verify_expr): New macro.
50225         * tests/test-verify.c (function): Test verify_expr.
50227 2011-06-14  Jim Meyering  <meyering@redhat.com>
50229         init.sh: give more portable redirection-related advice in a comment
50230         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50231         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50232         for lots of discussion.  Stefano Lattarini suggested the solution
50233         of putting "9>&2" after the command.  Reported by Bruno Haible.
50235 2011-06-13  Bruno Haible  <bruno@clisp.org>
50237         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50238         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50239         'none'.
50241 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50243         ftoastr: use strtof only if HAVE_STRTOF
50244         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50245         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50246         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50247         * modules/ftoastr (configure.ac): Check for strtof.
50249 2011-06-13  Bruno Haible  <bruno@clisp.org>
50251         gnulib-tool: Addendum to 2011-06-08 commit.
50252         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50253         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50255 2011-06-13  Bruno Haible  <bruno@clisp.org>
50257         fseeko: Provide a non-inline replacement of fseek().
50258         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50259         * modules/fseeko (Depends-on): Add fseek.
50260         * modules/fseek (License): Change to LGPLv2+.
50262 2011-06-13  Bruno Haible  <bruno@clisp.org>
50264         ftello: Provide a non-inline replacement of ftell().
50265         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50266         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50267         not have ftello() (such as on mingw).
50268         * modules/ftello (Depends-on): Add ftell.
50269         * modules/ftell (License): Change to LGPLv2+.
50271 2011-05-07  Bruno Haible  <bruno@clisp.org>
50273         ftell: Move AC_LIBOBJ invocations to module description.
50274         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50275         * modules/ftell (configure.ac): ... to here.
50277 2011-05-07  Bruno Haible  <bruno@clisp.org>
50279         ftello: Respect rules for use of AC_LIBOBJ.
50280         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50281         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50282         here...
50283         * modules/ftello (configure.ac): ... to here.
50285 2011-05-07  Bruno Haible  <bruno@clisp.org>
50287         fseeko: Simplify.
50288         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50289         (gl_FUNC_FSEEKO): Inline it here.
50291 2011-05-07  Bruno Haible  <bruno@clisp.org>
50293         fseek: Move AC_LIBOBJ invocations to module description.
50294         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50295         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50296         * modules/fseek (configure.ac): ... to here.
50298 2011-05-07  Bruno Haible  <bruno@clisp.org>
50300         fseek: Respect rules for use of AC_LIBOBJ.
50301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50302         here...
50303         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50305 2011-05-07  Bruno Haible  <bruno@clisp.org>
50307         fseeko: Respect rules for use of AC_LIBOBJ.
50308         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50309         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50310         here...
50311         * modules/fseeko (configure.ac): ... to here.
50313 2011-06-13  Bruno Haible  <bruno@clisp.org>
50315         gnulib-tool: Allow comments in the 'Depends-on' section.
50316         * doc/gnulib.texi (Module description): Mention comment syntax in the
50317         Depends-on section.
50318         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50320 2011-06-13  Bruno Haible  <bruno@clisp.org>
50322         file-set.h: guard __attibute__ use, now that it's not always defined
50323         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50324         versions that support it.  This fixes a coreutils build failure with
50325         the vendor cc on HP-UX 11.31.
50327 2011-06-12  Bruno Haible  <bruno@clisp.org>
50329         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50330         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50331         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50332         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50333         (acl, aclsort): New declarations.
50334         (aclv_nontrivial): New declaration.
50335         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50336         (file_has_acl): Read also the second kind of HP-UX ACLs.
50337         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50338         kind of HP-UX ACLs if the first kind fails.
50339         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50340         second kind of HP-UX ACLs.
50341         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50342         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50343         agree.
50344         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50345         hpuxjfs.
50346         Handle hpuxjfs.
50347         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50348         hpuxjfs.
50349         Handle hpuxjfs.
50350         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50351         (func_test_same_acls): Use both lsacl and getacl.
50352         Handle hpuxjfs.
50353         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50354         (func_test_same_acls): Use both lsacl and getacl.
50355         Handle hpuxjfs.
50357 2011-06-12  Bruno Haible  <bruno@clisp.org>
50359         acl: Complete the 2010-08-10 fix.
50360         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50361         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50362         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50363         explicitly.
50364         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50365         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50367 2011-06-12  Bruno Haible  <bruno@clisp.org>
50369         spawn-pipe tests: Comments.
50370         * tests/test-spawn-pipe-child.c (main): Update comment.
50371         Reported by James Youngman <jay@gnu.org>.
50373 2011-06-11  James Youngman  <jay@gnu.org>
50375         New module 'stat-size'.
50376         * modules/stat-size: New module.  Provides macros for accessing
50377         file size information in instances of struct stat.  Depends on the
50378         fileblocks module because it calls st_blocks.
50379         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50380         * doc/gnulib.texi: Include stat-size.texi.
50381         * doc/stat-size.texi: Documentation for this module.
50382         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50383         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50384         AC_STRUCT_ST_BLOCKS.
50386 2011-06-09  Bruno Haible  <bruno@clisp.org>
50388         thread: Support pthreads-win32.
50389         * lib/glthread/thread.h (gl_thread_self): Define differently on
50390         pthreads-win32.
50391         (gl_null_thread): New declaration.
50392         (gl_thread_self_pointer): New macro.
50393         * lib/glthread/thread.c (gl_null_thread): New constant.
50394         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50395         gl_thread_self.
50396         * tests/test-tls.c: Likewise.
50397         Suggested by Paul Eggert. Reported by Eric Blake.
50399 2011-06-09  Bruno Haible  <bruno@clisp.org>
50401         thread: Fix confusion between NULL and 0.
50402         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50403         Reported by Paul Eggert.
50405 2011-06-09  Bruno Haible  <bruno@clisp.org>
50407         spawn-pipe tests: Avoid test failure on HP-UX 11.
50408         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50409         is closed.
50411 2011-06-09  Bruno Haible  <bruno@clisp.org>
50413         acl tests: Fix compilation error on HP-UX 11.
50414         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50416 2011-06-09  Bruno Haible  <bruno@clisp.org>
50418         rmdir: Avoid test failure on HP-UX 10.20.
50419         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50420         EEXIST.
50422 2011-06-08  Eric Blake  <eblake@redhat.com>
50424         perror: fix test on mingw
50425         * modules/perror-tests (Depends-on): Add dup2.
50427         strerror_r-posix: fix on MacOS
50428         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50430         logic bug.
50431         * lib/strerror_r.c (strerror_r): Fix the bug.
50432         * lib/strerror.c (strerror): Likewise.
50433         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50434         problem.
50435         * doc/posix-functions/strerror.texi (strerror): Likewise.
50436         * doc/posix-functions/perror.texi (perror): Likewise.
50437         * tests/test-strerror.c (main): Enhance test.
50438         * tests/test-strerror_r.c (main): Likewise.
50440 2011-06-08  Bruno Haible  <bruno@clisp.org>
50442         gnulib-tool: Better isolation between different gnulib-tool invocations.
50443         * gnulib-tool: New option --witness-c-macro.
50444         (witness_c_macro): New variable.
50445         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50446         AM_CPPFLAGS define it as a C macro.
50447         (func_emit_tests_Makefile_am): Likewise.
50448         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50449         read it from there.
50450         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50451         m4_define, not AC_DEFUN.
50452         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50453         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50454         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50455         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50456         s|...|...|, to substitute the values of the GNULIB_* module indicator
50457         variables.
50458         * modules/dirent (Makefile.am): Likewise.
50459         * modules/fcntl-h (Makefile.am): Likewise.
50460         * modules/iconv-h (Makefile.am): Likewise.
50461         * modules/langinfo (Makefile.am): Likewise.
50462         * modules/locale (Makefile.am): Likewise.
50463         * modules/math (Makefile.am): Likewise.
50464         * modules/netdb (Makefile.am): Likewise.
50465         * modules/poll-h (Makefile.am): Likewise.
50466         * modules/pty (Makefile.am): Likewise.
50467         * modules/search (Makefile.am): Likewise.
50468         * modules/signal (Makefile.am): Likewise.
50469         * modules/spawn (Makefile.am): Likewise.
50470         * modules/stdio (Makefile.am): Likewise.
50471         * modules/stdlib (Makefile.am): Likewise.
50472         * modules/string (Makefile.am): Likewise.
50473         * modules/sys_ioctl (Makefile.am): Likewise.
50474         * modules/sys_select (Makefile.am): Likewise.
50475         * modules/sys_socket (Makefile.am): Likewise.
50476         * modules/sys_stat (Makefile.am): Likewise.
50477         * modules/sys_times (Makefile.am): Likewise.
50478         * modules/sys_utsname (Makefile.am): Likewise.
50479         * modules/sys_wait (Makefile.am): Likewise.
50480         * modules/termios (Makefile.am): Likewise.
50481         * modules/time (Makefile.am): Likewise.
50482         * modules/unistd (Makefile.am): Likewise.
50483         * modules/wchar (Makefile.am): Likewise.
50485 2011-06-08  Eric Blake  <eblake@redhat.com>
50487         strerror: simplify replacement
50488         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50489         * modules/strerror (configure.ac): No prereqs needed here...
50490         * modules/strerror-override (configure.ac): ...but this needs it.
50491         (Files): Add file for needed prereq macro.
50493 2011-06-08  Bruno Haible  <bruno@clisp.org>
50495         strerror_r-posix: Tweaks.
50496         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50497         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50498         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50499         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50500         (gl_FUNC_STRERROR_R): ... to here.
50501         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50503 2011-06-07  Eric Blake  <eblake@redhat.com>
50505         perror: document fixed bugs
50506         * doc/posix-functions/perror.texi (perror): Document recent
50507         patches.
50509 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50511         stat-time: get_stat_birthtime failure is better-defined
50512         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50513         return a timestamp whose tv_sec and tv_nsec values are both -1.
50514         Previously, the spec said only that the tv_nsec value was negative.
50515         This upward-compatible change simplifies GNU tar a bit.
50517 2011-06-07  Eric Blake  <eblake@redhat.com>
50519         strerror_r-posix: work around cygwin 1.7.9
50520         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50521         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50522         bug without replacing strerror_r.
50523         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50524         strerror_r is buggy, but without requiring strerror_r compilation.
50525         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50527         test-perror: relax test to ignore cygwin bug
50528         * tests/test-perror2.c (main): Relax test on requiring detection
50529         of stream errors, and use unbuffered stream.
50530         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50531         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50532         * doc/posix-functions/fputc.texi (fputc): Likewise.
50533         * doc/posix-functions/fputs.texi (fputs): Likewise.
50534         * doc/posix-functions/fputws.texi (fputws): Likewise.
50535         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50536         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50537         * doc/posix-functions/getopt.texi (getopt): Likewise.
50538         * doc/posix-functions/perror.texi (perror): Likewise.
50539         * doc/posix-functions/printf.texi (printf): Likewise.
50540         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50541         * doc/posix-functions/psignal.texi (psignal): Likewise.
50542         * doc/posix-functions/putc.texi (putc): Likewise.
50543         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50544         Likewise.
50545         * doc/posix-functions/putchar.texi (putchar): Likewise.
50546         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50547         Likewise.
50548         * doc/posix-functions/puts.texi (puts): Likewise.
50549         * doc/posix-functions/putwc.texi (putwc): Likewise.
50550         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50551         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50552         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50553         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50554         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50555         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50556         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50557         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50559 2011-05-22  Bruno Haible  <bruno@clisp.org>
50561         strerror: Move AC_LIBOBJ invocations to module description.
50562         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50563         gl_PREREQ_STRERROR invocations from here...
50564         * modules/strerror (configure.ac): ... to here.
50566 2011-05-21  Bruno Haible  <bruno@clisp.org>
50568         perror: Use common idiom.
50569         * modules/perror (configure.ac): Reorder statements.
50571 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50573         tests: fix usage message in 'mktempd_'
50574         * tests/init.sh (mktempd_): In the usage message, use literal
50575         'mktempd_', not '$ME' (which is even undefined), as the name of
50576         the subroutine.
50578 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50580         tests init: new function 'fatal_', for hard errors
50581         Before this patch, the only way offered by tests/init.sh to
50582         properly signal a hard error was the `framework_failure_'
50583         function.  But the error message issued by that function,
50584         as its name would suggest, refers to a set-up failure in the
50585         testsuite, while hard errors can obviously also be due to
50586         other reasons.  The best way to fix this inconsistency is to
50587         introduce a new function with a more general error message.
50588         * tests/init.sh (fatal_): New function.
50590 2011-06-06  Eric Blake  <eblake@redhat.com>
50592         canonicalize-lgpl: use common idiom
50593         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50594         over newer POSIX -Rf.
50595         Reported by Bruno Haible.
50597         canonicalize-lgpl: work around AIX realpath bug
50598         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50599         * doc/posix-functions/realpath.texi (realpath): Document it.
50600         Reported by Bruno Haible.
50602         strerror: work around FreeBSD bug
50603         * lib/strerror.c (strerror): Special case 0.
50604         Reported by Bruno Haible.
50606         strerror-override: avoid bloating errno module
50607         * modules/errno (Files, configure.ac): Move replacement strings...
50608         * modules/strerror-override: ...to new module.
50609         * modules/strerror (Depends-on): Add strerror-override.
50610         * modules/strerror_r-posix (Depends-on): Likewise.
50611         * MODULES.html.sh: Document new module.
50612         Reported by Bruno Haible.
50614 2011-06-06  Bruno Haible  <bruno@clisp.org>
50616         spawn-pipe tests: Rename program.
50617         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50618         * tests/test-spawn-pipe-child.c: Update comment.
50619         * tests/test-spawn-pipe.sh: Update.
50620         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50622         spawn-pipe tests: Link the child program only against libc.
50623         * tests/test-spawn-pipe-child.c: New file, extracted from
50624         tests/test-spawn-pipe.c.
50625         (main): Expect only one argument.
50626         (is_open): New function, copied from tests/test-pipe.c.
50627         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50628         (child_main): Remove function.
50629         (test_pipe): Pass only one argument to the child program.
50630         (main): Remove child process code. Expect the child program's name as
50631         first argument.
50632         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50633         argument.
50634         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50635         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50636         test-spawn-pipe-child against no libraries.
50638 2011-06-06  Bruno Haible  <bruno@clisp.org>
50640         careadlinkat: Avoid mismatch between ssize_t and int.
50641         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50642         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50644 2011-06-06  Jim Meyering  <meyering@redhat.com>
50646         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50647         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50648         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50650 2011-06-05  Bruno Haible  <bruno@clisp.org>
50652         ansi-c++-opt: Interoperability with libtool.
50653         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50654         set the variable to "no", not to ":".
50655         * NEWS: Mention the change.
50657 2011-06-05  Bruno Haible  <bruno@clisp.org>
50659         acl: Fix test failure on AIX 7.
50660         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50661         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50663 2011-06-05  Bruno Haible  <bruno@clisp.org>
50665         pipe-filter-ii: Fix test failure on AIX and IRIX.
50666         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50667         with EAGAIN, retry with a smaller buffer size.
50669 2011-06-05  Bruno Haible  <bruno@clisp.org>
50671         localename: Fix link dependencies.
50672         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50673         * modules/localename-tests (Makefile.am): Link test-localename with
50674         $(LIBTHREAD).
50676 2011-06-05  Bruno Haible  <bruno@clisp.org>
50678         error: Avoid gcc warning.
50679         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50681 2011-06-05  Bruno Haible  <bruno@clisp.org>
50683         unsetenv: Avoid gcc warning.
50684         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50686 2011-06-05  Bruno Haible  <bruno@clisp.org>
50688         setenv: Avoid gcc warning.
50689         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50691 2011-06-05  Bruno Haible  <bruno@clisp.org>
50693         sys_select: Ensure memset is declared also on AIX 7.
50694         * lib/sys_select.in.h: Include <string.h> also on AIX.
50695         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50696         self-contained also on AIX 7.1.
50698 2011-06-04  Jim Meyering  <meyering@redhat.com>
50700         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50701         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50702         function name, "error".
50703         (_gl_translatable_diag_func_re): New configurable variable.
50705 2011-06-04  Bruno Haible  <bruno@clisp.org>
50707         getopt: Avoid gcc warning.
50708         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50710 2011-06-04  Bruno Haible  <bruno@clisp.org>
50712         strerror_r: Fix comments.
50713         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50714         commit.
50716 2011-06-04  Bruno Haible  <bruno@clisp.org>
50718         perror: Fix compilation error.
50719         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50720         Undefine fprintf, not sprintf.
50721         * modules/perror (Depends-on): Remove intprops, verify.
50723 2011-06-04  Bruno Haible  <bruno@clisp.org>
50725         setlocale: Enable replacement on Cygwin 1.5.
50726         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50727         Cygwin 1.5.x.
50728         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50729         LC_CTYPE category also exists on Cygwin 1.5.x.
50731 2011-06-04  Bruno Haible  <bruno@clisp.org>
50733         strerror-override: Don't disable symbol renamings.
50734         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50735         * lib/strerror-override.c: Include config.h.
50736         (strerror_override): Don't undefine.
50738 2011-06-03  Bruno Haible  <bruno@clisp.org>
50740         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50741         * lib/localename.h: Update copyright header.
50742         * lib/localename.c: Likewise.
50743         * lib/relocatable.h: Likewise.
50744         * lib/relocatable.c: Likewise.
50746 2011-06-02  Bruno Haible  <bruno@clisp.org>
50748         doc: Fix a module name.
50749         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50751 2011-06-02  Bruno Haible  <bruno@clisp.org>
50753         pipe2: Remove dependency on 'nonblocking' module.
50754         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50755         O_NONBLOCK is defined by gnulib.
50756         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50757         is zero.
50758         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50759         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50760         defined by gnulib.
50761         (get_nonblocking_flag): New function.
50762         (main): Test O_NONBLOCK flag only if it is nonzero.
50763         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50765 2011-06-03  Jim Meyering  <meyering@redhat.com>
50767         maint: three new prohibit-header-without-use rules
50768         Prohibit use of cloexec.h, posixver.h, same.h without use.
50769         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50770         (sc_prohibit_posixver_without_use): Likewise.
50771         (sc_prohibit_same_without_use): Likewise.
50773 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50775         allocator: 'die' routine is now given requested size
50776         * lib/allocator.h (struct allocator.die): New size arg.
50777         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50778         If the actual problem is an ssize_t limitation, not a size_t or
50779         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50781 2011-06-01  Eric Blake  <eblake@redhat.com>
50783         strerror: drop strerror_r dependency
50784         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50785         * lib/strerror-override.c (strerror_override): ...to new file.
50786         * lib/strerror-override.h: Add prototype.
50787         * lib/strerror-impl.h: Delete.
50788         * lib/strerror.c (strerror): New implementation.
50789         * modules/errno (Files): Add new files.
50790         (configure.ac): Compile new file as appropriate.
50791         * modules/strerror (Files): Drop unused file.
50792         (Depends-on): Drop strerror_r-posix.
50793         * MODULES.html.sh: Document strerror_r-posix.
50794         Requested by Sam Steingold.
50796         perror: call strerror_r directly
50797         * modules/perror (Files): Drop strerror-impl.h.
50798         * lib/perror.c (perror): Use our own stack buffer, rather than
50799         calling a wrapper that uses static storage.
50800         * doc/posix-functions/perror.texi (perror): Document a limitation
50801         of our replacement.
50803         strerror_r: fix includes for FreeBSD
50804         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50805         since we use abort on some platforms.
50806         Reported by Matthias Bolte.
50808 2011-05-31  Bruno Haible  <bruno@clisp.org>
50810         Fix link errors in tests: openat-die uses gettext-h.
50811         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50812         against $(LIBINTL).
50813         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50814         against $(LIBINTL).
50815         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50816         $(LIBINTL).
50817         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50818         against $(LIBINTL).
50819         * modules/linkat-tests (Makefile.am): Link test-linkat against
50820         $(LIBINTL).
50821         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50822         $(LIBINTL).
50823         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50824         against $(LIBINTL).
50825         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50826         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50827         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50828         $(LIBINTL).
50829         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50830         $(LIBINTL).
50831         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50832         $(LIBINTL).
50833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50835 2011-05-31  Bruno Haible  <bruno@clisp.org>
50837         Fix link errors in tests: wait-process uses gettext-h.
50838         * modules/nonblocking-pipe-tests (Makefile.am): Set
50839         test_nonblocking_pipe_main_LDADD.
50840         * modules/nonblocking-socket-tests (Makefile.am): Link
50841         test-nonblocking-socket-main against $(LIBINTL).
50842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50844 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50846         assert-h: work around 'verify' incompatibility
50847         * lib/verify.h: Use @...@ directives, not ifdef.
50848         * modules/assert-h (assert.h): Implement the directives.
50849         (assert.h): Substitute the symbol-prefix more consistently.
50851 2011-05-29  Jim Meyering  <meyering@redhat.com>
50853         trim: remove three superfluous assignments
50854         * lib/trim.c (trim2): Remove three superfluous assignments
50855         and correct brace positioning.
50857 2011-05-29  Bruno Haible  <bruno@clisp.org>
50859         wctype-h: Avoid namespace pollution on Solaris 2.6.
50860         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50861         identifiers.
50862         * doc/posix-headers/wctype.texi: Mention the problem.
50863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50865 2011-05-28  Jim Meyering  <meyering@redhat.com>
50867         parse-datetime.y: accommodate -Wstrict-overflow
50868         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50869         placate -Wstrict-overflow.
50871         trim: avoid a warning from -O2 -Wstrict-overflow
50872         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50874 2011-05-29  Bruno Haible  <bruno@clisp.org>
50876         gnulib-tool: Fix bug in yesterday's commit.
50877         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50878         twice.
50880 2011-05-29  Bruno Haible  <bruno@clisp.org>
50882         Allow multiple gnulib generated include files to be combined.
50883         * gnulib-tool (func_compute_include_guard_prefix): New function.
50884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50885         ${gl_include_guard_prefix} references.
50886         (func_import, func_create_testdir): Invoke
50887         func_compute_include_guard_prefix.
50888         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50889         * lib/ctype.in.h: Likewise.
50890         * lib/dirent.in.h: Likewise.
50891         * lib/errno.in.h: Likewise.
50892         * lib/fcntl.in.h: Likewise.
50893         * lib/float.in.h: Likewise.
50894         * lib/getopt.in.h: Likewise.
50895         * lib/iconv.in.h: Likewise.
50896         * lib/langinfo.in.h: Likewise.
50897         * lib/locale.in.h: Likewise.
50898         * lib/math.in.h: Likewise.
50899         * lib/netdb.in.h: Likewise.
50900         * lib/netinet_in.in.h: Likewise.
50901         * lib/poll.in.h: Likewise.
50902         * lib/pthread.in.h: Likewise.
50903         * lib/pty.in.h: Likewise.
50904         * lib/sched.in.h: Likewise.
50905         * lib/se-selinux.in.h: Likewise.
50906         * lib/search.in.h: Likewise.
50907         * lib/signal.in.h: Likewise.
50908         * lib/spawn.in.h: Likewise.
50909         * lib/stdarg.in.h: Likewise.
50910         * lib/stddef.in.h: Likewise.
50911         * lib/stdint.in.h: Likewise.
50912         * lib/stdio.in.h: Likewise.
50913         * lib/stdlib.in.h: Likewise.
50914         * lib/string.in.h: Likewise.
50915         * lib/strings.in.h: Likewise.
50916         * lib/sys_file.in.h: Likewise.
50917         * lib/sys_ioctl.in.h: Likewise.
50918         * lib/sys_select.in.h: Likewise.
50919         * lib/sys_socket.in.h: Likewise.
50920         * lib/sys_stat.in.h: Likewise.
50921         * lib/sys_time.in.h: Likewise.
50922         * lib/sys_times.in.h: Likewise.
50923         * lib/sys_uio.in.h: Likewise.
50924         * lib/sys_utsname.in.h: Likewise.
50925         * lib/sys_wait.in.h: Likewise.
50926         * lib/sysexits.in.h: Likewise.
50927         * lib/termios.in.h: Likewise.
50928         * lib/time.in.h: Likewise.
50929         * lib/unistd.in.h: Likewise.
50930         * lib/wchar.in.h: Likewise.
50931         * lib/wctype.in.h: Likewise.
50932         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50933         * modules/ctype (Makefile.am): Likewise.
50934         * modules/dirent (Makefile.am): Likewise.
50935         * modules/errno (Makefile.am): Likewise.
50936         * modules/fcntl-h (Makefile.am): Likewise.
50937         * modules/float (Makefile.am): Likewise.
50938         * modules/getopt-posix (Makefile.am): Likewise.
50939         * modules/iconv-h (Makefile.am): Likewise.
50940         * modules/langinfo (Makefile.am): Likewise.
50941         * modules/locale (Makefile.am): Likewise.
50942         * modules/math (Makefile.am): Likewise.
50943         * modules/netdb (Makefile.am): Likewise.
50944         * modules/netinet_in (Makefile.am): Likewise.
50945         * modules/poll-h (Makefile.am): Likewise.
50946         * modules/pthread (Makefile.am): Likewise.
50947         * modules/pty (Makefile.am): Likewise.
50948         * modules/sched (Makefile.am): Likewise.
50949         * modules/search (Makefile.am): Likewise.
50950         * modules/selinux-h (Makefile.am): Likewise.
50951         * modules/signal (Makefile.am): Likewise.
50952         * modules/spawn (Makefile.am): Likewise.
50953         * modules/stdarg (Makefile.am): Likewise.
50954         * modules/stddef (Makefile.am): Likewise.
50955         * modules/stdint (Makefile.am): Likewise.
50956         * modules/stdio (Makefile.am): Likewise.
50957         * modules/stdlib (Makefile.am): Likewise.
50958         * modules/string (Makefile.am): Likewise.
50959         * modules/strings (Makefile.am): Likewise.
50960         * modules/sys_file (Makefile.am): Likewise.
50961         * modules/sys_ioctl (Makefile.am): Likewise.
50962         * modules/sys_select (Makefile.am): Likewise.
50963         * modules/sys_socket (Makefile.am): Likewise.
50964         * modules/sys_stat (Makefile.am): Likewise.
50965         * modules/sys_time (Makefile.am): Likewise.
50966         * modules/sys_times (Makefile.am): Likewise.
50967         * modules/sys_uio (Makefile.am): Likewise.
50968         * modules/sys_utsname (Makefile.am): Likewise.
50969         * modules/sys_wait (Makefile.am): Likewise.
50970         * modules/sysexits (Makefile.am): Likewise.
50971         * modules/termios (Makefile.am): Likewise.
50972         * modules/time (Makefile.am): Likewise.
50973         * modules/unistd (Makefile.am): Likewise.
50974         * modules/wchar (Makefile.am): Likewise.
50975         * modules/wctype-h (Makefile.am): Likewise.
50976         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
50978 2011-05-29  Bruno Haible  <bruno@clisp.org>
50980         assert-h: Allow multiple gnulib generated replacements to coexist.
50981         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
50983 2011-05-29  Bruno Haible  <bruno@clisp.org>
50985         argp: Allow coexistence with strerror_r-posix module.
50986         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
50987         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
50988         by gnulib's <string.h> replacement), assume it has the POSIX signature,
50989         not the glibc signature.
50991 2011-05-28  Bruno Haible  <bruno@clisp.org>
50993         gnulib-tool: Alternative structure of testdirs, similar to --import.
50994         * gnulib-tool: New option --single-configure.
50995         (func_usage): Document it.
50996         (single_configure): New variable.
50997         (func_modules_transitive_closure_separately,
50998         func_modules_transitive_closure_separately,
50999         func_determine_use_libtests, func_modules_add_dummy_separately,
51000         func_modules_to_filelist_separately): New functions, extracted from
51001         func_import.
51002         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51003         (func_import): Use the new functions.
51004         (func_create_testdir): Set final_modules. Handle $single_configure =
51005         true case.
51007 2011-05-28  Bruno Haible  <bruno@clisp.org>
51009         getloadavg: Remove an unreliable safety check.
51010         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51011         getloadavg.c is in place.
51012         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51013         Reported by Sam Steingold <sds@gnu.org>.
51015 2011-05-28  Bruno Haible  <bruno@clisp.org>
51017         doc: Cleanup yet another file produced by texinfo.tex.
51018         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51020 2011-05-28  Bruno Haible  <bruno@clisp.org>
51022         Finish the conditional dependencies mechanism.
51023         * gnulib-tool: New option --no-conditional-dependencies.
51024         (func_usage): Document it. Don't mark --conditional-dependencies as
51025         experimental.
51026         (cond_dependencies): The possible values can now be true, false, empty.
51027         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51028         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51029         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51031 2011-05-28  Bruno Haible  <bruno@clisp.org>
51033         doc: Use a recent texinfo.tex.
51034         * doc/Makefile (tex_opts): New variable.
51035         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51037 2011-05-28  Jim Meyering  <meyering@redhat.com>
51039         intprops.h: adjust comment to match code change
51040         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51041         only once, it *may* have side effects.  Also fix an unrelated typo.
51042         (_GL_INT_SIGNED): Likewise.
51044 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51046         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51048 2011-05-26  Bruno Haible  <bruno@clisp.org>
51050         mbsrchr: Avoid collision with system function on Interix.
51051         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51052         Reported by Markus Duft <mduft@gentoo.org>.
51054 2011-05-15  James Youngman  <jay@gnu.org>
51056         getopt: for ambiguous options, enumerate the possibilities.
51057         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51058         the ambiguous options when an ambiguous prefix is given. This was
51059         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51060         glibc change was
51061         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51063 2011-05-25  Eric Blake  <eblake@redhat.com>
51065         getcwd: work around mingw bug
51066         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51067         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51068         Reported by Matthias Bolte.
51070 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51072         test-intprops: disable -Wtype-limits diagnostics
51073         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
51074         diagnostics.  Otherwise, the integer overflow macros generate many
51075         diagnostics.  Reported by Jim Meyering in
51076         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51078         intprops: shorten, to pacify gcc -Woverlength-strings
51079         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
51080         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
51081         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
51082         likely to run afoul of C compiler limits for string constant lengths.
51083         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
51085 2011-05-24  Eric Blake  <eblake@redhat.com>
51087         docs: document recently fixed glibc printf bug
51088         * doc/posix-functions/fprintf.texi (fprintf): Document it.
51089         * doc/posix-functions/printf.texi (printf): Likewise.
51090         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51091         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51093         closein-tests: convert to init.sh
51094         * modules/closein-tests (Files): Add init.sh
51095         * tests/test-closein.sh Use it.
51097         yesno-tests: convert to init.sh
51098         * modules/yesno-tests (Files): Add init.sh.
51099         * tests/test-yesno.sh: Use it.
51101         atexit-tests: ensure reliable exit status
51102         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
51103         Reported by Bruno Haible.
51105 2011-05-24  Bruno Haible  <bruno@clisp.org>
51107         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
51108         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51109         gl_PREREQ_STRERROR_R invocations from here...
51110         * modules/strerror_r-posix (configure.ac): ... to here.
51112 2011-05-24  Eric Blake  <eblake@redhat.com>
51114         strerror_r: fix missing header
51115         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51117         strerror_r: fix AIX test failures
51118         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51119         ERANGE failure.
51121         strerror_r: fix Solaris test failures
51122         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51123         failures.
51124         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51126         strerror_r: enforce POSIX recommendations
51127         * lib/strerror_r.c (safe_copy): New helper method.
51128         (strerror_r): Guarantee a non-empty string.
51129         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51130         recent POSIX rulings and to match our strerror guarantees.
51131         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51133 2011-05-24  Jim Meyering  <meyering@redhat.com>
51135         test-perror2.c: avoid warning about unused variable
51136         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51138 2011-05-24  Eric Blake  <eblake@redhat.com>
51140         perror: avoid spurious test failure on HP-UX
51141         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51143         tests: fix logic bug in init.sh
51144         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51145         shell.
51147 2011-05-24  Jim Meyering  <meyering@redhat.com>
51149         utimensat: do not reference an out-of-scope buffer
51150         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51151         declared in an inner scope, yet "times" would be dereferenced outside
51152         the scope in which "ts" was valid.
51153         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51154         of ts[2] "out/up", so that the use of aliased "times" (via
51155         "times = ts;") does not end up referencing an out-of-scope "ts"
51157         opendir-safer.c: don't clobber errno; don't close negative FD
51158         * lib/opendir-safer.c (opendir_safer):
51159         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51160         file descriptor, and more importantly, don't clobber the
51161         offending errno value with EINVAL.  Before, upon failure
51162         of dup_safer, we would pass the negative file descriptor to
51163         fdopendir, which would clobber errno.
51165 2011-05-23  Bruno Haible  <bruno@clisp.org>
51167         idcache: Fix module description.
51168         * modules/idcache (Include): Set to "idcache.h".
51170 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51172         gnulib-tool: fix portability problem with MacOS sed
51173         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51174         before the "}".  Problem reported by Leo in
51175         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51176         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51177         sed_extract_condition1, sed_extract_condition2.
51179 2011-05-23  Bruno Haible  <bruno@clisp.org>
51181         hash: Simplify autoconf macro.
51182         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51184 2011-05-23  Bruno Haible  <bruno@clisp.org>
51186         getugroups: Fix module description.
51187         * modules/getugroups (Include): Set to "getugroups.h".
51189 2011-05-23  Bruno Haible  <bruno@clisp.org>
51191         linkat: Simplify autoconf macro.
51192         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51194 2011-05-23  Bruno Haible  <bruno@clisp.org>
51195             Eric Blake  <eblake@redhat.com>
51197         linkat, renameat: Update dependencies.
51198         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51199         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51200         symlinkat.
51202 2011-05-23  Jim Meyering  <meyering@redhat.com>
51204         maint.mk: more tight_scope improvements
51205         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51206         (_gl_TS_headers): Define only in if-0'd block.
51207         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51208         sometimes we must *not* use it.  Adjust uses accordingly.
51209         (sc_tight_scope): Use much simpler grep-based test to determine
51210         whether we skip this rule.
51212         maint.mk: generalize/improve the tight-scope rule
51213         * top/maint.mk: Emit a warning when the test is skipped.
51214         (_gl_TS_dir): Add $(srcdir)/ prefix.
51215         (_gl_TS_function_match): Simplify, rather than trying
51216         to enumerate common types.  Otherwise, it would fail to match an
51217         "extern unsigned char const *" declaration in idutils.
51218         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51219         a way to support use of that type of macro.
51220         (_gl_TS_var_match): Simplify regexp.
51221         (_gl_TS_obj_files): New configurable variable.
51222         (_gl_TS_headers): Likewise.
51224 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51226         verify: fix bug when gnulib <assert.h> is also included
51227         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51228         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51229         Perhaps there's a better way, but this fixes the immediate problem.
51230         Problem reported by Bruno Haible in
51231         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51233 2011-05-22  Bruno Haible  <bruno@clisp.org>
51235         xgetcwd: Simplify autoconf macro.
51236         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51238 2011-05-22  Bruno Haible  <bruno@clisp.org>
51240         New module 'mktime-internal'.
51241         * modules/mktime-internal: New file.
51242         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51243         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51244         mktime_internal as a C macro if libc has __mktime_internal.
51245         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51246         conditions.
51247         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51249 2011-05-22  Bruno Haible  <bruno@clisp.org>
51251         timegm: Correct mktime replacement statements.
51252         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51253         defining mktime as a C macro. This completes a 2009-07-28 commit.
51255 2011-05-22  Bruno Haible  <bruno@clisp.org>
51257         timegm: Simplify autoconf macro.
51258         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51260 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51262         clock-time: change to LGPLv2+.
51263         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51264         BSD-like but we have no mark for that; this is good enough for now.
51266 2011-05-21  Bruno Haible  <bruno@clisp.org>
51268         strerror_r: Fix comments.
51269         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51271 2011-05-21  Bruno Haible  <bruno@clisp.org>
51273         relocatable-prog-wrapper: Fix possible link error.
51274         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51275         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51276         (gl_FUNC_SETENV): ... to here.
51277         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51278         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51280 2011-05-21  Bruno Haible  <bruno@clisp.org>
51282         relocatable-prog-wrapper: Assume strerror() exists.
51283         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51284         m4/strerror.m4.
51285         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51286         * lib/relocwrapper.c: Remove mention of strerror module.
51287         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51288         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51289         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51290         C macro.
51292 2011-05-21  Bruno Haible  <bruno@clisp.org>
51294         select: Simplify replacement idiom.
51295         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51296         Win32 platforms.
51297         * lib/sys_select.in.h (select): Simplify accordingly.
51298         * modules/select (Depends-on): Likewise.
51300 2011-05-21  Bruno Haible  <bruno@clisp.org>
51302         mkdir-p: Simplify autoconf macro.
51303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51304         gl_FUNC_LCHOWN.
51306 2011-05-21  Eric Blake  <eblake@redhat.com>
51308         strerror_r: avoid clobbering strerror on cygwin
51309         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51310         fall back instead to sys_errlist.
51311         * modules/strerror (configure.ac): Add witness.
51312         * tests/test-strerror_r.c (main): Enhance test.
51313         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51314         * tests/test-perror2.c (main): Free memory before exit.
51316 2011-05-21  Bruno Haible  <bruno@clisp.org>
51318         mkdtemp: Use gnulib naming conventions.
51319         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51320         * modules/mkdtemp (configure.ac): Update.
51322 2011-05-20  Eric Blake  <eblake@redhat.com>
51324         strerror_r: avoid corrupting errno on Solaris
51325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51326         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51328         strerror_r: avoid compiler warning
51329         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51331         strerror_r: simplify AIX code
51332         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51334         test-perror: avoid spurious failure on FreeBSD
51335         * modules/perror-tests (Depends-on): Add strerror, now that
51336         strerror_r no longer pulls it in.
51338 2011-05-20  Bruno Haible  <bruno@clisp.org>
51340         strerror_r-posix: Remove unused dependencies.
51341         * modules/strerror_r-posix (Depends-on): Remove strerror.
51342         Reported by Eric Blake.
51344 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51346         intprops: remove assumption about A|B representation
51347         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51348         is a valid integer if both A and B are.  Although this is true for
51349         all known practical hosts, the C standard doesn't guarantee it,
51350         and the code need not assume it.  Also, this change may work around
51351         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51352         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51354 2011-05-20  Eric Blake  <eblake@redhat.com>
51356         perror: work around FreeBSD bug
51357         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51358         is broken.  Move AC_LIBOBJ...
51359         * modules/perror (configure.ac): Here.
51360         * doc/posix-functions/perror.texi (perror): Document this.
51361         * tests/test-perror2.c (main): Enhance test.
51363         test-perror: check for strerror interactions
51364         * tests/macros.h (STREQ): Add macro.
51365         * modules/perror-tests (Files): Add second test.
51366         * tests/test-perror2.c (main): New file.
51367         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51369         test-perror: rewrite to use init script
51370         * modules/perror-tests (Files): Add init.sh.
51371         * tests/test-perror.sh: Use temporary directory.
51373 2011-05-20  Jim Meyering  <meyering@redhat.com>
51375         maint: replace misused "a" with "an"
51376         * doc/intprops.texi: "a integer"
51377         * doc/regex.texi: "a explanation"
51378         * lib/alignof.h: "a object"
51379         * lib/argmatch.h: "a explanation"
51380         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51381         * lib/stdint.in.h: "a integer"
51382         * lib/userspec.c: "a owner"
51383         * doc/gnulib.texi: Fix "a idea", and reword.
51385 2011-05-19  Jim Meyering  <meyering@redhat.com>
51387         maint: correct misuse of "a" and "an"
51388         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51389         * lib/argp-help.c: "an docum...": s/an/a/
51390         * lib/argp-parse.c: "An vector": s/An/A/
51391         * lib/execute.c: "an native": s/an/a/
51392         * lib/spawn-pipe.c: Likewise.
51393         * lib/gc.h: "an Gc_rc": s/an/a/
51394         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51395         * lib/fts.c: "an stat.st_dev": s/an/a/
51397 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51399         intprops-tests: work around HP-UX 11.23 cc bug with constants
51400         * tests/test-intprops.c (VERIFY): New macro.
51401         (main): Use it, instead of verify, to work around the compiler bug; see
51402         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51404         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51405         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51406         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51407         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51408         (_GL_REMAINDER_OVERFLOW): Use it.
51410         intprops-tests: revert unsigned part of previous change
51411         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51412         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51413         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51414         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51416 2011-05-19  Bruno Haible  <bruno@clisp.org>
51418         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51419         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51420         strerror_r() returned without filling the buffer.
51421         Reported by Eric Blake.
51423 2011-05-19  Eric Blake  <eblake@redhat.com>
51425         strerror_r: guarantee unchanged errno
51426         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51427         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51428         failure.
51429         * tests/test-strerror_r.c (main): Enhance test.
51431 2011-05-19  Bruno Haible  <bruno@clisp.org>
51433         strerror_r: Reorder #if blocks.
51434         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51435         for consistency with the previous commit.
51437 2011-05-19  Bruno Haible  <bruno@clisp.org>
51439         perror: Avoid clobbering the strerror buffer when possible.
51440         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51441         * lib/strerror.c: Include it.
51442         * modules/strerror (Files): Add lib/strerror-impl.h.
51443         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51444         (my_strerror): New function, defined through lib/strerror-impl.h.
51445         (perror): Use it instead of strerror.
51446         * modules/perror (Files): Add lib/strerror-impl.h.
51447         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51449 2011-05-19  Eric Blake  <eblake@redhat.com>
51451         strerror_r: fix on newer cygwin
51452         * lib/strerror_r.c (strerror_r): Cygwin now has
51453         __xpg_strerror_r, use it.
51455 2011-05-19  Bruno Haible  <bruno@clisp.org>
51457         strerror_r: Avoid clobbering the strerror buffer when possible.
51458         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51459         (sys_nerr, sys_errlist): New declarations.
51460         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51461         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51462         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51464 2011-05-19  Bruno Haible  <bruno@clisp.org>
51466         strerror_r: Fix test failure on mingw.
51467         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51468         EXTEND_STRERROR_R.
51469         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51470         macros from errno.in.h instead.
51472 2011-05-19  Eric Blake  <eblake@redhat.com>
51474         strerror: relax test for Solaris
51475         * tests/test-strerror.c (main): Permit Solaris behavior.
51476         * tests/test-strerror_r.c (main): Likewise.
51478         strerror: enforce POSIX ruling on strerror(0)
51479         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51481         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51482         * doc/posix-functions/strerror.texi (strerror): Document it.
51483         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51484         * tests/test-strerror.c (main): Strengthen test.
51485         * tests/test-strerror_r.c (main): Likewise.
51487 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51489         intprop-tests: port to older and more-pedantic compilers
51490         * modules/intprops-tests (Files): Add tests/macros.h.
51491         * tests/test-intprops.c: Include macros.h.
51492         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51493         it's no longer documented to expand to an integer constant expression.
51494         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51495         argument is floating point, as it's no longer documented to expand
51496         to an integer constant expression in that case.
51497         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51498         compiler bugs reported by Bruno Haible.  See
51499         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51500         (U0, U1): New constants, to work around the same bugs.  Also,
51501         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51503         intprops: work around C compiler bugs
51504         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51505         bug in Sun C 5.11 2010/08/13 and other compilers; see
51506         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51508         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51509         * doc/intprops.texi (Integer Type Determination): Fix
51510         documentation for TYPE_IS_INTEGER: it returns an constant
51511         expression, not an integer constant expression.  Fix doc for
51512         TYPE_SIGNED: it returns an integer constant expression only if its
51513         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51514         hardly worth documented that way....)
51516 2011-05-18  Bruno Haible  <bruno@clisp.org>
51518         strerror_r: Avoid clobbering the strerror buffer when possible.
51519         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51520         Handle gnulib defined errno values here. When strerror() returns NULL
51521         or an empty string, return EINVAL.
51522         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51523         gnulib defined errno values here.
51524         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51526 2011-05-18  Eric Blake  <eblake@redhat.com>
51528         fnmatch: avoid compiler warning
51529         * lib/fnmatch_loop.c (FCT): Use correct type.
51530         Reported by Matthias Bolte.
51532 2011-05-13  Jim Meyering  <meyering@redhat.com>
51534         maint.mk: three new prohibit_<HDR>_without_use rules
51535         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51536         (sc_prohibit_stdio-safer_without_use): Likewise.
51537         (sc_prohibit_xfreopen_without_use): Likewise.
51539 2011-05-17  Jim Meyering  <meyering@redhat.com>
51541         announce-gen: fail if the NEWS delta is empty
51542         If there's nothing noteworthy in NEWS, then either you forgot
51543         or you shouldn't be releasing.
51544         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51546 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51548         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51549         reserved symbols starting with double underscore from the check.
51551 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51553         intprops: add doc
51554         * doc/intprops.texi: New file, documenting intprops.
51555         * doc/gnulib.texi (Particular Modules): Include it.
51557         verify: add doc to gnulib manual and fix example
51558         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51559         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51560         (Compile-time Assertions): Fix example so it can't overflow.
51562 2011-05-17  Jim Meyering  <meyering@redhat.com>
51564         warnings.m4: don't usurp save_CPPFLAGS variable name
51565         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51567         doc: fix typo
51568         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51570 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51571             Bruno Haible  <bruno@clisp.org>
51573         doc: Tweak recent change.
51574         * README (Portability guidelines): Tweak new text.
51575         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51576         Interix 6.1.
51578 2011-05-16  Eric Blake  <eblake@redhat.com>
51580         inttypes: avoid autoconf warning
51581         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51582         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51584 2011-05-16  Sam Steingold  <sds@gnu.org>
51585         and Eric Blake  <eblake@redhat.com>
51587         vc-list-files: accept multiple directory operands
51588         * build-aux/vc-list-files: Iterate over all remaining operands.
51590 2011-05-16  Bruno Haible  <bruno@clisp.org>
51592         Fix confusion regarding deprecated modules.
51593         * modules/calloc (Status, Notice): Mark module as deprecated, not
51594         obsolete.
51595         * modules/fnmatch-posix (Status, Notice): Likewise.
51596         * modules/getdate (Status, Notice): Likewise.
51597         * modules/getopt (Status, Notice): Likewise.
51598         * modules/malloc (Status, Notice): Likewise.
51599         * modules/pipe (Status, Notice): Likewise.
51600         * modules/realloc (Status, Notice): Likewise.
51601         * modules/rename-dest-slash (Status, Notice): Likewise.
51602         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51603         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51604         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51605         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51606         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51608 2011-05-16  Bruno Haible  <bruno@clisp.org>
51610         doc: List the target platforms.
51611         * doc/gnulib-intro.texi (Target Platforms): New section.
51612         * doc/gnulib.texi (Introduction): Update menu.
51613         * README (Portability guidelines): Refer to the new section. Update
51614         statement about oldest supported environment. Remove rationale why
51615         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51616         unportable C89 function.
51617         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51618         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51620 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51622         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51624 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51626         intprops-tests: new module
51627         * modules/intprops-tests, tests/test-intprops.c: New files.
51629         intprops: add safe, portable integer overflow checking
51630         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51631         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51632         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51633         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51634         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51635         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51636         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51637         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51638         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51639         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51640         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51642 2011-05-12  James Youngman  <jay@gnu.org>
51644         Add a test for glibc's Bugzilla bug #12378.
51645         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51646         doesn't allow the literal matching of a lone "[" (which is
51647         required by POSIX).
51648         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51650 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51652         Sync glibc change fixing Bugzilla bug #12378.
51653         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51654         beginning and fall back to matching as normal character if the
51655         string ends before the matching ']' is found.  This is what POSIX
51656         requires.
51658 2011-05-13  Eric Blake  <eblake@redhat.com>
51660         getcwd-lgpl: relax test for FreeBSD
51661         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51662         issue.
51663         * tests/test-getcwd-lgpl.c (main): Relax test.
51664         Reported by Matthias Bolte.
51666 2011-05-11  Eric Blake  <eblake@redhat.com>
51668         test-fflush: silence compiler warning
51669         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51671 2011-05-11  Bruno Haible  <bruno@clisp.org>
51673         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51674         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51675         * modules/canonicalize (Depends-on): Add 'nocrash'.
51676         * modules/canonicalize-lgpl (Depends-on): Likewise.
51677         * doc/posix-functions/realpath.texi: Update platforms list.
51678         Reported by Ryan Schmidt <ryandesign@macports.org>.
51680 2011-05-11  Bruno Haible  <bruno@clisp.org>
51682         group-member: Declare function in <unistd.h>.
51683         * lib/unistd.in.h (group_member): New declaration.
51684         * lib/group-member.h: Remove file.
51685         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51686         * tests/test-unistd-c++.cc: Check signature of group_member.
51687         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51688         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51689         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51691         HAVE_GROUP_MEMBER.
51692         * modules/group-member (Files): Remove lib/group-member.h.
51693         (Depends-on): Add unistd. Specify conditions.
51694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51695         (Include): Change to <unistd.h>.
51696         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51697         HAVE_GROUP_MEMBER.
51698         * NEWS: Mention the change.
51699         * lib/euidaccess.c: Don't include group-member.h.
51701 2011-05-11  Bruno Haible  <bruno@clisp.org>
51703         group-member: Document module.
51704         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51705         module.
51707 2011-05-11  Bruno Haible  <bruno@clisp.org>
51709         fclose: Fix mistake earlier today.
51710         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51712 2011-05-11  Eric Blake  <eblake@redhat.com>
51714         fclose: preserve fflush errors
51715         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51716         Reported by Jim Meyering.
51718         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51719         * build-aux/bootstrap (check_versions): When no specific version
51720         is required, merely check that the app produces an exit status
51721         that indicates its existence.
51723         maint.mk: drop redundant check
51724         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51725         the same but better.
51727 2011-05-11  Bruno Haible  <bruno@clisp.org>
51729         fclose: Fix possible link error.
51730         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51731         unregister_shadow_fd. Improve comments.
51732         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51733         Eric Blake.
51735 2011-05-11  Jim Meyering  <meyering@redhat.com>
51737         maint.mk: improve "can not" detection and generalize rule name
51738         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51739         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51740         Use the same technique as in sc_prohibit_doubled_word, so that
51741         we recognize "can not" also when the words are separated by a newline.
51742         Suggested by Eric Blake.
51743         (perl_filename_lineno_text_): Define.  Factored out of...
51744         (prohibit_doubled_word_): ...here.  Use the new definition.
51745         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51746         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51747         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51749 2011-05-10  Eric Blake  <eblake@redhat.com>
51751         fclose: avoid double close race when possible
51752         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51753         all but WINDOWS_SOCKETS.
51755 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51757         openat: correct new comment
51758         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51760 2011-05-10  Jim Meyering  <meyering@redhat.com>
51762         openat: add comments
51763         * lib/openat-proc.c (openat_proc_name): Add comments,
51764         mostly from Eric Blake.
51766 2011-05-09  Eric Blake  <eblake@redhat.com>
51768         openat: reduce syscalls in first probe of /proc
51769         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51770         be a directory.  Simplify the probe for .. bugs.
51771         * modules/openat (Depends-on): Drop same-inode.
51772         Reported by Bastien ROUCARIES.
51774 2011-05-09  Jim Meyering  <meyering@redhat.com>
51776         maint.mk: change semantics/name of tight_scope variables
51777         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51778         Rename variables to align with semantics that make them more useful.
51780         maint.mk: tweak new rule's name not to impinge
51781         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51782         (sc_tight_scope): Use new rule name rather than $@-0.
51784         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51785         * top/maint.mk (sc_tight_scope): New rule.
51786         (sc_tight_scope-0): New rule, ifdef'd out.
51787         (_gl_TS_dir): Default.
51788         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51789         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51791 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51793         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51794         Haible <bruno@clisp.org>.
51796 2011-05-08  Bruno Haible  <bruno@clisp.org>
51798         Comments.
51799         * m4/isnanf.m4: Add comment.
51800         * m4/isnanl.m4: Likewise.
51802 2011-05-08  Bruno Haible  <bruno@clisp.org>
51804         glob: Remove obsolete macro.
51805         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51807 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51809         intprops: Sun C 5.11 supports __typeof__
51810         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51811         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51812         which is new.
51813         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51815         intprops: switch to usual gnulib indenting and naming
51816         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51817         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51819         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51821 2011-05-08  Jim Meyering  <meyering@redhat.com>
51823         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51824         * top/maint.mk (release-prep): Use make's --no-print-directory
51825         option when generating the announcement.  This eliminates the
51826         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51827         generated announcement template.
51829 2011-05-08  Bruno Haible  <bruno@clisp.org>
51831         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51832         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51833         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51835 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51837         ignore-value, verify: Omit include files from lib_SOURCES.
51838         * modules/ignore-value, modules/verify (Makefile.am):
51839         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51840         that leads Automake to duplicate use of am__objects_... variables
51841         in Makefile.in.  See
51842         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51844 2011-05-07  Bruno Haible  <bruno@clisp.org>
51846         fclose: Simplify autoconf macro.
51847         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51848         defined.
51850 2011-05-07  Bruno Haible  <bruno@clisp.org>
51852         canonicalize-lgpl: Fix autoconf macro ordering bug.
51853         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51854         gl_STDLIB_H_DEFAULTS.
51856 2011-05-06  Eric Blake  <eblake@redhat.com>
51858         maintainer-makefile: make sc_po_check easier to tune
51859         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51860         to probe for strings, such as an alternate location for gnulib.
51862         fclose: guarantee behavior on seekable stdin
51863         * modules/fclose (Depends-on): Add fflush.
51864         * doc/posix-functions/fclose.texi (fclose): Document this.
51865         * tests/test-fclose.c (main): Make test for this unconditional.
51867 2011-05-06  Bruno Haible  <bruno@clisp.org>
51869         fflush, fpurge: Relicense under LGPLv2+.
51870         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51871         * modules/fpurge (License): Likewise.
51872         With permission from Eric Blake and Jim Meyering.
51873         Suggested by Eric Blake.
51875 2011-05-06  Karl Berry  <karl@gnu.org>
51877         * MODULES.html.sh (func_all_modules): remove exit.
51879 2011-05-06  Jim Meyering  <meyering@redhat.com>
51881         maint.mk: use info-gnu@ as the default only for a stable release
51882         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51883         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51884         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51885         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51887 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51889         assert-h: new module, which supports C1X-style static_assert
51890         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51891         * lib/verify.h: Revamp so that this can be copied into assert.h,
51892         while retaining the ability to use it standalone as before.
51893         Rename private identifiers so as not to encroach on the
51894         standard C namespace, since this is now used by assert.h.
51895         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51896         the old verify_true.
51897         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51898         the old verify_true.  Use _GL_VERIFY_TYPE.
51899         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51900         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51901         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51902         defined when this file is copied into the replacement assert.h.
51903         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51904         and _Static_assert is not built in.
51905         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51906         defined, and use the new macros mentioned above.
51907         * doc/posix-headers/assert.texi: Document this.
51909 2011-05-05  Bruno Haible  <bruno@clisp.org>
51911         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51912         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51913         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51914         gl_REPLACE_FCLOSE here.
51915         * modules/fflush (Depends-on): Remove fclose.
51916         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51917         combination with module 'fclose'.
51919 2011-05-05  Bruno Haible  <bruno@clisp.org>
51921         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51922         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51923         gl_FUNC_FFLUSH.
51924         (gl_FUNC_FFLUSH): Use it.
51925         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51926         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51927         gl_REPLACE_FSEEKO here.
51929 2011-05-05  Bruno Haible  <bruno@clisp.org>
51931         tzset: Relicense under LGPL.
51932         * modules/tzset (License): Change to LGPL.
51933         No agreement needed; it's a no-op.
51935         strtoimax, strtoumax: Relicense under LGPL.
51936         * modules/strtoimax (License): Change to LGPL.
51937         * modules/strtoumax (License): Likewise.
51938         With permission from Jim Meyering, Paul Eggert:
51939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51940         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51942         getgroups: Relicense under LGPL.
51943         * modules/getgroups (License): Change to LGPL.
51944         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51945         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51946         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51947         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51949         nanosleep: Relicense under LGPL.
51950         * modules/nanosleep (License): Change to LGPL.
51951         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51952         Haible:
51953         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51954         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51955         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51956         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51958         futimens: Relicense under LGPL.
51959         * modules/futimens (License): Change to LGPL.
51960         With permission from Eric Blake:
51961         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51963         fflush: Relicense under LGPL.
51964         * modules/fflush (License): Change to LGPL.
51965         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51966         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51967         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51968         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
51970         tmpfile: Relicense under LGPL.
51971         * modules/tmpfile (License): Change to LGPL.
51972         With permission from Ben Pfaff:
51973         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51975         isfinite: Relicense under LGPL.
51976         * modules/isfinite (License): Change to LGPL.
51977         With permission from Ben Pfaff, Bruno Haible:
51978         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51979         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
51981         acosl..tanl: Relicense under LGPL.
51982         * modules/acosl (License): Change to LGPL.
51983         * modules/asinl (License): Likewise.
51984         * modules/atanl (License): Likewise.
51985         * modules/cosl (License): Likewise.
51986         * modules/expl (License): Likewise.
51987         * modules/logl (License): Likewise.
51988         * modules/sinl (License): Likewise.
51989         * modules/sqrtl (License): Likewise.
51990         * modules/tanl (License): Likewise.
51991         Source code originally from glibc and Paolo Bonzini. Agreements:
51992         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
51993         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
51995 2011-05-05  Bruno Haible  <bruno@clisp.org>
51997         signal: Define sighandler_t.
51998         * lib/signal.in.h (sighandler_t): New type.
51999         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52000         whether sighandler_t is defined.
52001         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52002         * modules/signal (Depends-on): Add extensions.
52003         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52004         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52005         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52007 2011-05-05  Eric Blake  <eblake@redhat.com>
52009         maint: remove useless REPLACE_*_H macros
52010         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52011         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52012         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52013         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52014         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52015         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52016         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52017         * m4/btowc.m4: Update callers.
52018         * m4/dirfd.m4: Likewise.
52019         * m4/duplocale.m4: Likewise.
52020         * m4/fchdir.m4: Likewise.
52021         * m4/fdopendir.m4: Likewise.
52022         * m4/inet_ntop.m4: Likewise.
52023         * m4/inet_pton.m4: Likewise.
52024         * m4/ioctl.m4: Likewise.
52025         * m4/mbrlen.m4: Likewise.
52026         * m4/mbrtowc.m4: Likewise.
52027         * m4/mbsinit.m4: Likewise.
52028         * m4/mbsnrtowcs.m4: Likewise.
52029         * m4/mbsrtowcs.m4: Likewise.
52030         * m4/poll.m4: Likewise.
52031         * m4/setlocale.m4: Likewise.
52032         * m4/wcrtomb.m4: Likewise.
52033         * m4/wcsnrtombs.m4: Likewise.
52034         * m4/wcsrtombs.m4: Likewise.
52035         * m4/wctob.m4: Likewise.
52036         * m4/wcwidth.m4: Likewise.
52037         * modules/posix_spawn: Likewise.
52038         * modules/posix_spawn_file_actions_addclose: Likewise.
52039         * modules/posix_spawn_file_actions_adddup2: Likewise.
52040         * modules/posix_spawn_file_actions_addopen: Likewise.
52041         * modules/posix_spawn_file_actions_destroy: Likewise.
52042         * modules/posix_spawn_file_actions_init: Likewise.
52043         * modules/posix_spawnattr_destroy: Likewise.
52044         * modules/posix_spawnattr_getflags: Likewise.
52045         * modules/posix_spawnattr_getpgroup: Likewise.
52046         * modules/posix_spawnattr_getschedparam: Likewise.
52047         * modules/posix_spawnattr_getschedpolicy: Likewise.
52048         * modules/posix_spawnattr_getsigdefault: Likewise.
52049         * modules/posix_spawnattr_getsigmask: Likewise.
52050         * modules/posix_spawnattr_init: Likewise.
52051         * modules/posix_spawnattr_setflags: Likewise.
52052         * modules/posix_spawnattr_setpgroup: Likewise.
52053         * modules/posix_spawnattr_setschedparam: Likewise.
52054         * modules/posix_spawnattr_setschedpolicy: Likewise.
52055         * modules/posix_spawnattr_setsigdefault: Likewise.
52056         * modules/posix_spawnattr_setsigmask: Likewise.
52057         * modules/posix_spawnp: Likewise.
52059 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52061         Add option to do-release-commit-and-tag to specify branch.
52062         * build-aux/do-release-commit-and-tag: Add --branch.
52064 2011-05-03  Bruno Haible  <bruno@clisp.org>
52066         Avoid unnecessary compilation units, through conditional dependencies.
52067         * modules/accept (Depends-on): Add conditions to the dependencies.
52068         * modules/acosl (Depends-on): Likewise.
52069         * modules/argz (Depends-on): Likewise.
52070         * modules/asinl (Depends-on): Likewise.
52071         * modules/atanl (Depends-on): Likewise.
52072         * modules/atoll (Depends-on): Likewise.
52073         * modules/bind (Depends-on): Likewise.
52074         * modules/btowc (Depends-on): Likewise.
52075         * modules/canonicalize-lgpl (Depends-on): Likewise.
52076         * modules/ceil (Depends-on): Likewise.
52077         * modules/ceilf (Depends-on): Likewise.
52078         * modules/ceill (Depends-on): Likewise.
52079         * modules/chdir-long (Depends-on): Likewise.
52080         * modules/chown (Depends-on): Likewise.
52081         * modules/close (Depends-on): Likewise.
52082         * modules/connect (Depends-on): Likewise.
52083         * modules/cosl (Depends-on): Likewise.
52084         * modules/dirfd (Depends-on): Likewise.
52085         * modules/dprintf (Depends-on): Likewise.
52086         * modules/dprintf-posix (Depends-on): Likewise.
52087         * modules/error (Depends-on): Likewise.
52088         * modules/euidaccess (Depends-on): Likewise.
52089         * modules/expl (Depends-on): Likewise.
52090         * modules/faccessat (Depends-on): Likewise.
52091         * modules/fchdir (Depends-on): Likewise.
52092         * modules/fclose (Depends-on): Likewise.
52093         * modules/fcntl (Depends-on): Likewise.
52094         * modules/fdopendir (Depends-on): Likewise.
52095         * modules/fflush (Depends-on): Likewise.
52096         * modules/floor (Depends-on): Likewise.
52097         * modules/floorf (Depends-on): Likewise.
52098         * modules/floorl (Depends-on): Likewise.
52099         * modules/fnmatch (Depends-on): Likewise.
52100         * modules/fopen (Depends-on): Likewise.
52101         * modules/fprintf-posix (Depends-on): Likewise.
52102         * modules/frexp (Depends-on): Likewise.
52103         * modules/frexp-nolibm (Depends-on): Likewise.
52104         * modules/frexpl (Depends-on): Likewise.
52105         * modules/frexpl-nolibm (Depends-on): Likewise.
52106         * modules/fseek (Depends-on): Likewise.
52107         * modules/fsusage (Depends-on): Likewise.
52108         * modules/ftell (Depends-on): Likewise.
52109         * modules/ftello (Depends-on): Likewise.
52110         * modules/futimens (Depends-on): Likewise.
52111         * modules/getcwd (Depends-on): Likewise.
52112         * modules/getcwd-lgpl (Depends-on): Likewise.
52113         * modules/getdelim (Depends-on): Likewise.
52114         * modules/getdomainname (Depends-on): Likewise.
52115         * modules/getgroups (Depends-on): Likewise.
52116         * modules/gethostname (Depends-on): Likewise.
52117         * modules/getline (Depends-on): Likewise.
52118         * modules/getlogin_r (Depends-on): Likewise.
52119         * modules/getopt-posix (Depends-on): Likewise.
52120         * modules/getpeername (Depends-on): Likewise.
52121         * modules/getsockname (Depends-on): Likewise.
52122         * modules/getsockopt (Depends-on): Likewise.
52123         * modules/getsubopt (Depends-on): Likewise.
52124         * modules/getusershell (Depends-on): Likewise.
52125         * modules/glob (Depends-on): Likewise.
52126         * modules/grantpt (Depends-on): Likewise.
52127         * modules/iconv_open (Depends-on): Likewise.
52128         * modules/iconv_open-utf (Depends-on): Likewise.
52129         * modules/inet_ntop (Depends-on): Likewise.
52130         * modules/inet_pton (Depends-on): Likewise.
52131         * modules/ioctl (Depends-on): Likewise.
52132         * modules/isapipe (Depends-on): Likewise.
52133         * modules/isfinite (Depends-on): Likewise.
52134         * modules/isinf (Depends-on): Likewise.
52135         * modules/lchown (Depends-on): Likewise.
52136         * modules/ldexpl (Depends-on): Likewise.
52137         * modules/link (Depends-on): Likewise.
52138         * modules/linkat (Depends-on): Likewise.
52139         * modules/listen (Depends-on): Likewise.
52140         * modules/logl (Depends-on): Likewise.
52141         * modules/lstat (Depends-on): Likewise.
52142         * modules/mbrlen (Depends-on): Likewise.
52143         * modules/mbrtowc (Depends-on): Likewise.
52144         * modules/mbsinit (Depends-on): Likewise.
52145         * modules/mbsnrtowcs (Depends-on): Likewise.
52146         * modules/mbsrtowcs (Depends-on): Likewise.
52147         * modules/mbtowc (Depends-on): Likewise.
52148         * modules/memcmp (Depends-on): Likewise.
52149         * modules/mkdir (Depends-on): Likewise.
52150         * modules/mkdtemp (Depends-on): Likewise.
52151         * modules/mkfifo (Depends-on): Likewise.
52152         * modules/mkfifoat (Depends-on): Likewise.
52153         * modules/mknod (Depends-on): Likewise.
52154         * modules/mkostemp (Depends-on): Likewise.
52155         * modules/mkostemps (Depends-on): Likewise.
52156         * modules/mkstemp (Depends-on): Likewise.
52157         * modules/mkstemps (Depends-on): Likewise.
52158         * modules/mktime (Depends-on): Likewise.
52159         * modules/nanosleep (Depends-on): Likewise.
52160         * modules/open (Depends-on): Likewise.
52161         * modules/openat (Depends-on): Likewise.
52162         * modules/perror (Depends-on): Likewise.
52163         * modules/poll (Depends-on): Likewise.
52164         * modules/popen (Depends-on): Likewise.
52165         * modules/posix_spawn (Depends-on): Likewise.
52166         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52167         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52168         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52169         * modules/posix_spawnp (Depends-on): Likewise.
52170         * modules/pread (Depends-on): Likewise.
52171         * modules/printf-posix (Depends-on): Likewise.
52172         * modules/ptsname (Depends-on): Likewise.
52173         * modules/putenv (Depends-on): Likewise.
52174         * modules/pwrite (Depends-on): Likewise.
52175         * modules/readline (Depends-on): Likewise.
52176         * modules/readlink (Depends-on): Likewise.
52177         * modules/readlinkat (Depends-on): Likewise.
52178         * modules/recv (Depends-on): Likewise.
52179         * modules/recvfrom (Depends-on): Likewise.
52180         * modules/regex (Depends-on): Likewise.
52181         * modules/remove (Depends-on): Likewise.
52182         * modules/rename (Depends-on): Likewise.
52183         * modules/renameat (Depends-on): Likewise.
52184         * modules/rmdir (Depends-on): Likewise.
52185         * modules/round (Depends-on): Likewise.
52186         * modules/roundf (Depends-on): Likewise.
52187         * modules/roundl (Depends-on): Likewise.
52188         * modules/rpmatch (Depends-on): Likewise.
52189         * modules/select (Depends-on): Likewise.
52190         * modules/send (Depends-on): Likewise.
52191         * modules/sendto (Depends-on): Likewise.
52192         * modules/setenv (Depends-on): Likewise.
52193         * modules/setlocale (Depends-on): Likewise.
52194         * modules/setsockopt (Depends-on): Likewise.
52195         * modules/shutdown (Depends-on): Likewise.
52196         * modules/sigaction (Depends-on): Likewise.
52197         * modules/signbit (Depends-on): Likewise.
52198         * modules/sigprocmask (Depends-on): Likewise.
52199         * modules/sinl (Depends-on): Likewise.
52200         * modules/sleep (Depends-on): Likewise.
52201         * modules/snprintf (Depends-on): Likewise.
52202         * modules/snprintf-posix (Depends-on): Likewise.
52203         * modules/socket (Depends-on): Likewise.
52204         * modules/sprintf-posix (Depends-on): Likewise.
52205         * modules/sqrtl (Depends-on): Likewise.
52206         * modules/stat (Depends-on): Likewise.
52207         * modules/strchrnul (Depends-on): Likewise.
52208         * modules/strdup-posix (Depends-on): Likewise.
52209         * modules/strerror (Depends-on): Likewise.
52210         * modules/strerror_r-posix (Depends-on): Likewise.
52211         * modules/strndup (Depends-on): Likewise.
52212         * modules/strnlen (Depends-on): Likewise.
52213         * modules/strptime (Depends-on): Likewise.
52214         * modules/strsep (Depends-on): Likewise.
52215         * modules/strsignal (Depends-on): Likewise.
52216         * modules/strstr-simple (Depends-on): Likewise.
52217         * modules/strtod (Depends-on): Likewise.
52218         * modules/strtoimax (Depends-on): Likewise.
52219         * modules/strtok_r (Depends-on): Likewise.
52220         * modules/strtoumax (Depends-on): Likewise.
52221         * modules/symlink (Depends-on): Likewise.
52222         * modules/symlinkat (Depends-on): Likewise.
52223         * modules/tanl (Depends-on): Likewise.
52224         * modules/tcgetsid (Depends-on): Likewise.
52225         * modules/tmpfile (Depends-on): Likewise.
52226         * modules/trunc (Depends-on): Likewise.
52227         * modules/truncf (Depends-on): Likewise.
52228         * modules/truncl (Depends-on): Likewise.
52229         * modules/uname (Depends-on): Likewise.
52230         * modules/unlink (Depends-on): Likewise.
52231         * modules/unlockpt (Depends-on): Likewise.
52232         * modules/unsetenv (Depends-on): Likewise.
52233         * modules/usleep (Depends-on): Likewise.
52234         * modules/utimensat (Depends-on): Likewise.
52235         * modules/vasprintf (Depends-on): Likewise.
52236         * modules/vdprintf (Depends-on): Likewise.
52237         * modules/vdprintf-posix (Depends-on): Likewise.
52238         * modules/vfprintf-posix (Depends-on): Likewise.
52239         * modules/vprintf-posix (Depends-on): Likewise.
52240         * modules/vsnprintf (Depends-on): Likewise.
52241         * modules/vsnprintf-posix (Depends-on): Likewise.
52242         * modules/vsprintf-posix (Depends-on): Likewise.
52243         * modules/wcrtomb (Depends-on): Likewise.
52244         * modules/wcscasecmp (Depends-on): Likewise.
52245         * modules/wcscspn (Depends-on): Likewise.
52246         * modules/wcsdup (Depends-on): Likewise.
52247         * modules/wcsncasecmp (Depends-on): Likewise.
52248         * modules/wcsnrtombs (Depends-on): Likewise.
52249         * modules/wcspbrk (Depends-on): Likewise.
52250         * modules/wcsrtombs (Depends-on): Likewise.
52251         * modules/wcsspn (Depends-on): Likewise.
52252         * modules/wcsstr (Depends-on): Likewise.
52253         * modules/wcstok (Depends-on): Likewise.
52254         * modules/wcswidth (Depends-on): Likewise.
52255         * modules/wctob (Depends-on): Likewise.
52256         * modules/wctomb (Depends-on): Likewise.
52257         * modules/wctype (Depends-on): Likewise.
52258         * modules/wcwidth (Depends-on): Likewise.
52259         * modules/write (Depends-on): Likewise.
52261 2011-05-03  Bruno Haible  <bruno@clisp.org>
52263         Support for conditional dependencies.
52264         * doc/gnulib.texi (Module description): Document the syntax of
52265         conditional dependencies.
52266         * gnulib-tool: New option --conditional-dependencies.
52267         (func_usage): Document it.
52268         (cond_dependencies): New variable.
52269         (func_get_automake_snippet_conditional,
52270         func_get_automake_snippet_unconditional): New functions, extracted from
52271         func_get_automake_snippet.
52272         (func_get_automake_snippet): Use them.
52273         (sed_first_32_chars): New variable.
52274         (func_module_shellfunc_name): New function.
52275         (func_module_shellvar_name): New function.
52276         (func_module_conditional_name): New function.
52277         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52278         func_cond_module_condition): New functions.
52279         (func_modules_transitive_closure): Add support for conditional
52280         dependencies.
52281         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52282         conditional automake snippet in an automake conditional.
52283         (func_emit_autoconf_snippets): Emit shell functions that contain the
52284         code for conditional modules.
52285         (func_import, func_create_testdir): Update specification.
52287 2011-05-03  Eric Blake  <eblake@redhat.com>
52289         test-getaddrinfo: report error information
52290         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52292 2011-05-03  Jim Meyering  <meyering@redhat.com>
52294         bootstrap: avoid build failure when $GZIP is set
52295         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52296         program name.  If defined at all, it is supposed to list gzip options.
52297         Reported by Alan Curry in http://debbugs.gnu.org/8609
52299 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52301         readme-release: new module with release instructions
52302         * modules/readme-release: New module.
52303         * top/README-release: New file, from coreutils, grep, diffutils.
52304         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52306 2011-05-02  Eric Blake  <eblake@redhat.com>
52308         fflush: also replace fclose when fixing fflush
52309         * modules/fflush (Depends-on): Add fclose.
52310         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52311         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52312         memstreams with no backing fd.
52313         * doc/posix-functions/fclose.texi (fclose): Document the use of
52314         fflush module to fix the bug.
52315         * tests/test-fclose.c (main): Relax test when fclose is used in
52316         isolation.
52318         fclose: add some tests
52319         * modules/fclose-tests: New test module.
52320         * tests/test-fclose.c: New file.
52321         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52323         fclose: reduced dependencies
52324         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52325         simpler lseek.
52326         * lib/fclose.c (rpl_fclose): Likewise.
52327         Reported by Simon Josefsson.
52329         exit: drop remaining clients
52330         * modules/argmatch (Depends-on): Replace exit with stdlib.
52331         * modules/copy-file (Depends-on): Likewise.
52332         * modules/execute (Depends-on): Likewise.
52333         * modules/exitfail (Depends-on): Likewise.
52334         * modules/obstack (Depends-on): Likewise.
52335         * modules/pagealign_alloc (Depends-on): Likewise.
52336         * modules/pipe-filter-gi (Depends-on): Likewise.
52337         * modules/pipe-filter-ii (Depends-on): Likewise.
52338         * modules/savewd (Depends-on): Likewise.
52339         * modules/spawn-pipe (Depends-on): Likewise.
52340         * modules/wait-process (Depends-on): Likewise.
52341         * modules/xsetenv (Depends-on): Likewise.
52342         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52343         * modules/git-merge-changelog (Depends-on): Likewise.
52344         * modules/long-options (Depends-on): Likewise.
52345         * modules/pt_chown (Depends-on): Likewise.
52346         * modules/sysexits (Depends-on): Likewise.
52348         freading: relax license from LGPLv3+ to LGPLv2+
52349         * modules/freading (License): Relax LGPL version.
52351 2011-05-02  Bruno Haible  <bruno@clisp.org>
52353         fchdir: Remove unused dependencies.
52354         * modules/fchdir (Depends-on): Remove include_next.
52356 2011-05-02  Bruno Haible  <bruno@clisp.org>
52358         gnulib-tool: Refactor.
52359         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52360         from func_emit_autoconf_snippets.
52361         (func_emit_autoconf_snippets): Use it.
52363 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52365         * NEWS: Document removal of 'exit'.
52366         * modules/exit: Remove file.
52368 2011-05-01  Bruno Haible  <bruno@clisp.org>
52370         Update DEPENDENCIES.
52371         * DEPENDENCIES (gettext): Recommend the newest release.
52372         Reported by Simon Josefsson.
52374 2011-05-01  Bruno Haible  <bruno@clisp.org>
52376         gnulib-tool: Reduce code duplication.
52377         * gnulib-tool (func_emit_autoconf_snippets): New function.
52378         (func_import, func_create_testdir): Use it.
52380 2011-04-30  Eric Blake  <eblake@redhat.com>
52382         fclose: don't fail on non-seekable input stream
52383         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52384         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52385         since fflush is allowed to fail in that case.
52387 2011-04-30  Bruno Haible  <bruno@clisp.org>
52389         dup3: cleanup
52390         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52392 2011-04-30  Bruno Haible  <bruno@clisp.org>
52394         netdb: Make it work in C++ mode.
52395         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52396         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52397         module.
52398         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52399         gl_MODULE_INDICATOR_FOR_TESTS.
52400         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52401         * modules/netdb-c++-tests: New file.
52402         * tests/test-netdb-c++.cc: New file.
52404 2011-04-30  Bruno Haible  <bruno@clisp.org>
52406         New modules 'vfscanf', 'vscanf'.
52407         * modules/vfscanf: New file.
52408         * modules/vscanf: New file.
52409         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52410         here.
52411         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52412         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52414 2011-04-30  Bruno Haible  <bruno@clisp.org>
52416         passfd: Add comments.
52417         * lib/passfd.c: Add comments about platforms.
52419 2011-04-30  Bruno Haible  <bruno@clisp.org>
52421         sys_uio: Make <sys/uio.h> self-contained.
52422         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52423         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52425 2011-04-30  Bruno Haible  <bruno@clisp.org>
52427         sys_socket: Ensure 'struct iovec' definition.
52428         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52429         <sys/socket.h>.
52430         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52432 2011-04-30  Bruno Haible  <bruno@clisp.org>
52434         sys_uio: Protect definition of 'struct iovec'.
52435         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52436         it as a C struct.
52438 2011-04-30  Bruno Haible  <bruno@clisp.org>
52440         manywarnings: fix indentation
52441         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52443 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52445         manywarnings: add -Wno-missing-field-initializers if needed.
52446         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52447         option if it's needed to allow initialization with { 0, }
52449 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52451         announce-gen: cosmetic improvement
52452         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52454 2011-04-29  Jim Meyering  <meyering@redhat.com>
52456         vc-list-files: indent with spaces, not TABs
52457         * build-aux/vc-list-files: Convert leading TABs to spaces,
52458         to match the style of most other files in gnulib.
52460         announce-gen: indent with spaces, not TABs
52461         * build-aux/announce-gen: Convert all TABs to spaces, to match
52462         the style of most other files in gnulib.
52464 2011-04-29  Eric Blake  <eblake@redhat.com>
52466         quotearg: avoid uninitialized variable use
52467         * lib/quotearg.c (quoting_options_from_style): Initialize
52468         remaining fields, and ensure that custom styles are only used via
52469         quoting_options rather than quoting_style.
52471 2011-04-29  Jim Meyering  <meyering@redhat.com>
52473         maint.mk: remove unused VC-tag variable
52474         * top/maint.mk (VC-tag): Remove unused variable.
52476 2011-04-29  Bruno Haible  <bruno@clisp.org>
52478         netdb: fix gai_strerror replacements
52479         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52480         * modules/netdb: Substitute it.
52482 2011-04-29  Jim Meyering  <meyering@redhat.com>
52484         test-getcwd.c: avoid new set-but-not-used warning
52485         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52486         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52487         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52488         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52490         test-hash.c: avoid a new shadowing warning
52491         * tests/test-hash.c (main): Don't shadow "dup".
52493 2011-04-28  Eric Blake  <eblake@redhat.com>
52495         getaddrinfo: fix gai_strerror signature
52496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52497         and work around mingw with UNICODE defined.
52498         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52499         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52500         * modules/netdb (Makefile.am): Substitute it.
52501         * lib/netdb.in.h (gai_strerror): Declare replacement.
52502         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52503         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52504         the fix.
52506         getsockopt: avoid compiler warning
52507         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52508         Reported by Matthias Bolte.
52510         tests: drop unused link dependency
52511         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52512         * modules/dirent-safer-tests (Makefile.am): Likewise.
52513         * modules/fdopendir-tests (Makefile.am): Likewise.
52514         * modules/mkfifoat-tests (Makefile.am): Likewise.
52515         * modules/openat-safer-tests (Makefile.am): Likewise.
52516         * modules/openat-tests (Makefile.am): Likewise.
52517         * modules/readlinkat-tests (Makefile.am): Likewise.
52518         * modules/symlinkat-tests (Makefile.am): Likewise.
52519         * modules/linkat-tests (Makefile.am): Likewise.
52520         (Depends-on): Switch to filenamecat-lgpl.
52521         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52522         LIBINTL.
52523         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52524         * tests/test-linkat.c (main): Don't require xalloc.
52526         hash, mgetgroups: drop xalloc dependency
52527         * lib/hash.c (includes): Adjust includes.
52528         * lib/mgetgroups.c (includes): Likewise.
52529         (xgetgroups): Move...
52530         * lib/xgetgroups.c: ...to new file.
52531         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52532         * modules/xgetgroups: New file, split from...
52533         * modules/mgetgroups: ...here.
52534         (Depends-on): Add xalloc-oversized.
52535         * modules/hash (Depends-on): Likewise.
52536         * modules/hash-tests (Depends-on): Drop xalloc.
52537         (test_hash_LDADD): Drop unused library.
52538         * tests/test-hash.c (main): Break xalloc dependency.
52539         (includes): Drop unused include.
52541         xalloc-oversized: new module
52542         * modules/xalloc-oversized: New module.
52543         * modules/xalloc (Depends-on): Add it.
52544         * lib/xalloc.h (xalloc_oversized): Move...
52545         * lib/xalloc-oversized.h: ...into new file.
52547         utimecmp: drop dependency on xmalloc
52548         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52549         due to memory pressure.
52550         * modules/utimecmp (Depends-on): Drop xalloc.
52552 2011-04-27  Eric Blake  <eblake@redhat.com>
52554         getcwd: fix mingw bugs
52555         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52556         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52557         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52559 2011-04-27  Bruno Haible  <bruno@clisp.org>
52561         mkstemps: Ensure declaration on MacOS X 10.5.
52562         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52563         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52564         MacOS X.
52566 2011-04-27  Bruno Haible  <bruno@clisp.org>
52568         mkstemp: More documentation.
52569         * doc/posix-functions/mkstemp.texi: Document header file problem on
52570         MacOS X.
52572 2011-04-27  Bruno Haible  <bruno@clisp.org>
52574         mkstemp: Tweak configure message when cross-compiling.
52575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52576         result as a guess.
52578 2011-04-27  Bruno Haible  <bruno@clisp.org>
52580         clean-temp: Clarify what it does.
52581         * lib/clean-temp.h: Add more comments.
52582         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52583         module.
52584         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52585         * doc/glibc-functions/mkstemps.texi: Likewise.
52586         * doc/glibc-functions/mkostemps.texi: Likewise.
52588 2011-04-27  Eric Blake  <eblake@redhat.com>
52590         fchdir: avoid extra chdir and fix test
52591         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52592         getcwd-lgpl.
52593         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52594         have to be canonical.
52595         (canonicalize_file_name): Drop unused macro.
52596         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52598         filenamecat-lgpl: fix licence
52599         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52600         when it was first created.
52602         linkat, renameat: add missing dependency
52603         * modules/linkat (Depends-on): Require getcwd-lgpl.
52604         * modules/renameat (Depends-on): Likewise.
52606         tests: reduce dependencies
52607         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52608         * tests/test-renameat.c (main): Likewise.
52609         * modules/linkat-tests (Depends-on): Relax dependency.
52610         * modules/renameat-tests (Depends-on): Likewise.
52611         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52612         dependency explicit.
52614         save-cwd: reduce default dependency
52615         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52616         * lib/save-cwd.c: Update comments.
52617         * NEWS: Document the semantic change.
52619         getcwd: enhance tests
52620         * tests/test-getcwd-lgpl.c: New file, taken from...
52621         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52622         repeat long path stress tests from m4 probe.
52623         * modules/getcwd-lgpl-tests: New module.
52624         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52625         * m4/getcwd-abort-bug.m4: Update comment.
52626         * m4/getcwd-path-max.m4: Likewise.
52628         getcwd-lgpl: new module
52629         * modules/getcwd-lgpl: New module.
52630         * lib/getcwd-lgpl.c: New file.
52631         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52632         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52633         * modules/getcwd (configure.ac): Set C witness.
52634         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52636         getcwd: tweak comments
52637         * m4/getcwd-abort-bug.m4: Fix comments.
52638         * m4/getcwd-path-max.m4: Likewise.
52639         * m4/getcwd.m4: Likewise.
52641 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52642         and Eric Blake  <eblake@redhat.com>
52644         mkstemp: replace if system version uses wrong permissions
52645         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52646         read/write mode bits set in file created by mkstemp.
52647         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52649 2011-04-27  Eric Blake  <eblake@redhat.com>
52651         passfd: avoid compiler warning
52652         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52653         Reported by Laine Stump.
52655 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52657         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52658         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52660 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52661         and Eric Blake  <eblake@redhat.com>
52663         mkstemp: mention clean-temp module
52664         * lib/mkstemp.c: Add comment.
52665         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52667 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52669         inttypes: also provide default values for 32-bit tests
52670         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52671         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52673 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52675         strtoumax: remove dependency on strtoimax
52676         This is like the strtoull change of yesterday.
52677         * modules/strtoumax (Files): Add lib/strtoimax.c.
52678         (Depends-on): Remove strtoimax and add verify.
52680         inttypes-incomplete: new module
52681         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52682         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52683         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52684         of gl_INTTYPES_H.
52685         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52686         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52687         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52688         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52689         * modules/strtoumax, modules/xstrtol (Depends-on):
52690         Depend on inttypes-incomplete, not inttypes.
52691         * modules/inttypes-incomplete: New module, containing the contents
52692         of the old modules/inttypes module, except that the Files: section
52693         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52694         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52695         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52696         (Depends-on): Depend only on inttypes-incomplete.
52697         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52699         inttypes: omit now-redundant strtoimax and strtoumax work
52700         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52701         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52703         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52704         This supports apps that need pointers to strtoimax and strtoumax,
52705         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52706         nonexistent functions.  See
52707         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52708         et seq.
52709         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52710         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52711         a macro.
52712         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52714 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52716         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52718 2011-04-25  Bruno Haible  <bruno@clisp.org>
52720         strtol, strtoul: Mark modules as obsolete.
52721         * modules/strtol (Status, Notice): New sections.
52722         * modules/strtoul (Status, Notice): New sections.
52724 2011-04-25  Bruno Haible  <bruno@clisp.org>
52726         strtod: Remove check for strtod, unless supporting old platforms.
52727         * modules/strtod-obsolete: New file.
52728         * m4/strtod-obsolete.m4: New file.
52729         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52730         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52731         * modules/strtod (Depends-on): Add strtod-obsolete.
52732         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52734 2011-04-25  Bruno Haible  <bruno@clisp.org>
52736         strcase: Make module obsolete.
52737         * modules/strcase (Status, Notice): New sections.
52739 2011-04-25  Bruno Haible  <bruno@clisp.org>
52741         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52742         * modules/dup2-obsolete: New file.
52743         * m4/dup2-obsolete.m4: New file.
52744         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52745         gl_FUNC_DUP2_OBSOLETE is not also defined.
52746         * modules/dup2 (Depends-on): Add dup2-obsolete.
52747         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52749 2011-04-25  Bruno Haible  <bruno@clisp.org>
52751         strnlen: Avoid memchr related link error on old obsolete platforms.
52752         * modules/memchr-obsolete: New file.
52753         * m4/memchr-obsolete.m4: New file.
52754         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52755         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52756         * modules/memchr (Depends-on): Add memchr-obsolete.
52757         * modules/strnlen (Depends-on): Likewise.
52758         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52760 2011-04-25  Jim Meyering  <meyering@redhat.com>
52762         maint.mk: makefile_at_at_check extend and clean up
52763         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52764         in addition to */Makefile.am.
52765         Exempt legitimate uses of @VAR@ notation, e.g.,
52766         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52767         Remove obsolete coreutils-specific comment.
52768         Prompted by discussion here:
52769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52771 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52773         strtoul: remove dependency on strtol
52774         This is so that 'configure' need not check for strtol merely because
52775         the application needs strtoul.
52776         * modules/strtoul (Files): Add lib/strtol.c.
52777         (Depends-on): Remove strtol.
52779         strtoull: remove dependency on strtoul
52780         This is like the strtoll change.
52781         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52782         (Depends-on): Remove strtoul.
52784         strtoll: remove dependency on strtol
52785         This is so that 'configure' need not check for strtol merely because
52786         the application needs strtoll.
52787         * modules/strtoll (Files): Add lib/strtol.c.
52788         (Depends-on): Remove strtol.
52790 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52792         inttypes: Move some configure check to module 'imaxdiv'.
52793         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52794         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52795         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52797 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52799         inttypes: Move some configure check to module 'imaxabs'.
52800         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52801         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52802         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52804 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52806         inttypes: Remove configure tests that are not needed since 2009-12-31.
52807         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52808         gl_cv_header_working_inttypes_h.
52810 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52812         * modules/strnlen (Depends-on): Remove memchr.
52813         The strnlen implementation doesn't need the memchr module's fixes; see
52814         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52816         strtol: remove dependency on wchar
52817         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52818         * modules/strtol (Depends-on): Remove wchar.
52820 2011-04-21  Eric Blake  <eblake@redhat.com>
52822         passfd: fix test regression on Linux
52823         * modules/passfd-tests (configure.ac): Correct socketpair check.
52825         passfd: speed up configure and drop unused code
52826         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52827         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52828         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52829         Instead of probing at configure for unix_scm_rights_bsd44_way,
52830         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52831         check to a struct member probe.
52832         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52833         (sendfd, recvfd): Update preprocessor checks.
52834         * modules/passfd (Files): Reflect rename, and drop unused file.
52835         (Depends-on): Drop unused dependency.
52837         passfd: allow compilation on mingw
52838         * modules/sys_socket (Depends-on): Add sys_uio.
52839         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52840         iovec and a minimal struct msghdr.
52841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52842         * tests/test-sys_socket.c (main): Enhance test.
52843         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52844         guaranteed to provide what we need.
52845         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52846         * modules/passfd-tests (Depends-on): Add sys_wait.
52847         * tests/test-passfd.c (main): Skip test on mingw, for now.
52848         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52849         partial 'struct msghdr' implementation.
52851         sys_uio: new module
52852         * modules/sys_uio: New module.
52853         * modules/sys_uio-tests: Likewise.
52854         * lib/sys_uio.in.h: New file.
52855         * m4/sys_uio_h.m4: Likewise.
52856         * tests/test-sys_uio.c: Likewise.
52857         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52858         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52860 2011-04-20  Jim Meyering  <meyering@redhat.com>
52862         useless-if-before-free: avoid false-positive
52863         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52864         disjunct so that it too requires a terminating ";".  Without that,
52865         this script would identify as useless one statement from gcc that
52866         was not:
52867           if (aligned_ptr)
52868             free (((void **) aligned_ptr) [-1]);
52870 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52872         doc: update users.txt.
52873         * users.txt: Add barcode.
52875 2011-04-19  Bruno Haible  <bruno@clisp.org>
52877         ioctl: Remove link dependency on native Windows.
52878         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52879         (gl_close_fn, gl_ioctl_fn): New types.
52880         (struct fd_hook): Renamed from struct close_hook. Change type of
52881         private_close_fn field. Add private_ioctl_fn field.
52882         (close_hook_fn): Add parameter for primary close method.
52883         (execute_close_hooks, execute_all_close_hooks): Likewise.
52884         (ioctl_hook_fn): New type.
52885         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52886         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52887         argument.
52888         (unregister_fd_hook): Renamed from unregister_close_hook.
52889         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52890         Don't include <unistd.h>.
52891         (close): Remove undef.
52892         (anchor): Update.
52893         (execute_close_hooks): Add argument for primary close method.
52894         (execute_all_close_hooks): Likewise.
52895         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52896         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52897         argument. Allow each argument to be NULL.
52898         (unregister_fd_hook): Renamed from unregister_close_hook.
52899         * lib/close.c (rpl_close): Pass 'close' function pointer to
52900         execute_all_close_hooks.
52901         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52902         (primary_ioctl): New function.
52903         (ioctl): Don't call ioctlsocket here. Instead, call
52904         execute_all_ioctl_hooks.
52905         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52906         close method.
52907         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52908         (fd_sockets_hook): Renamed from close_sockets_hook.
52909         (gl_sockets_startup, gl_sockets_cleanup): Update.
52910         * modules/fd-hook: Renamed from modules/close-hook. Update.
52911         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52912         * modules/sockets (Depends-on): Likewise.
52913         * modules/ioctl (Depends-on): Add fd-hook.
52914         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52915         GNULIB_SOCKET.
52917 2011-04-19  Bruno Haible  <bruno@clisp.org>
52919         Move the support of O_NONBLOCK in open() to the 'open' module.
52920         * modules/nonblocking (Depends-on): Remove 'open'.
52921         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52922         gl_cv_have_open_O_NONBLOCK.
52923         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52924         O_NONBLOCK support.
52925         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52927 2011-04-17  Bruno Haible  <bruno@clisp.org>
52929         pipe2: Simplify code.
52930         * lib/pipe2.c (pipe2): Reduce code duplication.
52932 2011-04-17  Bruno Haible  <bruno@clisp.org>
52934         nonblocking: Add comment.
52935         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52937 2011-04-17  Bruno Haible  <bruno@clisp.org>
52939         nonblocking: Add tests for sockets.
52940         * tests/test-nonblocking-socket.sh: New file.
52941         * tests/test-nonblocking-socket-main.c: New file.
52942         * tests/test-nonblocking-socket-child.c: New file.
52943         * tests/test-nonblocking-socket.h: New file.
52944         * tests/socket-server.h: New file.
52945         * tests/socket-client.h: New file.
52946         * modules/nonblocking-socket-tests: New file.
52947         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52949 2011-04-17  Bruno Haible  <bruno@clisp.org>
52951         nonblocking: Add tests for pipes.
52952         * tests/test-nonblocking-pipe.sh: New file.
52953         * tests/test-nonblocking-pipe-main.c: New file.
52954         * tests/test-nonblocking-pipe-child.c: New file.
52955         * tests/test-nonblocking-pipe.h: New file.
52956         * tests/test-nonblocking-writer.h: New file.
52957         * tests/test-nonblocking-reader.h: New file.
52958         * tests/test-nonblocking-misc.h: New file.
52959         * modules/nonblocking-pipe-tests: New file.
52960         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52962 2011-04-16  Bruno Haible  <bruno@clisp.org>
52964         gettext: Clarify the needed programmer actions.
52965         * modules/gettext (Notice): New field.
52966         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52968 2011-04-16  Bruno Haible  <bruno@clisp.org>
52970         strchrnul: Tweak last commit.
52971         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
52972         bug.
52973         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
52974         as in _GL_FUNCDECL_SYS.
52975         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
52976         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
52978 2011-04-15  Eric Blake  <eblake@redhat.com>
52980         strchrnul: work around cygwin bug
52981         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
52982         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
52984         * modules/string (Makefile.am): Substitute it.
52985         * lib/string.in.h (strchrnul): Use it.
52987 2011-04-15  Bruno Haible  <bruno@clisp.org>
52989         Don't require lib/stdio-write.c when only module 'stdio' is used.
52990         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
52991         invocation.
52992         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
52994 2011-04-14  Bruno Haible  <bruno@clisp.org>
52996         Support non-blocking pipe I/O in read() on native Windows.
52997         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
52998         (read): New declaration.
52999         * lib/read.c: New file.
53000         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53001         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53002         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53003         vscanf): New declarations.
53004         * lib/stdio-read.c: New file.
53005         * m4/read.m4: New file.
53006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53007         REPLACE_READ.
53008         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53009         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53010         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53011         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53012         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
53013         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53014         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53015         * modules/read: New file.
53016         * modules/nonblocking (Files): Add lib/stdio-read.c.
53017         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53018         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53021         * modules/pread (Depends-on): Add read.
53022         * modules/safe-read (Depends-on): Likewise.
53023         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53024         gets, scanf, vfscanf, vscanf): Verify signatures.
53025         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53026         problem with non-blocking pipes.
53027         * doc/posix-functions/fgetc.texi: Likewise.
53028         * doc/posix-functions/fgets.texi: Likewise.
53029         * doc/posix-functions/fread.texi: Likewise.
53030         * doc/posix-functions/fscanf.texi: Likewise.
53031         * doc/posix-functions/getc.texi: Likewise.
53032         * doc/posix-functions/getchar.texi: Likewise.
53033         * doc/posix-functions/gets.texi: Likewise.
53034         * doc/posix-functions/scanf.texi: Likewise.
53035         * doc/posix-functions/vfscanf.texi: Likewise.
53036         * doc/posix-functions/vscanf.texi: Likewise.
53038 2011-04-14  Bruno Haible  <bruno@clisp.org>
53040         Support non-blocking pipe I/O in write() on native Windows.
53041         * lib/write.c (rpl_write): Split a write request that failed merely
53042         because the byte count was larger than the pipe buffer's size.
53043         * doc/posix-functions/write.texi: Mention the problem with large byte
53044         counts.
53046 2011-04-14  Bruno Haible  <bruno@clisp.org>
53048         wchar: Ensure that wchar_t gets defined on uClibc.
53049         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53050         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53052 2011-04-13  Bruno Haible  <bruno@clisp.org>
53054         safe-write, full-read: Avoid unnecessary compilation units.
53055         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53056         (Depends-on): Remove safe-read. Add ssize_t.
53057         * modules/full-read (Files): Add lib/full-write.c.
53058         (Depends-on): Add full-write.
53060 2011-04-13  Bruno Haible  <bruno@clisp.org>
53062         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53063         * modules/pwrite (Depends-on): Add 'write'.
53065 2011-04-13  Bruno Haible  <bruno@clisp.org>
53067         Support non-blocking pipe I/O in write() on native Windows.
53068         * lib/unistd.in.h (write): Enable replacement also if
53069         GNULIB_UNISTD_H_NONBLOCKING is 1.
53070         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53071         (rpl_write): When failing to write on a non-blocking pipe, change
53072         errno from ENOSPC to EAGAIN.
53073         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
53074         putchar, puts, vfprintf, vprintf): Enable replacement also if
53075         GNULIB_STDIO_H_NONBLOCKING is 1.
53076         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
53077         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
53078         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
53079         CALL_WITH_SIGPIPE_EMULATION.
53080         (CALL_WITH_SIGPIPE_EMULATION): Use them.
53081         * m4/nonblocking.m4: New file.
53082         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
53083         for non-blocking I/O support.
53084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53085         GNULIB_UNISTD_H_NONBLOCKING.
53086         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
53087         required for non-blocking I/O support.
53088         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
53089         * modules/nonblocking (Files): Add m4/nonblocking.m4,
53090         lib/stdio-write.c, m4/asm-underscore.m4.
53091         (Depends-on): Add stdio, unistd.
53092         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
53093         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
53094         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
53095         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
53096         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
53097         problem with non-blocking pipes.
53098         * doc/posix-functions/fputc.texi: Likewise.
53099         * doc/posix-functions/fputs.texi: Likewise.
53100         * doc/posix-functions/fwrite.texi: Likewise.
53101         * doc/posix-functions/printf.texi: Likewise.
53102         * doc/posix-functions/putc.texi: Likewise.
53103         * doc/posix-functions/putchar.texi: Likewise.
53104         * doc/posix-functions/puts.texi: Likewise.
53105         * doc/posix-functions/vfprintf.texi: Likewise.
53106         * doc/posix-functions/vprintf.texi: Likewise.
53107         * doc/posix-functions/write.texi: Likewise.
53109 2011-04-10  Jim Meyering  <meyering@redhat.com>
53111         maint.mk: prohibit doubled words
53112         Detect them also when they're separated by a newline.
53113         There are 3 ways to customize it:
53114           - disable the test on a per file basis, as usual with rules using
53115             $(VC_LIST_EXCEPT)
53116           - replace the default doubled-word-selecting regexp (affects all files)
53117           - ignore a particular file-vs-doubled-word match
53118         I nearly used that last one to ignore the "is is" match in
53119         coreutils' NEWS file, since the text was "ls -is is ..."
53120         To do that, I would have added this line to cfg.mk:
53121           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53122         but it would have ignored any "is is" match in NEWS.
53123         Low probability, but still...
53124         Instead, I changed the text, slightly:
53125           -  ls -is is now consistent with ls -lis in ignoring values returned
53126           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53127         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53128         (prohibit_doubled_word_): Define.
53129         (sc_prohibit_doubled_word): New rule.
53130         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53132 2011-04-10  Jim Meyering  <meyering@redhat.com>
53134         maint: fix doubled-word typo in comment
53135         * m4/gethostname.m4: s/is is/it is/
53136         * m4/getdomainname.m4: Likewise.
53138 2011-04-10  Jim Meyering  <meyering@redhat.com>
53140         maint: remove doubled word: s/it it/it/
53141         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53143 2011-04-10  Jim Meyering  <meyering@redhat.com>
53145         maint.mk: remove useless semicolon and backslash
53146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53147         semicolon and backslash.
53149 2011-04-10  Bruno Haible  <bruno@clisp.org>
53151         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53152         * modules/stdint-tests (Depends-on): Add wchar.
53154 2011-04-10  Jim Meyering  <meyering@redhat.com>
53156         maint: remove doubled words in comments, e.g., s/a a/a/
53157         * lib/strptime.c (day_of_the_week): s/the the/the/
53158         * tests/test-chown.h (test_chown): s/a a/a/
53160         test-chown.h: correct a cast
53161         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53162         when the destination is a stat.st_gid.
53164 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53166         getaddrinfo: Fix test for sa_len member.
53167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53168         include <sys/types.h> before <sys/socket.h>.
53170 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53172         maint: change "can not" to "cannot"
53173         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53174         boundaries.
53176 2011-04-09  Jim Meyering  <meyering@redhat.com>
53178         maint: change "a a" to "a"
53179         * tests/test-lchown.h (test_lchown): s/a a/a/
53181         maint.mk: prohibit \<the the\>
53182         * top/maint.mk (sc_prohibit_the_the): New rule.
53184         maint: fix "the the" in comment
53185         * lib/count-one-bits.h: s/the the/the/
53187         maint: change "can not" to "cannot"
53188         But do not change the occurrences in maintain.texi or in
53189         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53190         * doc/gnulib-tool.texi: s/can not/cannot/
53191         * doc/posix-functions/accept.texi (accept): Likewise.
53192         * doc/posix-functions/socket.texi (socket): Likewise.
53193         * lib/mbrtowc.c: Likewise.
53195         maint.mk: prohibit use of "can not"
53196         * top/maint.mk (sc_prohibit_can_not): New rule.
53197         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53199 2011-04-09  Bruno Haible  <bruno@clisp.org>
53201         careadlinkat: Guard against misuse of careadlinkatcwd.
53202         * lib/careadlinkat.c: Include <stdlib.h>.
53203         (careadlinkatcwd): Check that the fd argument is as expected.
53205 2011-04-09  Bruno Haible  <bruno@clisp.org>
53207         careadlinkat: Use common coding style.
53208         * lib/careadlinkat.c: Move gnulib includes after system includes.
53210 2011-04-09  Bruno Haible  <bruno@clisp.org>
53212         careadlinkat: Clarify specification.
53213         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53214         (careadlinkatcwd): Add comment.
53215         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53217 2011-04-09  Bruno Haible  <bruno@clisp.org>
53219         areadlinkat: Avoid link error on many platforms.
53220         * modules/areadlinkat (Depends-on): Add areadlink.
53222 2011-04-09  Bruno Haible  <bruno@clisp.org>
53224         allocator, careadlinkat: Fix double-inclusion guard.
53225         * lib/allocator.h: Fix double-inclusion guard.
53226         * lib/careadlinkat.h: Likewise.
53228 2011-04-09  Bruno Haible  <bruno@clisp.org>
53230         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53231         * lib/relocwrapper.c: Update dependencies hierarchy.
53232         * build-aux/install-reloc: Update list of files to be compiled.
53233         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53234         lib/allocator.[hc].
53236 2011-04-08  Eric Blake  <eblake@redhat.com>
53238         strftime: silence gnulib-tool warning
53239         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53241 2011-04-08  Bruno Haible  <bruno@clisp.org>
53243         verify: Fix syntax error with GCC 4.6 in C++ mode.
53244         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53245         (HAVE_STATIC_ASSERT): New macro.
53246         (verify_true, verify): Use 'static_assert' if it is supported and
53247         '_Static_assert' is not supported.
53249 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53251         allocator: New module.
53252         * modules/allocator, lib/allocator.c: New files.
53253         * lib/allocator.h (stdlib_allocator): New decl.
53254         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53255         Remove.  Do not include <stdlib.h>.
53256         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53257         * modules/careadlinkat (Files): Remove lib/allocator.h.
53258         (Depends-on): Add allocator.
53260         stdlib: let modules use system malloc, realloc
53261         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53262         if !_GL_USE_STDLIB_ALLOC.
53263         (malloc, realloc): Limit this change to a smaller scope.
53265         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53266         (malloc, realloc): Don't #undef; no longer needed.
53267         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53268         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53269         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53270         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53271         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53272         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53273         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53274         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53276         careadlinkat: rename members to avoid problem
53277         * lib/allocator.h (struct allocator): Rename members from
53278         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53279         and realloc are #define'd.  Reported by Eric Blake in
53280         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53281         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53283 2011-04-08  Eric Blake  <eblake@redhat.com>
53285         nonblocking: reduce dependency
53286         * tests/test-nonblocking.c: Only test sockets when in use.
53287         * modules/nonblocking-tests (Depends-on): Drop socket.
53288         (Makefile.am): Link even if sockets are not present.
53289         * modules/pipe2-tests (Makefile.am): Likewise.
53290         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53292         pipe2: fix O_NONBLOCK support on mingw
53293         * modules/pipe2 (Depends-on): Add nonblocking.
53294         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53295         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53296         * tests/test-nonblocking.c (main): Likewise.
53297         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53299         fcntl-h: fix O_ACCMODE on cygwin
53300         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53301         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53303         pipe-filter: drop O_NONBLOCK workarounds
53304         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53305         * modules/pipe-filter-ii (Depends-on): Likewise.
53306         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53308         nonblocking: provide O_NONBLOCK for mingw
53309         * modules/nonblocking (Depends-on): Add open.
53310         (configure.ac): Set new witness macro.
53311         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53312         * modules/fcntl-h (Makefile.am): Substitute it.
53313         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53314         nonblocking module is in use.
53315         * lib/nonblocking.c: Adjust portability test.
53316         * lib/open.c (open): Don't let native open see gnulib flag.
53317         * tests/test-fcntl-h.c (main): Enhance test.
53318         * tests/test-open.h (test_open): Likewise.
53319         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53321         careadlinkat: fix compilation error on mingw
53322         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53323         within struct allocator.
53325 2011-04-06  Eric Blake  <eblake@redhat.com>
53327         binary-io: relicense under LGPLv2+
53328         * modules/binary-io (License): Relax to LGPLv2+.
53329         Requested for libvirt, and required by pipe2.
53331 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53333         verify: use _Static_assert if available
53334         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53335         (verify_true, verify): Use it if available.  This generates better
53336         diagnostics with GCC 4.6.0 and later.
53338 2011-04-05  Bruno Haible  <bruno@clisp.org>
53340         Remove leftover generated .h files after config.status changed.
53342         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53343         GL_GENERATE_ALLOCA_H.
53344         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53345         GL_GENERATE_ALLOCA_H evaluates to false.
53347         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53348         GL_GENERATE_ARGZ_H.
53349         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53350         evaluates to false.
53352         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53353         GL_GENERATE_BYTESWAP_H.
53354         * modules/byteswap (Makefile.am): Remove byteswap.h if
53355         GL_GENERATE_BYTESWAP_H evaluates to false.
53357         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53358         GL_GENERATE_ERRNO_H.
53359         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53360         evaluates to false.
53362         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53363         GL_GENERATE_FLOAT_H.
53364         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53365         evaluates to false.
53367         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53368         GL_GENERATE_FNMATCH_H.
53369         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53370         GL_GENERATE_FNMATCH_H evaluates to false.
53372         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53373         GL_GENERATE_GLOB_H.
53374         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53375         evaluates to false.
53377         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53378         automake conditional GL_GENERATE_ICONV_H.
53379         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53380         evaluates to false.
53382         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53383         GL_GENERATE_NETINET_IN_H.
53384         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53385         GL_GENERATE_NETINET_IN_H evaluates to false.
53387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53388         conditional GL_GENERATE_PTHREAD_H.
53389         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53390         * modules/pthread (Makefile.am): Remove pthread.h if
53391         GL_GENERATE_PTHREAD_H evaluates to false.
53393         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53394         GL_GENERATE_SCHED_H.
53395         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53396         evaluates to false.
53398         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53399         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53400         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53401         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53403         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53404         GL_GENERATE_STDARG_H.
53405         * modules/stdarg (Makefile.am): Remove stdarg.h if
53406         GL_GENERATE_STDARG_H evaluates to false.
53408         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53409         GL_GENERATE_STDBOOL_H.
53410         * modules/stdbool (Makefile.am): Remove stdbool.h if
53411         GL_GENERATE_STDBOOL_H evaluates to false.
53413         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53414         conditional GL_GENERATE_STDDEF_H.
53415         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53416         * modules/stddef (Makefile.am): Remove stddef.h if
53417         GL_GENERATE_STDDEF_H evaluates to false.
53419         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53420         GL_GENERATE_STDINT_H.
53421         * modules/stdint (Makefile.am): Remove stdint.h if
53422         GL_GENERATE_STDINT_H evaluates to false.
53424         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53425         GL_GENERATE_SYSEXITS_H.
53426         * modules/sysexits (Makefile.am): Remove sysexits.h if
53427         GL_GENERATE_SYSEXITS_H evaluates to false.
53429         Reported by Karl Berry and Ralf Wildenhues.
53431 2011-04-05  Bruno Haible  <bruno@clisp.org>
53433         Ensure to rebuild generated .h files when config.status has changed.
53434         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53435         config.status.
53436         * modules/ctype (Makefile.am): Likewise.
53437         * modules/dirent (Makefile.am): Likewise.
53438         * modules/errno (Makefile.am): Likewise.
53439         * modules/fcntl-h (Makefile.am): Likewise.
53440         * modules/float (Makefile.am): Likewise.
53441         * modules/getopt-posix (Makefile.am): Likewise.
53442         * modules/glob (Makefile.am): Likewise.
53443         * modules/iconv-h (Makefile.am): Likewise.
53444         * modules/inttypes (Makefile.am): Likewise.
53445         * modules/langinfo (Makefile.am): Likewise.
53446         * modules/locale (Makefile.am): Likewise.
53447         * modules/math (Makefile.am): Likewise.
53448         * modules/netdb (Makefile.am): Likewise.
53449         * modules/netinet_in (Makefile.am): Likewise.
53450         * modules/poll-h (Makefile.am): Likewise.
53451         * modules/pthread (Makefile.am): Likewise.
53452         * modules/pty (Makefile.am): Likewise.
53453         * modules/sched (Makefile.am): Likewise.
53454         * modules/search (Makefile.am): Likewise.
53455         * modules/selinux-h (Makefile.am): Likewise.
53456         * modules/signal (Makefile.am): Likewise.
53457         * modules/spawn (Makefile.am): Likewise.
53458         * modules/stdarg (Makefile.am): Likewise.
53459         * modules/stdbool (Makefile.am): Likewise.
53460         * modules/stddef (Makefile.am): Likewise.
53461         * modules/stdint (Makefile.am): Likewise.
53462         * modules/stdio (Makefile.am): Likewise.
53463         * modules/stdlib (Makefile.am): Likewise.
53464         * modules/string (Makefile.am): Likewise.
53465         * modules/strings (Makefile.am): Likewise.
53466         * modules/sys_file (Makefile.am): Likewise.
53467         * modules/sys_ioctl (Makefile.am): Likewise.
53468         * modules/sys_select (Makefile.am): Likewise.
53469         * modules/sys_socket (Makefile.am): Likewise.
53470         * modules/sys_stat (Makefile.am): Likewise.
53471         * modules/sys_time (Makefile.am): Likewise.
53472         * modules/sys_times (Makefile.am): Likewise.
53473         * modules/sys_utsname (Makefile.am): Likewise.
53474         * modules/sys_wait (Makefile.am): Likewise.
53475         * modules/sysexits (Makefile.am): Likewise.
53476         * modules/termios (Makefile.am): Likewise.
53477         * modules/time (Makefile.am): Likewise.
53478         * modules/unistd (Makefile.am): Likewise.
53479         * modules/wchar (Makefile.am): Likewise.
53480         * modules/wctype-h (Makefile.am): Likewise.
53481         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53483 2011-04-05  Bruno Haible  <bruno@clisp.org>
53485         pipe2: Relicense under LGPLv2+.
53486         * modules/pipe2 (License): Change to LGPLv2+.
53487         Requested by Eric Blake, for libvirt.
53489 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53491         bootstrap: compute gnulib_extra_files after updating build_aux
53492         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53493         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53495 2011-04-05  Eric Blake  <eblake@redhat.com>
53497         bootstrap: preserve git whitelist item sorting
53498         * build-aux/bootstrap (sort_patterns): New function.
53499         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53501 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53503         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53504         sc_space_tab check.
53506 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53508         areadlink, areadlinkat: rewrite in terms of careadlinkat
53509         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53510         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53511         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53512         (malloc, realloc): Remove #undefs.
53513         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53514         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53515         readlink, ssize_t, stdint, unistd.
53516         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53517         areadlink, stdint.
53519         careadlinkat: new module
53520         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53521         * modules/careadlinkat: New files, written by me with
53522         a review and feedback from Ben Pfaff in
53523         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53525 2011-04-01  Bruno Haible  <bruno@clisp.org>
53527         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53528         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53529         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53530         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53531         Reported by Bruce Korb <bruce.korb@gmail.com>.
53533 2011-04-01  Bruno Haible  <bruno@clisp.org>
53535         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53536         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53537         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53538         * modules/wcpcpy (Depends-on): Add extensions.
53539         * modules/wcpncpy (Depends-on): Likewise.
53540         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53541         systems.
53542         * doc/posix-functions/wcpncpy.texi: Likewise.
53543         * doc/posix-functions/wcwidth.texi: Likewise.
53545 2011-03-31  Eric Blake  <eblake@redhat.com>
53547         nonblocking: fix mingw test failures
53548         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53549         non-blocking flag on regular file.
53550         (get_nonblocking_flag): Set errno on invalid fd.
53551         * tests/test-nonblocking.c (main): Avoid test failure on
53552         directories if fchdir is not active.
53553         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53555 2011-03-31  Bruno Haible  <bruno@clisp.org>
53557         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53558         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53559         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53560         Reported by Simon Josefsson <simon@josefsson.org>.
53562 2011-03-31  Bruno Haible  <bruno@clisp.org>
53563         and Eric Blake  <eblake@redhat.com>
53565         nonblocking: new module
53566         * modules/nonblocking: New module.
53567         * modules/nonblocking-tests: Likewise.
53568         * lib/nonblocking.h: New file.
53569         * lib/nonblocking.c: Likewise.
53570         * tests/test-nonblocking.c: New test.
53571         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53573 2011-03-30  Bruno Haible  <bruno@clisp.org>
53575         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53576         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53577         instead of 'printf' format for GCC >= 4.4.
53578         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53579         (fprintf, printf, vfprintf, vprintf): Declare with
53580         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53581         the system's vfprintf() function.
53582         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53584 2011-03-30  Eric Blake  <eblake@redhat.com>
53586         passfd: fix scoping bug
53587         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53588         before sendmsg/recvmsg.
53590         passfd: standardize coding conventions
53591         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53592         can be learned at compile time.
53593         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53594         ifdefs.
53595         (sendfd, recvfd): Follow gnulib code conventions.
53597         passfd: fix incorrect sendmsg arguments
53598         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53599         incorrect msg_controllen value.
53600         * modules/passfd-tests (Depends-on): Check for alarm.
53601         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53602         Reported by Bastien ROUCARIES.
53604 2011-03-30  Bruno Haible  <bruno@clisp.org>
53606         c-strcasestr: Relicense under LGPLv2+.
53607         * modules/c-strcasestr (License): Change to LGPLv2+.
53608         Requested by Eric Blake, for libvirt.
53610 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53612         * users.txt: Add libidn2.  Fix libtasn1 link.
53614 2011-03-30  Jim Meyering  <meyering@redhat.com>
53616         tests: readlink* ("",... fails with EINVAL on newer kernels
53617         readlink and readlinkat have typically failed with ENOENT for
53618         the invalid, empty file name,  "".  However, with the advent
53619         of linux-2.6.39, they fail with EINVAL.
53620         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53621         when operating on the empty file name.
53622         * tests/test-readlink.h (test_readlink): Likewise.
53624 2011-03-29  Bruno Haible  <bruno@clisp.org>
53626         Relicense some modules under LGPLv2+, for libidn2.
53627         * modules/array-mergesort (License): Change to LGPLv2+.
53628         * modules/c-strcaseeq (License): Likewise.
53629         * modules/striconveh (License): Likewise.
53630         * modules/striconveha (License): Likewise.
53631         * modules/uniconv/base (License): Likewise.
53632         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53633         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53634         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53635         * modules/unictype/base (License): Likewise.
53636         * modules/unictype/bidiclass-of (License): Likewise.
53637         * modules/unictype/category-M (License): Likewise.
53638         * modules/unictype/category-none (License): Likewise.
53639         * modules/unictype/category-of (License): Likewise.
53640         * modules/unictype/category-test (License): Likewise.
53641         * modules/unictype/category-test-withtable (License): Likewise.
53642         * modules/unictype/combining-class (License): Likewise.
53643         * modules/unictype/joiningtype-of (License): Likewise.
53644         * modules/unictype/scripts (License): Likewise.
53645         * modules/uninorm/base (License): Likewise.
53646         * modules/uninorm/canonical-decomposition (License): Likewise.
53647         * modules/uninorm/composition (License): Likewise.
53648         * modules/uninorm/decompose-internal (License): Likewise.
53649         * modules/uninorm/decomposition-table (License): Likewise.
53650         * modules/uninorm/nfc (License): Likewise.
53651         * modules/uninorm/nfd (License): Likewise.
53652         * modules/uninorm/u32-normalize (License): Likewise.
53653         * modules/unistr/base (License): Likewise.
53654         * modules/unistr/u32-cpy (License): Likewise.
53655         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53656         * modules/unistr/u32-to-u8 (License): Likewise.
53657         * modules/unistr/u32-uctomb (License): Likewise.
53658         * modules/unistr/u8-check (License): Likewise.
53659         * modules/unistr/u8-mblen (License): Likewise.
53660         * modules/unistr/u8-mbtouc (License): Likewise.
53661         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53662         * modules/unistr/u8-mbtoucr (License): Likewise.
53663         * modules/unistr/u8-prev (License): Likewise.
53664         * modules/unistr/u8-strlen (License): Likewise.
53665         * modules/unistr/u8-to-u32 (License): Likewise.
53666         * modules/unistr/u8-uctomb (License): Likewise.
53667         * modules/unitypes (License): Likewise.
53668         Requested by Simon Josefsson.
53670 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53672         lib-symbol-visibility: Add a notice.
53673         * modules/lib-symbol-visibility (Notice): New field.
53675 2011-03-29  Bruno Haible  <bruno@clisp.org>
53677         getaddrinfo: Doc fix.
53678         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53679         section "fixed in Gnulib".
53681 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53683         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53684         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53686 2011-03-26  Bruno Haible  <bruno@clisp.org>
53688         unictype/property-byname: Reduce the number of load-time relocations.
53689         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53690         (UC_PROPERTY_INDEX_*): New enumeration values.
53691         (uc_property_byname): Convert an index from the lookup table to an
53692         uc_property_t.
53693         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53694         values.
53696 2011-03-26  Bruno Haible  <bruno@clisp.org>
53698         unictype/property-byname: Allow omitted word separators and aliases.
53699         * lib/unictype/pr_byname.gperf: Add property names without word
53700         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53701         for 'space'.
53703 2011-03-26  Bruno Haible  <bruno@clisp.org>
53705         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53706         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53707         also hyphens to space.
53708         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53709         without spaces.
53710         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53712 2011-03-26  Bruno Haible  <bruno@clisp.org>
53714         unictype/joiningtype-byname: Recognize long names as well.
53715         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53716         a long name.
53717         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53718         unictype/joiningtype_byname.h.
53719         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53720         * lib/unictype/joiningtype_byname.gperf: New file.
53721         * modules/unictype/joiningtype-byname (Files): Add
53722         lib/unictype/joiningtype_byname.gperf.
53723         (Depends-on): Add gperf.
53724         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53725         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53726         long names.
53728         Tests for module 'unictype/joiningtype-longname'.
53729         * modules/unictype/joiningtype-longname-tests: New file.
53730         * tests/unictype/test-joiningtype_longname.c: New file.
53732         New module 'unictype/joiningtype-longname'.
53733         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53734         * lib/unictype/joiningtype_longname.c: New file.
53735         * modules/unictype/joiningtype-longname: New file.
53736         * modules/unictype/joiningtype-all (Depends-on): Add
53737         unictype/joiningtype-longname.
53739 2011-03-26  Bruno Haible  <bruno@clisp.org>
53741         unictype/bidiclass-byname: Recognize long names as well.
53742         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53743         name.
53744         * lib/unictype/bidi_byname.c: Include <string.h>,
53745         unictype/bidi_byname.h.
53746         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53747         * lib/unictype/bidi_byname.gperf: New file.
53748         * modules/unictype/bidiclass-byname (Files): Add
53749         lib/unictype/bidi_byname.gperf.
53750         (Depends-on): Add gperf.
53751         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53752         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53753         long names.
53755         Tests for module 'unictype/bidiclass-longname'.
53756         * modules/unictype/bidiclass-longname-tests: New file.
53757         * tests/unictype/test-bidi_longname.c: New file.
53759         New module 'unictype/bidiclass-longname'.
53760         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53761         * lib/unictype/bidi_longname.c: New file.
53762         * modules/unictype/bidiclass-longname: New file.
53763         * modules/unictype/bidiclass-all (Depends-on): Add
53764         unictype/bidiclass-longname.
53766 2011-03-26  Bruno Haible  <bruno@clisp.org>
53768         unictype/bidi*: Rename modules.
53769         * modules/unictype/bidiclass-all: Renamed from
53770         modules/unictype/bidicategory-all.
53771         * modules/unictype/bidiclass-name: Renamed from
53772         modules/unictype/bidiclass-name.
53773         (Description): Update.
53774         * modules/unictype/bidiclass-name-tests: Renamed from
53775         modules/unictype/bidicategory-name-tests.
53776         * modules/unictype/bidiclass-byname: Renamed from
53777         modules/unictype/bidicategory-byname.
53778         (Description): Update.
53779         * modules/unictype/bidiclass-byname-tests: Renamed from
53780         modules/unictype/bidicategory-byname-tests.
53781         * modules/unictype/bidiclass-of: Renamed from
53782         modules/unictype/bidicategory-of.
53783         (Description): Update.
53784         * modules/unictype/bidiclass-of-tests: Renamed from
53785         modules/unictype/bidicategory-of-tests.
53786         * modules/unictype/bidiclass-test: Renamed from
53787         modules/unictype/bidicategory-test.
53788         (Description): Update.
53789         * modules/unictype/bidiclass-test-tests: Renamed from
53790         modules/unictype/bidicategory-test-tests.
53791         * modules/unictype/bidicategory-all: New file, a simple redirection.
53792         * modules/unictype/bidicategory-name: Likewise.
53793         * modules/unictype/bidicategory-byname: Likewise.
53794         * modules/unictype/bidicategory-of: Likewise.
53795         * modules/unictype/bidicategory-test: Likewise.
53796         * modules/unictype/property-bidi-* (Dependencies): Update.
53797         * lib/unictype/bidi_*.c: Update comment.
53799 2011-03-26  Bruno Haible  <bruno@clisp.org>
53801         unictype/bidi*: Rename functions, part 2.
53802         * modules/unictype/bidicategory-name (configure.ac): Update required
53803         libunistring version.
53804         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53806 2011-03-25  Bruno Haible  <bruno@clisp.org>
53808         New module 'unictype/combining-class-all'.
53809         * modules/unictype/combining-class-all: New file.
53811         Tests for module 'unictype/combining-class-byname'.
53812         * modules/unictype/combining-class-byname-tests: New file.
53813         * tests/unictype/test-combiningclass_byname.c: New file.
53815         New module 'unictype/combining-class-byname'.
53816         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53817         * lib/unictype/combiningclass_byname.c: New file.
53818         * lib/unictype/combiningclass_byname.gperf: New file.
53819         * modules/unictype/combining-class-byname: New file.
53821         Tests for module 'unictype/combining-class-longname'.
53822         * modules/unictype/combining-class-longname-tests: New file.
53823         * tests/unictype/test-combiningclass_longname.c: New file.
53825         New module 'unictype/combining-class-longname'.
53826         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53827         * lib/unictype/combiningclass_longname.c: New file.
53828         * modules/unictype/combining-class-longname: New file.
53830         Tests for module 'unictype/combining-class-name'.
53831         * modules/unictype/combining-class-name-tests: New file.
53832         * tests/unictype/test-combiningclass_name.c: New file.
53834         New module 'unictype/combining-class-name'.
53835         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53836         * lib/unictype/combiningclass_name.c: New file.
53837         * modules/unictype/combining-class-name: New file.
53839 2011-03-25  Bruno Haible  <bruno@clisp.org>
53841         unictype/combining-class: Rename source files.
53842         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53843         of unictype/combining.h.
53844         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53845         Update.
53846         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53847         * modules/unictype/combining-class (Description): Fix.
53848         (Files, Makefile.am): Update.
53849         * tests/unictype/test-combiningclass.c: Renamed from
53850         tests/unictype/test-combining.c.
53851         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53853 2011-03-25  Bruno Haible  <bruno@clisp.org>
53855         unictype: Update list of canonical combining classes.
53856         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53858 2011-03-25  Bruno Haible  <bruno@clisp.org>
53860         unictype/category-byname: Recognize long names as well.
53861         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53862         a long name.
53863         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53864         unictype/categ_byname.h.
53865         (UC_CATEGORY_INDEX_*): New enumeration values.
53866         (uc_general_category_byname): Use uc_general_category_lookup and
53867         convert from index to value.
53868         * lib/unictype/categ_byname.gperf: New file.
53869         * modules/unictype/category-byname (Files): Add
53870         lib/unictype/categ_byname.gperf.
53871         (Depends-on): Add gperf.
53872         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53873         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53874         long names.
53876         Tests for module 'unictype/category-longname'.
53877         * modules/unictype/category-longname-tests: New file.
53878         * tests/unictype/test-categ_longname.c: New file.
53880         New module 'unictype/category-longname'.
53881         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53882         * lib/unictype/categ_longname.c: New file.
53883         * modules/unictype/category-longname: New file.
53884         * modules/unictype/category-all (Depends-on): Add it.
53886 2011-03-25  Bruno Haible  <bruno@clisp.org>
53888         Tests for module 'unictype/category-LC'.
53889         * modules/unictype/category-LC-tests: New file.
53890         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53892         New module 'unictype/category-LC'.
53893         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53894         (UC_CATEGORY_LC): New declaration.
53895         (UC_CASED_LETTER): New macro.
53896         * lib/gen-uni-tables.c (is_category_LC): New function.
53897         (output_categories): Also handle category LC.
53898         (UC_CATEGORY_MASK_LC): New enumeration value.
53899         (general_category_byname): Also handle category LC.
53900         * lib/unictype/categ_LC.c: New file.
53901         * lib/unictype/categ_LC.h: New file, automatically generated.
53902         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53903         category LC.
53904         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53905         * modules/unictype/category-LC: New file.
53906         * modules/unictype/category-byname (Depends-on): Add
53907         unictype/category-LC.
53908         * modules/unictype/category-all (Depends-on): Likewise.
53910 2011-03-25  Eric Blake  <eblake@redhat.com>
53912         xmalloc: revert yesterday's regression
53913         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53914         realloc's underlying behavior (allowing allocation of zero-size
53915         objects, especially if malloc-gnu is also in use).
53917 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53919         maint.mk: add missing version to VC-tag
53920         * top/maint.mk: git tag was missing actual tag name; add it.
53922         valgrind: do leak checking, and exit with code 1 on error (not 0)
53923         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53924         to VALGRIND.
53926 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53928         posix-modules: say what it does.
53929         * posix-modules: Add a line to the --help output saying what it does.
53931 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53933         xmalloc: Do not leak if underlying realloc is C99 compatible.
53934         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53935         This avoids a leak on C99-based systems.  See
53936         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53938 2011-03-24  Eric Blake  <eblake@redhat.com>
53940         realloc: document portability problem
53941         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53942         passing 0 size to realloc.
53944 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53946         doc: update users.txt
53947         * users.txt: Add cvsps, tmpwatch
53949 2011-03-23  Matt Rice  <ratmice@gmail.com>
53951         doc: update users.txt
53952         * users.txt: Add gdb.
53954 2011-03-23  Jim Meyering  <meyering@redhat.com>
53956         doc: update users.txt
53957         Looking through matches up to the following URL (there are still
53958         several more pages), I found several projects that use gnulib:
53959         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53960         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53961         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53963 2011-03-22  Bruno Haible  <bruno@clisp.org>
53965         unictype/bidi*: Rename functions.
53966         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53967         uc_bidi_class, uc_is_bidi_class): New declarations.
53968         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
53969         uc_bidi_category_byname.
53970         (uc_bidi_category_byname): New function.
53971         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53972         u_bidi_category_name.
53973         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
53974         (uc_bidi_category_name): New function.
53975         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
53976         uc_bidi_category.
53977         (uc_bidi_category): New function.
53978         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
53979         uc_is_bidi_category. Invoke uc_bidi_class.
53980         (uc_is_bidi_category): New function.
53981         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
53982         instead of uc_bidi_category_byname.
53983         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
53984         instead of uc_bidi_category_name.
53985         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
53986         uc_bidi_category.
53987         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
53988         instead of uc_is_bidi_category.
53990 2011-03-21  Bruno Haible  <bruno@clisp.org>
53992         New module 'unictype/joininggroup-all'.
53993         * modules/unictype/joininggroup-all: New file.
53995         Tests for module 'unictype/joininggroup-of'.
53996         * modules/unictype/joininggroup-of-tests: New file.
53997         * tests/unictype/test-joininggroup_of.c: New file.
53998         * tests/unictype/test-joininggroup_of.h: New file, automatically
53999         generated by gen-uni-tables.
54001         New module 'unictype/joininggroup-of'.
54002         * modules/unictype/joininggroup-of: New file.
54003         * lib/unictype/joininggroup_of.c: New file.
54004         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54005         gen-uni-tables.
54007         Tests for module 'unictype/joininggroup-byname'.
54008         * modules/unictype/joininggroup-byname-tests: New file.
54009         * tests/unictype/test-joininggroup_byname.c: New file.
54011         New module 'unictype/joininggroup-byname'.
54012         * modules/unictype/joininggroup-byname: New file.
54013         * lib/unictype/joininggroup_byname.c: New file.
54014         * lib/unictype/joininggroup_byname.gperf: New file.
54016         Tests for module 'unictype/joininggroup-name'.
54017         * modules/unictype/joininggroup-name-tests: New file.
54018         * tests/unictype/test-joininggroup_name.c: New file.
54020         New module 'unictype/joininggroup-name'.
54021         * modules/unictype/joininggroup-name: New file.
54022         * lib/unictype/joininggroup_name.c: New file.
54023         * lib/unictype/joininggroup_name.h: New file.
54025         New module 'unictype/joiningtype-all'.
54026         * modules/unictype/joiningtype-all: New file.
54028         Tests for module 'unictype/joiningtype-of'.
54029         * modules/unictype/joiningtype-of-tests: New file.
54030         * tests/unictype/test-joiningtype_of.c: New file.
54031         * tests/unictype/test-joiningtype_of.h: New file, automatically
54032         generated by gen-uni-tables.
54034         New module 'unictype/joiningtype-of'.
54035         * modules/unictype/joiningtype-of: New file.
54036         * lib/unictype/joiningtype_of.c: New file.
54037         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54038         gen-uni-tables.
54040         Tests for module 'unictype/joiningtype-byname'.
54041         * modules/unictype/joiningtype-byname-tests: New file.
54042         * tests/unictype/test-joiningtype_byname.c: New file.
54044         New module 'unictype/joiningtype-byname'.
54045         * modules/unictype/joiningtype-byname: New file.
54046         * lib/unictype/joiningtype_byname.c: New file.
54048         Tests for module 'unictype/joiningtype-name'.
54049         * modules/unictype/joiningtype-name-tests: New file.
54050         * tests/unictype/test-joiningtype_name.c: New file.
54052         New module 'unictype/joiningtype-name'.
54053         * modules/unictype/joiningtype-name: New file.
54054         * lib/unictype/joiningtype_name.c: New file.
54056         unictype: Add support for Arabic shaping properties.
54057         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54058         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54059         declarations.
54060         (UC_JOINING_GROUP_*): New enumeration values.
54061         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54062         declarations.
54063         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54064         (unicode_joining_type): New variable.
54065         (UC_JOINING_GROUP_*): New enumeration values.
54066         (unicode_joining_group): New variable.
54067         (fill_arabicshaping, joining_type_as_c_identifier,
54068         output_joining_type_test, output_joining_type,
54069         joining_group_as_c_identifier, output_joining_group_test,
54070         output_joining_group): New functions.
54071         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54072         fill_arabicshaping and output_joining_type_test, output_joining_type,
54073         output_joining_group_test, output_joining_group.
54074         Reported by Simon Josefsson.
54076 2011-03-21  Jim Meyering  <meyering@redhat.com>
54078         strftime: fix a bug in yesterday's change
54079         * lib/strftime.c (add): Accommodate width's initial value of -1.
54080         Otherwise, nstrftime would copy uninitialized data into
54081         the result buffer.
54083 2011-03-21  Jim Meyering  <meyering@redhat.com>
54085         tests: add strftime-tests module
54086         * tests/test-strftime.c: New file.
54087         * modules/strftime-tests: New module.
54089 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54091         strftime: don't assume a byte count fits in 'int'
54092         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
54093         found this problem by static analysis, using gcc -Wstrict-overflow
54094         (GCC 4.5.2, x86-64).  This reported an optimization that depended
54095         on an integer overflow having undefined behavior, but it turns out
54096         that the argument is a size, which might not fit in 'int' anyway,
54098 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54100         stdio: don't require ignore_value around fwrite
54102         This patch works around libc bug 11959
54103         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
54104         Without this patch, applications must often write
54105         ignore_value (fwrite (...)) even though the ignore_value is
54106         not helpful here.  It's common to write many objects, using
54107         fwrite/printf/etc., and then use ferror to detect output error.
54109         I considered making this patch optional, but decided against it,
54110         because libc is obviously being inconsistent here: there is no
54111         reason libc should insist that user code must inspect fwrite
54112         return's value without also insisting that it inspect printf's,
54113         putchar's, etc.  If user code wants to have a strict style where
54114         all these functions' values are checked (so that ferror need not
54115         be checked), we could add support for that style in a new gnulib
54116         module, but in the meantime it's better to be consistent and to
54117         support common usage.
54119         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54120         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54121         that we are compiling in checking mode, and if not C++, and
54122         if not already wrapping fwrite for some other reason.
54123         (fwrite): #define to rpl_fwrite if the latter is defined.
54125 2011-03-20  Bruno Haible  <bruno@clisp.org>
54127         verror: Fix compilation error introduced on 2011-02-13.
54128         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54129         instead of __attribute__.
54130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54132 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54133             Bruno Haible  <bruno@clisp.org>
54135         socklen: do not depend on sys_socket
54136         While trying to modify Emacs to use gnulib's socklen module,
54137         I discovered a circular dependency: socklen depends on sys_socket
54138         and vice versa.  Emacs can use socklen, but it does not need
54139         sys_socket because it has its own substitute for sys/socket.h.
54140         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54141         gl_TYPE_SOCKLEN_T.
54142         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54143         gl_PREREQ_SYS_H_SOCKET.
54144         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54145         gl_PREREQ_SYS_H_SOCKET.
54146         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54147         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54148         * modules/socklen (Depends-on): Do not depend on sys_socket.
54149         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54151 2011-03-20  Jim Meyering  <meyering@redhat.com>
54153         maint.mk: sort file names *after* new transformation
54154         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54155         prefix would have led to an unwarranted failure in GNU parted.
54156         Sort after that transformation.
54158 2011-03-19  Jim Meyering  <meyering@redhat.com>
54160         maint.mk: fix po-file syntax-check rule
54161         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54162         Patch by Bruno Haible.
54164 2011-03-19  Bruno Haible  <bruno@clisp.org>
54166         socklen: Update comment.
54167         * m4/socklen.m4: Update comment about platforms.
54169 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54170             Bruno Haible  <bruno@clisp.org>
54172         inet_ntop, inet_pton: Simplify.
54173         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54174         documented to provide socklen_t and we already depend on sys_socket.
54175         * modules/inet_pton (Depends-on): Likewise.
54176         * lib/arpa_inet.in.h: Adjust comment.
54178 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54179             Bruno Haible  <bruno@clisp.org>
54181         netdb: Simplify.
54182         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54183         documented to provide socklen_t and we already depend on sys_socket.
54184         * lib/netdb.in.h: Adjust comment.
54186 2011-03-19  Bruno Haible  <bruno@clisp.org>
54188         sys_socket, netdb: Document problem with socklen_t.
54189         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54190         platforms.
54191         * doc/posix-headers/netdb.texi: Likewise.
54193 2011-03-18  Eric Blake  <eblake@redhat.com>
54195         maint.mk: let po check work in VPATH build
54196         * top/maint.mk (po_file): Allow cfg.mk override.
54197         (sc_po_check): Allow VPATH use.
54198         Reported by Jiri Denemark.
54200 2011-03-16  Jim Meyering  <meyering@redhat.com>
54202         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54203         Before, you would have had to create one .x-sc_ file per rule in order
54204         to exempt offending files.  Now, you may instead use a Make variable --
54205         usually defined in cfg.mk -- whose name identifies the affected rule.
54206         * top/maint.mk (_sc_excl): Define.
54207         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54208         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54210 2011-03-13  Bruno Haible  <bruno@clisp.org>
54212         ignore-value tests: Avoid warnings.
54213         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54214         empty for gcc < 3.4.
54216 2011-03-13  Bruno Haible  <bruno@clisp.org>
54218         passfd: Fix link error on Solaris.
54219         * modules/passfd (Description): Correct.
54220         (Depends-on): Add socketlib.
54221         (Link): New section.
54222         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54224 2011-03-13  Bruno Haible  <bruno@clisp.org>
54226         passfd: Fix link error on AIX 5.2.
54227         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54229 2011-03-13  Bruno Haible  <bruno@clisp.org>
54231         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54232         * lib/sys_socket.in.h: Include <stddef.h>.
54233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54234         CMSG_FIRSTHDR. Remove unused variable.
54236 2011-03-13  Bruno Haible  <bruno@clisp.org>
54238         passfd: Fix compilation error on OpenBSD.
54239         * lib/passfd.c: Include <sys/uio.h>.
54241 2011-03-13  Bruno Haible  <bruno@clisp.org>
54243         passfd test: Fix warnings.
54244         * tests/test-passfd.c: Include <sys/wait.h>.
54245         (main): Fix typo.
54247 2011-03-13  Bruno Haible  <bruno@clisp.org>
54249         passfd module, part 4, tweaks.
54250         * tests/test-passfd.c: Reorder includes.
54251         (main): Fix perror and printf calls.
54253 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54255         passfd module, part 4.
54256         * modules/passfd-tests: New file.
54257         * tests/test-passfd.c: New file.
54259 2011-03-13  Jim Meyering  <meyering@redhat.com>
54261         Makefile: rely on GNU make; derive syntax-check rule names
54262         Rather than requiring that each sc_ rule be listed as a dependent
54263         of "check", use features of GNU make to derive the list.
54264         * Makefile (syntax-check-rules): Define.
54265         (check): Depend on the new variable, not the hard-coded list.
54267 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54268             Bruno Haible  <bruno@clisp.org>
54270         passfd module, part 3.
54271         * lib/passfd.h (recvfd): Add a flags argument.
54272         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54273         (recvfd): Add a flags argument.
54274         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54275         exists.
54276         * modules/passfd (Depends-on): Add cloexec.
54277         Suggested by Eric Blake.
54279 2011-03-13  Bruno Haible  <bruno@clisp.org>
54281         passfd module, part 2, tweaks.
54282         * modules/passfd (Files): Reorder.
54283         (Depends-on): Remove errno.
54284         (Include): Remove <sys/socket.h>, <sys/un.h>.
54285         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54286         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54287         specification header. Include <sys/socket.h> always. Don't include
54288         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54289         (sendfd): Clarify that it sets errno when it fails.
54290         (recvfd): Fix specification.
54292 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54294         passfd module, part 2.
54295         * modules/passfd: New file.
54296         * lib/passfd.h: New file.
54297         * lib/passfd.c: New file.
54299 2011-03-12  Bruno Haible  <bruno@clisp.org>
54301         wcswidth, mbswidth: Avoid integer overflow.
54302         * lib/wcswidth.c: Include <limits.h>.
54303         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54304         * lib/mbswidth.c: Include <limits.h>.
54305         (mbsnwidth): Avoid 'int' overflow.
54306         Reported by Jim Meyering.
54308 2011-03-12  Bruno Haible  <bruno@clisp.org>
54310         futimens, utimensat: Avoid endless recursion on Solaris 10.
54311         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54312         Solaris.
54313         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54314         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54316 2011-03-11  Jim Meyering  <meyering@redhat.com>
54318         maint.mk: relax a regexp to accommodate other formatting styles
54319         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54320         between "ngettext" and the following "(".
54322 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54324         maint.mk: suppress a false positive warning
54325         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54326         diagnostics are marked with ngettext.
54328 2011-03-10  Eric Blake  <eblake@redhat.com>
54330         wchar: add explicit dependencies, for Tru64
54331         * modules/mbmemcasecoll (Depends-on): Add wchar.
54332         * modules/mbtowc (Depends-on): Likewise.
54333         * modules/vasnprintf (Depends-on): Likewise.
54334         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54335         * modules/wctomb (Depends-on): Likewise.
54336         Reported by Peter O'Gorman.
54338 2011-03-08  Bruno Haible  <bruno@clisp.org>
54340         passfd module, part 1, tweaks.
54341         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54342         Improve indentation. Improve AC_MSG_CHECKING messages.
54343         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54344         gl_SOCKET_FAMILIES.
54346 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54348         passfd module, part 1.
54349         * m4/afunix.m4: New file.
54350         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54351         sockets.
54353 2011-03-08  Bruno Haible  <bruno@clisp.org>
54355         regex-quote: New API.
54356         * lib/regex-quote.h: Include <stdbool.h>.
54357         (struct regex_quote_spec): New type.
54358         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54359         New declarations.
54360         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54361         'const struct regex_quote_spec *' argument.
54362         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54363         (pcre_special): New constant.
54364         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54365         New functions.
54366         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54367         'const struct regex_quote_spec *' argument.
54368         * modules/regex-quote (Depends-on): Add stdbool.
54369         * tests/test-regex-quote.c (check): Update for new API. Add test for
54370         anchored results.
54371         * NEWS: Mention the API change.
54372         Reported by Reuben Thomas and Eric Blake.
54374 2011-03-06  Bruno Haible  <bruno@clisp.org>
54376         regex-quote: Fix creation of POSIX extended regular expressions.
54377         * lib/regex-quote.c (ere_special): Add grouping and alternation
54378         operators.
54380 2011-03-05  Bruno Haible  <bruno@clisp.org>
54382         doc: Improve doc regarding autopoint vs. gnulib.
54383         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54384         disable autopoint while running autoreconf.
54385         Suggested by Ralf Wildenhues.
54387 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54389         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54390         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54392 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54394         parse-duration: remove xalloc.h dependency
54395         * lib/parse-duration.c (parse_period): handle NULL return from
54396         strdup instead of calling xstrdup().
54397         * modules/parse-duration: remove "xalloc" dependency
54399 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54401         bootstrap: honor m4_base when running aclocal
54402         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54404 2011-03-02  Jim Meyering  <meyering@redhat.com>
54406         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54407         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54408         on request from Matt Booth.
54410 2011-03-01  Eric Blake  <eblake@redhat.com>
54412         test-link: work on Hurd
54413         * tests/test-link.h (test_link): Hurd rejects linking directories
54414         with EISDIR instead of the POSIX-mandated EPERM.
54416 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54418         stdio: simplify by moving files to printf-posix, sigpipe
54419         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54420         since this symbol is needed only if printf is replaced.
54421         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54422         Require gl_ASM_SYMBOL_PREFIX.
54423         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54424         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54425         (Depends-on): Add 'raise'.
54426         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54427         * modules/stdio (Files): Remove lib/stdio-write.c,
54428         m4/asm-underscore.m4.
54429         (Depends-on): Remove 'raise'.
54431         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54432         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54433         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54434         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54436 2011-02-28  Bruno Haible  <bruno@clisp.org>
54438         localcharset: Assume ANSI C behaviour of free().
54439         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54440         calling free().
54441         Suggested by Simon Josefsson <simon@josefsson.org>.
54443 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54444             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54445             Bruno Haible  <bruno@clisp.org>  (tiny change)
54447         On Cygwin, use /proc file system instead of win32 API.
54448         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54449         Win32 file names.
54450         (DllMain): Simplify by removing Cygwin specific code.
54451         (find_shared_library_fullname): Use Linux specific implementation also
54452         for Cygwin.
54453         (get_shared_library_fullname): Update accordingly.
54454         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54455         Win32 file names.
54456         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54457         Cygwin specific code.
54459 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54460             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54462         Fix OpenMP flag detection for various Fortran compilers.
54463         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54464         OpenMP-conditional compilation construct, to force compile
54465         failure with missing OpenMP flag.
54466         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54468 2011-02-25  Eric Blake  <eblake@redhat.com>
54470         strstr: expand test coverage
54471         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54472         compilation.
54473         * tests/test-memmem.c (main): Duplicate tests.
54474         * tests/test-strcasestr.c (main): Likewise.
54475         * tests/test-c-strcasestr.c (main): Likewise.
54477 2011-02-25  Jim Meyering  <meyering@redhat.com>
54479         maint.mk: detect missing-NL-at-EOF, too
54480         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54481         it also detects when a file lacks a newline at EOF.
54482         (require_exactly_one_NL_at_EOF_): Renamed from
54483         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54484         since people may well have .x-sc_... file names tied to the
54485         existing name.  Suggested by Eric Blake.
54487 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54489         dirname: move m4/dos.m4 functionality into lib/dosname.h
54491         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54492         extracts symbols from it, puts them into config.h; but it's much
54493         easier to use the symbols directly.  filename.h already does this,
54494         but it disagrees with dos.m4 in some respects.  This patch
54495         introduces a different include file dosname.h that packages up
54496         dos.m4, and then later we can work on merging filename.h and
54497         dosname.h.  Applications that need only the easy-to-configure
54498         symbols should consider including dosname.h rather than dirname.h.
54499         * NEWS: Mention incompatible changes.
54500         * m4/dos.m4: Remove.
54501         * lib/dosname.h, modules/dosname: New files.
54502         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54503         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54504         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54505         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54506         Include dosname.h, not dirname.h.
54507         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54508         Include dosname.h, for definitions of symbols like ISSLASH
54509         that used to be in config.h.
54510         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54512         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54513         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54514         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54515         * modules/rmdir (Files): Likewise.
54516         * modules/stat (Files): Likewise.
54517         * modules/unlink (Files): Likewise.
54518         * modules/dirname-lgpl (Depends-on): Add dosname.
54519         * modules/lstat (Depends-on): Likewise.
54520         * modules/openat (Depends-on): Likewise.
54521         * modules/rmdir (Depends-on): Likewise.
54522         * modules/savewd (Depends-on): Likewise.
54523         * modules/stat (Depends-on): Likewise.
54524         * modules/unlink (Depends-on): Likewise.
54525         * modules/openat (Depends-on): Remove dirname-lgpl.
54526         * modules/savewd (Depends-on): Likewise.
54527         * tests/test-dirname.c: Do not use removed symbols like
54528         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54529         the remaining symbols, e.g., ISSLASH ('\\').
54531 2011-02-25  Eric Blake  <eblake@redhat.com>
54533         strstr: revert patches that introduced bug and pessimization
54534         * lib/str-two-way.h: Add another reference.
54535         (two_way_short_needle, two_way_long_needle): Revert changes from
54536         2011-02-24; they pessimize search speed.
54537         (critical_factorization): Partially revert changes from
54538         2010-06-22; they violate the requirement that the left half of the
54539         needle be smaller than the period of the needle.
54541 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54543         filenamecat: remove unnecessary dependency on dirname-lgpl
54544         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54545         is no direct dependency, just an indirect one via filenamecat-lgpl.
54547         remove: remove unnecessary use of m4/dos.m4
54548         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54549         * modules/remove (FILES): Remove m4/dos.m4.
54551         * lib/openat-proc.c: Don't include dirname.h; not needed.
54553         backupfile: remove unnecessary use of m4/dos.m4
54554         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54555         of its symbols are used by the backupfile code.  backupfile.c does
54556         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54557         for the rare case of programs that want all their backup file
54558         names to live within 8+3 limits, and dos.m4 doesn't address that.
54559         * modules/backupfile (Files): Remove m4/dos.m4.
54561 2011-02-24  Jim Meyering  <meyering@redhat.com>
54563         strstr: fix a bug whereby strstr would mistakenly return NULL
54564         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54565         in period calculation.
54566         (two_way_long_needle): Likewise.
54567         The original problem was reported by Mike Stump in
54568         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54569         Ralf Wildenhues provided the short needle and haystack.
54570         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54571         Add a more involved test to trigger the bug in two_way_long_needle.
54573 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54575         gnulib-tool: remove use of bold display in help screen
54576         * gnulib-tool (func_usage): Do not use bold display anymore in the
54577         help screen.  That was just meant to be a temporary emphasis for a
54578         backward-incompatible change.
54580 2011-02-23  Bruno Haible  <bruno@clisp.org>
54582         Fix misindentation of preprocessor directives.
54583         * lib/argp-namefrob.h: Reindent preprocessor directives.
54584         * lib/getopt_int.h (struct _getopt_data): Likewise.
54585         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54586         * lib/vasnprintf.c (decode_long_double): Likewise.
54587         * tests/test-argmatch.c: Insert blank lines, for clarity.
54588         * tests/test-exclude.c: Likewise.
54590 2011-02-22  Bruno Haible  <bruno@clisp.org>
54592         ioctl: Fix for MacOS X in 64-bit mode.
54593         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54594         value.
54595         Suggested by Eric Blake.
54596         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54598 2011-02-22  Jim Meyering  <meyering@redhat.com>
54600         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54601         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54602         in lib/.
54604 2011-02-22  Eric Blake  <eblake@redhat.com>
54606         maint: avoid any CDPATH issue
54607         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54609         maint: adjust cpp indentation for my modules, as well
54610         * Makefile (sc_cpp_indent_check): Add my name.
54611         * lib/fbufmode.c: Filter through cppi.
54612         * lib/fpurge.c: Likewise.
54613         * lib/freadable.c: Likewise.
54614         * lib/freading.c: Likewise.
54615         * lib/fwritable.c: Likewise.
54616         * lib/fwriting.c: Likewise.
54617         * lib/sigaction.c: Likewise.
54619 2011-02-22  Jim Meyering  <meyering@redhat.com>
54621         maint: adjust cpp indentation to reflect nesting depth
54622         I.e., in a block of code that begins with an unnested "#if",
54623         put one space between the "#" in column 1 and following token.
54624         For example,
54625         -#include <sys/vfs.h>
54626         +# include <sys/vfs.h>
54627         Do this only in .c files that are part of a module I maintain.
54628         * lib/linkat.c: Filter through cppi.
54629         * lib/nanosleep.c: Likewise.
54630         * lib/openat.c: Likewise.
54631         * lib/openat-die.c: Likewise.
54632         * lib/dup3.c: Likewise.
54633         * lib/fchownat.c: Likewise.
54634         * lib/flock.c: Likewise.
54635         * lib/fsync.c: Likewise.
54636         * lib/fts.c: Likewise.
54637         * lib/getpass.c: Likewise.
54638         * lib/gettimeofday.c: Likewise.
54639         * lib/userspec.c: Likewise.
54640         * Makefile (sc_cpp_indent_check): New rule, to check this.
54642 2011-02-22  Bruno Haible  <bruno@clisp.org>
54644         New module 'wctomb'.
54645         * lib/stdlib.in.h (wctomb): New declaration.
54646         * lib/wctomb.c: New file.
54647         * lib/wctomb-impl.h: New file.
54648         * m4/wctomb.m4: New file.
54649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54650         REPLACE_WCTOMB.
54651         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54652         REPLACE_WCTOMB.
54653         * modules/wctomb: New file.
54654         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54655         * doc/posix-functions/wctomb.texi: Mention the new module.
54656         * modules/wctob (Depends-on): Add wctomb.
54658 2011-02-22  Bruno Haible  <bruno@clisp.org>
54660         New module 'mbtowc'.
54661         * lib/stdlib.in.h (mbtowc): New declaration.
54662         * lib/mbtowc.c: New file.
54663         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54664         * m4/mbtowc.m4: New file.
54665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54666         REPLACE_MBTOWC.
54667         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54668         REPLACE_MBTOWC.
54669         * modules/mbtowc: New file.
54670         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54671         * doc/posix-functions/mbtowc.texi: Mention the new module.
54672         * modules/btowc (Depends-on): Add mbtowc.
54674 2011-02-22  Bruno Haible  <bruno@clisp.org>
54676         wcrtomb: Add more tests for native Windows platforms.
54677         * tests/test-wcrtomb-w32-1.sh: New file.
54678         * tests/test-wcrtomb-w32-2.sh: New file.
54679         * tests/test-wcrtomb-w32-3.sh: New file.
54680         * tests/test-wcrtomb-w32-4.sh: New file.
54681         * tests/test-wcrtomb-w32-5.sh: New file.
54682         * tests/test-wcrtomb-w32.c: New file.
54683         * modules/wcrtomb-tests (Files): Add them.
54684         (Makefile.am): Arrange to run these tests.
54685         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54686         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54688 2011-02-20  Bruno Haible  <bruno@clisp.org>
54690         wcrtomb: Enhance test.
54691         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54693 2011-02-20  Bruno Haible  <bruno@clisp.org>
54695         mbrtowc: Tiny optimization.
54696         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54698 2011-02-20  Jim Meyering  <meyering@redhat.com>
54700         test-exclude.c: remove unmatched #endif
54701         * tests/test-exclude.c: Remove stray #endif, left over from
54702         the change of a week ago.
54704 2011-02-19  Jim Meyering  <meyering@redhat.com>
54706         git-version-gen: skip "-dirty" check when appropriate
54707         * build-aux/git-version-gen: Don't run any git commands when the
54708         version string comes from .tarball-version.  Prior to this, we
54709         would run git update-index --refresh even from a just-unpacked
54710         tarball directory, and that could affect a .git/ directory in a
54711         parent of the build directory.  Reported by Mike Frysinger.
54713 2011-02-19  Bruno Haible  <bruno@clisp.org>
54715         unictype/property-byname: Reduce the size of the 'data' segment.
54716         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54718 2011-02-19  Bruno Haible  <bruno@clisp.org>
54720         unictype/scripts: Reduce the size of the 'data' segment.
54721         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54722         '%pic'.
54723         * lib/unictype/scripts_byname.gperf: Regenerated.
54725 2011-02-19  Bruno Haible  <bruno@clisp.org>
54727         stdint: Update documentation.
54728         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54730 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54732         stdint: omit redundant check for wchar.h
54733         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54734         always tests whether wchar.h exists, so remove the now-redundant test.
54736 2011-02-18  Bruno Haible  <bruno@clisp.org>
54738         stdint: Cut dependency to module 'wchar'.
54739         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54740         include the necessary prerequisites.
54741         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54742         * modules/stdint (Depends-on): Remove wchar.
54743         (Makefile.am): Substitute HAVE_WCHAR_H.
54744         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54746 2011-02-18  Eric Blake  <eblake@redhat.com>
54748         longlong: skip, rather than fail, on cross-compilation
54749         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54750         when cross-compiling; regression from 2011-02-16.
54752 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54754         * NEWS: Mention 2011-02-08 change to stdlib.
54756 2011-02-17  Bruno Haible  <bruno@clisp.org>
54758         getloadavg: Add comments about platforms.
54759         * m4/getloadavg.m4: Add comment.
54760         * lib/getloadavg.c: Likewise.
54762 2011-02-17  Bruno Haible  <bruno@clisp.org>
54764         getloadavg: Fix link error on Solaris 2.6.
54765         * modules/getloadavg (Link): New section.
54766         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54767         linking test-getloadavg.
54768         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54769         getloadavg.
54771 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54773         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54774         It was 'int', but this doesn't match the IRIX 6.5 manual.
54775         Suggested by Bruno Haible in
54776         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54778 2011-02-17  Bruno Haible  <bruno@clisp.org>
54780         havelib: Fix comments.
54781         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54782         change.
54784 2011-02-17  Bruno Haible  <bruno@clisp.org>
54786         havelib: Update config.rpath.
54787         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54789 2011-02-17  Bruno Haible  <bruno@clisp.org>
54791         getloadavg test: Add some plausibility checks.
54792         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54793         is improbable.
54795 2011-02-16  Eric Blake  <eblake@redhat.com>
54797         maintainer-makefile: make syntax-check a no-op from tarballs
54798         * top/maint.mk (no-vc-detected): New rule.
54799         (local-checks-available): Use it to avoid hanging if someone tries
54800         'make syntax-check' from a tarball.  Also append to any non-syntax
54801         checks already defined in cfg.mk.
54803 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54805         longlong: tune, particularly for common case of c99
54807         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54808         or running anything if c99, or if unsigned long long int does not
54809         work.  In either case, we know the answer without further tests.
54810         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54811         it at most once, and use its results for both long long int and
54812         unsigned long long int.  This is more likely to be efficient in
54813         the common case where the program wants to check for both long
54814         long int and unsigned long long int.
54815         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54816         since the answer is already known.
54818 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54820         getloadavg: set errno
54821         * lib/getloadavg.c: Set errno when returning -1.  If no other
54822         error number looks appropriate, set it to ENOSYS if the getloadavg
54823         looks like it can't possibly ever work, ENOTSUP otherwise.
54824         Suggested by Bruno Haible in
54825         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54827         getloadavg: trim unused parts and speed up 'configure'
54828         * NEWS: Document this.
54829         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54830         always compiled if getloadavg is absent.
54831         Move test code to ...
54832         * tests/test-getloadavg.c: New file, containing previous
54833         contents of test from lib/getloadavg.c.  It also contains
54834         suggestions by Bruno Haible in
54835         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54836         * modules/getloadavg-tests: New file.
54837         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54838         Do tests in the same order as they're needed for getloadavg.c.
54839         Omit setgid-related tests that generate symbols KMEM_GROUP,
54840         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54841         Do only the tests that are needed to see whether the system has
54842         getloadavg, moving the other tests into ...
54843         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54844         NLIST_NAME_UNION; nobody should be using it.  Do not define
54845         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54846         relevant, as the user of this module shouldn't care how getloadavg
54847         is implemented.
54849         getloadavg: omit unused var
54850         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54852 2011-02-15  Jim Meyering  <meyering@redhat.com>
54854         doc: update users.txt
54855         * users.txt: Update iwhd's URL.
54857 2011-02-13  Bruno Haible  <bruno@clisp.org>
54859         Consistent macro naming for macros that use GCC __attribute__.
54860         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54861         _ATTRIBUTE_NONNULL_.
54862         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54863         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54864         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54865         ATTRIBUTE_DEPRECATED.
54866         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54867         ATTRIBUTE_NORETURN.
54868         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54869         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54870         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54871         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54872         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54873         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54874         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54875         ATTRIBUTE_SENTINEL.
54876         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54877         ATTRIBUTE_RETURN_CHECK.
54878         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54879         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54880         ATTRIBUTE_NORETURN.
54881         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54882         Reported by Paul Eggert.
54884 2011-02-13  Bruno Haible  <bruno@clisp.org>
54886         Don't interfere with a program's definition of __attribute__.
54887         * lib/argp.h (__attribute__): Remove definition.
54888         (_GL_ATTRIBUTE_FORMAT): New macro.
54889         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54890         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54891         (_GL_ATTRIBUTE_FORMAT): New macro.
54892         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54893         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54894         GCC 3 or newer.
54895         * lib/error.h (__attribute__): Remove definition.
54896         (_GL_ATTRIBUTE_FORMAT): New macro.
54897         (error, error_at_line): Use it.
54898         * lib/hash.h (__attribute__): Remove definition.
54899         (ATTRIBUTE_WUR): Update definition. Define always.
54900         * lib/openat.h (__attribute__): Remove definition.
54901         (ATTRIBUTE_NORETURN): Update definition. Define always.
54902         * lib/sigpipe-die.h (__attribute__): Remove definition.
54903         (ATTRIBUTE_NORETURN): Update definition. Define always.
54904         * lib/vasnprintf.h (__attribute__): Remove definition.
54905         (_GL_ATTRIBUTE_FORMAT): New macro.
54906         (asnprintf, vasnprintf): Use it.
54907         * lib/xalloc.h (__attribute__): Remove definition.
54908         (ATTRIBUTE_NORETURN): Update definition. Define always.
54909         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54910         * lib/xmemdup0.h (__attribute__): Remove definition.
54911         (ATTRIBUTE_NORETURN): Update definition. Define always.
54912         * lib/xprintf.h (__attribute__): Remove definition.
54913         (_GL_ATTRIBUTE_FORMAT): New macro.
54914         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54915         * lib/xstrtol.h (__attribute__): Remove definition.
54916         (ATTRIBUTE_NORETURN): Update definition. Define always.
54917         * lib/xvasprintf.h (__attribute__): Remove definition.
54918         (_GL_ATTRIBUTE_FORMAT): New macro.
54919         (xasprintf, xvasprintf): Use it.
54920         * tests/test-argmatch.c (__attribute__): Remove definition.
54921         (ATTRIBUTE_NORETURN): Update definition. Define always.
54922         * tests/test-exclude.c (__attribute__): Remove definition.
54923         (ATTRIBUTE_NORETURN): Update definition. Define always.
54924         Reported by Paul Eggert.
54926 2011-02-13  Bruno Haible  <bruno@clisp.org>
54928         mbrtowc: Add more tests for native Windows platforms.
54929         * tests/test-mbrtowc-w32-1.sh: New file.
54930         * tests/test-mbrtowc-w32-2.sh: New file.
54931         * tests/test-mbrtowc-w32-3.sh: New file.
54932         * tests/test-mbrtowc-w32-4.sh: New file.
54933         * tests/test-mbrtowc-w32-5.sh: New file.
54934         * tests/test-mbrtowc-w32.c: New file.
54935         * modules/mbrtowc-tests (Files): Add them.
54936         (Makefile.am): Arrange to run these tests.
54937         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54938         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54940 2011-02-13  Bruno Haible  <bruno@clisp.org>
54942         mbrtowc: Work around native Windows bug.
54943         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54944         guess when no suitable locale for testing was found.
54945         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54947 2011-02-13  Bruno Haible  <bruno@clisp.org>
54949         mbsinit: Work around mingw bug.
54950         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54951         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54952         Windows.
54953         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54955 2011-02-13  Bruno Haible  <bruno@clisp.org>
54957         mbsinit: Don't crash for a NULL argument.
54958         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54959         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54961 2011-02-13  Bruno Haible  <bruno@clisp.org>
54963         Don't interfere with a program's definition of __attribute__.
54964         * lib/stdio.in.h (__attribute__): Remove definition.
54965         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54966         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54967         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
54968         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
54969         * lib/string.in.h (__attribute__): Remove definition.
54970         Reported by Paul Eggert.
54972 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54974         stdlib: don't get in the way of non-GCC __attribute__
54975         See thread starting at
54976         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
54977         Revert previous stdlib change, installing the following instead:
54978         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
54979         to get in the way of a non-GCC compiler that supports __attribute__.
54980         (_GL_ATTRIBUTE_RETURN): New macro.
54981         (_Exit): Use it instead of __attribute__.
54983 2011-02-12  Bruno Haible  <bruno@clisp.org>
54985         quotearg test: Avoid test failure on mingw.
54986         * tests/test-quotearg.sh: Convert the locale identifier from native
54987         Windows syntax to Unix syntax.
54989 2011-02-12  Bruno Haible  <bruno@clisp.org>
54991         setlocale: Prefer gnulib's override over libintl's override.
54992         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
54993         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
54994         GNULIB_defined_setlocale is set.
54996 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54998         stdlib: support non-GCC __attribute__
55000         Fix a serious and tricky problem encountered when attempting to
55001         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55002         5.5, but it crashed due to memory corruption on Solaris 10 with
55003         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55004         bits that are otherwise zero.  This tagging is optional inside
55005         Emacs but is preferred and is used when __attribute__ ((__aligned
55006         (8))) works, as it does with both recent-enough GCC and with Sun C
55007         5.11.  However, Sun C 5.11 is not GCC and does not #define
55008         __GNUC__ and __GNUC_MINOR__.
55010         When I added the getloadavg module to Emacs, it brought in
55011         stdlib.in.h, which contained this fragment:
55013            #ifndef __attribute__
55014            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55015            #  define __attribute__(Spec)   /* empty */
55016            # endif
55017            #endif
55019         When files that include <stdlib.h> were compiled with Sun C 5.11,
55020         the above code disabled __attribute__ ((__aligned (8))), which
55021         caused variables to not be properly aligned, which eventually led
55022         to the pointer corruption mentioned above.  (This was a bit hard
55023         to diagnose, unfortunately.)
55025         Several "#define __attribute__(X) /* empty */" code snippets need
55026         to be eradicated from Gnulib to work with non-GCC compilers that
55027         support __attribute__.  The Autoconf way to do this is to test for
55028         each kind of attribute that we want support for, and selectively
55029         enable that in source code.
55031         Fix this problem just for stdlib.h, by adding a test for the
55032         __noreturn__ attribute, and change stdlib.in.h to use that test
55033         when needed.  This technique can be easily generalized to the
55034         other *.in.h files and attributes, and a similar technique can be
55035         used for *.h and *.c files.  This patch is enough to solve the
55036         problem for Emacs + getloadavg, and I thought I'd publish it for
55037         feedback before undertaking further, similar fixes in other
55038         modules.
55040         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55041         because it's not needed for stdlib.h.  It merely substitutes the
55042         value directly into stdlib.h.  We may well need to #define it, or
55043         similar symbols, for other modules, but it's nice to also have an
55044         option to not #define it for applications like Emacs that do not
55045         need it.
55047         * lib/stdlib.in.h (__attribute__): Do not #define.
55048         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55049         be defined only if the _Exit module is also used.
55050         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55052         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55053         platforms.
55054         * modules/_Exit (Files): Add m4/attribute.m4.
55055         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55056         * m4/attribute.m4: New file.
55058 2011-02-12  Bruno Haible  <bruno@clisp.org>
55060         wcsrtombs: Work around bug on native Windows.
55061         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55062         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55063         instead of len.
55064         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55066 2011-02-12  Bruno Haible  <bruno@clisp.org>
55068         mbsrtowcs: Work around bug on native Windows.
55069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55070         against mingw bug.
55071         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55073 2011-02-12  Bruno Haible  <bruno@clisp.org>
55075         Avoid setlocale bugs in tests.
55076         * modules/btowc (Dependencies): Add setlocale.
55077         * modules/c-strcase (Dependencies): Likewise.
55078         * modules/mbmemcasecmp (Dependencies): Likewise.
55079         * modules/mbmemcasecoll (Dependencies): Likewise.
55080         * modules/mbrtowc (Dependencies): Likewise.
55081         * modules/mbscasecmp (Dependencies): Likewise.
55082         * modules/mbscasestr (Dependencies): Likewise.
55083         * modules/mbschr (Dependencies): Likewise.
55084         * modules/mbscspn (Dependencies): Likewise.
55085         * modules/mbsinit (Dependencies): Likewise.
55086         * modules/mbsncasecmp (Dependencies): Likewise.
55087         * modules/mbsnrtowcs (Dependencies): Likewise.
55088         * modules/mbspbrk (Dependencies): Likewise.
55089         * modules/mbspcasecmp (Dependencies): Likewise.
55090         * modules/mbsrchr (Dependencies): Likewise.
55091         * modules/mbsrtowcs (Dependencies): Likewise.
55092         * modules/mbsspn (Dependencies): Likewise.
55093         * modules/mbsstr (Dependencies): Likewise.
55094         * modules/nl_langinfo (Dependencies): Likewise.
55095         * modules/quotearg (Dependencies): Likewise.
55096         * modules/unicase/locale-language (Dependencies): Likewise.
55097         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
55098         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
55099         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
55100         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
55101         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
55102         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
55103         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
55104         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
55105         * modules/vasnprintf-posix (Dependencies): Likewise.
55106         * modules/wcrtomb (Dependencies): Likewise.
55107         * modules/wcsnrtombs (Dependencies): Likewise.
55108         * modules/wcsrtombs (Dependencies): Likewise.
55110 2011-02-12  Bruno Haible  <bruno@clisp.org>
55112         setlocale: Workaround native Windows bug.
55113         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55114         succeeds but sets LC_CTYPE to "C", report a failure.
55115         * tests/test-setlocale2.sh: New file.
55116         * tests/test-setlocale2.c: New file.
55117         * modules/setlocale-tests (Files): Add the new files.
55118         (Makefile.am): Enable test-setlocale2.sh test.
55119         * doc/posix-functions/setlocale.texi: Mention workaround.
55121 2011-02-11  Bruno Haible  <bruno@clisp.org>
55123         Tests for module 'setlocale'.
55124         * modules/setlocale-tests: New file.
55125         * tests/test-setlocale1.sh: New file.
55126         * tests/test-setlocale1.c: New file.
55128         New module 'setlocale'.
55129         * lib/locale.in.h (setlocale): New declaration.
55130         * lib/setlocale.c: New file, based on
55131         gettext/gettext-runtime/intl/setlocale.c.
55132         * m4/setlocale.m4: New file.
55133         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55134         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55135         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55136         REPLACE_SETLOCALE.
55137         * modules/setlocale: New file.
55138         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55139         * doc/posix-functions/setlocale.texi: Mention the new module.
55141 2011-02-11  Bruno Haible  <bruno@clisp.org>
55143         Prepare for locale dependent tests on mingw.
55144         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55145         because it has the wrong locale encoding.
55146         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55147         French_France.1252 instead of "fr".
55148         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55149         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55150         because it has the wrong locale encoding.
55151         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55152         native Windows, try Turkish_Turkey.65001.
55153         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55154         Chinese_China.54936.
55156         Prepare for locale dependent tests on mingw.
55157         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55158         differently.
55159         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55160         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55162         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55164 2011-02-11  Eric Blake  <eblake@redhat.com>
55166         strptime: avoid compiler warnings
55167         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55168         compiler warnings about dead code.
55169         Reported by Daniel P. Berrange.
55171 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55173         doc: update users.txt
55174         * users.txt: Add rcs.
55176 2011-02-10  John W. Eaton  <jwe@gnu.org>
55178         doc: update users.txt
55179         * users.txt: Add octave.
55181 2011-02-10  Jim Meyering  <meyering@redhat.com>
55183         doc: update users.txt
55184         * users.txt: Add iwhd.
55186 2011-02-09  Bruno Haible  <bruno@clisp.org>
55188         gnulib-tool: Make copyright notice adjustment more robust.
55189         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55190         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55191         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55192         License".
55193         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55195 2011-02-06  Bruno Haible  <bruno@clisp.org>
55197         New module 'towctrans'.
55198         * modules/towctrans: New file.
55199         * lib/wctype.in.h (towctrans): New declaration.
55200         * lib/towctrans.c: New file.
55201         * lib/towctrans-impl.h: New file.
55202         * m4/towctrans.m4: New file.
55203         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55204         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55205         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55206         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55207         * doc/posix-functions/towctrans.texi: Mention the new module.
55209 2011-02-06  Bruno Haible  <bruno@clisp.org>
55211         New module 'wctrans'.
55212         * modules/wctrans: New file.
55213         * lib/wctype.in.h (wctrans): New declaration.
55214         * lib/wctrans.c: New file.
55215         * lib/wctrans-impl.h: New file.
55216         * m4/wctrans.m4: New file.
55217         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55218         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55219         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55220         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55221         * doc/posix-functions/wctrans.texi: Mention the new module.
55223 2011-02-06  Bruno Haible  <bruno@clisp.org>
55225         New module 'iswctype'.
55226         * modules/iswctype: New file.
55227         * lib/wctype.in.h (iswctype): New declaration.
55228         * lib/iswctype.c: New file.
55229         * lib/iswctype-impl.h: New file.
55230         * m4/iswctype.m4: New file.
55231         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55232         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55233         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55234         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55235         * doc/posix-functions/iswctype.texi: Mention the new module and the
55236         HP-UX 11.00 problem.
55238 2011-02-06  Bruno Haible  <bruno@clisp.org>
55240         New module 'wctype'.
55241         * modules/wctype: Change to represent the wctype() substitute.
55242         * lib/wctype.in.h (wctype): New declaration.
55243         * lib/wctype.c: New file.
55244         * lib/wctype-impl.h: New file.
55245         * m4/wctype.m4: New file.
55246         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55247         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55248         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55249         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55250         * doc/posix-functions/wctype.texi: Mention the new module and the
55251         HP-UX 11.00 problem.
55253 2011-02-06  Bruno Haible  <bruno@clisp.org>
55255         wctype-h: Ensure wctype_t and wctrans_t are defined.
55256         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55257         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55258         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55259         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55260         HAVE_WCTRANS_T.
55261         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55263 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55265         flock: fix license typo
55267         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55268         omitted.
55270 2011-02-08  Bruno Haible  <bruno@clisp.org>
55272         Split large sed scripts, for HP-UX sed.
55273         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55274         to avoid HP-UX limit of 99 commands, in the near future.
55275         * modules/stdlib (Makefile.am): Likewise.
55276         * modules/unistd (Makefile.am): Likewise.
55277         * modules/wchar (Makefile.am): Likewise.
55278         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55279         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55280         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55282 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55283             Bruno Haible  <bruno@clisp.org>
55285         stdlib: improve random_r modularization
55286         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55287         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55288         you also need the random_r module to get this material right.
55289         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55290         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55291         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55293 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55295         stdlib: don't depend on stdint
55296         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55297         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55298         be independent of whether stdint.h is needed.
55299         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55300         here, instead of ...
55301         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55302         struct random_data should be using the random_r module, not just
55303         the stdlib module (which wouldn't make sense: what package needs
55304         just struct random_data without also needing random_r?).
55305         * modules/stdlib (Depends-on): Remove stdint.
55307         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55308         See the thread rooted at
55309         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55310         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55311         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55312         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55313         __VMS)); previously it was always included (via fcntl--.h).
55314         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55315         hand; this is good enough for load averages.  Also, do not use
55316         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55317         flags directly if available and don't bother otherwise.  (Packages
55318         that need the extra reliability should use the modules that define
55319         these flags on older platforms that lack them.)
55320         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55321         fcntl-safer.
55323 2011-02-08  Jim Meyering  <meyering@redhat.com>
55325         di-set.h, ino-map.h: add multiple-inclusion guard
55326         Technically, the guard is required only for ino-map.h, due to its
55327         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55328         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55329         * lib/ino-map.h: Likewise.
55331 2011-02-06  Bruno Haible  <bruno@clisp.org>
55333         iswblank: Ensure declaration on glibc systems.
55334         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55335         * modules/iswblank (Dependencies): Add 'extensions'.
55336         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55338 2011-02-06  Bruno Haible  <bruno@clisp.org>
55340         New module 'iswblank'.
55341         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55342         * modules/iswblank: New file.
55343         * modules/wctype-h (Files): Remove lib/iswblank.c.
55344         (Makefile.am): Substitute GNULIB_ISWBLANK.
55345         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55346         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55347         (gl_WCTYPE_H_DEFAULTS): New macro.
55348         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55349         * modules/iswblank-tests: New file.
55350         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55351         * tests/test-wctype-h.c (main): Remove iswblank tests.
55352         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55353         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55354         of 'wctype-h'.
55355         * NEWS: Mention the change.
55356         * modules/mbchar (Depends-on): Add iswblank.
55358 2011-02-08  Bruno Haible  <bruno@clisp.org>
55360         di-set tests: Refactor.
55361         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55362         unnecessary includes.
55363         (ASSERT): Remove macro.
55364         (main): Make C90 compliant by avoiding variable declaration after
55365         statement.
55366         * modules/di-set-tests (Files): Add tests/macros.h.
55368 2011-02-08  Bruno Haible  <bruno@clisp.org>
55370         ino-map tests: Refactor.
55371         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55372         unnecessary includes.
55373         (ASSERT): Remove macro.
55374         (main): Make C90 compliant by avoiding variable declaration after
55375         statement.
55376         * modules/ino-map-tests (Files): Add tests/macros.h.
55378 2011-02-08  Jim Meyering  <meyering@redhat.com>
55380         di-set: add "const" to a cast
55381         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55382         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55384 2011-02-06  Bruno Haible  <bruno@clisp.org>
55386         Rename module 'wctype' to 'wctype-h'.
55387         * modules/wctype-h: Renamed from modules/wctype.
55388         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55389         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55390         (Files, Depends-on, Makefile.am): Update.
55391         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55392         (Files, Makefile.am): Update.
55393         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55394         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55395         * doc/posix-headers/wctype.texi: Update.
55396         * doc/posix-functions/iswalnum.texi: Update.
55397         * doc/posix-functions/iswalpha.texi: Update.
55398         * doc/posix-functions/iswblank.texi: Update.
55399         * doc/posix-functions/iswcntrl.texi: Update.
55400         * doc/posix-functions/iswdigit.texi: Update.
55401         * doc/posix-functions/iswgraph.texi: Update.
55402         * doc/posix-functions/iswlower.texi: Update.
55403         * doc/posix-functions/iswprint.texi: Update.
55404         * doc/posix-functions/iswpunct.texi: Update.
55405         * doc/posix-functions/iswspace.texi: Update.
55406         * doc/posix-functions/iswupper.texi: Update.
55407         * doc/posix-functions/iswxdigit.texi: Update.
55408         * doc/posix-functions/towlower.texi: Update.
55409         * doc/posix-functions/towupper.texi: Update.
55410         * NEWS: Mention the change.
55411         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55412         * modules/mbchar (Dependencies): Likewise.
55413         * modules/mbswidth (Dependencies): Likewise.
55414         * modules/quotearg (Dependencies): Likewise.
55415         * modules/regex (Dependencies): Likewise.
55416         * modules/wcscasecmp (Dependencies): Likewise.
55417         * modules/wcsncasecmp (Dependencies): Likewise.
55418         * modules/wcwidth (Dependencies): Likewise.
55420 2011-02-06  Bruno Haible  <bruno@clisp.org>
55422         New module 'wcswidth'.
55423         * modules/wcswidth: New file.
55424         * lib/wchar.in.h (wcswidth): New declaration.
55425         * lib/wcswidth.c: New file.
55426         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55427         * m4/wcswidth.m4: New file.
55428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55430         REPLACE_WCSWIDTH.
55431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55432         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55433         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55434         * doc/posix-functions/wcswidth.texi: Mention the new module.
55436 2011-02-06  Bruno Haible  <bruno@clisp.org>
55438         New module 'wcstok'.
55439         * modules/wcstok: New file.
55440         * lib/wchar.in.h (wcstok): New declaration.
55441         * lib/wcstok.c: New file.
55442         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55443         * m4/wcstok.m4: New file.
55444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55447         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55448         * doc/posix-functions/wcstok.texi: Mention the new module.
55450 2011-02-06  Bruno Haible  <bruno@clisp.org>
55452         New module 'wcsstr'.
55453         * modules/wcsstr: New file.
55454         * lib/wchar.in.h (wcsstr): New declaration.
55455         * lib/wcsstr.c: New file.
55456         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55457         * m4/wcsstr.m4: New file.
55458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55461         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55462         * doc/posix-functions/wcsstr.texi: Mention the new module.
55464 2011-02-06  Bruno Haible  <bruno@clisp.org>
55466         New module 'wcspbrk'.
55467         * modules/wcspbrk: New file.
55468         * lib/wchar.in.h (wcspbrk): New declaration.
55469         * lib/wcspbrk.c: New file.
55470         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55471         * m4/wcspbrk.m4: New file.
55472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55475         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55476         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55478 2011-02-06  Bruno Haible  <bruno@clisp.org>
55480         New module 'wcsspn'.
55481         * modules/wcsspn: New file.
55482         * lib/wchar.in.h (wcsspn): New declaration.
55483         * lib/wcsspn.c: New file.
55484         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55485         * m4/wcsspn.m4: New file.
55486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55489         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55490         * doc/posix-functions/wcsspn.texi: Mention the new module.
55492 2011-02-06  Bruno Haible  <bruno@clisp.org>
55494         New module 'wcscspn'.
55495         * modules/wcscspn: New file.
55496         * lib/wchar.in.h (wcscspn): New declaration.
55497         * lib/wcscspn.c: New file.
55498         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55499         * m4/wcscspn.m4: New file.
55500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55503         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55504         * doc/posix-functions/wcscspn.texi: Mention the new module.
55506 2011-02-06  Bruno Haible  <bruno@clisp.org>
55508         New module 'wcsrchr'.
55509         * modules/wcsrchr: New file.
55510         * lib/wchar.in.h (wcsrchr): New declaration.
55511         * lib/wcsrchr.c: New file.
55512         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55513         * m4/wcsrchr.m4: New file.
55514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55517         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55518         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55520 2011-02-06  Bruno Haible  <bruno@clisp.org>
55522         New module 'wcschr'.
55523         * modules/wcschr: New file.
55524         * lib/wchar.in.h (wcschr): New declaration.
55525         * lib/wcschr.c: New file.
55526         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55527         * m4/wcschr.m4: New file.
55528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55531         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55532         * doc/posix-functions/wcschr.texi: Mention the new module.
55534 2011-02-06  Bruno Haible  <bruno@clisp.org>
55536         New module 'wcsdup'.
55537         * modules/wcsdup: New file.
55538         * lib/wchar.in.h (wcsdup): New declaration.
55539         * lib/wcsdup.c: New file.
55540         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55541         * m4/wcsdup.m4: New file.
55542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55545         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55546         * doc/posix-functions/wcsdup.texi: Mention the new module.
55548 2011-02-06  Bruno Haible  <bruno@clisp.org>
55550         New module 'wcsxfrm'.
55551         * modules/wcsxfrm: New file.
55552         * lib/wchar.in.h (wcsxfrm): New declaration.
55553         * lib/wcsxfrm.c: New file.
55554         * lib/wcsxfrm-impl.h: New file.
55555         * m4/wcsxfrm.m4: New file.
55556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55559         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55560         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55562 2011-02-06  Bruno Haible  <bruno@clisp.org>
55564         New module 'wcscoll'.
55565         * modules/wcscoll: New file.
55566         * lib/wchar.in.h (wcscoll): New declaration.
55567         * lib/wcscoll.c: New file.
55568         * lib/wcscoll-impl.h: New file.
55569         * m4/wcscoll.m4: New file.
55570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55573         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55574         * doc/posix-functions/wcscoll.texi: Mention the new module.
55576 2011-02-06  Bruno Haible  <bruno@clisp.org>
55578         New module 'wcsncasecmp'.
55579         * modules/wcsncasecmp: New file.
55580         * lib/wchar.in.h (wcsncasecmp): New declaration.
55581         * lib/wcsncasecmp.c: New file.
55582         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55583         * m4/wcsncasecmp.m4: New file.
55584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55587         HAVE_WCSNCASECMP.
55588         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55589         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55591 2011-02-06  Bruno Haible  <bruno@clisp.org>
55593         New module 'wcscasecmp'.
55594         * modules/wcscasecmp: New file.
55595         * lib/wchar.in.h (wcscasecmp): New declaration.
55596         * lib/wcscasecmp.c: New file.
55597         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55598         * m4/wcscasecmp.m4: New file.
55599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55602         HAVE_WCSCASECMP.
55603         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55604         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55606 2011-02-05  Bruno Haible  <bruno@clisp.org>
55608         New module 'wcsncmp'.
55609         * modules/wcsncmp: New file.
55610         * lib/wchar.in.h (wcsncmp): New declaration.
55611         * lib/wcsncmp.c: New file.
55612         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55613         * m4/wcsncmp.m4: New file.
55614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55617         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55618         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55620 2011-02-05  Bruno Haible  <bruno@clisp.org>
55622         New module 'wcscmp'.
55623         * modules/wcscmp: New file.
55624         * lib/wchar.in.h (wcscmp): New declaration.
55625         * lib/wcscmp.c: New file.
55626         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55627         * m4/wcscmp.m4: New file.
55628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55631         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55632         * doc/posix-functions/wcscmp.texi: Mention the new module.
55634 2011-02-05  Bruno Haible  <bruno@clisp.org>
55636         New module 'wcsncat'.
55637         * modules/wcsncat: New file.
55638         * lib/wchar.in.h (wcsncat): New declaration.
55639         * lib/wcsncat.c: New file.
55640         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55641         * m4/wcsncat.m4: New file.
55642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55645         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55646         * doc/posix-functions/wcsncat.texi: Mention the new module.
55648 2011-02-05  Bruno Haible  <bruno@clisp.org>
55650         New module 'wcscat'.
55651         * modules/wcscat: New file.
55652         * lib/wchar.in.h (wcscat): New declaration.
55653         * lib/wcscat.c: New file.
55654         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55655         * m4/wcscat.m4: New file.
55656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55659         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55660         * doc/posix-functions/wcscat.texi: Mention the new module.
55662 2011-02-05  Bruno Haible  <bruno@clisp.org>
55664         New module 'wcpncpy'.
55665         * modules/wcpncpy: New file.
55666         * lib/wchar.in.h (wcpncpy): New declaration.
55667         * lib/wcpncpy.c: New file.
55668         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55669         * m4/wcpncpy.m4: New file.
55670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55672         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55673         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55674         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55676 2011-02-05  Bruno Haible  <bruno@clisp.org>
55678         New module 'wcsncpy'.
55679         * modules/wcsncpy: New file.
55680         * lib/wchar.in.h (wcsncpy): New declaration.
55681         * lib/wcsncpy.c: New file.
55682         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55683         * m4/wcsncpy.m4: New file.
55684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55687         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55688         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55690 2011-02-05  Bruno Haible  <bruno@clisp.org>
55692         New module 'wcpcpy'.
55693         * modules/wcpcpy: New file.
55694         * lib/wchar.in.h (wcpcpy): New declaration.
55695         * lib/wcpcpy.c: New file.
55696         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55697         * m4/wcpcpy.m4: New file.
55698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55700         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55701         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55702         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55704 2011-02-05  Bruno Haible  <bruno@clisp.org>
55706         New module 'wcscpy'.
55707         * modules/wcscpy: New file.
55708         * lib/wchar.in.h (wcscpy): New declaration.
55709         * lib/wcscpy.c: New file.
55710         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55711         * m4/wcscpy.m4: New file.
55712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55715         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55716         * doc/posix-functions/wcscpy.texi: Mention the new module.
55718 2011-02-05  Bruno Haible  <bruno@clisp.org>
55720         New module 'wcsnlen'.
55721         * modules/wcsnlen: New file.
55722         * lib/wchar.in.h (wcsnlen): New declaration.
55723         * lib/wcsnlen.c: New file.
55724         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55725         * m4/wcsnlen.m4: New file.
55726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55729         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55730         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55732 2011-02-05  Bruno Haible  <bruno@clisp.org>
55734         New module 'wcslen'.
55735         * modules/wcslen: New file.
55736         * lib/wchar.in.h (wcslen): New declaration.
55737         * lib/wcslen.c: New file.
55738         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55739         * m4/wcslen.m4: New file.
55740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55743         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55744         * doc/posix-functions/wcslen.texi: Mention the new module.
55746 2011-02-05  Bruno Haible  <bruno@clisp.org>
55748         New module 'wmemset'.
55749         * modules/wmemset: New file.
55750         * lib/wchar.in.h (wmemset): New declaration.
55751         * lib/wmemset.c: New file.
55752         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55753         * m4/wmemset.m4: New file.
55754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55756         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55757         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55758         * doc/posix-functions/wmemset.texi: Mention the new module.
55760 2011-02-05  Bruno Haible  <bruno@clisp.org>
55762         New module 'wmemmove'.
55763         * modules/wmemmove: New file.
55764         * lib/wchar.in.h (wmemmove): New declaration.
55765         * lib/wmemmove.c: New file.
55766         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55767         * m4/wmemmove.m4: New file.
55768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55770         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55771         HAVE_WMEMMOVE.
55772         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55773         * doc/posix-functions/wmemmove.texi: Mention the new module.
55775 2011-02-05  Bruno Haible  <bruno@clisp.org>
55777         New module 'wmemcpy'.
55778         * modules/wmemcpy: New file.
55779         * lib/wchar.in.h (wmemcpy): New declaration.
55780         * lib/wmemcpy.c: New file.
55781         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55782         * m4/wmemcpy.m4: New file.
55783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55786         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55787         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55789 2011-02-05  Bruno Haible  <bruno@clisp.org>
55791         New module 'wmemcmp'.
55792         * modules/wmemcmp: New file.
55793         * lib/wchar.in.h (wmemcmp): New declaration.
55794         * lib/wmemcmp.c: New file.
55795         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55796         * m4/wmemcmp.m4: New file.
55797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55799         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55800         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55801         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55803 2011-02-07  Jim Meyering  <meyering@redhat.com>
55805         di-set, ino-map: new modules, from coreutils
55806         * lib/di-set.c: New file.
55807         * lib/di-set.h: Likewise.
55808         * lib/ino-map.c: Likewise.
55809         * lib/ino-map.h: Likewise.
55810         * modules/di-set: Likewise.
55811         * modules/di-set-tests: Likewise.
55812         * modules/ino-map: Likewise.
55813         * modules/ino-map-tests: Likewise.
55814         * tests/test-di-set.c: Likewise.
55815         * tests/test-ino-map.c: Likewise.
55817 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55819         getloadavg: merge minor changes from Emacs
55821         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55822         (getloadavg): Use memset, not bzero.
55824         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55825         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55826         clash (bug#86).
55828 2010-11-14  Bruno Haible  <bruno@clisp.org>
55830         Allow multiple gnulib generated replacements to coexist.
55831         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55832         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55833         * lib/langinfo.in.h (nl_item): Likewise.
55834         * lib/math.in.h (_NaN, NAN): Likewise.
55835         * lib/netdb.in.h (struct addrinfo): Likewise.
55836         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55837         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55838         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55839         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55840         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55841         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55842         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55843         pthread_mutexattr_init, pthread_mutexattr_settype,
55844         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55845         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55846         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55847         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55848         * lib/sched.in.h (struct sched_param): Likewise.
55849         * lib/se-selinux.in.h (security_class_t, security_context_t,
55850         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55851         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55852         lsetfilecon, fsetfilecon, security_check_context,
55853         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55854         Likewise.
55855         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55856         Likewise.
55857         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55858         _gl_function_taking_int_returning_void_t, union sigval,
55859         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55860         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55861         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55862         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55863         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55864         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55865         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55866         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55867         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55868         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55869         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55870         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55871         socklen_t, rpl_fd_isset): Likewise.
55872         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55873         * lib/sys_time.in.h (struct timeval): Likewise.
55874         * lib/sys_times.in.h (struct tms): Likewise.
55875         * lib/sys_utsname.in.h (struct utsname):
55876         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55877         * lib/unistd.in.h (getpagesize): Likewise.
55878         * lib/wchar.in.h (mbstate_t): Likewise.
55879         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55880         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55881         towlower, towupper): Likewise.
55882         Reported by Sam Steingold <sds@gnu.org>.
55884 2011-02-05  Eric Blake  <eblake@redhat.com>
55886         unsetenv: work around Haiku issues
55887         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55888         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55890 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55892         libposix: avoid calling error() within libposix
55893         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55894         is defined.
55896 2011-02-05  Eric Blake  <eblake@redhat.com>
55898         strerror_r-posix: port to cygwin
55899         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55900         implementation.
55901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55902         * tests/test-strerror_r.c (main): Fix test.
55903         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55904         issue.
55906 2011-02-05  Bruno Haible  <bruno@clisp.org>
55908         New module 'wmemchr'.
55909         * modules/wmemchr: New file.
55910         * lib/wchar.in.h (wmemchr): New declaration.
55911         * lib/wmemchr.c: New file.
55912         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55913         * m4/wmemchr.m4: New file.
55914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55916         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55917         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55918         * doc/posix-functions/wmemchr.texi: Mention the new module.
55920 2011-02-04  Eric Blake  <eblake@redhat.com>
55922         fdopendir: detect FreeBSD bug
55923         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55924         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55926 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55928         stdbool: do not define HAVE_STDBOOL_H
55929         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55930         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55931         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55932         imported from the latest Autoconf git.  It was motivated by Emacs,
55933         which uses gnulib but does not need HAVE_STDBOOL_H.
55935 2011-02-04  Bruno Haible  <bruno@clisp.org>
55937         wcsnrtombs: Prepare for new module wwcsnrtombs.
55938         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55939         * lib/wcsnrtombs.c: Include it.
55940         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55942         wcsrtombs: Prepare for new module wwcsrtombs.
55943         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55944         * lib/wcsrtombs.c: Include it.
55945         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55947         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55948         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55949         * lib/mbsnrtowcs.c: Include it.
55950         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55952         mbsrtowcs: Prepare for new module mbsrtowwcs.
55953         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55954         * lib/mbsrtowcs.c: Include it.
55955         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55957 2011-02-04  Bruno Haible  <bruno@clisp.org>
55959         vasnprintf: Reduce use of malloc for small format strings.
55960         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55961         (arguments): Add room for the first 7 arguments.
55962         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55963         (char_directives, u8_directives, u16_directives, u32_directives): Add
55964         room for the first 7 directives.
55965         * lib/printf-parse.c: Include <string.h>.
55966         (PRINTF_PARSE): Change memory handling code so that it uses the first
55967         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
55968         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
55969         Reported by Pádraig Brady <P@draigbrady.com>.
55971 2011-01-31  Eric Blake  <eblake@redhat.com>
55973         dup2: work around Haiku bug
55974         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
55975         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
55976         * doc/posix-functions/dup2.texi (dup2): Document the bug.
55977         * tests/test-dup2.c (main): Enhance test.
55979 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55981         doc: off_t is not available in eglibc 2.11.2 stdio.h.
55982         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
55983         declared by eglibc 2.11.2.
55984         * lib/stdio.in.h: Likewise.
55986 2011-01-31  Eric Blake  <eblake@redhat.com>
55988         ignore-value: add missing test dependency
55989         * tests/test-ignore-value.c: Revert previous change; stdio.h
55990         provides off_t.
55991         * modules/ignore-value-tests (Depends-on): Add missing dependency.
55993 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
55995         mktime: clarify long_int width checking
55996         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
55997         the top level, to make it clearer that the assumption about
55998         long_int width is being checked.  See
55999         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56001 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56003         ignore-value: Fix self-test.
56004         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56006 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56008         TYPE_MAXIMUM: avoid theoretically undefined behavior
56009         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56010         negative number, which the C Standard says has undefined behavior.
56011         In practice this is not a problem, but might as well do it by the book.
56012         Reported by Rich Felker and Eric Blake; see
56013         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56014         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56015         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56017         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56018         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56019         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56021         mktime: #undef mktime before #defining it
56022         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56024         mktime: systematically normalize tm_isdst comparisons
56025         * lib/mktime.c (isdst_differ): New function.
56026         (__mktime_internal): Use it systematically for all isdst comparisons.
56027         This completes the fix for libc BZ #6723, and removes the need for
56028         normalizing tm_isdst.  See
56029         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56030         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56032         mktime: fix some integer overflow issues and sidestep the rest
56034         This was prompted by a bug report by Benjamin Lindner for MinGW
56035         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56036         His bug is due to signed integer overflow (0 - INT_MIN), and I
56037         I scanned through mktime.c looking for other integer overflow
56038         problems, fixing all the bugs I found.
56040         Although the C Standard says the resulting code is still not safe
56041         in the presence of integer overflow, in practice it should be good
56042         enough for all real-world two's-complement implementations, except
56043         for debugging environments that deliberately trap on integer
56044         overflow (e.g., gcc -ftrapv).
56046         * lib/mktime.c (WRAPV): New macro.
56047         (SHR): Also check that long_int and time_t shift right in the
56048         usual way, before using the fast-but-unportable method.
56049         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56050         used.  The code already assumed two's complement, so there's
56051         no need to test for alternatives.  All uses removed.
56052         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56053         the C standard.  Problem reported by Rich Felker in
56054         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56055         (twos_complement_arithmetic): Also check long_int and time_t.
56056         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56057         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56058         (__mktime_internal): Avoid integer overflow with unary subtraction
56059         in two instances where -1 - X is an adequate replacement for -X,
56060         since the calculations are approximate.
56062 2011-01-29  Eric Blake  <eblake@redhat.com>
56064         mktime: avoid infinite loop
56065         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56066         type; behavior is still undefined but portable to all known targets.
56067         Reported by Rich Felker.
56069 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56071         rename, unlink, same-inode: Relicense.
56072         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56073         * modules/unlink (License): Likewise.
56074         * modules/same-inode (License): Likewise.
56076 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56078         mktime: avoid problems on NetBSD 5 / i386
56079         * lib/mktime.c (long_int): New type.  This works around a problem
56080         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
56081         but time_t is 64 bits, and where I expect the existing code is
56082         wrong in some cases.
56083         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
56084         (ydhms_diff): Bring back the compile-time check for wide-enough
56085         year and yday.
56087         mktime: fix misspelling in comment
56088         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
56089         This merges all recent glibc changes of importance.
56091 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56093         move-if-change: cope with concurrent mv of identical file.
56094         * build-aux/move-if-change (CMPPROG): Accept environment
56095         variable as an override for `cmp'.
56096         (usage): Document CMPPROG.
56097         Adjust comparison to drop stdout.  Cope with failure of mv if
56098         the target file exists and is identical to the source, for
56099         parallel builds.
56100         Report from H.J. Lu against binutils in PR binutils/12283.
56102 2011-01-28  Bruce Korb  <bkorb@gnu.org>
56104         * users.txt: Mention sharutils.
56106 2011-01-28  Simon Josefsson  <simon@josefsson.org>
56108         * users.txt: Mention OATH Toolkit.
56110 2011-01-27  Bruno Haible  <bruno@clisp.org>
56112         Prepare for supporting FreeBSD 10.
56113         * build-aux/config.libpath: Remove handling of freebsd1*.
56115 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56117         Prepare for supporting FreeBSD 10.
56118         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56119         match FreeBSD 10.0.
56121 2011-01-27  Bruno Haible  <bruno@clisp.org>
56123         vma-iter, get-rusage-as: Add OpenBSD support.
56124         * modules/vma-iter (configure.ac): Test for mquery.
56125         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56126         * lib/vma-iter.c: Include <sys/mman.h>.
56127         (vma_iterate): Add an implementation based on mquery().
56128         * lib/resource-ext.h (get_rusage_as): Update comments.
56129         * lib/get-rusage-as.c: Likewise.
56130         * lib/get-rusage-data.c: Likewise.
56132 2011-01-26  Karl Berry  <karl@gnu.org>
56134         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56135         variables to make it easier to override the makeinfo program used.
56137 2011-01-26  Eric Blake  <eblake@redhat.com>
56139         fcntl: work around Haiku F_DUPFD bugs
56140         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56141         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56142         cloexec bit on duplication.
56143         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56145 2011-01-26  Bruno Haible  <bruno@clisp.org>
56147         Enable memory leak tests on AIX.
56148         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56149         * tests/test-fprintf-posix3.c (main): Likewise.
56151 2011-01-26  Bruno Haible  <bruno@clisp.org>
56153         Tests for module 'get-rusage-data'.
56154         * modules/get-rusage-data-tests: New file.
56155         * tests/test-get-rusage-data.c: New file.
56157         New module 'get-rusage-data'.
56158         * lib/resource-ext.h (get_rusage_data): New declaration.
56159         * lib/get-rusage-data.c: New file.
56160         * modules/get-rusage-data: New file.
56162 2011-01-25  Bruno Haible  <bruno@clisp.org>
56164         get-rusage-as: Allow for easier testing.
56165         * lib/resource-ext.h (get_rusage_as): Add comment.
56166         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56167         (main): New function for interactive testing.
56169 2011-01-25  Bruno Haible  <bruno@clisp.org>
56171         vma-iter: Treat Haiku like BeOS.
56172         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56173         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56175 2011-01-25  Eric Blake  <eblake@redhat.com>
56177         c-stack: fix regression on cygwin when libsigsegv is present
56178         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56180 2011-01-24  Bruno Haible  <bruno@clisp.org>
56182         vma-iter: Avoid empty intervals.
56183         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56184         on an empty interval.
56186 2011-01-24  Jim Meyering  <meyering@redhat.com>
56188         u64: remove unnecessary #include
56189         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56191 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56193         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56194         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56196 2011-01-23  Bruno Haible  <bruno@clisp.org>
56198         New module 'vma-iter'.
56199         * lib/vma-iter.h: New file.
56200         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56201         * modules/vma-iter: New file.
56202         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56203         for get_rusage_as_via_iterator.
56204         (vma_iterate_callback): New function.
56205         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56206         * modules/get-rusage-as (Depends-on): Add vma-iter.
56208 2011-01-23  Bruno Haible  <bruno@clisp.org>
56210         uninorm: Tweak includes.
56211         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56212         Reported by Jim Meyering.
56214 2011-01-23  Bruno Haible  <bruno@clisp.org>
56216         get-rusage-as: Improve on NetBSD.
56217         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56218         /proc, like on FreeBSD.
56220 2011-01-23  Jim Meyering  <meyering@redhat.com>
56222         xreadlink.h: remove unnecessary #include
56223         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56225         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56226         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56228 2011-01-23  Bruno Haible  <bruno@clisp.org>
56230         get-rusage-as: Fix bug.
56231         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56232         original limit when aborting the first loop.
56234 2011-01-23  Bruno Haible  <bruno@clisp.org>
56236         wctype: Ensure valid C syntax.
56237         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56238         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56240 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56242         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56244         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56245         as they are needed only for configure's test case.
56246         This removes two unnecessary symbols from config.h.
56248         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56249         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56251         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56252         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56254         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56255         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56256         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56257         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56258         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56260         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56262         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56263         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56264         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56265         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56267 2011-01-21  Eric Blake  <eblake@redhat.com>
56269         maintainer-makefile: work with older git for submodule check
56270         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56271         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56272         Reported by Matthias Bolte.
56274         bootstrap: minor portability fixes
56275         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56276         (usage): Omit leading capital and trailing . on help phrases, per
56277         GNU Coding Standards.
56278         (check_versions, top level): Prefix messages with script name.
56280 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56282         bootstrap: support --no-git option
56283         * build-aux/bootstrap: Add --no-git option, to be used when
56284         --gnulib-srcdir points to the exact desired checkout.
56286 2011-01-21  Eric Blake  <eblake@redhat.com>
56288         strerror_r-posix: work with glibc 2.13
56289         * lib/strerror_r.c (strerror_r): Fix return type.
56291 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56292             Bruno Haible  <bruno@clisp.org>
56294         uN_strstr: New unit tests.
56295         * modules/unistr/u8-strstr-tests: New file.
56296         * modules/unistr/u16-strstr-tests: New file.
56297         * modules/unistr/u32-strstr-tests: New file.
56298         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56299         * tests/unistr/test-u8-strstr.c: New file.
56300         * tests/unistr/test-u16-strstr.c: New file.
56301         * tests/unistr/test-u32-strstr.c: New file.
56303 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56304             Bruno Haible  <bruno@clisp.org>
56306         Make uN_strstr functions O(n) worst-case.
56307         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56308         16-bit and 32-bit unit cases, use the unibyte algorithm from
56309         lib/mbsstr.c.
56310         * lib/unistr/u8-strstr.c: Include <string.h>.
56311         (UNIT_IS_UINT8_T): New macro.
56312         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56313         (U_STRLEN, U_STRNLEN): New macros.
56314         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56315         (U_STRLEN, U_STRNLEN): New macros.
56316         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56317         (configure.ac): Update required libunistring version.
56318         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56319         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56320         malloca.
56321         (configure.ac): Update required libunistring version.
56322         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56323         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56324         malloca.
56325         (configure.ac): Update required libunistring version.
56327 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56328             Bruno Haible  <bruno@clisp.org>
56330         Prepare for faster uN_strstr functions.
56331         * lib/str-kmp.h: Support definable UNITs.
56332         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56333         needle_len argument.
56334         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56335         * lib/mbscasestr.c (mbscasestr): Likewise.
56337 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56339         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56340         * tests/test-malloca.c (main): Unset the environment variable
56341         to greatly speed up the test.
56342         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56343         * modules/malloca-tests: Depend on unsetenv.
56345 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56347         ignore-value: remove stdint dependency
56348         * lib/ignore-value.h: Remove <stdint.h>
56349         * modules/ignore-value: Remove stdint dependency.
56351 2011-01-21  Jim Meyering  <meyering@redhat.com>
56353         maint.mk: adjust variable name to be consistent with other gl_ vars
56354         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56355         to be lower case.
56357 2011-01-20  Jim Meyering  <meyering@redhat.com>
56359         maint.mk: make "check" depend on public-submodule-commit by default
56360         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56362 2011-01-20  Bruno Haible  <bruno@clisp.org>
56364         mbfile, mbiter: Complete change from 2008-12-21.
56365         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56366         * m4/mbiter.m4 (gl_MBITER): Likewise.
56368 2011-01-20  Jim Meyering  <meyering@redhat.com>
56370         init.sh: insert space between each function name and "()"
56371         * tests/init.sh: Make it a little easier to see that a function's
56372         name is "warn_", and not "warn" when looking at the first part of
56373         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56375 2011-01-20  Jim Meyering  <meyering@redhat.com>
56377         mountlist: clean up code formatting
56378         * lib/mountlist.c (read_file_system_list): Split a long line,
56379         correct bracing style, use NULL in place of "(struct statfs *)0",
56380         don't parenthesize return value, add spaces around "=" and after
56381         ";-in-for-stmt".
56383 2011-01-14  Markus Duft  <mduft@gentoo.org>
56385         mountlist: add support for Interix
56386         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56387         Apply statvfs to all entries of /dev/fs.
56388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56389         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56391 2011-01-20  Jim Meyering  <meyering@redhat.com>
56393         maint.mk: improve the public-submodule-commit rule
56394         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56395         to suppress printing of its commands... unless V=1.
56396         Add git submodule's --quiet option to suppress printing of e.g.,
56397         "Entering gnulib" output.
56398         "cd" into $(srcdir) before running git submodule.
56400 2011-01-20  Bruno Haible  <bruno@clisp.org>
56402         include_next: Fix bug introduced on 2011-01-18.
56403         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56404         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56405         ac_cv_header_... variable if the second argument is not 'check'.
56406         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56407         gl_NEXT_HEADERS_INTERNAL.
56409 2011-01-20  Bruno Haible  <bruno@clisp.org>
56411         Allow the user to avoid the GNULIB_TEST_* macros.
56412         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56413         Suggested by Paul Eggert.
56415 2011-01-14  Jim Meyering  <meyering@redhat.com>
56417         bootstrap: avoid failure when there is no .gitmodules file
56418         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56419         has been assigned to, even when its value is the empty string.
56420         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56421         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56422         Reported by John W. Eaton <jwe@gnu.org>.
56424 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56426         assume <ctype.h>, ..., <time.h> exist
56427         For years gnulib has been assuming the existence of the headers
56428         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56429         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56430         them, since they don't appear to be needed.
56431         * README (Portability guidelines): Document this.
56432         * lib/flock.c: Assume <fcntl.h> exists.
56433         * lib/regex_internal.h: Assume <locale.h> exists.
56434         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56436         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56437         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56438         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56439         * m4/regex.m4 (gl_REGEX): Likewise.
56440         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56441         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56442         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56443         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56444         * tests/test-argp.c: Likewise.
56445         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56447         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56448         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56449         AA_APPLE_UNIVERSAL_BUILD.  See
56450         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56451         * NEWS: Document this.
56453 2011-01-19  Eric Blake  <eblake@redhat.com>
56455         c-stack: assume stack overflow if SA_SIGINFO unsupported
56456         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56457         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56458         sigaction will work.
56459         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56460         behavior match Linux.
56461         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56463         stdbool-tests: accommodate Haiku
56464         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56466         binary-io: fix O_TEXT on Haiku
56467         * modules/binary-io (Depends-on): Add fcntl-h.
56468         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56469         than blindly undefining O_TEXT.
56470         Reported by Scott McCreary.
56472 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56474         include_next: do not check for standard headers like stddef.h
56476         I found this problem when modifying Emacs to use gnulib.
56477         I noticed that it added HAVE_STDDEF_H to config.h, even though
56478         gnulib always assumes <stddef.h> exists as per README and this
56479         symbol is unnecessary.
56480         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56481         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56482         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56483         faster for headers like stddef.h that are known to exist.
56484         (gl_CHECK_NEXT_HEADERS): Use it.
56485         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56486         rather than gl_CHECK_NEXT_HEADERS.
56487         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56488         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56490 2011-01-18  Eric Blake  <eblake@redhat.com>
56492         ansi-c++-opt: skip C++ dependency style if C++ is unused
56493         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56494         tests when we know C++ compilation is not desired.
56495         Reported by Scott McCreary.
56497 2011-01-18  Bruno Haible  <bruno@clisp.org>
56499         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56500         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56501         (main): Perform test also when getrlimit and setrlimit don't exist or
56502         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56503         limiting the address space size using setrlimit, compare the address
56504         space size before and after the test.
56505         * tests/test-dprintf-posix2.c: Likewise.
56506         * tests/test-fprintf-posix3.sh: Update skip messages.
56507         * tests/test-dprintf-posix2.sh: Likewise.
56508         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56509         * modules/dprintf-posix-tests (Depends-on): Likewise.
56510         Reported by Bruce Korb <bkorb@gnu.org> and
56511         Gary V. Vaughan <gary@gnu.org>.
56513 2011-01-18  Bruno Haible  <bruno@clisp.org>
56515         get-rusage-as: Improvement for Cygwin.
56516         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56517         areas that are merely reserved.
56519 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56521         strftime: remove dependencies on multibyte modules
56523         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56524         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56525         only if __osf__ is defined, and I suspect OSF doesn't need these
56526         other modules.  If my guess is wrong, we'll need to come up with a
56527         variant of strftime that doesn't need the multibyte modules.
56529         I discovered this problem when attempting modify Emacs to use the
56530         strftime module.  With the previous gnulib, this caused Emacs to
56531         need 31 new files, ranging from lib/config.charset to
56532         m4/wint_t.m4.  This was overkill and I expect would be offputting
56533         to the Emacs maintainers.  After this change, only 6 new files are
56534         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56535         stdbool.m4, and tm_gmtoff.m4.
56537         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56538         Suggested by Bruno Haible in
56539         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56540         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56541         and do not check for wchar.h.
56542         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56543         (Depends-on): Remove mbrlen, mbsinit, wchar.
56545 2011-01-18  Bruno Haible  <bruno@clisp.org>
56547         Tests for module 'get-rusage-as'.
56548         * modules/get-rusage-as-tests: New file.
56549         * tests/test-get-rusage-as.c: New file.
56551         New module 'get-rusage-as'.
56552         * modules/get-rusage-as: New file.
56553         * lib/resource-ext.h: New file.
56554         * lib/get-rusage-as.c: New file.
56556 2011-01-17  Eric Blake  <eblake@redhat.com>
56558         sigaction: relax license from LGPLv3+ to LGPLv2+
56559         * modules/sigaction (License): Relax to LGPLv2+.
56561 2011-01-14  Bruno Haible  <bruno@clisp.org>
56563         filemode: Make function declarations usable in C++ mode.
56564         * lib/filemode.h: Enclose function declarations in extern "C" block.
56565         Reported by John W. Eaton <jwe@gnu.org>.
56567 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56569         save-cwd: no longer include "xgetcwd.h"
56570         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56571         This avoids a compilation failure in projects that use save-cwd
56572         without also using the xgetcwd module.
56574 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56576         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56577         This is so that a program like Emacs, which needs only dtoastr,
56578         does not have to bother with distributing and compiling ftoastr
56579         and ldtoastr.
56580         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56581         * modules/dtoastr, modules/ldtoastr: New files.
56582         * modules/ftoastr: Now works just for 'float'.
56583         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56584         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56585         dtoastr.c, ldtoastr.c.
56587 2011-01-11  Jim Meyering  <meyering@redhat.com>
56589         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56590         There is no need to work around the lack of the fchdir function,
56591         since gnulib can now provide a replacement when required.
56592         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56593         * modules/save-cwd (Depends-on): Add fchdir.
56595 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56597         openat, save-cwd: avoid xmalloc
56599         This removes a direct (but undocumented) dependency of openat on
56600         xalloc, along with an indirect dependency via save-cwd.  It also
56601         removes a dependency of save-cwd on xgetcwd, and thereby
56602         indirectly on xalloc.  This change causes the openat substitute
56603         to fall back on save_cwd when memory is tight, and for save_cwd to
56604         fail instead of dying when memory is tight, but that's good enough.
56605         Problem and initial idea for fix reported by Bastien Roucaries in
56606         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56608         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56609         xalloc.h (for xmalloc).
56610         (openat_proc_name): Use malloc, not xmalloc.
56611         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56612         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56614         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56615         This avoids heap allocation for file names whose lengths are in
56616         the range 512..1023, with the upper bound increasing to at most
56617         4031 depending on the platform's PATH_MAX.  (We do not want
56618         pathmax.h here as it might supply a non-constant PATH_MAX.)
56619         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56620         Perhaps they should be moved to malloca.h?
56621         (OPENAT_BUFFER_SIZE): Use them.
56623 2011-01-10  Bruno Haible  <bruno@clisp.org>
56625         doc: Update users.txt.
56626         * users.txt: Add recutils.
56628 2011-01-09  Karl Berry  <karl@gnu.org>
56630         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56632         * doc/configmake.texi: New file.
56633         * doc/gnulib.texi: Include it.
56634         * modules/configmake: Move documentation from here.
56636 2011-01-09  Bruno Haible  <bruno@clisp.org>
56638         Update to Unicode 6.0.0.
56639         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56640         (get_lbp): Update for Unicode 6.0.0.
56641         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56642         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56643         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56644         U+11001, U+11038..U+11046. Remove U+06DE.
56645         (uc_width): Fix bounds of planes.
56646         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56647         lib/uniwidth/width.c.
56648         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56649         trailing whitespace removed.
56650         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56651         without comments, but with the original copyright notice.
56652         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56653         * lib/unicase/ignorable.h: Likewise.
56654         * lib/unicase/tocasefold.h: Likewise.
56655         * lib/unicase/tolower.h: Likewise.
56656         * lib/unicase/totitle.h: Likewise.
56657         * lib/unicase/toupper.h: Likewise.
56658         * lib/unictype/bidi_of.h: Likewise.
56659         * lib/unictype/blocks.h: Likewise.
56660         * lib/unictype/categ_C.h: Likewise.
56661         * lib/unictype/categ_Cn.h: Likewise.
56662         * lib/unictype/categ_L.h: Likewise.
56663         * lib/unictype/categ_Ll.h: Likewise.
56664         * lib/unictype/categ_Lm.h: Likewise.
56665         * lib/unictype/categ_Lo.h: Likewise.
56666         * lib/unictype/categ_Lu.h: Likewise.
56667         * lib/unictype/categ_M.h: Likewise.
56668         * lib/unictype/categ_Mc.h: Likewise.
56669         * lib/unictype/categ_Me.h: Likewise.
56670         * lib/unictype/categ_Mn.h: Likewise.
56671         * lib/unictype/categ_N.h: Likewise.
56672         * lib/unictype/categ_Nd.h: Likewise.
56673         * lib/unictype/categ_No.h: Likewise.
56674         * lib/unictype/categ_P.h: Likewise.
56675         * lib/unictype/categ_Po.h: Likewise.
56676         * lib/unictype/categ_S.h: Likewise.
56677         * lib/unictype/categ_Sc.h: Likewise.
56678         * lib/unictype/categ_Sk.h: Likewise.
56679         * lib/unictype/categ_Sm.h: Likewise.
56680         * lib/unictype/categ_So.h: Likewise.
56681         * lib/unictype/categ_of.h: Likewise.
56682         * lib/unictype/combining.h: Likewise.
56683         * lib/unictype/ctype_alnum.h: Likewise.
56684         * lib/unictype/ctype_alpha.h: Likewise.
56685         * lib/unictype/ctype_graph.h: Likewise.
56686         * lib/unictype/ctype_lower.h: Likewise.
56687         * lib/unictype/ctype_print.h: Likewise.
56688         * lib/unictype/ctype_punct.h: Likewise.
56689         * lib/unictype/ctype_upper.h: Likewise.
56690         * lib/unictype/decdigit.h: Likewise.
56691         * lib/unictype/digit.h: Likewise.
56692         * lib/unictype/numeric.h: Likewise.
56693         * lib/unictype/pr_alphabetic.h: Likewise.
56694         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56695         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56696         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56698         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56699         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56700         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56701         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56702         * lib/unictype/pr_case_ignorable.h: Likewise.
56703         * lib/unictype/pr_cased.h: Likewise.
56704         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56705         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56706         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56707         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56708         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56709         * lib/unictype/pr_combining.h: Likewise.
56710         * lib/unictype/pr_composite.h: Likewise.
56711         * lib/unictype/pr_currency_symbol.h: Likewise.
56712         * lib/unictype/pr_decimal_digit.h: Likewise.
56713         * lib/unictype/pr_deprecated.h: Likewise.
56714         * lib/unictype/pr_format_control.h: Likewise.
56715         * lib/unictype/pr_grapheme_base.h: Likewise.
56716         * lib/unictype/pr_grapheme_extend.h: Likewise.
56717         * lib/unictype/pr_grapheme_link.h: Likewise.
56718         * lib/unictype/pr_id_continue.h: Likewise.
56719         * lib/unictype/pr_id_start.h: Likewise.
56720         * lib/unictype/pr_ideographic.h: Likewise.
56721         * lib/unictype/pr_lowercase.h: Likewise.
56722         * lib/unictype/pr_math.h: Likewise.
56723         * lib/unictype/pr_numeric.h: Likewise.
56724         * lib/unictype/pr_other_alphabetic.h: Likewise.
56725         * lib/unictype/pr_other_id_continue.h: Likewise.
56726         * lib/unictype/pr_other_math.h: Likewise.
56727         * lib/unictype/pr_punctuation.h: Likewise.
56728         * lib/unictype/pr_sentence_terminal.h: Likewise.
56729         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56730         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56731         * lib/unictype/pr_unified_ideograph.h: Likewise.
56732         * lib/unictype/pr_uppercase.h: Likewise.
56733         * lib/unictype/pr_xid_continue.h: Likewise.
56734         * lib/unictype/pr_xid_start.h: Likewise.
56735         * lib/unictype/scripts.h: Likewise.
56736         * lib/unictype/scripts_byname.gperf: Likewise.
56737         * lib/unictype/sy_java_ident.h: Likewise.
56738         * lib/unigbrk/gbrkprop.h: Likewise.
56739         * lib/unilbrk/lbrkprop1.h: Likewise.
56740         * lib/unilbrk/lbrkprop2.h: Likewise.
56741         * lib/uninorm/decomposition-table2.h: Likewise.
56742         * lib/uniwbrk/wbrkprop.h: Likewise.
56743         * tests/unicase/test-cased.c: Likewise.
56744         * tests/unicase/test-ignorable.c: Likewise.
56745         * tests/unicase/test-uc_tolower.c: Likewise.
56746         * tests/unicase/test-uc_totitle.c: Likewise.
56747         * tests/unicase/test-uc_toupper.c: Likewise.
56748         * tests/unictype/test-categ_C.c: Likewise.
56749         * tests/unictype/test-categ_Cn.c: Likewise.
56750         * tests/unictype/test-categ_L.c: Likewise.
56751         * tests/unictype/test-categ_Ll.c: Likewise.
56752         * tests/unictype/test-categ_Lm.c: Likewise.
56753         * tests/unictype/test-categ_Lo.c: Likewise.
56754         * tests/unictype/test-categ_Lu.c: Likewise.
56755         * tests/unictype/test-categ_M.c: Likewise.
56756         * tests/unictype/test-categ_Mc.c: Likewise.
56757         * tests/unictype/test-categ_Me.c: Likewise.
56758         * tests/unictype/test-categ_Mn.c: Likewise.
56759         * tests/unictype/test-categ_N.c: Likewise.
56760         * tests/unictype/test-categ_Nd.c: Likewise.
56761         * tests/unictype/test-categ_No.c: Likewise.
56762         * tests/unictype/test-categ_P.c: Likewise.
56763         * tests/unictype/test-categ_Po.c: Likewise.
56764         * tests/unictype/test-categ_S.c: Likewise.
56765         * tests/unictype/test-categ_Sc.c: Likewise.
56766         * tests/unictype/test-categ_Sk.c: Likewise.
56767         * tests/unictype/test-categ_Sm.c: Likewise.
56768         * tests/unictype/test-categ_So.c: Likewise.
56769         * tests/unictype/test-ctype_alnum.c: Likewise.
56770         * tests/unictype/test-ctype_alpha.c: Likewise.
56771         * tests/unictype/test-ctype_graph.c: Likewise.
56772         * tests/unictype/test-ctype_lower.c: Likewise.
56773         * tests/unictype/test-ctype_print.c: Likewise.
56774         * tests/unictype/test-ctype_punct.c: Likewise.
56775         * tests/unictype/test-ctype_upper.c: Likewise.
56776         * tests/unictype/test-decdigit.h: Likewise.
56777         * tests/unictype/test-digit.h: Likewise.
56778         * tests/unictype/test-numeric.h: Likewise.
56779         * tests/unictype/test-pr_alphabetic.c: Likewise.
56780         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56781         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56782         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56783         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56784         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56785         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56786         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56787         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56788         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56789         * tests/unictype/test-pr_cased.c: Likewise.
56790         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56791         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56792         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56793         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56794         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56795         * tests/unictype/test-pr_combining.c: Likewise.
56796         * tests/unictype/test-pr_composite.c: Likewise.
56797         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56798         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56799         * tests/unictype/test-pr_deprecated.c: Likewise.
56800         * tests/unictype/test-pr_format_control.c: Likewise.
56801         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56802         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56803         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56804         * tests/unictype/test-pr_id_continue.c: Likewise.
56805         * tests/unictype/test-pr_id_start.c: Likewise.
56806         * tests/unictype/test-pr_ideographic.c: Likewise.
56807         * tests/unictype/test-pr_lowercase.c: Likewise.
56808         * tests/unictype/test-pr_math.c: Likewise.
56809         * tests/unictype/test-pr_numeric.c: Likewise.
56810         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56811         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56812         * tests/unictype/test-pr_other_math.c: Likewise.
56813         * tests/unictype/test-pr_punctuation.c: Likewise.
56814         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56815         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56816         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56817         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56818         * tests/unictype/test-pr_uppercase.c: Likewise.
56819         * tests/unictype/test-pr_xid_continue.c: Likewise.
56820         * tests/unictype/test-pr_xid_start.c: Likewise.
56821         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56822         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56823         changes.
56824         * lib/unictype/categ_Cc.h: Likewise.
56825         * lib/unictype/categ_Cf.h: Likewise.
56826         * lib/unictype/categ_Co.h: Likewise.
56827         * lib/unictype/categ_Cs.h: Likewise.
56828         * lib/unictype/categ_Lt.h: Likewise.
56829         * lib/unictype/categ_Nl.h: Likewise.
56830         * lib/unictype/categ_Pc.h: Likewise.
56831         * lib/unictype/categ_Pd.h: Likewise.
56832         * lib/unictype/categ_Pe.h: Likewise.
56833         * lib/unictype/categ_Pf.h: Likewise.
56834         * lib/unictype/categ_Pi.h: Likewise.
56835         * lib/unictype/categ_Ps.h: Likewise.
56836         * lib/unictype/categ_Z.h: Likewise.
56837         * lib/unictype/categ_Zl.h: Likewise.
56838         * lib/unictype/categ_Zp.h: Likewise.
56839         * lib/unictype/categ_Zs.h: Likewise.
56840         * lib/unictype/ctype_blank.h: Likewise.
56841         * lib/unictype/ctype_cntrl.h: Likewise.
56842         * lib/unictype/ctype_digit.h: Likewise.
56843         * lib/unictype/ctype_space.h: Likewise.
56844         * lib/unictype/ctype_xdigit.h: Likewise.
56845         * lib/unictype/mirror.h: Likewise.
56846         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56847         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56848         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56849         * lib/unictype/pr_bidi_control.h: Likewise.
56850         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56851         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56852         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56853         * lib/unictype/pr_bidi_pdf.h: Likewise.
56854         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56855         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56856         * lib/unictype/pr_dash.h: Likewise.
56857         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56858         * lib/unictype/pr_diacritic.h: Likewise.
56859         * lib/unictype/pr_extender.h: Likewise.
56860         * lib/unictype/pr_hex_digit.h: Likewise.
56861         * lib/unictype/pr_hyphen.h: Likewise.
56862         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56863         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56864         * lib/unictype/pr_ignorable_control.h: Likewise.
56865         * lib/unictype/pr_iso_control.h: Likewise.
56866         * lib/unictype/pr_join_control.h: Likewise.
56867         * lib/unictype/pr_left_of_pair.h: Likewise.
56868         * lib/unictype/pr_line_separator.h: Likewise.
56869         * lib/unictype/pr_logical_order_exception.h: Likewise.
56870         * lib/unictype/pr_non_break.h: Likewise.
56871         * lib/unictype/pr_not_a_character.h: Likewise.
56872         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56873         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56874         * lib/unictype/pr_other_id_start.h: Likewise.
56875         * lib/unictype/pr_other_lowercase.h: Likewise.
56876         * lib/unictype/pr_other_uppercase.h: Likewise.
56877         * lib/unictype/pr_paired_punctuation.h: Likewise.
56878         * lib/unictype/pr_paragraph_separator.h: Likewise.
56879         * lib/unictype/pr_pattern_syntax.h: Likewise.
56880         * lib/unictype/pr_pattern_white_space.h: Likewise.
56881         * lib/unictype/pr_private_use.h: Likewise.
56882         * lib/unictype/pr_quotation_mark.h: Likewise.
56883         * lib/unictype/pr_radical.h: Likewise.
56884         * lib/unictype/pr_soft_dotted.h: Likewise.
56885         * lib/unictype/pr_space.h: Likewise.
56886         * lib/unictype/pr_titlecase.h: Likewise.
56887         * lib/unictype/pr_variation_selector.h: Likewise.
56888         * lib/unictype/pr_white_space.h: Likewise.
56889         * lib/unictype/pr_zero_width.h: Likewise.
56890         * lib/unictype/sy_c_ident.h: Likewise.
56891         * lib/unictype/sy_c_whitespace.h: Likewise.
56892         * lib/unictype/sy_java_whitespace.h: Likewise.
56893         * lib/uninorm/composition-table.gperf: Likewise.
56894         * lib/uninorm/decomposition-table1.h: Likewise.
56895         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56896         LB8.
56897         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56898         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56899         * modules/unictype/*: Bump version number of expected libunistring
56900         version.
56902 2011-01-09  Bruno Haible  <bruno@clisp.org>
56904         Update to Unicode 5.2.0.
56905         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56906         trailing whitespace removed.
56908 2011-01-09  Bruno Haible  <bruno@clisp.org>
56910         New Unicode character properties, from Unicode 5.2.0.
56911         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56912         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56913         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56914         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56915         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56916         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56917         uc_is_property_cased, uc_is_property_case_ignorable,
56918         uc_is_property_changes_when_lowercased,
56919         uc_is_property_changes_when_uppercased,
56920         uc_is_property_changes_when_titlecased,
56921         uc_is_property_changes_when_casefolded,
56922         uc_is_property_changes_when_casemapped): New declarations.
56923         * lib/unictype/pr_byname.gperf: Add the new properties.
56924         * modules/unictype/property-byname (Depends-on): Depend on the new
56925         properties modules.
56926         * modules/unictype/property-all (Depends-on): Likewise.
56927         * MODULES.html.sh (Unicode string functions): Add
56928         unictype/property-case-ignorable, unictype/property-cased,
56929         unictype/property-changes-when-casefolded,
56930         unictype/property-changes-when-casemapped,
56931         unictype/property-changes-when-lowercased,
56932         unictype/property-changes-when-titlecased,
56933         unictype/property-changes-when-uppercased.
56935         New module 'unictype/property-changes-when-casemapped'.
56936         * modules/unictype/property-changes-when-casemapped: New file.
56937         * lib/unictype/pr_changes_when_casemapped.c: New file.
56938         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56939         generated by gen-uni-tables.
56940         * modules/unictype/property-changes-when-casemapped-tests: New file.
56941         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56942         automatically generated by gen-uni-tables.
56944         New module 'unictype/property-changes-when-casefolded'.
56945         * modules/unictype/property-changes-when-casefolded: New file.
56946         * lib/unictype/pr_changes_when_casefolded.c: New file.
56947         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56948         generated by gen-uni-tables.
56949         * modules/unictype/property-changes-when-casefolded-tests: New file.
56950         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56951         automatically generated by gen-uni-tables.
56953         New module 'unictype/property-changes-when-titlecased'.
56954         * modules/unictype/property-changes-when-titlecased: New file.
56955         * lib/unictype/pr_changes_when_titlecased.c: New file.
56956         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56957         generated by gen-uni-tables.
56958         * modules/unictype/property-changes-when-titlecased-tests: New file.
56959         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56960         automatically generated by gen-uni-tables.
56962         New module 'unictype/property-changes-when-uppercased'.
56963         * modules/unictype/property-changes-when-uppercased: New file.
56964         * lib/unictype/pr_changes_when_uppercased.c: New file.
56965         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56966         generated by gen-uni-tables.
56967         * modules/unictype/property-changes-when-uppercased-tests: New file.
56968         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
56969         automatically generated by gen-uni-tables.
56971         New module 'unictype/property-changes-when-lowercased'.
56972         * modules/unictype/property-changes-when-lowercased: New file.
56973         * lib/unictype/pr_changes_when_lowercased.c: New file.
56974         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
56975         generated by gen-uni-tables.
56976         * modules/unictype/property-changes-when-lowercased-tests: New file.
56977         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
56978         automatically generated by gen-uni-tables.
56980         New module 'unictype/property-case-ignorable'.
56981         * modules/unictype/property-case-ignorable: New file.
56982         * lib/unictype/pr_case_ignorable.c: New file.
56983         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
56984         by gen-uni-tables.
56985         * modules/unictype/property-case-ignorable-tests: New file.
56986         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
56987         generated by gen-uni-tables.
56989         New module 'unictype/property-cased'.
56990         * modules/unictype/property-cased: New file.
56991         * lib/unictype/pr_cased.c: New file.
56992         * lib/unictype/pr_cased.h: New file, automatically generated by
56993         gen-uni-tables.
56994         * modules/unictype/property-cased-tests: New file.
56995         * tests/unictype/test-pr_cased.c: New file, automatically generated by
56996         gen-uni-tables.
56998 2011-01-09  Bruno Haible  <bruno@clisp.org>
57000         Update to Unicode 5.2.0.
57001         * lib/gen-uni-tables.c (output_predicate, output_category,
57002         output_combclass, output_bidi_category, output_decimal_digit_test,
57003         output_decimal_digit, output_digit_test, output_digit,
57004         output_numeric_test, output_numeric, output_mirror, output_scripts,
57005         output_scripts_byname, output_blocks, output_ident_category): Fix
57006         comment header.
57007         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57008         get_wbp.
57009         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57010         items.
57011         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57012         Changes_When_Lowercased, Changes_When_Uppercased,
57013         Changes_When_Titlecased, Changes_When_Casefolded,
57014         Changes_When_Casemapped.
57015         (is_property_alphabetic, is_property_default_ignorable_code_point):
57016         Update for Unicode 5.2.0.
57017         (is_property_cased, is_property_case_ignorable,
57018         is_property_changes_when_lowercased,
57019         is_property_changes_when_uppercased,
57020         is_property_changes_when_titlecased,
57021         is_property_changes_when_casefolded,
57022         is_property_changes_when_casemapped): New functions.
57023         (output_properties): Output also the properties cased, case_ignorable,
57024         changes_when_lowercased, changes_when_uppercased,
57025         changes_when_titlecased, changes_when_casefolded,
57026         changes_when_casemapped.
57027         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57028         Unicode TR#11 revision 17 -> 19.
57029         (LBP_CP): New enumeration value.
57030         (LBP_*): Adjust values accordingly.
57031         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57032         TR#14 revision 22 -> 24.
57033         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57034         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57035         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57036         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57037         is_WBP_MIDLETTER.
57038         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57039         the code1 and code2 of each composition rule.
57040         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57041         * lib/unicase/ignorable.h: Likewise.
57042         * lib/unicase/tocasefold.h: Likewise.
57043         * lib/unicase/tolower.h: Likewise.
57044         * lib/unicase/totitle.h: Likewise.
57045         * lib/unicase/toupper.h: Likewise.
57046         * lib/unictype/bidi_of.h: Likewise.
57047         * lib/unictype/blocks.h: Likewise.
57048         * lib/unictype/categ_C.h: Likewise.
57049         * lib/unictype/categ_Cf.h: Likewise.
57050         * lib/unictype/categ_Cn.h: Likewise.
57051         * lib/unictype/categ_L.h: Likewise.
57052         * lib/unictype/categ_Ll.h: Likewise.
57053         * lib/unictype/categ_Lm.h: Likewise.
57054         * lib/unictype/categ_Lo.h: Likewise.
57055         * lib/unictype/categ_Lu.h: Likewise.
57056         * lib/unictype/categ_M.h: Likewise.
57057         * lib/unictype/categ_Mc.h: Likewise.
57058         * lib/unictype/categ_Mn.h: Likewise.
57059         * lib/unictype/categ_N.h: Likewise.
57060         * lib/unictype/categ_Nd.h: Likewise.
57061         * lib/unictype/categ_Nl.h: Likewise.
57062         * lib/unictype/categ_No.h: Likewise.
57063         * lib/unictype/categ_P.h: Likewise.
57064         * lib/unictype/categ_Pd.h: Likewise.
57065         * lib/unictype/categ_Po.h: Likewise.
57066         * lib/unictype/categ_S.h: Likewise.
57067         * lib/unictype/categ_Sc.h: Likewise.
57068         * lib/unictype/categ_So.h: Likewise.
57069         * lib/unictype/categ_of.h: Likewise.
57070         * lib/unictype/combining.h: Likewise.
57071         * lib/unictype/ctype_alnum.h: Likewise.
57072         * lib/unictype/ctype_alpha.h: Likewise.
57073         * lib/unictype/ctype_graph.h: Likewise.
57074         * lib/unictype/ctype_lower.h: Likewise.
57075         * lib/unictype/ctype_print.h: Likewise.
57076         * lib/unictype/ctype_punct.h: Likewise.
57077         * lib/unictype/ctype_upper.h: Likewise.
57078         * lib/unictype/decdigit.h: Likewise.
57079         * lib/unictype/digit.h: Likewise.
57080         * lib/unictype/numeric.h: Likewise.
57081         * lib/unictype/pr_alphabetic.h: Likewise.
57082         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57083         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57084         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57085         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57086         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57087         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57088         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57089         * lib/unictype/pr_combining.h: Likewise.
57090         * lib/unictype/pr_composite.h: Likewise.
57091         * lib/unictype/pr_currency_symbol.h: Likewise.
57092         * lib/unictype/pr_dash.h: Likewise.
57093         * lib/unictype/pr_decimal_digit.h: Likewise.
57094         * lib/unictype/pr_deprecated.h: Likewise.
57095         * lib/unictype/pr_diacritic.h: Likewise.
57096         * lib/unictype/pr_extender.h: Likewise.
57097         * lib/unictype/pr_grapheme_base.h: Likewise.
57098         * lib/unictype/pr_grapheme_extend.h: Likewise.
57099         * lib/unictype/pr_grapheme_link.h: Likewise.
57100         * lib/unictype/pr_id_continue.h: Likewise.
57101         * lib/unictype/pr_id_start.h: Likewise.
57102         * lib/unictype/pr_ideographic.h: Likewise.
57103         * lib/unictype/pr_ignorable_control.h: Likewise.
57104         * lib/unictype/pr_logical_order_exception.h: Likewise.
57105         * lib/unictype/pr_lowercase.h: Likewise.
57106         * lib/unictype/pr_numeric.h: Likewise.
57107         * lib/unictype/pr_other_alphabetic.h: Likewise.
57108         * lib/unictype/pr_punctuation.h: Likewise.
57109         * lib/unictype/pr_sentence_terminal.h: Likewise.
57110         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57111         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57112         * lib/unictype/pr_unified_ideograph.h: Likewise.
57113         * lib/unictype/pr_uppercase.h: Likewise.
57114         * lib/unictype/pr_xid_continue.h: Likewise.
57115         * lib/unictype/pr_xid_start.h: Likewise.
57116         * lib/unictype/pr_zero_width.h: Likewise.
57117         * lib/unictype/scripts.h: Likewise.
57118         * lib/unictype/scripts_byname.gperf: Likewise.
57119         * lib/unictype/sy_java_ident.h: Likewise.
57120         * lib/unigbrk/gbrkprop.h: Likewise.
57121         * lib/unilbrk/lbrkprop1.h: Likewise.
57122         * lib/unilbrk/lbrkprop2.h: Likewise.
57123         * lib/unilbrk/lbrktables.h: Likewise.
57124         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57125         LBP_CP. Implement rule LB30.
57126         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57127         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57128         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57129         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57130         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57131         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57132         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57133         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57134         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57135         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57136         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57137         bits instead of 16 bits in the code1 and code2 of each composition
57138         rule.
57139         (uc_composition): Update for Unicode 5.2.0.
57140         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57141         * lib/uninorm/decomposition-table2.h: Likewise.
57142         * lib/uniwbrk/wbrkprop.h: Likewise.
57143         * tests/unicase/test-cased.c: Likewise.
57144         * tests/unicase/test-ignorable.c: Likewise.
57145         * tests/unicase/test-uc_tolower.c: Likewise.
57146         * tests/unicase/test-uc_totitle.c: Likewise.
57147         * tests/unicase/test-uc_toupper.c: Likewise.
57148         * tests/unictype/test-categ_C.c: Likewise.
57149         * tests/unictype/test-categ_Cf.c: Likewise.
57150         * tests/unictype/test-categ_Cn.c: Likewise.
57151         * tests/unictype/test-categ_L.c: Likewise.
57152         * tests/unictype/test-categ_Ll.c: Likewise.
57153         * tests/unictype/test-categ_Lm.c: Likewise.
57154         * tests/unictype/test-categ_Lo.c: Likewise.
57155         * tests/unictype/test-categ_Lu.c: Likewise.
57156         * tests/unictype/test-categ_M.c: Likewise.
57157         * tests/unictype/test-categ_Mc.c: Likewise.
57158         * tests/unictype/test-categ_Mn.c: Likewise.
57159         * tests/unictype/test-categ_N.c: Likewise.
57160         * tests/unictype/test-categ_Nd.c: Likewise.
57161         * tests/unictype/test-categ_Nl.c: Likewise.
57162         * tests/unictype/test-categ_No.c: Likewise.
57163         * tests/unictype/test-categ_P.c: Likewise.
57164         * tests/unictype/test-categ_Pd.c: Likewise.
57165         * tests/unictype/test-categ_Po.c: Likewise.
57166         * tests/unictype/test-categ_S.c: Likewise.
57167         * tests/unictype/test-categ_Sc.c: Likewise.
57168         * tests/unictype/test-categ_So.c: Likewise.
57169         * tests/unictype/test-ctype_alnum.c: Likewise.
57170         * tests/unictype/test-ctype_alpha.c: Likewise.
57171         * tests/unictype/test-ctype_graph.c: Likewise.
57172         * tests/unictype/test-ctype_lower.c: Likewise.
57173         * tests/unictype/test-ctype_print.c: Likewise.
57174         * tests/unictype/test-ctype_punct.c: Likewise.
57175         * tests/unictype/test-ctype_upper.c: Likewise.
57176         * tests/unictype/test-decdigit.h: Likewise.
57177         * tests/unictype/test-digit.h: Likewise.
57178         * tests/unictype/test-numeric.h: Likewise.
57179         * tests/unictype/test-pr_alphabetic.c: Likewise.
57180         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57181         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57182         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57183         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57184         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57185         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57186         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57187         * tests/unictype/test-pr_combining.c: Likewise.
57188         * tests/unictype/test-pr_composite.c: Likewise.
57189         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57190         * tests/unictype/test-pr_dash.c: Likewise.
57191         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57192         * tests/unictype/test-pr_deprecated.c: Likewise.
57193         * tests/unictype/test-pr_diacritic.c: Likewise.
57194         * tests/unictype/test-pr_extender.c: Likewise.
57195         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57196         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57197         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57198         * tests/unictype/test-pr_id_continue.c: Likewise.
57199         * tests/unictype/test-pr_id_start.c: Likewise.
57200         * tests/unictype/test-pr_ideographic.c: Likewise.
57201         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57202         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57203         * tests/unictype/test-pr_lowercase.c: Likewise.
57204         * tests/unictype/test-pr_numeric.c: Likewise.
57205         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57206         * tests/unictype/test-pr_punctuation.c: Likewise.
57207         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57208         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57209         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57210         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57211         * tests/unictype/test-pr_uppercase.c: Likewise.
57212         * tests/unictype/test-pr_xid_continue.c: Likewise.
57213         * tests/unictype/test-pr_xid_start.c: Likewise.
57214         * tests/unictype/test-pr_zero_width.c: Likewise.
57215         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57216         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57217         changed behaviour: line breaking is now disallowed between a letter
57218         or '=' and '('.
57219         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57220         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57221         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57222         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57223         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57224         lib/uniwidth/width.c.
57225         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57226         without comments, but with the original copyright notice.
57227         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57228         changes.
57229         * lib/unictype/categ_Cc.h: Likewise.
57230         * lib/unictype/categ_Co.h: Likewise.
57231         * lib/unictype/categ_Cs.h: Likewise.
57232         * lib/unictype/categ_Lt.h: Likewise.
57233         * lib/unictype/categ_Me.h: Likewise.
57234         * lib/unictype/categ_Pc.h: Likewise.
57235         * lib/unictype/categ_Pe.h: Likewise.
57236         * lib/unictype/categ_Pf.h: Likewise.
57237         * lib/unictype/categ_Pi.h: Likewise.
57238         * lib/unictype/categ_Ps.h: Likewise.
57239         * lib/unictype/categ_Sk.h: Likewise.
57240         * lib/unictype/categ_Sm.h: Likewise.
57241         * lib/unictype/categ_Z.h: Likewise.
57242         * lib/unictype/categ_Zl.h: Likewise.
57243         * lib/unictype/categ_Zp.h: Likewise.
57244         * lib/unictype/categ_Zs.h: Likewise.
57245         * lib/unictype/ctype_blank.h: Likewise.
57246         * lib/unictype/ctype_cntrl.h: Likewise.
57247         * lib/unictype/ctype_digit.h: Likewise.
57248         * lib/unictype/ctype_space.h: Likewise.
57249         * lib/unictype/ctype_xdigit.h: Likewise.
57250         * lib/unictype/mirror.h: Likewise.
57251         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57252         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57253         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57254         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57255         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57256         * lib/unictype/pr_bidi_control.h: Likewise.
57257         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57258         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57259         * lib/unictype/pr_bidi_pdf.h: Likewise.
57260         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57261         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57262         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57263         * lib/unictype/pr_format_control.h: Likewise.
57264         * lib/unictype/pr_hex_digit.h: Likewise.
57265         * lib/unictype/pr_hyphen.h: Likewise.
57266         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57267         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57268         * lib/unictype/pr_iso_control.h: Likewise.
57269         * lib/unictype/pr_join_control.h: Likewise.
57270         * lib/unictype/pr_left_of_pair.h: Likewise.
57271         * lib/unictype/pr_line_separator.h: Likewise.
57272         * lib/unictype/pr_math.h: Likewise.
57273         * lib/unictype/pr_non_break.h: Likewise.
57274         * lib/unictype/pr_not_a_character.h: Likewise.
57275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57277         * lib/unictype/pr_other_id_continue.h: Likewise.
57278         * lib/unictype/pr_other_id_start.h: Likewise.
57279         * lib/unictype/pr_other_lowercase.h: Likewise.
57280         * lib/unictype/pr_other_math.h: Likewise.
57281         * lib/unictype/pr_other_uppercase.h: Likewise.
57282         * lib/unictype/pr_paired_punctuation.h: Likewise.
57283         * lib/unictype/pr_paragraph_separator.h: Likewise.
57284         * lib/unictype/pr_pattern_syntax.h: Likewise.
57285         * lib/unictype/pr_pattern_white_space.h: Likewise.
57286         * lib/unictype/pr_private_use.h: Likewise.
57287         * lib/unictype/pr_quotation_mark.h: Likewise.
57288         * lib/unictype/pr_radical.h: Likewise.
57289         * lib/unictype/pr_soft_dotted.h: Likewise.
57290         * lib/unictype/pr_space.h: Likewise.
57291         * lib/unictype/pr_titlecase.h: Likewise.
57292         * lib/unictype/pr_variation_selector.h: Likewise.
57293         * lib/unictype/pr_white_space.h: Likewise.
57294         * lib/unictype/sy_c_ident.h: Likewise.
57295         * lib/unictype/sy_c_whitespace.h: Likewise.
57296         * lib/unictype/sy_java_whitespace.h: Likewise.
57297         * modules/uni*/*: Bump version number of expected libunistring version.
57298         Reported by Simon Josefsson.
57300 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57302         useless-if-before-free: fix typo in --help and make the internal,
57303         automatic version date update process work once again.
57304         --help output contained a NUL character instead of the
57305         backslash-zero that was intended.  Also, the "must lie within
57306         the first 8 lines" line is on line 9, and hence not getting
57307         automatically updated.
57308         * build-aux/useless-if-before-free: Fix the former by adding a
57309         backslash, and the latter by condensing the three lines of what-it-does
57310         to a single line, leaving one line of slack for the future.
57312 2011-01-09  Bruno Haible  <bruno@clisp.org>
57314         uniwidth/width: Fix width of U+1D173..U+1D17A.
57315         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57316         symbolic_width, output_width_property_test): New functions.
57317         (main): Invoke output_nonspacing_property, output_width_property_test.
57318         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57319         U+1D173..U+1D17A.
57320         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57321         1.
57322         * modules/uniwidth/*: Bump version number of expected libunistring
57323         version.
57324         * modules/unilbrk/*: Likewise.
57326 2011-01-08  Bruno Haible  <bruno@clisp.org>
57328         uninorm tests: Preserve copyright of Unicode data file.
57329         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57330         Mention modifications.
57332 2011-01-08  Bruno Haible  <bruno@clisp.org>
57334         gen-uni-tables: Prepare for Unicode 5.2.0.
57335         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57336         (debug_output_lbp, output_lbp): Update.
57338 2011-01-08  Bruno Haible  <bruno@clisp.org>
57340         unilbrk: Clarify gen-uni-tables.c code.
57341         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57342         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57343         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57345 2011-01-07  Bruno Haible  <bruno@clisp.org>
57347         strtod: Restore errno when successfully parsing Infinity or NaN.
57348         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57349         restore the original errno.
57351 2011-01-07  Bruno Haible  <bruno@clisp.org>
57353         remove test: Avoid failure on HP-UX 11.
57354         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57356 2011-01-07  Bruno Haible  <bruno@clisp.org>
57358         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57359         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57360         error code.
57362 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57364         ignore-value: fixup comments, and add Eric Blake
57365         as an author since he rewrote the macros.
57366         * lib/ignore-value.h (ignore_value):  State that
57367         we now support aggregates.  Also specify exactly
57368         when the GCC warn_unused_result feature was added.
57370 2011-01-06  Eric Blake  <eblake@redhat.com>
57372         ignore-value: support aggregate types
57373         * lib/ignore-value.h (ignore_value): Provide separate gcc
57374         definition.
57375         * modules/ignore-value-tests: New test module.
57376         * tests/test-ignore-value.c: New test.
57378         maint.mk: improve sc_prohibit_strcmp regex
57379         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57380         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57381         definition of STRNEQ.
57383         signal: work around Haiku issue with SIGBUS
57384         * lib/siglist.h: Add comment.
57385         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57386         strsignal's favoring of SIGSEGV.
57387         * tests/test-signal.c (main): Avoid test failure.
57388         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57389         Reported by Scott McCreary.
57391         maint.mk: add pre-release check to ensure submodule commits are public
57392         * top/maint.mk (public-submodule-commit): New rule.
57393         (submodule-checks): New variable.
57394         (alpha beta stable): Depend on the variable.
57396 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57397         and Jim Meyering  <meyering@redhat.com>
57399         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57400         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57401         (ATTRIBUTE_DEPRECATED): Define.
57402         (_ignore_case): New function.
57403         (ignore_value): New macro, to replace the old function.
57404         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57405         * modules/ignore-value (Depends-on): Add stdint.
57407 2011-01-04  Eric Blake  <eblake@redhat.com>
57409         doc: regenerate INSTALL
57410         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57411         @firstparagraphindent support, now that autoconf dropped it.
57412         (INSTALL_PRELUDE): Reinstate old macro.
57413         * doc/install.texi: Resync from autoconf.
57414         * doc/INSTALL: Reflect recent autoconf update.
57415         * doc/INSTALL.ISO: Likewise.
57416         * doc/INSTALL.UTF-8: Likewise.
57417         Reported by Karl Berry.
57419 2011-01-04  Bruce Korb  <address@hidden>
57421         git-version-gen: avoid a sub-shell
57422         * build-aux/git-version-gen: Redirect stderr in `...` via
57423         "exec 2>...", rather than via an added sub-shell.
57425 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57427         git-version-gen: use (...) rather than sh -c '...'
57428         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57429         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57431 2011-01-03  Jim Meyering  <meyering@redhat.com>
57433         git-version-gen: convert leading TABs to spaces
57434         * build-aux/git-version-gen: Expand leading TABs.
57436         git-version-gen: handle failed "git rev-list"
57437         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57438         from git and proceeding as if it had succeeded but printed no SHA1
57439         checksums, suppress the diagnostic and handle the failure.
57440         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57442         git-version-gen: include command name in one more diagnostic
57443         * build-aux/git-version-gen: When the required .tarball-version file
57444         was missing or unreadable, you might see the diagnostic from "cat",
57445         but no trace of the name of the invoking script.  Now, you still see
57446         the diagnostic from cat, but also get one from "git-version-gen: ".
57447         Inspired by a patch from Bruce Korb.
57449         update-copyright: adjust test to match changed code
57450         * tests/test-update-copyright.sh: Change test's expected output
57451         to match new actual output.
57453 2011-01-02  Bruno Haible  <bruno@clisp.org>
57455         getlogin_r: Avoid test failure on HP-UX 11.
57456         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57457         ERANGE when the second argument is zero.
57458         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57459         portability problem.
57461 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57463         * build-aux/update-copyright: doc Simon's changes
57465 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57467         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57468         environment variable.
57470 2011-01-02  Bruno Haible  <bruno@clisp.org>
57472         unigbrk: Avoid gcc warnings.
57473         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57474         unused variable.
57475         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57476         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57477         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57478         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57479         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57480         Change type of first argument to 'const char *'.
57481         (main): Remove unused variable.
57482         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57483         type of first argument to 'const char *'.
57484         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57485         Likewise.
57486         (main): Change type of variable 's'.
57487         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57488         to 'int'.
57490 2011-01-02  Bruno Haible  <bruno@clisp.org>
57492         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57493         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57494         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57495         bug.
57496         * lib/pwrite.c: Undo 2010-12-31 patch.
57497         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57499 2011-01-02  Bruno Haible  <bruno@clisp.org>
57501         pread: Fix test whether it works.
57502         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57504 2011-01-02  Bruno Haible  <bruno@clisp.org>
57506         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57507         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57508         ends in "6". Don't require a specific month name. Try also the locale
57509         names found on HP-UX 11 and Solaris 7.
57511 2011-01-02  Bruno Haible  <bruno@clisp.org>
57513         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57514         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57515         C linkage.
57516         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57518 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57520         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57521         for consistency, since the "cluster" term is not used elsewhere.
57522         * lib/unigbrk.in.h: Update name.
57523         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57524         * lib/unigbrk/u16-grapheme-next.c: Update name.
57525         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57526         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57527         * lib/unigbrk/u32-grapheme-next.c: Update name.
57528         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57529         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57530         * lib/unigbrk/u8-grapheme-next.c: Update name.
57531         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57532         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57533         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57534         Suggested by Bruno Haible.
57536 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57538         Remove module 'u8-grapheme-len' as too redundant with
57539         'u8-grapheme-next'.
57540         * modules/unigbrk/u8-grapheme-len: Delete file.
57541         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57542         * lib/unigbrk.in.h: Remove prototype for deleted function.
57543         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57544         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57546         Remove module 'u16-grapheme-len' as too redundant with
57547         'u16-grapheme-next'.
57548         * modules/unigbrk/u16-grapheme-len: Delete file.
57549         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57550         * lib/unigbrk.in.h: Remove prototype for deleted function.
57551         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57552         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57554         Remove module 'u32-grapheme-len' as too redundant with
57555         'u32-grapheme-next'.
57556         * modules/unigbrk/u32-grapheme-len: Delete file.
57557         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57558         * lib/unigbrk.in.h: Remove prototype for deleted function.
57559         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57560         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57562         Suggested by Bruno Haible.
57564 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57566         * unigbrk.in.h: Fix typo: "ben" => "been".
57567         Reported by Bruno Haible.
57569 2011-01-01  Jim Meyering  <meyering@redhat.com>
57571         maint: update almost all copyright ranges to include 2011
57572         Run the new "make update-copyright" rule.
57574 2011-01-01  Jim Meyering  <meyering@redhat.com>
57576         maint: update-copyright: exempt doc/INSTALL*
57577         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57578         since they are generated.  Suggested by Bruno Haible.
57580 2011-01-01  Jim Meyering  <meyering@redhat.com>
57582         maint: refine the update-copyright rule
57583         * Makefile (update-copyright): Also exclude any file that includes
57584         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57585         code that merely generates the comment.
57587 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57589         New module 'u8-grapheme-len'.
57590         * modules/unigbrk/u8-grapheme-len: New file.
57591         * modules/unigbrk/u8-grapheme-len-tests: New file.
57592         * lib/unigbrk.in.h: Add prototype for new function.
57593         * lib/unigbrk/u8-grapheme-len.c: New file.
57594         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57596         New module 'u16-grapheme-len'.
57597         * modules/unigbrk/u16-grapheme-len: New file.
57598         * modules/unigbrk/u16-grapheme-len-tests: New file.
57599         * lib/unigbrk.in.h: Add prototype for new function.
57600         * lib/unigbrk/u16-grapheme-len.c: New file.
57601         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57603         New module 'u32-grapheme-len'.
57604         * modules/unigbrk/u32-grapheme-len: New file.
57605         * modules/unigbrk/u32-grapheme-len-tests: New file.
57606         * lib/unigbrk.in.h: Add prototype for new function.
57607         * lib/unigbrk/u32-grapheme-len.c: New file.
57608         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57610         New module 'u8-grapheme-next'.
57611         * modules/unigbrk/u8-grapheme-next: New file.
57612         * modules/unigbrk/u8-grapheme-next-tests: New file.
57613         * lib/unigbrk.in.h: Add prototype for new function.
57614         * lib/unigbrk/u8-grapheme-next.c: New file.
57615         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57617         New module 'u16-grapheme-next'.
57618         * modules/unigbrk/u16-grapheme-next: New file.
57619         * modules/unigbrk/u16-grapheme-next-tests: New file.
57620         * lib/unigbrk.in.h: Add prototype for new function.
57621         * lib/unigbrk/u16-grapheme-next.c: New file.
57622         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57624         New module 'u32-grapheme-next'.
57625         * modules/unigbrk/u32-grapheme-next: New file.
57626         * modules/unigbrk/u32-grapheme-next-tests: New file.
57627         * lib/unigbrk.in.h: Add prototype for new function.
57628         * lib/unigbrk/u32-grapheme-next.c: New file.
57629         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57631         New module 'u8-grapheme-prev'.
57632         * modules/unigbrk/u8-grapheme-prev: New file.
57633         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57634         * lib/unigbrk.in.h: Add prototype for new function.
57635         * lib/unigbrk/u8-grapheme-prev.c: New file.
57636         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57638         New module 'u16-grapheme-prev'.
57639         * modules/unigbrk/u16-grapheme-prev: New file.
57640         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57641         * lib/unigbrk.in.h: Add prototype for new function.
57642         * lib/unigbrk/u16-grapheme-prev.c: New file.
57643         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57645         New module 'u32-grapheme-prev'.
57646         * modules/unigbrk/u32-grapheme-prev: New file.
57647         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57648         * lib/unigbrk.in.h: Add prototype for new function.
57649         * lib/unigbrk/u32-grapheme-prev.c: New file.
57650         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57652         New module 'u8-grapheme-breaks'.
57653         * modules/unigbrk/u8-grapheme-breaks: New file.
57654         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57655         * lib/unigbrk.in.h: Add prototype for new function.
57656         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57657         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57659         New module 'u16-grapheme-breaks'.
57660         * modules/unigbrk/u16-grapheme-breaks: New file.
57661         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57662         * lib/unigbrk.in.h: Add prototype for new function.
57663         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57664         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57666         New module 'u32-grapheme-breaks'.
57667         * modules/unigbrk/u32-grapheme-breaks: New file.
57668         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57669         * lib/unigbrk.in.h: Add prototype for new function.
57670         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57671         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57673         New module 'ulc-grapheme-breaks'.
57674         * modules/unigbrk/ulc-grapheme-breaks: New file.
57675         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57676         * m4/locale-ar.m4: New file.
57677         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57678         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57679         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57681 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57683         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57684         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57685         modified how this file was generated before I initially submitted
57686         the module, but failed to regenerate it.  This meant that several
57687         of the level2 entries were wrong.
57688         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57689         Remove the division-by-2 that is folded into the table now that
57690         gbrkprop.h has been regenerated properly.  Now -1 entries are
57691         handled correctly.
57693         New module 'unigbrk/uc-gbrk-prop-tests'.
57694         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57695         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57696         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57697         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57699 2011-01-01  Bruno Haible  <bruno@clisp.org>
57701         Avoid use of hexadecimal escapes.
57702         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57703         instead of hexadecimal escapes.
57705 2011-01-01  Jim Meyering  <meyering@redhat.com>
57707         maint: new rule to update copyright year ranges
57708         * Makefile (update-copyright): New rule.
57710         maint: indent with TABs in Makefile
57711         * Makefile: Expand leading sequences of spaces to TABs
57713         version-etc: update the copyright year it reports
57714         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57716 2010-12-31  Bruno Haible  <bruno@clisp.org>
57718         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57719         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57720         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57721         zero.
57723 2010-12-31  Bruno Haible  <bruno@clisp.org>
57725         pwrite: Work around HP-UX 11.11 bug.
57726         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57727         works and set REPLACE_PWRITE if not.
57728         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57729         function.
57730         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57732 2010-12-31  Bruno Haible  <bruno@clisp.org>
57734         pread: Work around HP-UX 11 bugs.
57735         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57736         and set REPLACE_PREAD if not.
57737         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57739 2010-12-31  Eric Blake  <eblake@redhat.com>
57741         nl_langinfo: fix YESEXPR on Irix 6.5
57742         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57743         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57744         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57745         it.
57747 2010-12-31  Bruno Haible  <bruno@clisp.org>
57749         iconv: Document HP-UX 11 bug.
57750         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57752 2010-12-31  Bruno Haible  <bruno@clisp.org>
57754         ldexpl: Fix link error on HP-UX 11.
57755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57756         LDEXPL_LIBM, using $ISNANL_LIBM.
57758 2010-12-31  Eric Blake  <eblake@redhat.com>
57760         ftello: avoid compilation failure with SunStudio c89
57761         * lib/ftello.c (ftello): Use lseek, not llseek.
57763         tests: avoid failing coreutils tests on cygwin
57764         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57765         (create_exe_shims_): Return 0 when skipping.
57767 2010-12-31  Bruno Haible  <bruno@clisp.org>
57769         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57770         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57772 2010-12-31  Bruno Haible  <bruno@clisp.org>
57774         waitpid: Fix link error in C++ mode.
57775         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57777 2010-12-31  Bruno Haible  <bruno@clisp.org>
57779         isnan: Use GCC built-ins when possible.
57780         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57781         __builtin_isnan.
57782         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57783         (isnan): Define using GCC built-ins for GCC >= 4.0.
57785 2010-12-31  Bruno Haible  <bruno@clisp.org>
57787         isnand: Fix mistake.
57788         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57789         __builtin_isnand.
57791 2010-12-31  Bruno Haible  <bruno@clisp.org>
57793         open: Avoid C++ error on HP-UX 11.
57794         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57796 2010-12-31  Bruno Haible  <bruno@clisp.org>
57798         time_r: Add missing declarations on HP-UX 11.
57799         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57800         instead of HAVE_LOCALTIME_R.
57801         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57802         HAVE_LOCALTIME_R always.
57803         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57804         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57805         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57806         HAVE_LOCALTIME_R.
57807         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57808         * doc/posix-functions/localtime_r.texi: Likewise.
57810 2010-12-29  Eric Blake  <eblake@redhat.com>
57812         mountlist: tweak previous commit
57813         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57814         Reported by Paul Eggert.
57816         mountlist: fix local drive detection on cygwin
57817         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57818         that works for cygwin.
57820 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57822         ftoastr, snprintf: ftoastr + snprintf module
57823         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57824         since the snprintf module now should be good enough here.
57825         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57826         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57827         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57828         GNULIB_SNPRINTF only for the test directory, and the latter
57829         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57830         seems to suffice by itself.
57832 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57834         alloca: one step towards thread-safety
57835         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57836         need for a static variable.  All callers changed.  This does not
57837         make the alloca replacement thread-safe, but it's one step.
57839         tests: minor indenting change
57840         * tests/init.sh: Sync from coreutils housekeeping patch
57841         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57842         to keep lines within 80 columns.
57844 2010-12-28  Jim Meyering  <meyering@redhat.com>
57846         regex: don't infloop on persistent failing calloc
57847         * lib/regexec.c (build_trtable): Return failure indication upon
57848         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57849         In glibc, this was fixed for version 2.13:
57850         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57852 2010-12-28  Bruno Haible  <bruno@clisp.org>
57853             Paul Eggert <eggert@cs.ucla.edu>
57855         linkat: Make implementation robust against system behaviour variations.
57856         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57857         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57858         way, and to -2 if it needs a generic runtime test.
57859         * lib/linkat.c (solaris_optimized_link_immediate,
57860         solaris_optimized_link_follow): New functions.
57861         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57862         (check_same_link): Use it.
57864 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57866         New module 'unigbrk/base'.
57867         * modules/unigbrk/base: New file.
57868         * lib/unigbrk.in.h: New file.
57870         New module 'unigbrk/uc-gbrk-prop'.
57871         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57872         * modules/unigbrk/uc-gbrk-prop: New file.
57873         * lib/unigbrk/gbrkprop.h: New file.
57874         * lib/unigbrk/uc-gbrk-prop.c: New file.
57876         New module 'unigbrk/uc-is-grapheme-break'.
57877         * modules/unigbrk/uc-is-grapheme-break: New file.
57878         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57879         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57880         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57881         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57882         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57884         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57886 2010-12-27  Bruno Haible  <bruno@clisp.org>
57888         linkat test: Avoid failure on Solaris 11 2010-11.
57889         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57891 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57893         utimens: work around glibc rounding bug on more platforms
57894         * lib/utimens.c (fdutimens): Work around rounding bug even if
57895         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57896         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57898 2010-12-27  Bruno Haible  <bruno@clisp.org>
57900         select tests: Improve comments.
57901         * tests/test-select.c (do_select): Add comments.
57903 2010-12-27  Bruno Haible  <bruno@clisp.org>
57905         select tests: Safer way of handling timeout.
57906         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57907         at every invocation.
57909 2010-12-27  Bruno Haible  <bruno@clisp.org>
57911         select tests: Use 'bool' where appropriate.
57912         * tests/test-select.c (connect_to_socket): Change argument type to
57913         'bool'.
57915 2010-12-27  Bruno Haible  <bruno@clisp.org>
57917         select tests: Use existing modules.
57918         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57919         (configure.ac): Don't test for unistd.h.
57920         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57921         declared in <unistd.h>.
57923 2010-12-27  Bruno Haible  <bruno@clisp.org>
57925         mbrtowc: Work around a Solaris 7 bug.
57926         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57927         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57928         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57929         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57930         MBRTOWC_NULL_ARG1_BUG.
57931         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57932         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57933         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57934         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57936 2010-12-27  Jim Meyering  <meyering@redhat.com>
57938         read-file.c: tweak syntax
57939         * lib/read-file.c (fread_file): Remove space after "*" in function
57940         definitions.
57942 2010-12-27  Bruno Haible  <bruno@clisp.org>
57944         times test: Avoid gcc warnings on OSF/1.
57945         * tests/test-times.c (main): Cast printf arguments from clock_t to
57946         'long int'.
57948 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57950         utimens: work around glibc rounding bug on older Linux kernels
57951         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57952         on Linux with a glibc whose utimes might not work, then work
57953         around a longstanding glibc bug involving rounding rather than
57954         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57955         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57957 2010-12-26  Bruno Haible  <bruno@clisp.org>
57959         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57960         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57961         _GL_CXXALIAS_SYS.
57962         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57964 2010-12-26  Bruno Haible  <bruno@clisp.org>
57966         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57967         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
57968         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57969         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
57970         looking for the declaration.
57971         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57972         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
57973         problem.
57974         * doc/posix-functions/inet_pton.texi: Likewise.
57976 2010-12-26  Bruno Haible  <bruno@clisp.org>
57978         arpa_inet: Use the common idioms with C++ support.
57979         * lib/arpa_inet.in.h: Include c++defs.h.
57980         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
57981         support.
57982         * modules/arpa_inet (Depends-on): Add c++defs.
57983         (Makefile.am): Substitute the contents of c++defs.h.
57984         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
57985         * modules/arpa_inet-c++-tests: New file.
57986         * tests/test-arpa_inet-c++.cc: New file.
57988 2010-12-25  Bruno Haible  <bruno@clisp.org>
57990         Fix more C++ link errors on Solaris 8.
57991         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
57992         $(LIB_EACCESS).
57993         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
57994         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
57995         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
57996         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
57997         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
57999 2010-12-25  Bruno Haible  <bruno@clisp.org>
58001         printf-posix: Fix link error when a non-GCC compiler is used.
58002         * lib/stdio.in.h (printf): When not using GCC, override printf
58003         correctly.
58004         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58006 2010-12-25  Bruno Haible  <bruno@clisp.org>
58008         strerror_r-posix: Update doc.
58009         * doc/posix-functions/strerror_r.texi: Update doc about the return
58010         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58012 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58014         utimens: simplify the logic of the previous change
58015         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58016         This should not affect whether the test succeeds or fails.
58018         utimens: configure better on hosts with NFS clock skew
58019         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58020         uses the clock of the local host.  It might use the clock of the
58021         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58022         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58024 2010-12-25  Bruno Haible  <bruno@clisp.org>
58026         ptsname test: Avoid failure on Solaris.
58027         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58028         open a pseudo-terminal; don't use BSD-style ptys.
58029         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58031 2010-12-25  Bruno Haible  <bruno@clisp.org>
58033         ptsname: Avoid ERANGE failure on some systems.
58034         * lib/ptsname.c (buffer): Increase size.
58036 2010-12-25  Bruno Haible  <bruno@clisp.org>
58038         rename, renameat: Avoid test failures at NFS mounted locations.
58039         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58040         so that subsequent mkdir calls succeed.
58042 2010-12-25  Bruno Haible  <bruno@clisp.org>
58044         iswblank: Fix C++ link error on Solaris 8.
58045         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58046         _GL_FUNCDECL_SYS.
58048 2010-12-25  Bruno Haible  <bruno@clisp.org>
58050         unistd: Fix C++ link error on Solaris 8.
58051         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58053 2010-12-25  Bruno Haible  <bruno@clisp.org>
58055         readlink doc: Mention an old glibc bug.
58056         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58058 2010-12-25  Bruno Haible  <bruno@clisp.org>
58060         fcntl-h: Fix for use of C++ on glibc systems.
58061         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58062         also on glibc systems in C++ mode.
58063         Reported by Gary V. Vaughan <gary@gnu.org>.
58065 2010-12-25  Bruno Haible  <bruno@clisp.org>
58067         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58068         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58070 2010-12-25  Bruno Haible  <bruno@clisp.org>
58072         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58073         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
58074         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
58075         test whether truncl works according to ISO C 99 with IEC 60559.
58076         * m4/truncl-ieee.m4: New file.
58077         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
58078         m4/signbit.m4.
58079         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
58081 2010-12-25  Bruno Haible  <bruno@clisp.org>
58083         ceill-ieee: Make it work on OSF/1 5.1 with cc.
58084         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
58085         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
58086         test whether ceill works according to ISO C 99 with IEC 60559.
58087         * m4/ceill-ieee.m4: New file.
58088         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
58089         m4/signbit.m4.
58090         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
58092 2010-12-25  Bruno Haible  <bruno@clisp.org>
58094         Ensure all prerequisites of <wchar.h> are included.
58095         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
58096         before <wchar.h>.
58097         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
58098         gl_MBRLEN_NUL_RETVAL): Likewise.
58099         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
58100         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
58101         AC_FUNC_MBRTOWC): Likewise.
58102         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58103         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58104         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58105         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
58106         Likewise.
58107         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
58108         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58109         (gl_WCHAR_H): Improve comments.
58110         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58112 2010-12-25  Bruno Haible  <bruno@clisp.org>
58114         strtok_r: Fix C syntax error in autoconf macro.
58115         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58116         characters in test program.
58118 2010-12-24  Bruno Haible  <bruno@clisp.org>
58120         ceil, trunc, round: Fix gcc warnings.
58121         * lib/ceil.c (MIN): Undefine before redefining.
58122         * lib/trunc.c (MIN): Likewise.
58123         * lib/round.c (MIN): Likewise.
58124         Include <math.h> first.
58126 2010-12-24  Bruno Haible  <bruno@clisp.org>
58128         select tests: Avoid failures on OSF/1 5.1.
58129         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58130         failure of closing the last socket; it may fail with ECONNRESET.
58132 2010-12-24  Eric Blake  <eblake@redhat.com>
58134         stdint: avoid HP-UX 10.20 preprocessor bug
58135         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58136         than #if.
58137         * tests/test-floor2.c (main): Likewise.
58138         Reported by Peter O'Gorman.
58140         pipe: make obsoletion transition easier
58141         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58142         * modules/pipe (Files): Include revived file.
58143         (Include): Drop reference, to mirror getdate's behavior.
58145 2010-12-24  Bruno Haible  <bruno@clisp.org>
58147         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58148         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58149         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58150         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58152 2010-12-24  Bruno Haible  <bruno@clisp.org>
58154         gethostname: Ensure declaration on NonStop Kernel.
58155         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58158 2010-12-24  Bruno Haible  <bruno@clisp.org>
58160         sys_select: Ensure all necessary types on NonStop Kernel.
58161         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58162         include <sys/time.h>.
58163         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58164         NonStop Kernel.
58165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58167 2010-12-24  Bruno Haible  <bruno@clisp.org>
58169         sys_select: Remove unneeded include.
58170         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58171         have <sys/select.h>.
58173 2010-12-24  Bruno Haible  <bruno@clisp.org>
58175         gethostname: Provide a fallback for HOST_NAME_MAX.
58176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58177         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58178         instead.
58179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58181 2010-12-24  Bruno Haible  <bruno@clisp.org>
58183         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58184         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58185         (SA_RESTART): Likewise.
58186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58188 2010-12-24  Bruno Haible  <bruno@clisp.org>
58190         signal: Define NSIG.
58191         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58192         * tests/test-signal.c (nsig): New variable.
58193         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58195 2010-12-24  Bruno Haible  <bruno@clisp.org>
58197         rename, renameat: Avoid test failures on OSF/1 5.1.
58198         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58199         alternative error codes.
58200         * tests/test-renameat.c (main): Likewise.
58202 2010-12-24  Bruno Haible  <bruno@clisp.org>
58204         *printf: Detect large precisions bug on Solaris 10/SPARC.
58205         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58206         by Paul Eggert.
58207         * tests/test-snprintf-posix.h (test_function): Add this test code here
58208         too.
58209         * tests/test-sprintf-posix.h (test_function): Likewise.
58210         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58211         * tests/test-vasprintf-posix.c (test_function): Likewise.
58212         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58213         around by gnulib.
58214         * doc/posix-functions/printf.texi: Likewise.
58215         * doc/posix-functions/snprintf.texi: Likewise.
58216         * doc/posix-functions/sprintf.texi: Likewise.
58217         * doc/posix-functions/vfprintf.texi: Likewise.
58218         * doc/posix-functions/vprintf.texi: Likewise.
58219         * doc/posix-functions/vsnprintf.texi: Likewise.
58220         * doc/posix-functions/vsprintf.texi: Likewise.
58221         * doc/posix-functions/dprintf.texi: Undo last commit.
58222         * doc/posix-functions/vdprintf.texi: Likewise.
58224 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58226         tests: port test-fdutimensat.c to Solaris 8
58227         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58228         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58229         On Solaris 8, it fails with errno == ENOSYS, because there is no
58230         futimens (so it can't use the fd), and there is no lutimens (so it
58231         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58233         vsnprintf: make more consistent with snprintf; doc fixes
58235         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58236         the byte count return problem was promoted from the snprintf-posix
58237         to the snprintf module.
58238         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58239         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58240         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58241         * tests/test-snprintf.c (main): Check the byte count returned.
58242         * tests/test-vsnprintf.c (main): Likewise.
58244 2010-12-23  Eric Blake  <eblake@redhat.com>
58246         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58247         * modules/sigpipe (License): Relax license.
58249 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58251         doc: document Solaris printf bug with large float precisions
58252         * doc/posix-functions/dprintf.texi (dprintf):
58253         * doc/posix-functions/fprintf.texi (fprintf):
58254         * doc/posix-functions/printf.texi (printf):
58255         * doc/posix-functions/snprintf.texi (snprintf):
58256         * doc/posix-functions/sprintf.texi (sprintf):
58257         * doc/posix-functions/vdprintf.texi (vdprintf):
58258         * doc/posix-functions/vfprintf.texi (vfprintf):
58259         * doc/posix-functions/vprintf.texi (vprintf):
58260         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58261         * doc/posix-functions/vsprintf.texi (vsprintf):
58262         Mention that these functions mishandle large floating point
58263         precisions on Solaris 10.  The same bug is also present in Solaris
58264         8, and I assume earlier.  This causes "cd gnulib-tests; make
58265         check" to fail on Solaris 8 (and I assume, later) when building
58266         the latest coreutils, in test-vasprintf-posix's call to
58267         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58268         the wide flavors (e.g., wprintf) so this patch just updates the
58269         documentation for the narrow ones.
58271         test-posixtm.c: add two tests
58272         * tests/test-posixtm.c: Add two tests, to highlight the
58273         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58274         around this bug; this is merely to document it.
58276 2010-12-22  Bruno Haible  <bruno@clisp.org>
58278         getlogin_r: Work around portability problem on OSF/1.
58279         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58280         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58281         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58282         test for a truncated result.
58283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58284         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58285         * modules/getlogin_r (Depends-on): Add memchr.
58286         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58288 2010-12-22  Bruno Haible  <bruno@clisp.org>
58290         ptsname: Avoid test failure on OSF/1 5.1.
58291         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58292         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58293         (same_slave): New function.
58294         (main): Use it to compare ptsname's result with the expected file name.
58296 2010-12-22  Bruno Haible  <bruno@clisp.org>
58298         Port extended stdio modules to HP NonStop Kernel.
58299         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58300         macros.
58301         * lib/fbufmode.c: Update comments.
58302         * lib/fflush.c: Likewise.
58303         * lib/fpurge.c: Likewise.
58304         * lib/freadable.c: Likewise.
58305         * lib/freadahead.c: Likewise.
58306         * lib/freading.c: Likewise.
58307         * lib/freadptr.c: Likewise.
58308         * lib/freadseek.c: Likewise.
58309         * lib/fseeko.c: Likewise.
58310         * lib/fseterr.c: Likewise.
58311         * lib/fwritable.c: Likewise.
58312         * lib/fwriting.c: Likewise.
58313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58315 2010-12-22  Bruno Haible  <bruno@clisp.org>
58317         ttyname_r: Work around bug on OSF/1 5.1.
58318         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58319         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58320         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58321         present.
58322         * lib/ttyname_r.c (ttyname_r): Update comments.
58324 2010-12-22  Bruno Haible  <bruno@clisp.org>
58326         round: Implement result sign according to IEEE 754.
58327         * lib/round.c (MIN, MINUS_ZERO): New macros.
58328         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58329         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58330         * tests/test-round-ieee.c (main): Likewise.
58331         * tests/test-roundl-ieee.c (main): Likewise.
58333         trunc: Implement result sign according to IEEE 754.
58334         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58335         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58336         * tests/test-trunc2.c: Include minus-zero.h.
58337         (MINUS_ZERO): New macro.
58338         (trunc_reference): Keep in sync with lib/trunc.c.
58339         * tests/test-truncf2.c: Include minus-zero.h.
58340         (MINUS_ZERO): New macro.
58341         (truncf_reference): Keep in sync with lib/trunc.c.
58342         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58343         * tests/test-trunc-ieee.c (main): Likewise.
58344         * tests/test-truncl-ieee.c (main): Likewise.
58346         ceil: Implement result sign according to IEEE 754.
58347         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58348         (FUNC): Return -0.0 for -1 < x < 0.
58349         * tests/test-ceil2.c: Include minus-zero.h.
58350         (MINUS_ZERO): New macro.
58351         (ceil_reference): Keep in sync with lib/ceil.c.
58352         * tests/test-ceilf2.c: Include minus-zero.h.
58353         (MINUS_ZERO): New macro.
58354         (ceilf_reference): Keep in sync with lib/ceil.c.
58355         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58356         * tests/test-ceil-ieee.c (main): Likewise.
58357         * tests/test-ceill-ieee.c (main): Likewise.
58359         floor: Implement result sign according to IEEE 754.
58360         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58361         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58362         * tests/test-floorf2.c (floorf_reference): Likewise.
58363         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58364         * tests/test-floor-ieee.c (main): Likewise.
58365         * tests/test-floorl-ieee.c (main): Likewise.
58367 2010-12-22  Bruno Haible  <bruno@clisp.org>
58369         getaddrinfo: Update doc.
58370         * doc/posix-functions/gai_strerror.texi: Return type is also different
58371         on AIX and HP-UX.
58373 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58375         getaddrinfo, inet_ntop: Update doc for Solaris.
58376         * doc/posix-functions/gai_strerror.texi: Return type is also an
58377         issue on Solaris 9 and earlier.
58378         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58379         on Solaris 10 and earlier.
58381 2010-12-21  Bruno Haible  <bruno@clisp.org>
58383         New module 'roundl-ieee'.
58384         * modules/roundl-ieee: New file.
58385         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58386         test whether roundl works according to ISO C 99 with IEC 60559.
58387         * m4/roundl-ieee.m4: New file.
58388         * modules/roundl-ieee-tests: New file.
58389         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58390         * tests/test-roundl.c (main): Remove signbit tests.
58391         * modules/roundl-tests (Depends-on): Remove signbit.
58392         * doc/posix-functions/roundl.texi: Mention the new module.
58394 2010-12-21  Bruno Haible  <bruno@clisp.org>
58396         New module 'truncl-ieee'.
58397         * modules/truncl-ieee: New file.
58398         * modules/truncl-ieee-tests: New file.
58399         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58400         * tests/test-truncl.c (main): Remove signbit tests.
58401         * modules/truncl-tests (Depends-on): Remove signbit.
58402         * doc/posix-functions/truncl.texi: Mention the new module.
58404 2010-12-21  Bruno Haible  <bruno@clisp.org>
58406         New module 'ceill-ieee'.
58407         * modules/ceill-ieee: New file.
58408         * modules/ceill-ieee-tests: New file.
58409         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58410         * tests/test-ceill.c (main): Remove signbit tests.
58411         * modules/ceill-tests (Depends-on): Remove signbit.
58412         * doc/posix-functions/ceill.texi: Mention the new module.
58414 2010-12-21  Bruno Haible  <bruno@clisp.org>
58416         New module 'floorl-ieee'.
58417         * modules/floorl-ieee: New file.
58418         * modules/floorl-ieee-tests: New file.
58419         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58420         * tests/test-floorl.c (main): Remove signbit tests.
58421         * modules/floorl-tests (Depends-on): Remove signbit.
58422         * doc/posix-functions/floorl.texi: Mention the new module.
58424 2010-12-21  Bruno Haible  <bruno@clisp.org>
58426         New module 'round-ieee'.
58427         * modules/round-ieee: New file.
58428         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58429         whether round works according to ISO C 99 with IEC 60559.
58430         * m4/round-ieee.m4: New file.
58431         * modules/round-ieee-tests: New file.
58432         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58433         * tests/test-round1.c (main): Remove signbit tests.
58434         * modules/round-tests (Depends-on): Remove 'signbit'.
58435         * doc/posix-functions/round.texi: Mention the new module.
58437 2010-12-21  Bruno Haible  <bruno@clisp.org>
58439         New module 'trunc-ieee'.
58440         * modules/trunc-ieee: New file.
58441         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58442         whether trunc works according to ISO C 99 with IEC 60559.
58443         * m4/trunc-ieee.m4: New file.
58444         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58446         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58447         * modules/trunc-ieee-tests: New file.
58448         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58449         * tests/test-trunc1.c (main): Remove signbit tests.
58450         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58451         * doc/posix-functions/trunc.texi: Mention the new module.
58453 2010-12-21  Bruno Haible  <bruno@clisp.org>
58455         New module 'ceil-ieee'.
58456         * modules/ceil-ieee: New file.
58457         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58458         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58459         ISO C 99 with IEC 60559.
58460         * m4/ceil-ieee.m4: New file.
58461         * modules/ceil (Files): Add lib/ceil.c.
58462         (Depends-on): Add 'float'.
58463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58464         * lib/math.in.h (ceil): New declaration.
58465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58466         REPLACE_CEIL.
58467         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58468         * modules/ceil-ieee-tests: New file.
58469         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58470         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58471         * doc/posix-functions/ceil.texi: Mention the new module.
58473 2010-12-21  Bruno Haible  <bruno@clisp.org>
58475         New module 'floor-ieee'.
58476         * modules/floor-ieee: New file.
58477         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58478         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58479         ISO C 99 with IEC 60559.
58480         * m4/floor-ieee.m4: New file.
58481         * modules/floor (Files): Add lib/floor.c.
58482         (Depends-on): Add 'float'.
58483         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58484         * lib/math.in.h (floor): New declaration.
58485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58486         REPLACE_FLOOR.
58487         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58488         * modules/floor-ieee-tests: New file.
58489         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58490         * tests/test-math-c++.cc: Check the signature of 'floor'.
58491         * doc/posix-functions/floor.texi: Mention the new module.
58493 2010-12-21  Bruno Haible  <bruno@clisp.org>
58495         New module 'roundf-ieee'.
58496         * modules/roundf-ieee: New file.
58497         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58498         test whether roundf works according to ISO C 99 with IEC 60559.
58499         * m4/roundf-ieee.m4: New file.
58500         * modules/roundf-ieee-tests: New file.
58501         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58502         * tests/test-roundf1.c (main): Remove signbit tests.
58503         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58504         * doc/posix-functions/roundf.texi: Mention the new module.
58506 2010-12-21  Bruno Haible  <bruno@clisp.org>
58508         New module 'truncf-ieee'.
58509         * modules/truncf-ieee: New file.
58510         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58511         test whether truncf works according to ISO C 99 with IEC 60559.
58512         * m4/truncf-ieee.m4: New file.
58513         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58515         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58516         * modules/truncf-ieee-tests: New file.
58517         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58518         * tests/test-truncf1.c (main): Remove signbit tests.
58519         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58520         * doc/posix-functions/truncf.texi: Mention the new module.
58522 2010-12-21  Bruno Haible  <bruno@clisp.org>
58524         New module 'ceilf-ieee'.
58525         * modules/ceilf-ieee: New file.
58526         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58527         test whether ceilf works according to ISO C 99 with IEC 60559.
58528         * m4/ceilf-ieee.m4: New file.
58529         * modules/ceilf-ieee-tests: New file.
58530         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58531         * tests/test-ceilf1.c (main): Remove signbit tests.
58532         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58533         * doc/posix-functions/ceilf.texi: Mention the new module.
58535 2010-12-21  Bruno Haible  <bruno@clisp.org>
58537         New module 'floorf-ieee'.
58538         * modules/floorf-ieee: New file.
58539         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58540         test whether floorf works according to ISO C 99 with IEC 60559.
58541         * m4/floorf-ieee.m4: New file.
58542         * modules/floorf-ieee-tests: New file.
58543         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58544         * tests/test-floorf1.c (main): Remove signbit tests.
58545         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58546         * doc/posix-functions/floorf.texi: Mention the new module.
58548 2010-12-21  Bruno Haible  <bruno@clisp.org>
58550         Support for minus zero in autoconf macros.
58551         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58552         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58553         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58554         * tests/minus-zero.h: Update comments.
58556 2010-12-21  Bruno Haible  <bruno@clisp.org>
58558         Tests for module 'ceil'.
58559         * modules/ceil-tests: New file.
58560         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58561         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58563 2010-12-21  Bruno Haible  <bruno@clisp.org>
58565         Tests for module 'floor'.
58566         * modules/floor-tests: New file.
58567         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58568         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58570 2010-12-21  Bruno Haible  <bruno@clisp.org>
58572         math: Fix indentation.
58573         * lib/math.in.h (floorf): Fix indentation.
58575 2010-12-21  Bruno Haible  <bruno@clisp.org>
58577         Fix cross-compilation guesses on Solaris.
58578         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58579         not match "solaris2.10".
58580         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58581         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58582         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58584 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58586         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58587         This fixes a problem observed with the latest coreutils snapshot
58588         that caused a test to fail on Solaris 8.  src/csplit.c's call
58589         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58590         earlier, instead of returning the number of bytes that would have
58591         been generated; this causes csplit to incorrectly report memory
58592         exhaustion.
58593         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58594         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58595         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58596         comments to match.
58597         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58598         Fix typo in matching older versions of Solaris: "solaris2.10"
58599         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58600         only for guessing while cross-compiling.
58601         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58603 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58605         ftoastr: fix comment again
58606         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58607         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58608         Also, simplify example a bit by using flags = 0.
58610 2010-12-20  Bruno Haible  <bruno@clisp.org>
58612         round*, trunc*: Update documentation regarding glibc.
58613         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58614         * doc/posix-functions/round.texi: Likewise.
58615         * doc/posix-functions/roundl.texi: Likewise.
58616         * doc/posix-functions/truncf.texi: Likewise.
58617         * doc/posix-functions/trunc.texi: Likewise.
58618         * doc/posix-functions/truncl.texi: Likewise.
58620 2010-12-20  Bruno Haible  <bruno@clisp.org>
58622         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58623         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58624         * doc/posix-functions/round.texi: Likewise.
58625         * doc/posix-functions/roundl.texi: Likewise.
58627 2010-12-20  Bruno Haible  <bruno@clisp.org>
58629         ttyname_r: Add missing declaration on HP-UX 11.
58630         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58631         HAVE_TTYNAME_R.
58632         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58633         declared. Set HAVE_TTYNAME_R always.
58634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58635         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58636         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58637         HAVE_TTYNAME_R.
58638         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58640 2010-12-20  Bruno Haible  <bruno@clisp.org>
58642         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58643         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58644         * doc/posix-functions/getlogin_r.texi: Likewise.
58645         * tests/test-getlogin.c: Include <errno.h>.
58646         (main): Avoid test failure on HP-UX 11.11.
58647         * tests/test-getlogin_r.c (main): Likewise.
58649 2010-12-20  Bruno Haible  <bruno@clisp.org>
58651         getlogin_r: Add missing declaration on HP-UX 11.
58652         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58653         declared also when it exists as a function.
58654         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58656 2010-12-20  Bruno Haible  <bruno@clisp.org>
58658         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58659         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58660         through wcrtomb.
58662 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58664         ftoastr: fix comment
58665         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58666         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58668 2010-12-19  Bruno Haible  <bruno@clisp.org>
58670         isnan: Ensure it is a macro.
58671         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58672         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58673         Solaris.
58675 2010-12-19  Bruno Haible  <bruno@clisp.org>
58677         ldexpl test: Fix link error on OSF/1 5.1.
58678         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58680 2010-12-19  Bruno Haible  <bruno@clisp.org>
58682         wctype: Make it work in C++ mode on OSF/1 5.1.
58683         * lib/wctype.in.h (iswblank): Declare but not define here.
58684         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58685         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58686         * modules/wctype (Files): Add lib/iswblank.c.
58688 2010-12-19  Bruno Haible  <bruno@clisp.org>
58690         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58691         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58692         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58694 2010-12-19  Bruno Haible  <bruno@clisp.org>
58696         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58697         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58698         _POSIX_PII_SOCKET.
58699         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58700         * doc/posix-functions/recvfrom.texi: Likewise.
58701         * doc/posix-functions/send.texi: Likewise.
58702         * doc/posix-functions/sendto.texi: Likewise.
58704 2010-12-19  Bruno Haible  <bruno@clisp.org>
58706         tcgetsid: Add missing declaration on OSF/1 5.1.
58707         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58708         HAVE_TCGETSID.
58709         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58710         Don't set HAVE_TCGETSID.
58711         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58712         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58713         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58714         HAVE_TCGETSID.
58715         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58717 2010-12-19  Bruno Haible  <bruno@clisp.org>
58719         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58720         * lib/stdio.in.h: During the include_next statement, let recursive
58721         includes of this file include only the system header file.
58723 2010-12-19  Bruno Haible  <bruno@clisp.org>
58725         iconv_open: Fix regression from 2010-12-04.
58726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58727         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58729 2010-12-19  Bruno Haible  <bruno@clisp.org>
58731         stdbool test: Avoid a gcc warning.
58732         * tests/test-stdbool.c (main): Fail if e1 is false.
58733         Reported by Jim Meyering.
58735 2010-12-19  Jim Meyering  <meyering@redhat.com>
58737         setenv: restore to working order
58738         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58739         mistakenly removed.
58740         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58741         HAVE_SETENV.
58742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58743         HAVE_SETENV.
58745 2010-12-19  Bruno Haible  <bruno@clisp.org>
58747         Document some different function declarations on OSF/1 5.1.
58748         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58749         * doc/posix-functions/inet_ntop.texi: Likewise.
58750         * doc/posix-functions/gethostname.texi: Likewise.
58751         * lib/unistd.in.h (gethostname): Update comment.
58753 2010-12-19  Bruno Haible  <bruno@clisp.org>
58755         doc: Mention vasprintf-posix module.
58756         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58757         the 'vasprintf-posix' module.
58758         * doc/glibc-functions/vasprintf.texi: Likewise.
58760 2010-12-19  Bruno Haible  <bruno@clisp.org>
58762         unsetenv: Add missing declaration on OSF/1 5.1.
58763         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58765         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58767         not HAVE_UNSETENV.
58768         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58769         HAVE_UNSETENV.
58770         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58772 2010-12-19  Bruno Haible  <bruno@clisp.org>
58774         setenv: Add missing declaration on OSF/1 5.1.
58775         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58777         declared. Don't set HAVE_SETENV.
58778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58779         not HAVE_SETENV.
58780         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58781         HAVE_SETENV.
58782         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58784 2010-12-19  Bruno Haible  <bruno@clisp.org>
58786         nl_langinfo tests: Avoid gcc warning.
58787         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58789 2010-12-19  Bruno Haible  <bruno@clisp.org>
58791         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58792         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58793         _GL_CXXALIAS_SYS.
58795 2010-12-19  Bruno Haible  <bruno@clisp.org>
58797         stdbool: Relax test.
58798         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58799         address to 'bool' work in static initializer, for compilers other than
58800         GCC.
58802 2010-12-19  Bruno Haible  <bruno@clisp.org>
58804         ftello: Add missing declaration on OSF/1 5.1.
58805         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58806         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58808         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58809         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58811 2010-12-19  Bruno Haible  <bruno@clisp.org>
58813         fseeko: Add missing declaration on OSF/1 5.1.
58814         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58815         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58817         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58818         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58820 2010-12-19  Bruno Haible  <bruno@clisp.org>
58822         fchdir: Add missing declaration on OSF/1 5.1.
58823         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58826         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58827         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58829 2010-12-19  Bruno Haible  <bruno@clisp.org>
58831         relocatable-prog-wrapper: Separate from relocatable-prog.
58832         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58833         uninstall-relocwrapper rule here.
58834         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58835         Reported by Ian Beckwith <ianb@erislabs.net>.
58837 2010-12-19  Bruno Haible  <bruno@clisp.org>
58839         unistr/u8-mbsnlen: Add missing dependency.
58840         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58841         Reported by Ian Beckwith <ianb@erislabs.net>.
58843 2010-12-19  Bruno Haible  <bruno@clisp.org>
58845         iconv: Make it possible again to use this module without 'iconv-h'.
58846         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58847         if it is not defined.
58848         Reported by Ian Beckwith <ianb@erislabs.net>.
58850 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58852         acl: port to Solaris 8 when copying from tmpfs to ufs
58853         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58854         error number.  Problem observed on Solaris 8 with latest
58855         coreutils, with "mv A B", where A is on a tmpfs file system and B
58856         is on a ufs file system.  This caused coreutils' mv/part-symlink
58857         test to fail.
58859         tests: set fail=0 at start
58860         * tests/init.sh (setup_): Move fail=0 initialization here ...
58861         (mktempd_): ... from here, so that tests can rely on fail being
58862         set to 0 initially.  This fixes a problem in coreutils; see:
58863         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58865 2010-12-18  Bruno Haible  <bruno@clisp.org>
58867         memmem-simple: Stylistic changes.
58868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58869         Fix preprocessor directive indentation.
58871 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58873         memmem, memmem-simple: reorganize and expand empty needle check
58874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58875         functional checks to memmem-simple so that one has a fully functional
58876         memmem by using just this module.
58877         Restrict the performance only check to the memmem module.
58878         Also expand the empty needle check to ensure the correct
58879         pointer is returned, not just a non NULL pointer.
58880         * doc/glibc-functions/memmem.texi: Rearrange the portability
58881         documentation to correlate with the rearranged checks.
58882         Clarify exactly how the memmem and memmem-simple modules
58883         relate to each other.
58885 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58886             Bruno Haible  <bruno@clisp.org>
58888         Improve cross-compilation guesses for uClibc.
58889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58890         that uClibc does not have the glibc bug.
58891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58892         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58894 2010-12-14  Eric Blake  <eblake@redhat.com>
58896         configmake: provide fallbacks for oldest supported autotools
58897         * m4/configmake.m4: New file.
58898         * modules/configmake (Files): Ship it.
58899         (configure.ac): Use it to guarantee fallbacks.
58901 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58903         read-file: Improve handling of large files
58904         * lib/read-file.c (fread_file): Minimize realloc()s
58905         for regular files, and better manage sizes around SIZE_MAX.
58907 2010-12-13  Eric Blake  <eblake@redhat.com>
58909         cloexec, fcntl: relax license
58910         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58911         consent from all contributors.
58912         * modules/fcntl (License): Likewise.
58914 2010-12-10  Bruno Haible  <bruno@clisp.org>
58916         Tests for module 'pipe-posix'.
58917         * modules/pipe-posix-tests: New file.
58918         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58920 2010-12-10  Bruno Haible  <bruno@clisp.org>
58922         pipe-posix: Make it work in C++ mode.
58923         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58924         (pipe): Use common idiom, not a macro definition.
58925         * lib/pipe.c: New file.
58926         * m4/pipe.m4: New file.
58927         * modules/pipe-posix (Description): Enhance.
58928         (Files): Add lib/pipe.c, m4/pipe.m4.
58929         (configure.ac): Invoke gl_FUNC_PIPE.
58930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58931         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58932         * tests/test-unistd-c++.cc: Check the signature of pipe.
58934 2010-12-10  Bruno Haible  <bruno@clisp.org>
58936         Rename module 'pipe' to 'spawn-pipe'.
58937         * modules/spawn-pipe: New file, renamed from modules/pipe.
58938         (Files, configure.ac, Makefile.am): Update.
58939         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58940         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58941         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58942         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58943         "spawn-pipe.h" instead of "pipe.h".
58944         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58945         to gl_SPAWN_PIPE.
58946         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58947         (Files, Makefile.am): Update.
58948         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58949         Update.
58950         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58951         Include "spawn-pipe.h" instead of "pipe.h".
58952         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58953         * lib/javacomp.c: Likewise.
58954         * lib/javaversion.c: Likewise.
58955         * lib/pipe-filter-gi.c: Likewise.
58956         * lib/pipe-filter-ii.c: Likewise.
58957         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58958         * modules/javacomp (Depends-on): Likewise.
58959         * modules/javaversion (Depends-on): Likewise.
58960         * modules/pipe-filter-gi (Depends-on): Likewise.
58961         * modules/pipe-filter-ii (Depends-on): Likewise.
58962         * MODULES.html.sh (Executing programs): Update.
58963         * NEWS: Mention the change.
58965 2010-12-10  Eric Blake  <eblake@redhat.com>
58967         pipe-posix: new module
58968         * modules/pipe-posix: New file.
58969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
58970         (gl_UNISTD_H): Check for declaration.
58971         * modules/unistd (Makefile.am): Substitute it.
58972         * lib/unistd.in.h (pipe): Provide it for mingw.
58973         * doc/posix-functions/pipe.texi (pipe): Update documentation.
58974         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
58976 2010-12-07  Bruno Haible  <bruno@clisp.org>
58978         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
58979         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
58980         u8_strcmp_gnu.
58981         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
58983 2010-12-06  Bruno Haible  <bruno@clisp.org>
58985         Update internal documentation.
58986         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
58988 2010-12-04  Bruno Haible  <bruno@clisp.org>
58990         Put more information about failed tests into the test return codes.
58991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
58992         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
58993         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58995         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
58996         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58997         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58998         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
58999         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59001         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59002         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59003         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59004         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59005         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59006         returns a bit mask.
59007         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59008         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59009         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59010         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59011         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59015         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59017         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59018         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59019         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59021         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59022         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59023         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59024         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59025         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59027         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59028         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59029         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59030         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59031         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59032         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59033         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59034         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59035         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59036         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59037         gl_PRINTF_PRECISION): Likewise.
59038         * m4/regex.m4 (gl_REGEX): Likewise.
59039         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59040         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59041         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59042         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59043         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59046         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59047         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59048         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59049         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59050         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59051         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59053         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59054         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59055         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59056         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59058         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59059         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59060         enumerated value.
59061         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59063 2010-12-04  Bruno Haible  <bruno@clisp.org>
59065         Update for Solaris 11 2010-11.
59066         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59067         Express, released in November 2010.
59069 2010-12-04  Bruno Haible  <bruno@clisp.org>
59071         nproc: Relax license.
59072         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59073         and Paul Eggert.
59074         Requested by Ludovic Courtès <ludo@gnu.org>.
59076 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59078         utimecmp: fine-grained src to nearby coarse-grained dest
59080         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
59081         and the source is on a file system with higher-resolution time
59082         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
59083         not work, and the time stamps are close together, the algorithm to
59084         determine the exact resolution from the read-back mtime was buggy:
59085         it had a "!=" where it should have had an "==".  This bug has been
59086         in the code ever since it was introduced to gnulib.
59087         Problem reported by Dan Jacobson in
59088         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
59090 2010-11-30  Bruno Haible  <bruno@clisp.org>
59092         strerror_r-posix: Fix autoconf test.
59093         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
59095 2010-11-28  Bruno Haible  <bruno@clisp.org>
59096             Paul Eggert  <eggert@cs.ucla.edu>
59098         Tests for module 'getdomainname'.
59099         * modules/getdomainname-tests: New file.
59100         * tests/test-getdomainname.c: New file, based on
59101         tests/test-gethostname.c.
59103 2010-11-28  Bruno Haible  <bruno@clisp.org>
59104             Paul Eggert  <eggert@cs.ucla.edu>
59106         getdomainname: Use the system function when possible.
59107         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
59108         (getdomainname): Replace if needed. Provide the declaration if it is
59109         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59110         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59111         (getdomainname): When the system has getdomainname, call the system
59112         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59114         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59115         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59116         the function if its second argument is of type 'int' or if it is found
59117         in libnsl.
59118         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59119         <sys/systeminfo.h> and sysinfo().
59120         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59122         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59123         HAVE_GETDOMAINNAME.
59124         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59125         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59126         * doc/glibc-functions/getdomainname.texi: Document the problems with
59127         the getdomainname declaration.
59129 2010-11-28  Bruno Haible  <bruno@clisp.org>
59131         sys_socket: Ensure ss_family field on AIX.
59132         * lib/sys_socket.in.h (ss_family): New macro definition.
59133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59134         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59135         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59136         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59137         * modules/sys_socket (Makefile.am): Substitute
59138         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59139         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59141 2010-11-27  Bruno Haible  <bruno@clisp.org>
59143         readline: Improve configure output.
59144         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59145         "checking for readline..." result understandable.
59147 2010-11-27  Bruno Haible  <bruno@clisp.org>
59149         *printf-posix: Detect a bug on Solaris 10/x86.
59150         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59151         for floating-point output.
59152         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59153         directive.
59154         * tests/test-snprintf-posix.h (test_function): Likewise.
59155         * tests/test-sprintf-posix.h (test_function): Likewise.
59156         * tests/test-vasprintf-posix.c (test_function): Likewise.
59157         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59158         * doc/posix-functions/printf.texi: Likewise.
59159         * doc/posix-functions/snprintf.texi: Likewise.
59160         * doc/posix-functions/sprintf.texi: Likewise.
59161         * doc/posix-functions/vfprintf.texi: Likewise.
59162         * doc/posix-functions/vprintf.texi: Likewise.
59163         * doc/posix-functions/vsnprintf.texi: Likewise.
59164         * doc/posix-functions/vsprintf.texi: Likewise.
59165         * doc/glibc-functions/obstack_printf.texi: Likewise.
59166         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59168 2010-11-27  Bruno Haible  <bruno@clisp.org>
59170         Fix link error when module libunistring-optional is in use.
59171         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59172         * modules/striconveha-tests (Makefile.am): Likewise.
59174 2010-11-27  Bruno Haible  <bruno@clisp.org>
59176         regex: Mention link dependencies.
59177         * modules/regex (Link): New section.
59178         * modules/rpmatch (Link): Likewise.
59179         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59181 2010-11-27  Bruno Haible  <bruno@clisp.org>
59183         ftoastr: Fix compilation error on Solaris.
59184         * lib/ftoastr.c: Include <config.h>.
59186 2010-11-27  Bruno Haible  <bruno@clisp.org>
59188         getloadavg: Update documentation.
59189         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59191 2010-11-27  Bruno Haible  <bruno@clisp.org>
59193         sys_socket: Fix test whether the functions are declared.
59194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59195         not <sys/select.h>.
59197 2010-11-27  Bruno Haible  <bruno@clisp.org>
59199         getpass: Make sure to get system declaration on some platforms.
59200         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59201         gl_USE_SYSTEM_EXTENSIONS.
59202         * modules/getpass (Depends-on): Add extensions.
59204 2010-11-26  Bruno Haible  <bruno@clisp.org>
59206         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59207         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59208         'iconv' module is present.
59209         (ICONV_CONST): New macro.
59210         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59211         ICONV_CONST.
59212         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59213         set ICONV_CONST.
59214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59215         here.
59216         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59217         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59218         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59219         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59220         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59221         present.
59223 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59225         ftoastr: comment fix
59226         * lib/ftoastr.c: "little" -> "little or no" in comment
59228 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59230         stdint: port to GCC 4.3 + OSX + Octave
59231         On this platform, stdint.h is buggy and defines int64_t to long
59232         long int.  The replacement defined it to long int, causing
59233         problems with C++ style name mangling.  Instead, trust the system
59234         definition if INT64_MAX is defined, and likewise for the unsigned
59235         variant.   Problem reported by Jarno Rajahalme in
59236         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59237         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59238         and don't mess with int64_t and INT64_MAX in this case.
59239         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59241 2010-11-24  Bruno Haible  <bruno@clisp.org>
59243         doc: Corrections regarding MacOS X 10.4 and 10.5.
59244         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59245         MacOS X.
59246         Reported by Simon Josefsson.
59248 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59250         Uninstall ".bin" files installed by relocwrapper.
59251         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59252         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59253         unless it is already there.
59255 2010-11-21  Bruno Haible  <bruno@clisp.org>
59257         Update for NetBSD 5.0.
59258         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59259         NetBSD; the test fails on NetBSD 5.0.
59260         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59261         about NetBSD.
59263 2010-11-21  Bruno Haible  <bruno@clisp.org>
59265         Update for HP-UX 11.23 and HP-UX 11.31.
59266         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59267         HP-UX.
59269 2010-11-21  Bruno Haible  <bruno@clisp.org>
59271         Update for MacOS X 10.5.
59272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59273         MacOS X; the test fails on MacOS X 10.5.8.
59274         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59275         about MacOS X.
59277 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59279         bootstrap: add bootstrap_sync option.
59280         See discussion at
59281         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59282         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59283         * build-aux/bootstrap: Accept --bootstrap-sync to update
59284         bootstrap if it is not identical to the local gnulib's
59285         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59286         enable this by default.  Accept --no-bootstrap-sync to disable
59287         it.
59289 2010-11-20  Bruno Haible  <bruno@clisp.org>
59291         Ensure that <features.h> is included before __GLIBC__ is tested.
59292         * lib/printf-parse.h: Include <features.h>.
59293         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59294         Reported by Mike Frysinger <vapier@gentoo.org>.
59296         Ensure that <features.h> is included before __GLIBC__ is tested.
59297         * lib/wchar.in.h: Include <features.h>.
59298         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59299         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59300         Reported by Mike Frysinger <vapier@gentoo.org>.
59302         Ensure that <features.h> is included before __GLIBC__ is tested.
59303         * lib/arpa_inet.in.h: Include <features.h>.
59304         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59305         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59306         Reported by Mike Frysinger <vapier@gentoo.org>.
59308         Ensure that <features.h> is included before __GLIBC__ is tested.
59309         * build-aux/link-warning.h: Include <features.h>.
59310         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59311         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59312         Reported by Mike Frysinger <vapier@gentoo.org>.
59314         Ensure that <features.h> is included before __GLIBC__ is tested.
59315         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59316         Reported by Mike Frysinger <vapier@gentoo.org>.
59318 2010-11-20  Bruno Haible  <bruno@clisp.org>
59320         memmem: Fix autoconf test.
59321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59323 2010-11-20  Bruno Haible  <bruno@clisp.org>
59325         Port to uClibc.
59326         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59327         * lib/fcntl.in.h: Likewise.
59328         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59329         * lib/mbrtowc.c (mbrtowc): Likewise.
59330         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59331         * lib/strerror_r.c: Likewise.
59332         * lib/unistr/u8-strnlen.c: Likewise.
59333         * lib/vasnprintf.c (decimal_point_char): Likewise.
59334         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59335         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59337         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59338         * tests/test-sigaction.c (handler, main): Likewise.
59339         * lib/freading.h: Treat uClibc like a non-glibc platform.
59340         * lib/freading.c: Likewise.
59341         * lib/gettext.h: Likewise.
59342         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59343         Likewise.
59344         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59345         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59346         * lib/propername.c (proper_name_utf8): Likewise.
59347         * lib/spawn.in.h: Likewise.
59348         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59349         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59350         mem_cd_iconveh_internal): Likewise.
59351         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59352         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59353         strstr, strcasestr): Likewise.
59354         * lib/unicodeio.c (unicode_to_mb): Likewise.
59355         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59356         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59357         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59358         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59359         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59360         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59361         * lib/unistr/u8-stpncpy.c: Likewise.
59362         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59363         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59364         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59365         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59366         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59367         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59368         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59371         Likewise.
59372         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59373         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59376         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59378         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59379         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59380         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59381         * tests/test-striconveha.c (main): Likewise.
59382         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59383         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59384         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59385         * doc/posix-functions/getline.texi: Likewise.
59386         Reported by Mike Frysinger <vapier@gentoo.org>.
59388 2010-11-20  Bruno Haible  <bruno@clisp.org>
59390         nproc: Fix condition.
59391         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59392         HAVE_PTHREAD_AFFINITY_NP.
59394 2010-11-20  Bruno Haible  <bruno@clisp.org>
59396         Fix a comment.
59397         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59399 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59401         ftoastr: don't assume snprintf
59402         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59403         Implement a subset of snprintf here, by using sprintf safely.
59404         * modules/ftoastr (Depends-on): Remove snprintf.
59406 2010-11-19  Jim Meyering  <meyering@redhat.com>
59408         test-rename.h: fix compilation failure
59409         * tests/test-rename.h (test_rename): Add omitted "}".
59411 2010-11-17  Jim Meyering  <meyering@redhat.com>
59413         maint.mk: add a URL discussing the no-@acronym policy
59414         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59416 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59418         ftoastr: depend on snprintf, improve comments
59419         * lib/ftoastr.c: Also mention Loitsch's draft.
59420         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59421         needed in the current implementation, but it might simplify
59422         speeding up the code later.
59423         * modules/ftoastr: Depend on snprintf; this improves portability.
59424         Suggested by Bruno Haible in the same email.
59426         ftoastr: port to hosts lacking strtof and strtold
59427         Problem reported by Bruno Haible in
59428         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59429         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59430         environment and strtold (and presumably strtof) are not available.
59431         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59432         (configure.ac): Require gl_C99_STRTOLD.
59434 2010-11-18  Bruno Haible  <bruno@clisp.org>
59436         c-strtold: Avoid link error on AIX 7.
59437         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59438         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59439         (gl_C_STRTOLD): Test whether strtold_l exists.
59440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59442 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59444         intprops: new macro INT_BITS_STRLEN_BOUND
59445         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59446         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59447         not exposed.  Also, it uses a slightly tighter bound than before;
59448         though this makes no practical difference, we might as well be as
59449         tight as we easily can.
59451         ftoastr: new module, for lossless conversion of floats to short strings
59452         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59453         * modules/ftoastr: New files.
59455 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59457         bootstrap: port to Solaris sed
59458         * build-aux/bootstrap (get_version): Port to Solaris sed.
59459         See Ralf Wildenhues's note in
59460         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59462 2010-11-14  Jim Meyering  <meyering@redhat.com>
59464         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59465         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59466         and move definition closer to sole use.
59468 2010-11-13  Jim Meyering  <meyering@redhat.com>
59470         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59471         Now we require at least autoconf-2.59, which means the work-around
59472         is no longer needed.
59473         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59474         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59475         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59476         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59477         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59479 2010-11-13  Bruno Haible  <bruno@clisp.org>
59481         rename, renameat: Avoid test failures at NFS mounted locations.
59482         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59483         functions.
59484         (test_rename): Use assert_nonexistent.
59485         * tests/test-rename.c: Include <dirent.h>.
59486         * tests/test-renameat.c: Likewise.
59487         Reported by Gary V. Vaughan <gary@gnu.org>.
59489         rename, renameat: Document Linux bug with NFS
59490         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59491         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59492         * doc/posix-functions/renameat.texi: Likewise.
59493         Suggested by Eric Blake.
59495 2010-11-13  Bruno Haible  <bruno@clisp.org>
59497         rename test: Add comments.
59498         * tests/test-rename.h (test_rename): Add structure and comments.
59500 2010-11-13  Eric Blake  <eblake@redhat.com>
59502         maintainer-makefile: cover a few more files
59503         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59504         scripts generated within C files, for libvirt.
59506 2010-11-13  Bruno Haible  <bruno@clisp.org>
59508         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59509         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59510         character, return the number of bytes that belong together, not always
59511         1.
59512         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59513         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59514         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59515         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59516         number of bytes of an invalid character.
59517         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59518         (main): Invoke it.
59519         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59520         results.
59521         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59522         malformed byte sequences.
59523         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59524         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59525         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59526         Reported by Ben Pfaff and Paolo Bonzini.
59528 2010-11-13  Bruno Haible  <bruno@clisp.org>
59530         openat: Work around glibc bug with fchownat() and empty file names.
59531         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59532         (gl_FUNC_FCHOWNAT): Invoke it.
59533         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59534         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59535         Reported by Gary V. Vaughan <gary@gnu.org>.
59537 2010-11-13  Bruno Haible  <bruno@clisp.org>
59539         openat: Ensure autoconf macro ordering.
59540         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59541         gl_USE_SYSTEM_EXTENSIONS.
59542         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59544 2010-11-13  Bruno Haible  <bruno@clisp.org>
59546         Update comments.
59547         * lib/unistr/u8-check.c: Update file name in comments.
59548         * lib/unistr/u8-mblen.c: Likewise.
59549         * lib/unistr/u8-prev.c: Likewise.
59550         * lib/unistr/u8-strmblen.c: Likewise.
59551         * lib/unistr/u8-strmbtouc.c: Likewise.
59553 2010-11-13  Jim Meyering  <meyering@redhat.com>
59555         tests: avoid test failure on Solaris 10 due to lack of PATH export
59556         * tests/test-update-copyright.sh: Don't forget to export PATH.
59558         init.sh: ensure that IFS is defined, just in case...
59559         * tests/init.sh (setup_): Ensure that IFS is defined,
59560         so that saving and restoring it works as expected.  This
59561         appears to be useful at least for an old version of dash
59562         from a long time ago (RH 6).  See here for details:
59563         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59565         maint.mk: tighten "test a == b" check
59566         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59567         test to files that contain something like #!/bin/sh.
59568         Without this, coreutils would get two false positives in
59569         the comments of C source files.
59571 2010-11-12  Eric Blake  <eblake@redhat.com>
59573         bootstrap: fix typo in previous attempt
59574         * build-aux/bootstrap (buildreq): Correct the grouping.
59575         Reported by Paul Eggert.
59577         maintainer-makefile: prohibit test x == x
59578         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59579         Based on a report by Matthias Bolte.
59581         bootstrap: allow FreeBSD gzip
59582         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59583         which has no '.' and goes to stderr.
59584         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59585         Reported by Matthias Bolte.
59587         maintainer-makefile: check for i18n setup
59588         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59589         will likely work.
59591 2010-11-12  Bruno Haible  <bruno@clisp.org>
59593         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59594         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59595         * lib/nanosleep.c (nanosleep): Likewise.
59597 2010-11-11  Bruno Haible  <bruno@clisp.org>
59599         fcntl-h: Fix for use of C++ on glibc systems.
59600         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59601         also on glibc systems in C++ mode.
59602         Reported by Gary V. Vaughan <gary@gnu.org>.
59604 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59606         mknod: avoid false failure with dash
59607         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59609 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59611         unlink: Fix "is it should" typo in diagnostic.
59612         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59613         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59615 2010-11-11  Bruno Haible  <bruno@clisp.org>
59617         Tests for module 'strerror_r-posix'.
59618         * modules/strerror_r-posix-tests: New file.
59619         * tests/test-strerror_r.c: New file.
59620         * tests/test-string-c++.cc: Check the signature of strerror_r.
59622         New module 'strerror_r-posix'.
59623         * lib/string.in.h (strerror_r): New declaration.
59624         * lib/strerror_r.c: New file.
59625         * m4/strerror_r.m4: New file.
59626         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59627         of strerror_r.
59628         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59629         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59630         * modules/strerror_r-posix: New file.
59631         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59632         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59633         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59634         portability problems.
59636 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59638         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59639         line is also considered for output. Quoted function name in shell
59640         command, so temporary files for functions like MyClass::operator()
59641         are removed correctly without errors.
59643 2010-11-09  Bruno Haible  <bruno@clisp.org>
59645         * doc/posix-functions/strerror.texi: List more failing platforms.
59647         * doc/posix-functions/strerror.texi: Add a comment.
59649 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59651         fdopendir: fix bug on MacOS X when low on file descriptors
59653         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59654         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59655         All callers changed.
59656         (fdopendir): Invoke save_cwd at the top level, not after using
59657         multiple dup() calls to use up file descriptors.  Then retry
59658         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59659         less than the maximum number of open file descriptors, because
59660         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59661         on Mac OS X 10.6.4 for tar 1.24
59662         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59663         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59664         and for tar 1.25
59665         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59667 2010-11-07  Bruno Haible  <bruno@clisp.org>
59669         vasnprintf: Support I flag on glibc systems.
59670         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59671         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59672         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59673         snprintf function.
59674         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59675         glibc systems.
59676         * tests/test-vasnprintf-posix3.c: New file.
59677         * modules/vasnprintf-posix-tests (Files): Add it.
59678         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59680 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59682         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59683         * MODULES.html.sh: For compiler warnings, use name
59684         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59686 2010-11-05  Eric Blake  <eblake@redhat.com>
59688         ceil, floor: avoid spurious failure with icc
59689         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59690         [denormals-as-zero] when optimizing without -mieee-fp option.
59691         * tests/test-floorf2.c (floorf_reference): Likewise.
59692         * tests/test-ceilf1.c (dummy): New function.
59693         (main): Use it to outsmart icc's optimization.
59694         * tests/test-floorf1.c (dummy, main): Likewise.
59696         tests: require working signbit
59697         * modules/ceilf-tests (Depends-on): Add signbit.
59698         * modules/ceill-tests (Depends-on): Likewise.
59699         * modules/floorf-tests (Depends-on): Likewise.
59700         * modules/floorl-tests (Depends-on): Likewise.
59701         * modules/round-tests (Depends-on): Likewise.
59702         * modules/roundf-tests (Depends-on): Likewise.
59703         * modules/roundl-tests (Depends-on): Likewise.
59704         * modules/trunc-tests (Depends-on): Likewise.
59705         * modules/truncf-tests (Depends-on): Likewise.
59706         * modules/truncl-tests (Depends-on): Likewise.
59708         strtod: work around icc bug
59709         * lib/strtod.c (minus_zero): Define to working value.
59710         (strtod): Use it to avoid icc bug.
59712         copysign: enhance tests
59713         * modules/copysign-tests (Files): Add minus-zero.h.
59714         * tests/test-copysign.c (main): Also test zeros.
59716 2010-11-04  Eric Blake  <eblake@redhat.com>
59718         ceil, floor, round, trunc: enhance tests of -0
59719         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59720         * tests/test-ceill.c (main): Likewise.
59721         * tests/test-floorf1.c (main): Likewise.
59722         * tests/test-floorl.c (main): Likewise.
59723         * tests/test-round1.c (main): Likewise.
59724         * tests/test-roundf1.c (main): Likewise.
59725         * tests/test-roundl.c (main): Likewise.
59726         * tests/test-trunc1.c (main): Likewise.
59727         * tests/test-truncf1.c (main): Likewise.
59728         * tests/test-truncl.c (main): Likewise.
59730 2010-11-04  Eric Blake  <eblake@redhat.com>
59732         frexp, tests: work around ICC bug with -zero
59733         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59734         works with more compilers.
59735         * tests/minus-zero.h: New file.
59736         * modules/ceilf-tests (Files): Include it.
59737         * modules/ceill-tests (Files): Likewise.
59738         * modules/floorf-tests (Files): Likewise.
59739         * modules/floorl-tests (Files): Likewise.
59740         * modules/frexp-nolibm-tests (Files): Likewise.
59741         * modules/frexp-tests (Files): Likewise.
59742         * modules/frexpl-nolibm-tests (Files): Likewise.
59743         * modules/frexpl-tests (Files): Likewise.
59744         * modules/isnan-tests (Files): Likewise.
59745         * modules/isnand-nolibm-tests (Files): Likewise.
59746         * modules/isnand-tests (Files): Likewise.
59747         * modules/isnanf-nolibm-tests (Files): Likewise.
59748         * modules/isnanf-tests (Files): Likewise.
59749         * modules/isnanl-nolibm-tests (Files): Likewise.
59750         * modules/isnanl-tests (Files): Likewise.
59751         * modules/round-tests (Files): Likewise.
59752         * modules/roundf-tests (Files): Likewise.
59753         * modules/roundl-tests (Files): Likewise.
59754         * modules/ldexpl-tests (Files): Likewise.
59755         * modules/signbit-tests (Files): Likewise.
59756         * modules/snprintf-posix-tests (Files): Likewise.
59757         * modules/sprintf-posix-tests (Files): Likewise.
59758         * modules/strtod-tests (Files): Likewise.
59759         * modules/trunc-tests (Files): Likewise.
59760         * modules/truncf-tests (Files): Likewise.
59761         * modules/truncl-tests (Files): Likewise.
59762         * modules/vsnprintf-posix-tests (Files): Likewise.
59763         * modules/vsprintf-posix-tests (Files): Likewise.
59764         * modules/vasnprintf-posix-tests (Files): Likewise.
59765         * modules/vasprintf-posix-tests (Files): Likewise.
59766         * tests/test-ceilf1.c (main): Use it.
59767         * tests/test-ceill.c (main): Likewise.
59768         * tests/test-floorf1.c (main): Likewise.
59769         * tests/test-floorl.c (main): Likewise.
59770         * tests/test-frexp.c (main): Likewise.
59771         * tests/test-frexpl.c (main): Likewise.
59772         * tests/test-isnan.c (main): Likewise.
59773         * tests/test-isnand.h (main): Likewise.
59774         * tests/test-isnanf.h (main): Likewise.
59775         * tests/test-isnanl.h (main): Likewise.
59776         * tests/test-ldexpl.c (main): Likewise.
59777         * tests/test-round.c (main): Likewise.
59778         * tests/test-roundf.c (main): Likewise.
59779         * tests/test-roundl.c (main): Likewise.
59780         * tests/test-signbit.c (test_signbitf, test_signbitd)
59781         (test_signbitl): Likewise.
59782         * tests/test-snprintf-posix.h (test_function): Likewise.
59783         * tests/test-sprintf-posix.h (test_function): Likewise.
59784         * tests/test-strtod.c (main): Likewise.
59785         * tests/test-trunc1.c (main): Likewise.
59786         * tests/test-truncf1.c (main): Likewise.
59787         * tests/test-truncl.c (main): Likewise.
59789         isnanl: work around icc bug
59790         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59792 2010-11-03  Eric Blake  <eblake@redhat.com>
59794         tests: fix compiler warnings
59795         * tests/test-getopt.h (test_getopt): Fix condition.
59796         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59797         * tests/test-pipe2.c (main): Likewise.
59798         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59800         utimens: fix broken m4 test
59801         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59803 2010-10-28  Bruno Haible  <bruno@clisp.org>
59805         posix_spawn*, getdtablesize: Relax license.
59806         * modules/posix_spawn (License): Change to LGPLv2+.
59807         * modules/posix_spawnp (License): Likewise.
59808         * modules/posix_spawn-internal (License): Likewise.
59809         * modules/posix_spawnattr_init (License): Likewise.
59810         * modules/posix_spawnattr_getflags (License): Likewise.
59811         * modules/posix_spawnattr_setflags (License): Likewise.
59812         * modules/posix_spawnattr_getpgroup (License): Likewise.
59813         * modules/posix_spawnattr_setpgroup (License): Likewise.
59814         * modules/posix_spawnattr_getschedparam (License): Likewise.
59815         * modules/posix_spawnattr_setschedparam (License): Likewise.
59816         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59817         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59818         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59819         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59820         * modules/posix_spawnattr_getsigmask (License): Likewise.
59821         * modules/posix_spawnattr_setsigmask (License): Likewise.
59822         * modules/posix_spawnattr_destroy (License): Likewise.
59823         * modules/posix_spawn_file_actions_init (License): Likewise.
59824         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59825         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59826         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59827         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59828         * modules/getdtablesize (License): Likewise.
59829         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59831 2010-10-26  Bruno Haible  <bruno@clisp.org>
59833         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59834         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59835         Cygwin and mingw.
59836         Suggested by Eric Blake.
59838 2010-10-26  Bruno Haible  <bruno@clisp.org>
59840         stdio: Work around compilation error due to renameat() on Solaris 10.
59841         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59842         * lib/renameat.c: Don't include <unistd.h> here.
59843         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59844         Reported by Paul Eggert and Eric Blake.
59846 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59848         renameat: port to Solaris 10, which declares renameat in unistd.h
59850         * lib/renameat.c: Include unistd.h before stdio.h, because
59851         Solaris 10 declares renameat in unistd.h.  Problem encountered
59852         when building GNU tar 1.24 on Solaris 10.
59854 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59856         fdopendir: fix C89 compilation
59857         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59858         compilers.
59860 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59862         inttostr: simplify by removing unnecessary redundancy
59863         * lib/anytostr.c: Don't include verify.h.
59864         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59865         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59866         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59867         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59868         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59869         Likewise.
59870         * modules/inttostr (Depends-on): Remove 'verify'.
59872 2010-10-23  Bruno Haible  <bruno@clisp.org>
59874         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59875         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59876         Reported by Eric Blake.
59878 2010-10-23  Bruno Haible  <bruno@clisp.org>
59880         Tests: Fix LOCALE_JA on MirBSD 10.
59881         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59882         to an UTF-8 locale.
59883         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59884         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59885         Reported by Eric Blake.
59887 2010-10-21  Bruno Haible  <bruno@clisp.org>
59889         nl_langinfo test: Avoid test failure on NetBSD 5.
59890         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59891         Reported by Eric Blake.
59893 2010-10-21  Eric Blake  <eblake@redhat.com>
59895         c-stack: work around libsigsegv 2.8 bug
59896         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59897         overflow on at least PowerPC64.
59899 2010-10-17  Bruno Haible  <bruno@clisp.org>
59901         userspec: Drop redundant file.
59902         * modules/userspec (Files): Remove lib/inttostr.h.
59904 2010-10-17  Bruno Haible  <bruno@clisp.org>
59906         nl_langinfo tests: Silence some warnings.
59907         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59908         Reported by Jim Meyering.
59910 2010-10-17  Bruno Haible  <bruno@clisp.org>
59912         Make use of GCC's attribute __alloc_size__.
59913         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59914         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59915         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59916         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59917         __alloc_size__.
59918         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59919         Suggested by Jim Meyering.
59921 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59923         bootstrap: anchor .gitignore entries.
59924         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59925         with...
59926         (insert_vc_ignore): ... this new function, which prepends `/' to
59927         all .gitignore entries before passing them to
59928         insert_sorted_if_absent.
59930 2010-10-16  Bruno Haible  <bruno@clisp.org>
59932         nextafter: Fix configure check.
59933         * modules/nextafter (configure.ac): Correct expected prototype.
59935 2010-10-16  Bruno Haible  <bruno@clisp.org>
59937         termios: Update documentation.
59938         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59940 2010-10-16  Bruno Haible  <bruno@clisp.org>
59942         tests: Make them compile with TinyCC.
59943         * tests/test-strstr.c (main): Remove parentheses around array
59944         initializer.
59946 2010-10-15  Eric Blake  <eblake@redhat.com>
59948         ignore-value: make header idempotent
59949         * lib/ignore-value.h: Add double-inclusion guards.
59950         Reported by Stefan Berger.
59952 2010-10-15  Jim Meyering  <meyering@redhat.com>
59954         GNUmakefile: handle "stable" target, not "major"
59955         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59956         lists in maint.mk and announce-gen.  Without this, "make stable"
59957         would fail to ensure that $(VERSION) is up to date.
59959 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59961         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59962         & co.
59964 2010-10-14  Bruno Haible  <bruno@clisp.org>
59966         vasnprintf: Don't set errno to 0.
59967         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
59968         block that sets it to 0.
59969         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
59971 2010-10-14  Bruno Haible  <bruno@clisp.org>
59973         socketlib: Fix.
59974         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
59975         gl_PREREQ_SYS_H_WINSOCK2.
59976         Reported by Ian Beckwith <ianb@erislabs.net>.
59978 2010-10-13  Jim Meyering  <meyering@redhat.com>
59980         test-select-stdin.c: avoid warn_unused_result warnings
59981         * tests/test-select-stdin.c: Include "macros.h".
59982         ASSERT that read and fflush succeed.
59984 2010-10-13  Jim Meyering  <meyering@redhat.com>
59986         git-version-gen: do require git-VC'd files in cwd
59987         * build-aux/git-version-gen: Reject a git version string
59988         if there are no commits associated with the current directory.
59989         This avoids an unlikely false-positive (unrelated dir whose parent
59990         repository also contains a tag matching v*), as pointed out
59991         by Giuseppe Scrivano in
59992         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
59994 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59996         argv-iter: omit nonconforming declaration
59997         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
59998         enum arg_iter_err declaration, which doesn't conform to C99.
59999         Solaris 10 cc warns about this.
60001 2010-10-13  Eric Blake  <eblake@redhat.com>
60003         termios: fix compilation on mingw
60004         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60005         (gl_TERMIOS_H): Adjust it on mingw.
60006         * modules/termios (Makefile.am): Substitute new key.
60007         * lib/termios.in.h (includes): Make include_next conditional.
60008         * doc/posix-headers/termios.texi (termios.h): Update
60009         documentation.
60010         Reported by Daniel P. Berrange.
60012 2010-10-13  Jim Meyering  <meyering@redhat.com>
60014         git-version-gen: don't require that .git/ be in the current dir
60015         * build-aux/git-version-gen: Adjust this script so that it works
60016         when run from any working directory beneath the top-level .git/-
60017         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60020         test-select: avoid warn_unused_result warnings
60021         * tests/test-select.c: Include "macros.h".
60022         ASSERT that each call to read, write, and pipe succeeds.
60023         While not technically required, also check each "close".
60024         * modules/select-tests (Files): Add tests/macros.h.
60026         test-symlinkat: remove declaration of unused local
60027         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60029         test-inttostr: avoid shadowing warnings
60030         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60031         and use malloc rather than the stack for the same reason as
60032         mentioned in the comment justifying the other allocation.
60034 2010-10-11  Bruno Haible  <bruno@clisp.org>
60036         stdlib: Allow multiple gnulib generated replacements to coexist.
60037         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60038         Reported by Sam Steingold <sds@gnu.org>.
60040 2010-10-11  Jim Meyering  <meyering@redhat.com>
60042         fix a documentation typo
60043         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60045 2010-10-11  Eric Blake  <eblake@redhat.com>
60047         futimens: work around Solaris 11 bug
60048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60049         * tests/test-futimens.h (test_futimens): Enhance, rather than
60050         weaken test.
60051         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60053 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60055         Indentation.
60056         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60057         higher-level operators more to the left.
60059 2010-10-11  Jim Meyering  <meyering@redhat.com>
60061         test-futimens: avoid unwarranted test failure on Solaris 5.11
60062         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60063         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60064         because it tries to dereference the NULL name argument.
60066 2010-10-11  Bruno Haible  <bruno@clisp.org>
60068         Indentation.
60069         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60070         indentation.
60072 2010-10-11  Jim Meyering  <meyering@redhat.com>
60074         spawn.in.h: make indentation consistent with parentheses
60075         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
60076         Make indentation consistent with parentheses.
60078 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
60080         Fix mismatched parens in previous commit
60081         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
60082         parens.
60084 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60086         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
60088         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
60089         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
60090         * lib/malloca.c: Include "verify.h".
60091         (verify1): Remove, replacing with a verify call.
60092         * lib/relocwrapper.c (verify1): Likewise.
60093         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
60094         Likewise.
60095         * modules/malloca (Depends-on): Add 'verify'.
60096         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
60097         * modules/vasnprintf (Depends-on): Add 'verify'.
60098         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60099         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60100         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60101         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60102         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60103         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60104         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60106         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
60108         Formerly the style was sometimes 2*X - 1, because the C standard
60109         was wrongly thought to disallow ?: in integral constant expressions.
60110         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60111         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60112         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60113         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60114         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60115         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60116         verify that time_t cannot be floating.
60118 2010-10-08  Eric Blake  <eblake@redhat.com>
60120         time: enforce recent POSIX ruling that time_t is integral
60121         * lib/time.in.h (__time_t_must_be_integral): Detect any
60122         problematic systems, allowing the rest of gnulib to assume POSIX.
60124 2010-10-08  Jim Meyering  <meyering@redhat.com>
60126         fdopendir: fix a bug on systems lacking openat and /proc support
60127         OpenBSD 4.7 is one such system.  The most noticeable effect was
60128         failure of any application making nontrivial use of fts: rm, du,
60129         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60130           ./rm: traversal failed: `a': Bad file descriptor
60131         Debugging that, you see that even though FD 6 was closed just
60132         prior to the opendir call in fd_clone_opendir, its resulting
60133         dir->dd_fd was 8, rather than the expected value of 6:
60135         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60136         93                close (fd);
60137         (gdb) n
60138         94                dir = fd_clone_opendir (dupfd);
60139         (gdb) n
60140         95                saved_errno = errno;
60141         (gdb) p dir->dd_fd
60142         $11 = 8
60144         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60145         The problem is that on OpenBSD, fd_clone_opendir has to resort
60146         to using the old-style save/restore CWD mechanism, due to its
60147         lack of openat/proc support, and *that* would steal the FD (6)
60148         that opendir was supposed to use.
60150         The fix is to squirrel away the desired FD so that save_cwd uses a
60151         different one, and then free the dest FD right before calling opendir.
60152         That guarantees opendir will use the required file descriptor.
60154         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60156 2010-10-08  Bruno Haible  <bruno@clisp.org>
60158         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60159         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60161 2010-10-08  Bruno Haible  <bruno@clisp.org>
60163         nanosleep: Make replacement POSIX compliant.
60164         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60165         is out of range.
60166         Reported by Jim Meyering.
60168 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60170         bootstrap: add hook for altering gnulib.mk, for Bison
60171         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60172         the Bison bootstrapping process can rewrite file names and variables
60173         in this file before later parts of 'bootstrap' use the file.
60174         Bison wants to include lib/gnulib.mk from the top-level makefile,
60175         so it needs the file names in this file to be relative to the top
60176         level, not relative to lib; plus it needs variable names to be
60177         rewritten.
60178         (slurp): Use the new function.
60180         bootstrap: reformat for readability
60181         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60183 2010-10-08  Eric Blake  <eblake@redhat.com>
60185         docs: update cygwin progress
60186         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60187         1.7.7.
60188         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60189         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60190         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60191         * doc/posix-functions/carg.texi (carg): Likewise.
60192         * doc/posix-functions/cargf.texi (cargf): Likewise.
60193         * doc/posix-functions/casin.texi (casin): Likewise.
60194         * doc/posix-functions/casinf.texi (casinf): Likewise.
60195         * doc/posix-functions/casinh.texi (casinh): Likewise.
60196         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60197         * doc/posix-functions/catan.texi (catan): Likewise.
60198         * doc/posix-functions/catanf.texi (catanf): Likewise.
60199         * doc/posix-functions/catanh.texi (catanh): Likewise.
60200         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60201         * doc/posix-functions/ccos.texi (ccos): Likewise.
60202         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60203         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60204         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60205         * doc/posix-functions/cexp.texi (cexp): Likewise.
60206         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60207         * doc/posix-functions/cimag.texi (cimag): Likewise.
60208         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60209         * doc/posix-functions/clog.texi (clog): Likewise.
60210         * doc/posix-functions/clogf.texi (clogf): Likewise.
60211         * doc/posix-functions/conj.texi (conj): Likewise.
60212         * doc/posix-functions/conjf.texi (conjf): Likewise.
60213         * doc/posix-functions/cpow.texi (cpow): Likewise.
60214         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60215         * doc/posix-functions/cproj.texi (cproj): Likewise.
60216         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60217         * doc/posix-functions/creal.texi (creal): Likewise.
60218         * doc/posix-functions/crealf.texi (crealf): Likewise.
60219         * doc/posix-functions/csin.texi (csin): Likewise.
60220         * doc/posix-functions/csinf.texi (csinf): Likewise.
60221         * doc/posix-functions/csinh.texi (csinh): Likewise.
60222         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60223         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60224         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60225         * doc/posix-functions/ctan.texi (ctan): Likewise.
60226         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60227         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60228         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60229         * doc/posix-headers/complex.texi (complex.h): Likewise.
60231 2010-10-07  Jim Meyering  <meyering@redhat.com>
60233         parse-datetime: avoid compilation failure on OpenBSD 4.7
60234         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60235         This works around a compilation failure on OpenBSD 4.7:
60236         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60238 2010-10-07  Eric Blake  <eblake@redhat.com>
60240         docs: update cygwin progress
60241         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60242         1.7.6.
60243         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60244         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60245         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60246         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60247         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60248         Likewise.
60249         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60250         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60251         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60252         Likewise.
60253         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60254         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60255         Likewise.
60256         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60257         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60258         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60259         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60260         Likewise.
60261         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60262         Likewise.
60263         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60265         docs: update parse-datetime history
60266         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60267         documentation of this function's history and alternatives.
60269         cygwin: use more robust version check
60270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60271         exclude an eventual cygwin 1.9.1.
60272         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60274         (gl_FUNC_STRCASESTR): Likewise.
60275         Reported by Bruno Haible.
60277 2010-10-06  Bruno Haible  <bruno@clisp.org>
60279         string, sys_select: Avoid #including large headers unless necessary.
60280         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60281         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60282         OSF/1, BeOS, Haiku.
60283         Reported by Jim Meyering.
60285 2010-10-05  Eric Blake  <eblake@redhat.com>
60287         memmem, strstr, strcasestr: fix bug with long periodic needle
60288         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60289         periodic needle having false positive.
60290         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60291         and cygwin 1.7.7.
60292         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60294         (gl_FUNC_STRCASESTR): Likewise.
60295         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60296         * tests/test-memmem.c (main): Expose the bug.
60297         * tests/test-strcasestr.c (main): Likewise.
60298         * tests/test-strstr.c (main): Likewise.
60299         * tests/test-c-strcasestr.c (main): Likewise.
60300         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60301         * doc/posix-functions/strstr.texi (strstr): Likewise.
60302         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60303         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60305 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60307         parse-datetime: do some more renaming
60308         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60309         parse_datetime, not get_date.  Mention the renaming.
60310         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60311         in comments.
60312         * m4/bison.m4: Likewise.
60314 2010-10-05  Eric Blake  <eblake@redhat.com>
60316         parse-datetime: better name than get_date
60317         * NEWS: Reword the deprecation notice.
60318         * modules/get_date: Rename to modules/parse-datetime.
60319         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60320         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60321         * lib/get_date.y: Rename to lib/parse-datetime.y.
60322         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60323         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60324         * doc/getdate.texi: Provide fallback wrapper.
60325         * lib/getdate.h: Move guts, and wrap...
60326         * lib/parse-datetime.h: ...new file.
60327         * lib/parse-datetime.y (get_date): Rename...
60328         (parse_datetime): ...to this.
60329         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60330         (gl_PARSE_DATETIME): ...to this.
60331         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60332         documentation.
60333         * modules/getdate (Files): Provide fallback docs and header.
60334         (Notice, Depends-on): Update references.
60335         * tests/test-parse-datetime.c: Likewise.
60336         * DEPENDENCIES: Likewise.
60337         * MODULES.html.sh (Date and time <time.h>): Likewise.
60338         * doc/parse-datetime.texi (Date input formats)
60339         (Authors of parse_datetime): Likewise.
60340         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60341         (Include): Likewise.
60342         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60343         * gnulib-tool: Likewise.
60344         * m4/bison.m4 (gl_BISON): Likewise.
60345         Suggested by Bruno Haible.
60347 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60349         more ports to Solaris tr, which needs [] around ranges
60350         * gnulib-tool: Solaris tr needs [] around ranges.
60351         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60352         * tests/test-pipe-filter-gi1.c (main): Likewise.
60353         * tests/test-pipe-filter-ii1.c (main): Likewise.
60355 2010-10-05  Eric Blake  <eblake@redhat.com>
60357         bootstrap: fix Solaris regression
60358         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60359         around ranges.
60360         Reported by Pádraig Brady.
60362         bootstrap: work with pkg-config
60363         * build-aux/bootstrap (check_versions): Also transliterate - in
60364         prerequisite name.
60365         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60366         prerequisites that were already found, to avoid confusion.
60367         Reported by Justin Clift.
60369         faccessat: remove unused wrappers
60370         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60371         presence of these wrappers dragged in -lgen on Solaris.
60372         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60374 2010-10-05  Jim Meyering  <meyering@redhat.com>
60376         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60377         * Makefile (sc_pragma_columns): New syntax-check rule.
60379 2010-10-04  Bruno Haible  <bruno@clisp.org>
60381         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60382         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60383         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60384         Reported by Bruce Korb and Eric Blake.
60386 2010-10-04  Bruno Haible  <bruno@clisp.org>
60388         threadlib: Make option --with-libpth-prefix work.
60389         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60390         use $LIBPTH, not just -lpth.
60392 2010-10-04  Bruno Haible  <bruno@clisp.org>
60394         Avoid line length limitation from HP NonStop system header files.
60395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60396         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60397         * lib/ctype.in.h: Likewise.
60398         * lib/dirent.in.h: Likewise.
60399         * lib/errno.in.h: Likewise.
60400         * lib/fcntl.in.h: Likewise.
60401         * lib/float.in.h: Likewise.
60402         * lib/getopt.in.h: Likewise.
60403         * lib/iconv.in.h: Likewise.
60404         * lib/inttypes.in.h: Likewise.
60405         * lib/langinfo.in.h: Likewise.
60406         * lib/locale.in.h: Likewise.
60407         * lib/math.in.h: Likewise.
60408         * lib/netdb.in.h: Likewise.
60409         * lib/netinet_in.in.h: Likewise.
60410         * lib/poll.in.h: Likewise.
60411         * lib/pthread.in.h: Likewise.
60412         * lib/pty.in.h: Likewise.
60413         * lib/sched.in.h: Likewise.
60414         * lib/se-selinux.in.h: Likewise.
60415         * lib/search.in.h: Likewise.
60416         * lib/signal.in.h: Likewise.
60417         * lib/spawn.in.h: Likewise.
60418         * lib/stdarg.in.h: Likewise.
60419         * lib/stddef.in.h: Likewise.
60420         * lib/stdint.in.h: Likewise.
60421         * lib/stdio.in.h: Likewise.
60422         * lib/stdlib.in.h: Likewise.
60423         * lib/string.in.h: Likewise.
60424         * lib/strings.in.h: Likewise.
60425         * lib/sys_file.in.h: Likewise.
60426         * lib/sys_ioctl.in.h: Likewise.
60427         * lib/sys_select.in.h: Likewise.
60428         * lib/sys_socket.in.h: Likewise.
60429         * lib/sys_stat.in.h: Likewise.
60430         * lib/sys_time.in.h: Likewise.
60431         * lib/sys_times.in.h: Likewise.
60432         * lib/sys_utsname.in.h: Likewise.
60433         * lib/sys_wait.in.h: Likewise.
60434         * lib/sysexits.in.h: Likewise.
60435         * lib/termios.in.h: Likewise.
60436         * lib/time.in.h: Likewise.
60437         * lib/unistd.in.h: Likewise.
60438         * lib/wchar.in.h: Likewise.
60439         * lib/wctype.in.h: Likewise.
60440         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60441         * modules/ctype (Makefile.am): Likewise.
60442         * modules/dirent (Makefile.am): Likewise.
60443         * modules/errno (Makefile.am): Likewise.
60444         * modules/fcntl-h (Makefile.am): Likewise.
60445         * modules/float (Makefile.am): Likewise.
60446         * modules/getopt-posix (Makefile.am): Likewise.
60447         * modules/iconv-h (Makefile.am): Likewise.
60448         * modules/inttypes (Makefile.am): Likewise.
60449         * modules/langinfo (Makefile.am): Likewise.
60450         * modules/locale (Makefile.am): Likewise.
60451         * modules/math (Makefile.am): Likewise.
60452         * modules/netdb (Makefile.am): Likewise.
60453         * modules/netinet_in (Makefile.am): Likewise.
60454         * modules/poll-h (Makefile.am): Likewise.
60455         * modules/pthread (Makefile.am): Likewise.
60456         * modules/pty (Makefile.am): Likewise.
60457         * modules/sched (Makefile.am): Likewise.
60458         * modules/search (Makefile.am): Likewise.
60459         * modules/selinux-h (Makefile.am): Likewise.
60460         * modules/signal (Makefile.am): Likewise.
60461         * modules/spawn (Makefile.am): Likewise.
60462         * modules/stdarg (Makefile.am): Likewise.
60463         * modules/stddef (Makefile.am): Likewise.
60464         * modules/stdint (Makefile.am): Likewise.
60465         * modules/stdio (Makefile.am): Likewise.
60466         * modules/stdlib (Makefile.am): Likewise.
60467         * modules/string (Makefile.am): Likewise.
60468         * modules/strings (Makefile.am): Likewise.
60469         * modules/sys_file (Makefile.am): Likewise.
60470         * modules/sys_ioctl (Makefile.am): Likewise.
60471         * modules/sys_select (Makefile.am): Likewise.
60472         * modules/sys_socket (Makefile.am): Likewise.
60473         * modules/sys_stat (Makefile.am): Likewise.
60474         * modules/sys_time (Makefile.am): Likewise.
60475         * modules/sys_times (Makefile.am): Likewise.
60476         * modules/sys_utsname (Makefile.am): Likewise.
60477         * modules/sys_wait (Makefile.am): Likewise.
60478         * modules/sysexits (Makefile.am): Likewise.
60479         * modules/termios (Makefile.am): Likewise.
60480         * modules/time (Makefile.am): Likewise.
60481         * modules/unistd (Makefile.am): Likewise.
60482         * modules/wchar (Makefile.am): Likewise.
60483         * modules/wctype (Makefile.am): Likewise.
60485 2010-10-04  Bruno Haible  <bruno@clisp.org>
60487         read-file tests: Avoid a test failure on NonStop Kernel.
60488         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60489         a regular file.
60490         Reported by Joachim Schmitz <schmitz@hp.com>.
60492 2010-10-03  Bruno Haible  <bruno@clisp.org>
60494         gnulib-tool: Fixes for --create-testdir with --libtool.
60495         * gnulib-tool (func_get_automake_snippet): Don't augment
60496         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60497         an executable.
60498         (func_create_testdir): Handle module 'alloca' like func_import.
60499         Reported by Bruce Korb <bruce.korb@gmail.com>.
60501 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60503         Avoid some lines longer than 80 characters.
60504         * lib/stdint.in.h: Break long comment lines.
60505         * lib/math.in.h: Likewise.
60506         (_GL_NUM_UINT_WORDS): New macro, for readability.
60507         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60508         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60509         * lib/stdlib.in.h: Likewise.
60510         * lib/spawn.in.h: Likewise.
60511         * lib/sys_socket.in.h: Update an URL.
60512         * lib/sys_stat.in.h: Break long line.
60514 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60516         Improve pmccabe2html.
60517         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60518         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60519         when the sources change. Remove the line in the HTML about "Used
60520         ranges" (which implied that there might be other unused ranges),
60521         rename "Resume" to "Summary" (easier to understand for more users).
60522         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60523         styles, and some unnecessary blank lines.
60525 2010-10-03  Bruno Haible  <bruno@clisp.org>
60526             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60528         acl: Add support for ACLs on NonStop Kernel.
60529         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60530         Check whether the function aclsort() exists.
60531         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60532         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60533         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60534         (acl_nontrivial [HAVE_ACLSORT]: New function.
60535         (file_has_acl): Implement for NonStop Kernel.
60536         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60537         (qset_acl): Implement for NonStop Kernel.
60538         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60539         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60540         (main): Implement for NonStop Kernel.
60541         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60542         Kernel. Handle this flavor.
60543         * tests/test-set-mode-acl.sh: Likewise.
60544         * tests/test-copy-acl.sh: Likewise.
60545         * tests/test-copy-file.sh: Likewise.
60547 2010-10-03  Bruno Haible  <bruno@clisp.org>
60549         Info about ACLs on NonStop Kernel.
60550         * doc/acl-resources.txt: Add info about NonStop Kernel.
60551         References by Joachim Schmitz <schmitz@hp.com>.
60553 2010-10-02  Bruno Haible  <bruno@clisp.org>
60555         Define missing EDQUOT on NonStop Kernel.
60556         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60557         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60558         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60559         missing.
60560         * doc/posix-headers/errno.texi: Mention the NSK bug.
60561         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60562         Reported by Joachim Schmitz <schmitz@hp.com>.
60564 2010-10-02  Bruno Haible  <bruno@clisp.org>
60566         Update doc for POSIX:2008.
60567         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60568         Update URL of POSIX specification.
60570 2010-10-02  Bruno Haible  <bruno@clisp.org>
60572         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60573         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60574         from gnulib, not from Automake.
60576 2010-10-02  Bruno Haible  <bruno@clisp.org>
60578         New module 'system-posix'.
60579         * modules/system-posix: New file.
60580         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60581         module is present.
60582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60583         GNULIB_SYSTEM_POSIX.
60584         * modules/stdlib (Depends-on): Remove sys_wait.
60585         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60586         * doc/posix-functions/system.texi: Mention the new module.
60587         * doc/posix-headers/stdlib.texi: Likewise.
60588         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60589         define test_sys_wait_macros to a no-op.
60590         Reported by Sam Steingold <sds@gnu.org>.
60592 2010-09-30  Bruno Haible  <bruno@clisp.org>
60594         More renaming from 'getdate' to 'get_date'.
60595         * doc/get_date.texi: Renamed from doc/getdate.texi.
60596         * modules/get_date (Files): Update.
60597         * MODULES.html.sh (Date and time <time.h>): Update.
60598         * DEPENDENCIES: Update.
60599         * gnulib-tool: Update comment.
60600         * m4/bison.m4 (gl_BISON): Likewise.
60601         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60603 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60605         bootstrap: support ACLOCAL_FLAGS during aclocal
60606         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60607         can add additional -I dir for third-party .m4 files.
60609 2010-09-30  Eric Blake  <eblake@redhat.com>
60611         bootstrap: use glibtoolize on MacOS
60612         * build-aux/bootstrap (check_versions): Convert libtool into
60613         libtoolize.
60614         (tool search): Move libtool check earlier, and look for
60615         glibtoolize for MacOS.
60616         (gnulib_tool_options): Auto-add --libtool when appropriate.
60617         Reported by Justin Clift.
60619         poll: fix typo that broke test on MacOS
60620         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60621         Reported by Justin Clift.
60623         getdate: rename to get_date
60624         Note: getdate.h is not renamed, to minimize client impact.
60625         * modules/getdate: Mark obsolete.  Move old contents...
60626         * modules/get_date: ...to new module name.
60627         * modules/getdate-tests: Move...
60628         * modules/get_date-tests: ...here.
60629         * m4/getdate.m4: Move...
60630         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60631         * lib/getdate.y: Move...
60632         * lib/get_date.y: ...here.
60633         * tests/test-getdate.c: Move...
60634         * tests/test-get_date.c: ...here.
60635         * doc/posix-functions/getdate.texi (getdate): Update name.
60636         * NEWS: Mention the change.
60638 2010-09-29  Bruno Haible  <bruno@clisp.org>
60640         Separate the module 'waitpid' from the module 'sys_wait'.
60641         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60642         present.
60643         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60644         gl_MODULE_INDICATOR_FOR_TESTS.
60645         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60646         * modules/sys_wait (Depends-on): Remove waitpid.
60647         (Makefile.am): Substitute GNULIB_WAITPID.
60648         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60649         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60650         signature only if the 'waitpid' module is present.
60651         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60652         * NEWS: Mention the change.
60653         * modules/grantpt (Depends-on): Add waitpid.
60654         * modules/wait-process (Depends-on): Likewise.
60656 2010-09-29  Bruno Haible  <bruno@clisp.org>
60658         More tests for module 'sys_wait'.
60659         * modules/sys_wait-c++-tests: New file.
60660         * tests/test-sys_wait-c++.cc: New file.
60661         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60664 2010-09-29  Bruno Haible  <bruno@clisp.org>
60666         New module 'waitpid'.
60667         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60668         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60669         Don't include <process.h>.
60670         (waitpid): Declare only, using modern idiom.
60671         * m4/waitpid.m4: New file.
60672         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60673         * modules/waitpid: New file.
60674         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60675         (Makefile.am): Update.
60676         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60678 2010-09-28  Bruno Haible  <bruno@clisp.org>
60680         poll: Assume ANSI C.
60681         * lib/poll.c (poll): Use an ANSI C declaration.
60683 2010-09-28  Bruno Haible  <bruno@clisp.org>
60685         poll-h: Create poll.h on all platforms.
60686         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60687         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60688         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60689         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60690         (gl_REPLACE_POLL_H): Don't set POLL_H.
60691         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60692         * modules/poll-h (Depends-on): Add include_next.
60693         (Makefile.am): Create poll.h unconditionally. Substitute also
60694         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60696 2010-09-28  Bruno Haible  <bruno@clisp.org>
60698         Tests for module 'poll-h'.
60699         * modules/poll-h-c++-tests: New file.
60700         * tests/test-poll-h-c++.cc: New file.
60702         Tests for module 'poll-h'.
60703         * modules/poll-h-tests: New file.
60704         * tests/test-poll-h.c: New file.
60706 2010-09-28  Bruno Haible  <bruno@clisp.org>
60708         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60709         * modules/poll-h (Depends-on): Add 'extensions'.
60711 2010-09-28  Bruno Haible  <bruno@clisp.org>
60713         New module 'poll-h'.
60714         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60715         (poll): Use modern idiom.
60716         * modules/poll-h: New file.
60717         * modules/poll (Files): Remove lib/poll.in.h.
60718         (Depends-on): Add poll-h.
60719         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60720         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60721         * m4/poll_h.m4: New file.
60722         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60723         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60724         and invoke gl_REPLACE_POLL_H.
60725         * lib/poll.c: Use common idiom.
60726         * tests/test-poll.c: Likewise.
60727         * doc/posix-headers/poll.texi: Mention the poll-h module.
60728         Suggested by Eric Blake.
60730 2010-09-26  Bruno Haible  <bruno@clisp.org>
60732         sys_wait: Implement WSTOPSIG.
60733         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60734         Reported by Simon Josefsson.
60736 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60738         stdlib, sys_wait: Avoid compilation error on mingw.
60739         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60741 2010-09-26  Bruno Haible  <bruno@clisp.org>
60743         stdlib tests: Avoid code duplication.
60744         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60745         * modules/sys_wait-tests (Files): Likewise.
60746         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60747         * tests/test-stdlib.c: Include test-sys_wait.h.
60748         (main): Invoke test_sys_wait_macros.
60749         * tests/test-sys_wait.c: Include test-sys_wait.h.
60750         (main): Invoke test_sys_wait_macros.
60752 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60754         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60755         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60756         sure Windows sockets are working before calling getaddrinfo.
60757         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60758         * doc/gnulib.texi (Windows sockets): Fix typo.
60760 2010-09-25  Bruno Haible  <bruno@clisp.org>
60762         Tests for module 'regex-quote'.
60763         * modules/regex-quote-tests: New file.
60764         * tests/test-regex-quote.c: New file.
60766         New module 'regex-quote'.
60767         * lib/regex-quote.h: New file.
60768         * lib/regex-quote.c: New file.
60769         * modules/regex-quote: New file.
60770         Suggested by Reuben Thomas <rrt@sc3d.org>.
60772 2010-09-24  Bruno Haible  <bruno@clisp.org>
60774         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60775         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60777 2010-09-23  Bruno Haible  <bruno@clisp.org>
60779         setenv: Relax license.
60780         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60781         Blake.
60782         Requested by Eric Blake.
60784 2010-09-22  Bruno Haible  <bruno@clisp.org>
60786         termios: Relax license.
60787         * modules/termios (License): Change to LGPLv2+.
60788         Requested by Eric Blake.
60790 2010-09-22  Bruno Haible  <bruno@clisp.org>
60792         threadlib: Allow the package to change the default to 'no'.
60793         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60794         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60795         Reported by Paul Eggert.
60797 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60798             Bruno Haible  <bruno@clisp.org>
60800         Fix endless loop in mbmemcasecoll.
60801         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60802         byte.
60803         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60805 2010-09-22  Bruno Haible  <bruno@clisp.org>
60807         Tests for module 'memcoll'.
60808         * modules/memcoll-tests: New file.
60809         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60811         memcoll, xmemcoll: Clarify size vs. length.
60812         * modules/memcoll.c (memcoll0): Clarify specification.
60813         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60814         passed to collate_error.
60816 2010-09-22  Bruno Haible  <bruno@clisp.org>
60818         Tests for module 'memcasecmp'.
60819         * modules/memcasecmp-tests: New file.
60820         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60822 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60824         * lib/pthread.in.h: Add split double-inclusion guard, and include
60825         system <pthread.h> if there is one.  Use @@-style as in other
60826         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60827         pthread.h doesn't.
60828         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60829         (pthread_mutexattr_settype, pthread_mutex_trylock):
60830         New static inline functions, if there's no system <pthread.h>.
60831         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60832         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60833         Approximate with mutexes if the system lacks spinlocks, as in
60834         MacOS.
60835         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60836         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60837         @@-style.  Check for spinlocks separately.
60838         (gl_PTHREAD_DEFAULTS): New macro.
60839         * modules/pthread: Redo to use a more typical style for in.h files.
60841 2010-09-21  Eric Blake  <eblake@redhat.com>
60843         net_if: enhance tests
60844         * tests/test-net_if.c (main): Move signature checks earlier.
60845         Print failures to stderr.
60846         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60847         Document the bug that we do not yet fix.
60849 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60851         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60852         about gnulib, not GSS.
60854 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60856         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60857         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60858         for Emacs.
60859         * build-aux/pmccabe2html: Make Makefile.am example code more
60860         cut-and-paste friendly.
60862 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60864         * tests/test-net_if.c: New file.
60865         * modules/net_if-tests: New file.
60867 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60869         pthread: add pthread_spin_destroy
60870         * lib/pthread.in.h (pthread_spin_destroy): New function.
60872 2010-09-19  Bruno Haible  <bruno@clisp.org>
60874         gnulib-tool: Fix --help output.
60875         * gnulib-tool (func_usage): Fix help message.
60876         Reported by Reuben Thomas <rrt@sc3d.org>.
60878 2010-09-18  Jim Meyering  <meyering@redhat.com>
60880         maint.mk: avoid unexpanded \n in two diagnostics
60881         * top/maint.mk (sc_prohibit_always_true_header_tests):
60882         Don't use a literal \n in a halt=... assignment.  It would not be
60883         expanded, and the two \n bytes would appear in the diagnostic output
60884         rather than the desired newline.  Use halt=$$(printf ... instead.
60885         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60887 2010-09-18  Bruno Haible  <bruno@clisp.org>
60889         netinet_in: Doc tweak.
60890         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60891         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60893 2010-09-18  Jim Meyering  <meyering@redhat.com>
60895         init.sh: correct an outdated comment
60896         * tests/init.sh (create_exe_shims_):  s/function/alias/
60898         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60899         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60900         a file named "*.exe" is removed between the glob expansion and the
60901         processing of that oddly named file.
60903 2010-09-17  Eric Blake  <eblake@redhat.com>
60905         mirbsd: add some more support
60906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60907         in BSD family.
60908         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60909         devices as OpenBSD.
60910         * m4/host-os.m4 (mirbsd): Add MirBSD.
60912         tests: fix unportable assumption on sys/wait.h
60913         * tests/test-sys_wait.c (main): Relax test.
60914         * tests/test-stdlib.c (main): Likewise.
60916         init.sh: accommodate directory with no .exes
60917         * tests/init.sh: Accomodate directory containing only scripts.
60919         tests: avoid compiler warning
60920         * tests/test-stdlib.c (main): Use the variable.
60922         fdutimens, fdutimensat: update signature, again
60923         * lib/utimens.h (gl_futimens): Delete, and move signature...
60924         (fdutimens): ...here.
60925         (fdutimensat): Rearrange signature.
60926         (lutimensat): Rename variable for clarity.
60927         * lib/fdutimensat.c (fdutimensat): Update signature.
60928         * lib/utimens.c (fdutimens): Likewise.
60929         (gl_futimens): Delete.
60930         (utimens, lutimens): Update callers.
60931         * lib/futimens.c (futimens): Likewise.
60932         * tests/test-fdutimensat.c: Likewise.
60933         * tests/test-utimens.c: Likewise.
60934         * tests/test-futimens.h: Update comment.
60935         * NEWS: Mention this.
60936         Suggested by Paul Eggert.
60938 2010-09-17  Bruno Haible  <bruno@clisp.org>
60940         Take over the maintenance of some older macros from Autoconf.
60941         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60942         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60943         GNU Autoconf.
60944         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60945         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60947 2010-09-17  Eric Blake  <eblake@redhat.com>
60949         fdutimensat: drop atflag validation
60950         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60951         with valid fd, to close a race scenario where futimens is
60952         unsupported and FILE was replaced by a symlink.
60953         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60954         accordingly.
60955         Suggested by Paul Eggert.
60957 2010-09-16  Bruno Haible  <bruno@clisp.org>
60959         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60960         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60962 2010-09-16  Bruno Haible  <bruno@clisp.org>
60964         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60965         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60966         login_tty exists.
60967         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60969 2010-09-16  Bruno Haible  <bruno@clisp.org>
60971         login_tty: Make the replacement code work on BSD systems.
60972         * lib/login_tty.c: Include <sys/ioctl.h>.
60973         (login_tty): Use ioctl TIOCSCTTY when available.
60974         * modules/login_tty (Depends-on): Add sys_ioctl.
60975         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60977 2010-09-16  Bruno Haible  <bruno@clisp.org>
60979         login_tty: Stricter unit test.
60980         * modules/login_tty-tests (Depends-on): Add tcgetsid.
60981         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
60982         and tcgetsid() after login_tty.
60983         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60985 2010-09-16  Bruno Haible  <bruno@clisp.org>
60987         New module 'tcgetsid'.
60988         * lib/tcgetsid.c: New file.
60989         * m4/tcgetsid.m4: New file.
60990         * modules/tcgetsid: New file.
60991         * modules/termios (Depends-on): Add c++defs, warn-on-use.
60992         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
60993         GNULIB_TCGETSID, HAVE_TCGETSID.
60994         * lib/termios.in.h: Include <sys/types.h>.
60995         (tcgetsid): New declaration.
60996         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
60997         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
60998         * doc/posix-functions/tcgetsid.texi: Mention the new module.
60999         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61001 2010-09-16  Bruno Haible  <bruno@clisp.org>
61003         Tests for module 'termios'.
61004         * modules/termios-c++-tests: New file.
61005         * modules/termios-tests: New file.
61006         * tests/test-termios-c++.cc: New file.
61007         * tests/test-termios.c: New file.
61009         New module 'termios'.
61010         * modules/termios: New file.
61011         * lib/termios.in.h: New file.
61012         * m4/termios_h.m4: New file.
61013         * doc/posix-headers/termios.texi: Mention the new module.
61015 2010-09-16  Eric Blake  <eblake@redhat.com>
61017         fdutimensat: add an atflag parameter
61018         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61019         * lib/utimens.h (fdutimensat): Update prototype.
61020         * tests/test-fdutimensat.c: Adjust test to match.
61021         * NEWS: Document the change.
61022         Suggested by Paul Eggert.
61024 2010-09-16  Bruno Haible  <bruno@clisp.org>
61026         Fix typos in comments.
61027         * lib/striconveh.h: Fix typo in comment.
61028         * lib/login_tty.c (login_tty): Likewise.
61030 2010-09-15  Bruno Haible  <bruno@clisp.org>
61032         stdlib: clarify MirBSD WEXITSTATUS bug
61033         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61034         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61036 2010-09-15  Eric Blake  <eblake@redhat.com>
61038         stdlib: work around MirBSD WEXITSTATUS bug
61039         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61040         * modules/stdlib (Depends-on): Add sys_wait.
61041         * tests/test-sys_wait.c (main): Enhance test.
61042         * tests/test-stdlib.c (main): Likewise.
61043         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61045         docs: mention MacOS issue with WEXITSTATUS(constant)
61046         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61047         issue.
61048         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61050         strnlen: add tests
61051         * modules/strnlen-tests: New file.
61052         * tests/test-strnlen.c: Likewise.
61054 2010-09-14  Bruno Haible  <bruno@clisp.org>
61056         unistr/base: Avoid link errors when module 'libunistring' is also used.
61057         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61058         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61059         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61060         Declare also when HAVE_LIBUNISTRING is set.
61061         Reported by Pádraig Brady <P@draigbrady.com>.
61063 2010-09-14  Eric Blake  <eblake@redhat.com>
61065         test-rawmemchr: make more robust
61066         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61067         (Depends-on, configure.ac): Add needed prerequisites to use it.
61068         * modules/memchr-tests (Files, Depends-on, configure.ac):
61069         Likewise, to avoid implicit reliance on memchr module prereqs.
61070         * tests/test-memchr.c (main): Ensure proper masking.
61071         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61072         reads.
61074         memchr: detect glibc Alpha bug
61075         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
61076         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
61077         Alpha.
61078         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
61079         * tests/test-memchr.c (main): Enhance test.
61080         Reported by Nelson H. F. Beebe.
61082 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61084         fts, getcwd, glob: audit for dirfd returning -1
61085         * lib/fts.c (opendir): Remove #define; no longer used.
61086         (opendirat): New arg PDIR_FD.  All callers changed.
61087         (fts_build, _opendir2): Use new opendirat to avoid the need for
61088         dirfd, or for checking whether dirfd returns a negative value.
61089         Don't use opendir; always use openat followed by fdopendir.
61090         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
61091         it.
61092         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
61093         returns -1 here.
61094         * modules/fts (Depends-on): Remove dirfd.
61095         * modules/getcwd (Depends-on): Likewise.
61097 2010-09-13  Eric Blake  <eblake@redhat.com>
61099         float: fix broken MirBSD header
61100         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
61101         * doc/posix-headers/float.texi (float.h): Document it.
61103 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61105         fts: use O_NOFOLLOW to avoid race condition when opening a directory
61106         * lib/fts.c (opendirat): New arg extra_flags.
61107         (__opendir2): Use it to avoid following symlinks when opening
61108         a directory, if symlinks are not supposed to be followed.  See
61109         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61111         fdopendir: preserve argument fd before returning
61112         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61113         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61114         (fdopendir): Use them, arranging for FD to be open to the same
61115         directory that it was when it started.  (It might be temporarily
61116         closed while fdopendir is running, so this not thread- or
61117         signal-safe.)  Be careful to do the right thing even when file
61118         descriptors are scarce and dup fails with errno == EMFILE.  See
61119         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61121 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61123         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61124         * NEWS: Document change.
61125         * m4/regex.m4: Disable test for regoff_t size.
61127 2010-09-13  Jim Meyering  <meyering@redhat.com>
61129         fts: don't operate on an invalid file descriptor after failed dup
61130         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61131         negative file descriptor.
61133 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61135         savedir: add streamsavedir, deprecate fdsavedir
61136         * NEWS: Mention deprecation of fdsavedir.
61137         * lib/savedir.c (streamsavedir): New extern function, whose name
61138         ends in "savedir" to be consistent with the others.  This differs
61139         from savedirstream in that it doesn't close its argument.  The
61140         next version of GNU tar will use this instead of fdsavedir, to
61141         avoid some race conditions and conserve file descriptors.
61142         (savedirstream): Reimplement as a wrapper around streamsavedir.
61143         (fdsavedir): Add a comment deprecating this function.  As far as
61144         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61145         * lib/savedir.h (streamsavedir): New decl.
61146         (fdsavedir): Add a comment deprecating this.
61148 2010-09-10  Bruno Haible  <bruno@clisp.org>
61150         langinfo: Fix last commit.
61151         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61152         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61155 2010-09-10  Bruno Haible  <bruno@clisp.org>
61157         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61158         * lib/progreloc.c (O_EXEC): Define fallback.
61160 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61162         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61163         * NEWS: Document recent changes to fcntl-h.
61164         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61165         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61166         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61167         Similarly for O_SEARCH; this last was already true, but not documented.
61168         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61169         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61170         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61171         Likewise.
61172         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61173         is zero, not whether it is defined.
61174         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61175         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61176         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61178 2010-09-10  Bruno Haible  <bruno@clisp.org>
61180         langinfo, nl_langinfo: Fix for IRIX 5.3.
61181         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61182         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61183         HAVE_LANGINFO_YESEXPR.
61184         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61185         HAVE_LANGINFO_YESEXPR.
61186         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61187         HAVE_LANGINFO_T_FMT_AMPM is 0.
61188         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61189         HAVE_LANGINFO_YESEXPR is 0.
61190         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61191         NOEXPR.
61192         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61193         * doc/posix-functions/nl_langinfo.texi: Likewise.
61194         Reported by Eric Blake.
61196 2010-09-10  Bruno Haible  <bruno@clisp.org>
61198         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61199         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61200         on FreeBSD 8.0 and OpenBSD 4.6.
61201         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61202         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61203         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61204         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61205         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61206         ac_includes_default.
61207         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61209 2010-09-09  Eric Blake  <eblake@redhat.com>
61211         strsignal: work around NetBSD bug
61212         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61213         * lib/string.in.h (includes): Likewise.
61214         * doc/posix-functions/strsignal.texi (strsignal): Document the
61215         bug.
61216         Reported by Nelson H. F. Beebe.
61218         gnulib-tool: work with NetBSD /bin/sh
61219         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61220         (func_get_description, func_get_comment, func_get_status)
61221         (func_get_notice, func_get_applicability, func_get_filelist)
61222         (func_get_dependencies, func_get_autoconf_early_snippet)
61223         (func_get_autoconf_snippet, func_get_automake_snippet)
61224         (func_get_include_directive, func_get_link_directive)
61225         (func_get_license, func_get_maintainer, func_import): Avoid
61226         shell syntax errors from parsing syntax extensions.
61228 2010-09-09  Bruno Haible  <bruno@clisp.org>
61230         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61231         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61232         a reliable way to determine whether the 'alias' command works.
61234 2010-09-08  Jim Meyering  <meyering@redhat.com>
61236         init.sh: penalize a set-x-impaired shell; don't disqualify it
61237         * tests/init.sh: Too many shells corrupt application stderr when
61238         you set -x, so we can't afford to disqualify them, since at least
61239         on Irix-6.5, that would disqualify all bourne shells.
61240         Instead, use a two-pass approach.
61241         On the first pass, try to find a shell that meets the stricter
61242         condition that set -x does not corrupt stderr.
61243         If no shell meets the stricter condition, retest each candidate
61244         shell, but without that extra condition.  Finally, when
61245         VERBOSE=yes is requested and set -x might cause trouble, simply
61246         issue a warning and refrain from enabling debug output.
61248 2010-09-08  Eric Blake  <eblake@redhat.com>
61250         unsetenv: fix OpenBSD bug
61251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61252         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61253         documentation.
61254         Reported by Jim Meyering.
61256         strtod: work around IRIX 6.5 bug
61257         * lib/strtod.c (strtod): Reparse number on shorter string if
61258         exponent parse was invalid.
61259         * tests/test-strtod.c (main): Add check for "0x1p 2".
61260         Reported by Tom G. Christensen.
61262         getopt: optimize previous patch
61263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61264         empty variable.  Speed up awk script.
61265         Reported by Paolo Bonzini.
61267 2010-09-08  Jim Meyering  <meyering@redhat.com>
61269         test.sh: disqualify shells for which set -x corrupts stderr
61270         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61271         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61272         appear in stderr output.  For example, this command:
61273             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61274         prints "P=1" on those two systems:
61276 2010-09-08  Bruno Haible  <bruno@clisp.org>
61278         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61279         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61280         commands, because some shells ignore redirections when there is an
61281         error in the command lookup.
61282         Reported by Eric Blake.
61284 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61286         * lib/regex.h: Fix a mention of `regex_compile' (should be
61287         `re_compile_pattern').
61288         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61289         (re_set_registers): Correct name of parameter in comment.
61291         * doc/regex.texi: Add documentation for missing syntax flags.
61292         Remove commented-out documentation of defunct syntax option
61293         RE_NO_EMPTY_ALTS.
61294         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61295         Add documentation of re_set_registers.
61296         Document trick to re-use a pattern buffer by setting fastmap manually.
61297         Update documentation of struct re_pattern_buffer per public members.
61298         Uncomment documentation of equivalence class operators and
61299         collating symbol operators, since they are now implemented,
61300         Explain leftmost-longest matching in relation to alternatives.
61301         Tidy documentation of substring matching.
61302         Remove POSIX documentation, which is done better in
61303         glibc, and refer the reader there. Keep BSD API documentation, as
61304         that is not readily available elsewhere.
61306 2010-09-07  Eric Blake  <eblake@redhat.com>
61308         getopt: handle POSIXLY_CORRECT set but not exported
61309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61310         export state of POSIXLY_CORRECT, due to bash set -o posix.
61311         Reported by Dustin J. Mitchell.
61313 2010-09-05  Bruno Haible  <bruno@clisp.org>
61315         gnulib-tool: Highlight the changed options.
61316         * gnulib-tool (func_usage): Display the --import, --add-import,
61317         --remove-import explanations in bold font.
61319 2010-09-06  Karl Berry  <karl@gnu.org>
61321         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61323 2010-09-05  Bruno Haible  <bruno@clisp.org>
61325         uniwidth/width: Update comment.
61326         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61327         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61329 2010-09-05  Bruno Haible  <bruno@clisp.org>
61331         isinf, isnan: Relax license.
61332         * modules/isinf (License): Change from GPL to LGPL, with consent from
61333         Ben Pfaff.
61334         * modules/isnan (License): Likewise.
61335         Requested by Ludovic Courtès.
61337 2010-09-04  Bruno Haible  <bruno@clisp.org>
61339         gnulib-tool: Help migration from --import to --add-import or --update.
61340         * gnulib-tool: Emit a verbose error message when --import is used
61341         without any module name.
61343 2010-09-04  Bruno Haible  <bruno@clisp.org>
61345         Update doc about gnulib-tool.
61346         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61347         'gnulib-tool --update' in more detail.
61348         Reported by Eric Blake.
61350 2010-09-04  Bruno Haible  <bruno@clisp.org>
61352         gnulib-tool: Change --import. New options --add/remove-import.
61353         * gnulib-tool: New options --add-import, --remove-import.
61354         (func_usage): Document them.
61355         (have_associative): Define always.
61356         (func_import): In import mode, don't merge the specified settings with
61357         the cached settings. Implement remove-import mode.
61358         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61359         Explain when to use them versus --import.
61360         (Simple update): Use --add-import instead of --import.
61361         * NEWS: Mention the change.
61363 2010-09-04  Bruno Haible  <bruno@clisp.org>
61365         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61366         separate gnulib.mk.
61368 2010-09-04  Bruno Haible  <bruno@clisp.org>
61370         gnulib-tool: Don't talk about CVS any more.
61371         * gnulib-tool (func_usage, func_import): Write "version control"
61372         instead of CVS.
61374 2010-09-04  Jim Meyering  <meyering@redhat.com>
61376         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61377         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61378         false positives (whose names may be ill-chosen) when searching
61379         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61380         would cause a false-positive.
61382         avoid coreutils "make distcheck" failure
61383         Coreutils tests with an absolute build directory name that contains
61384         a space.  Not quoting this directory name caused a failure.
61385         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61386         * tests/test-vc-list-files-cvs.sh: Likewise.
61388 2010-09-04  Bruno Haible  <bruno@clisp.org>
61390         gnulib-tool: Avoid error when run in a package without Makefile.am.
61391         * gnulib-tool: When collecting the m4dirs in a package that does not
61392         have a Makefile.am, eliminate those directories that contain no
61393         gnulib-cache.m4. Fix expression that counts these directories.
61395 2010-09-04  Bruno Haible  <bruno@clisp.org>
61397         update-copyright test: Improve output when perl is missing or too old.
61398         * tests/test-update-copyright.sh: Move test of Perl version down after
61399         the test whether Perl exists. Provide an explanation relating Perl's
61400         error message to Automake's SKIP: message.
61402 2010-09-04  Bruno Haible  <bruno@clisp.org>
61404         Don't augment PATH in TESTS_ENVIRONMENT.
61405         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61406         set abs_aux_dir instead of augmenting PATH.
61407         * modules/vc-list-files-tests (Makefile.am): Likewise.
61408         * tests/test-update-copyright.sh: Augment PATH here.
61409         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61410         path_prepend_.
61411         * tests/test-vc-list-files-git.sh: Likewise.
61413 2010-09-04  Jim Meyering  <meyering@redhat.com>
61415         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61416         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61418 2010-09-04  Bruno Haible  <bruno@clisp.org>
61420         strdup: Fix compilation error in C++ mode.
61421         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61422         the macro.
61424 2010-09-04  Bruno Haible  <bruno@clisp.org>
61426         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61427         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61428         macro into a function.
61429         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61431 2010-09-04  Bruno Haible  <bruno@clisp.org>
61433         Set PATH_SEPARATOR the same way autoconf does.
61434         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61435         the value of PATH_SEPARATOR the same way autoconf-generated configure
61436         scripts do.
61437         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61438         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61440 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61442         Set PATH_SEPARATOR the same way autoconf does.
61443         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61444         the same way autoconf-generated configure scripts do.
61445         * posix-modules: Likewise.
61447 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61449         hash: fix safe_hasher const typo
61450         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61451         const; otherwise, there is a type error later.
61453 2010-09-02  Jim Meyering  <meyering@redhat.com>
61455         test-update-copyright.sh: require perl 5.8.0
61456         * tests/test-update-copyright.sh: Require 5.8.0,
61457         which Tom G. Christensen has confirmed is adequate,
61458         while 5.6.1 is not.
61460 2010-09-02  Eric Blake  <eblake@redhat.com>
61462         tests: init.sh improvements for re-exec'ing with zsh
61463         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61464         -vx through shell re-exec.
61465         Reported by Tom G. Christensen.
61467         wctype: fix typo in previous commit
61468         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61469         Reported by Ludovic Courtès.
61471 2010-09-02  Jim Meyering  <meyering@redhat.com>
61473         test-update-copyright.sh: skip test if Perl is too old
61474         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61475         Reported by Tom G. Christensen.
61477 2010-09-02  Bruno Haible  <bruno@clisp.org>
61479         wctype: Avoid compilation error on IRIX 6.5.30.
61480         * lib/wctype.in.h (iswblank): Declare with a replacement if
61481         REPLACE_ISWBLANK is set.
61482         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61483         declared. Set REPLACE_ISWBLANK.
61484         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61485         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61486         * doc/posix-headers/wctype.texi: Likewise.
61487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61489 2010-09-01  Bruno Haible  <bruno@clisp.org>
61491         New module 'socketlib'.
61492         * modules/socketlib: New file.
61493         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61494         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61495         * modules/sockets (Depends-on): Add socketlib.
61496         Suggested by Sam Steingold <sds@gnu.org>.
61498 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61500         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61502         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61503         when one needs search access to a directory but not read access.
61504         On systems where it is available, it works in some cases where
61505         O_RDONLY does not, namely on directories that are searchable but
61506         not readable, and which need only to be searchable.  If O_SEARCH
61507         is not available, fall back to the traditional method of using
61508         O_RDONLY.
61510         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61511         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61512         when opening a directory that needs only to be searchable.
61513         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61514         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61515         * lib/openat-proc.c (openat_proc_name): Likewise.
61516         * lib/openat.c (openat_needs_fchdir): Likewise.
61517         * lib/save-cwd.c (save_cwd): Likewise.
61518         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61520 2010-08-28  Bruno Haible  <bruno@clisp.org>
61522         New module 'host-cpu-c-abi'.
61523         * modules/host-cpu-c-abi: New file.
61524         * m4/host-cpu-c-abi.m4: New file, based on part of
61525         clisp/src/m4/general.m4.
61526         Requested by Sam Steingold <sds@gnu.org>.
61528 2010-08-31  Eric Blake  <eblake@redhat.com>
61529         and Jim Meyering  <meyering@redhat.com>
61531         hash: factor, and guard against misbehaving hasher function
61532         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61533         of table->hasher's return value.  Also protect against a hash value
61534         so large that adding it to table->bucket results in a NULL pointer.
61535         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61536         Use it in place of open-coded check-and-abort.
61538 2010-08-30  Bruno Haible  <bruno@clisp.org>
61540         hash: silence spurious clang warning
61541         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61542         Reported by Eric Blake.
61544 2010-08-30  Eric Blake  <eblake@redhat.com>
61546         strstr, memmem, strcasestr: avoid leaked shell message
61547         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61548         FreeBSD.
61549         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61550         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61552         tests: silence clang warning
61553         * tests/test-malloca.c (do_allocation): Avoid dead store.
61555 2010-08-29  Bruno Haible  <bruno@clisp.org>
61557         gettext: Fix recent mistake.
61558         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61560 2010-08-29  Bruno Haible  <bruno@clisp.org>
61562         selinux-h: Offer a --without-selinux option.
61563         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61564         --without-selinux was specified, skip all tests and define
61565         HAVE_SELINUX_SELINUX_H to 0.
61566         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61567         set LIB_SELINUX to empty.
61568         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61569         gl_LIBSELINUX. If --without-selinux was specified, replace
61570         selinux/context.h.
61571         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61573 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61574             Bruno Haible  <bruno@clisp.org>
61576         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61577         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61578         of HAVE_REALLOC.
61579         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61580         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61581         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61582         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61584 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61585             Bruno Haible  <bruno@clisp.org>
61587         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61588         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61589         HAVE_CALLOC.
61590         * lib/xmalloc.c: Update accordingly.
61591         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61592         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61593         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61595 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61596             Bruno Haible  <bruno@clisp.org>
61598         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61599         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61600         HAVE_MALLOC.
61601         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61602         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61603         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61605 2010-08-29  Bruno Haible  <bruno@clisp.org>
61607         Update modules list.
61608         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61609         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61610         (String handling <string.h>): Add astrxfrm.
61611         (File system functions): Add readlinkat.
61613 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61615         Tests for module 'realloc-gnu'.
61616         * modules/realloc-gnu-tests: New file.
61617         * tests/test-realloc-gnu.c: New file.
61619         Tests for module 'calloc-gnu'.
61620         * modules/calloc-gnu-tests: New file.
61621         * tests/test-calloc-gnu.c: New file.
61623         Tests for module 'malloc-gnu'.
61624         * modules/malloc-gnu-tests: New file.
61625         * tests/test-malloc-gnu.c: New file.
61627 2010-08-28  Bruno Haible  <bruno@clisp.org>
61629         Rename module 'realloc' -> 'realloc-gnu'.
61630         * modules/realloc-gnu: New file, copied from modules/realloc.
61631         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61632         obsolete.
61633         * modules/mgetgroups (Depends-on): Update.
61634         * doc/posix-functions/realloc.texi: Update.
61635         * NEWS: Mention the change.
61637         Rename module 'calloc' -> 'calloc-gnu'.
61638         * modules/calloc-gnu: New file, copied from modules/calloc.
61639         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61640         obsolete.
61641         * doc/posix-functions/calloc.texi: Update.
61642         * NEWS: Mention the change.
61644         Rename module 'malloc' -> 'malloc-gnu'.
61645         * modules/malloc-gnu: New file, copied from modules/malloc.
61646         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61647         obsolete.
61648         * modules/argp (Depends-on): Update.
61649         * modules/regex (Depends-on): Update.
61650         * doc/posix-functions/malloc.texi: Update.
61651         * NEWS: Mention the change.
61653 2010-08-28  Eric Blake  <eblake@redhat.com>
61655         pread, pwrite: add missing dependency
61656         * modules/pread (Depends-on): Add extensions.
61657         * modules/pwrite (Depends-on): Likewise.
61659 2010-08-28  Bruno Haible  <bruno@clisp.org>
61661         unistr/u*-strchr: Fix tests dependencies.
61662         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61663         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61664         Reported by Ian Beckwith <ianb@erislabs.net>.
61666 2010-08-28  Bruno Haible  <bruno@clisp.org>
61668         read-file: Don't occupy too much unused memory.
61669         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61671 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61672             Eric Blake  <eblake@redhat.com>
61673             Bruno Haible  <bruno@clisp.org>
61675         read-file: Avoid memory reallocations with regular files.
61676         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61677         (fread_file): With regular files, use the remaining length as the
61678         initial buffer size.  Check against overflow.
61679         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61680         sys_stat.
61682 2010-08-28  Bruno Haible  <bruno@clisp.org>
61684         ftello: Relax license.
61685         * modules/ftello (License): Relax to LGPLv2+.
61686         Reported by Eric Blake.
61688 2010-08-28  Bruno Haible  <bruno@clisp.org>
61690         Avoid relocwrapper link errors due to gnulib replacement functions.
61691         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61692         function.
61693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61695 2010-08-28  Bruno Haible  <bruno@clisp.org>
61697         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61698         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61699         defined.
61700         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61701         Suggested by Eric Blake.
61703 2010-08-28  Bruno Haible  <bruno@clisp.org>
61705         sys_socket, netdb: Ensure socklen_t gets defined.
61706         * modules/sys_socket (Depends-on): Add socklen.
61707         * modules/netdb (Depends-on): Likewise.
61708         * modules/getaddrinfo (Depends-on): Remove socklen.
61709         * modules/getsockopt (Depends-on): Likewise.
61710         * modules/setsockopt (Depends-on): Likewise.
61711         * tests/test-sys_socket.c: Check that socklen_t is defined.
61712         * tests/test-netdb.c: Likewise.
61713         * m4/socklen.m4: Update comments.
61714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61716 2010-08-27  Eric Blake  <eblake@redhat.com>
61718         login_tty: add missing dependency
61719         * modules/login_tty (Depends-on): Add pty.
61721 2010-08-26  Eric Blake  <eblake@redhat.com>
61723         lib-symbol-versions: fix m4 quoting
61724         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61725         format for AC_LINK_IFELSE.
61727         glob: fix compile test
61728         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61730         btowc: fix missing file
61731         * modules/btowc (Files): Also ship locale-fr.m4.
61733         lseek: fix link test
61734         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61735         AC_LINK_IFELSE.
61737         include_next: silence autoconf 2.68 warning
61738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61739         AC_COMPILE_IFELSE as special.
61740         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61741         autoconf < 2.68.
61743         acl: fix compilation test
61744         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61745         AC_COMPILE_IFELSE.
61747 2010-08-26  Bruno Haible  <bruno@clisp.org>
61749         Modernize AC_TRY_RUN invocations.
61750         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61751         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61752         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61753         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61754         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61755         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61758         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61759         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61760         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61761         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61762         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61763         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61765         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61766         gl_MBRLEN_NUL_RETVAL): Likewise.
61767         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61768         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61769         Likewise.
61770         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61771         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61772         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61773         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61774         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61775         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61776         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61777         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61778         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61779         Likewise.
61780         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61781         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61785         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61786         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61787         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61788         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61791 2010-08-26  Bruno Haible  <bruno@clisp.org>
61793         Modernize AC_TRY_LINK invocations.
61794         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61795         AC_TRY_LINK.
61796         * m4/argp.m4 (gl_ARGP): Likewise.
61797         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61798         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61799         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61800         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61801         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61802         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61803         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61804         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61805         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61807         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61808         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61809         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61810         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61811         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61812         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61813         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61814         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61815         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61816         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61817         Likewise.
61818         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61819         Likewise.
61820         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61821         Likewise.
61822         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61823         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61824         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61825         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61826         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61827         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61828         * m4/servent.m4 (gl_SERVENT): Likewise.
61829         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61830         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61831         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61832         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61833         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61834         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61835         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61836         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61837         * modules/tsearch-tests (configure.ac): Likewise.
61839 2010-08-26  Bruno Haible  <bruno@clisp.org>
61841         Modernize AC_TRY_COMPILE invocations.
61842         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61843         AC_TRY_COMPILE.
61844         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61845         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61846         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61847         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61848         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61849         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61850         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61851         * m4/lock.m4 (gl_LOCK): Likewise.
61852         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61853         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61854         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61855         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61856         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61857         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61858         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61860         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61861         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61862         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61863         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61864         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61865         extraneous semicolon.
61867 2010-08-26  Jim Meyering  <meyering@redhat.com>
61869         stat-time: relax license LGPL
61870         * modules/stat-time (License): Change from GPL to LGPL,
61871         with consent from all contributors, for use in libguile.
61872         Requested by Ludovic Courtès.
61874 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61876         poll: return immediately on POLLHUP.
61877         * lib/poll.c (poll): Always set timeout before wait_timeout is
61878         computed.
61880 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61882         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61883         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61884         rmdir ("dir/.//"), unlinkat.
61886 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61888         stdbool: avoid spurious failure with modern xlc
61889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61891 2010-08-24  Bruno Haible  <bruno@clisp.org>
61893         getloadavg: simplify code
61894         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61895         gl_have_func. Update comments.
61897 2010-08-24  Eric Blake  <eblake@redhat.com>
61899         getloadavg: don't define SVR4 on cygwin
61900         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61901         only define SVR4 when -lkvm is required.
61902         Reported by Yaakov Selkowitz.
61904 2010-08-24  Bruno Haible  <bruno@clisp.org>
61906         priv-set: fix comment
61907         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61909 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61911         priv-set: fix comments
61912         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61913         to match code, as suggested by David Bartley in:
61914         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61916 2010-08-23  Eric Blake  <eblake@redhat.com>
61918         stdbool: avoid rejecting clang
61919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61920         * tests/test-stdbool.c: Enable more tests if using the system
61921         <stdbool.h> instead of the gnulib replacement.
61922         (main): Move xlc bug test to a runtime test for all compilers.
61923         Reported by Anders Kaseorg.
61925         argz: fix shell quoting issue
61926         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61927         Reported by Charles Wilson.
61929 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61930             Erik Faye-Lund <kusmabite@gmail.com>
61932         poll, select: handle ERROR_BROKEN_PIPE.
61933         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61934         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61935         * lib/select.c (win32_compute_revents): Do not mark a pipe
61936         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61938 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61940         fts: allow compilation with C++
61941         * lib/fts_.h: Specify extern "C" linkage with C++.
61943 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61945         Fix gnulib-tool sed script de-commentation for AIX sed.
61946         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61947         sed.
61949 2010-08-17  Eric Blake  <eblake@redhat.com>
61951         test-stddef: test for (some) offsetof bugs
61952         * tests/test-stddef.c: Enhance test to ensure correct type of
61953         offsetof.
61954         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61955         that we are not fixing at this time.
61957 2010-08-15  Bruno Haible  <bruno@clisp.org>
61959         stpncpy: Allow stpncpy to be defined as a macro.
61960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61961         if it's already correctly declared.
61962         * lib/string.in.h (stpncpy): Undefine before redefining.
61963         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61965 2010-08-14  Bruno Haible  <bruno@clisp.org>
61967         Rename module 'memxfrm' to 'amemxfrm'.
61968         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
61969         (amemxfrm): Renamed from memxfrm.
61970         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
61971         (amemxfrm): Renamed from memxfrm.
61972         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
61973         * NEWS: Mention the change.
61974         * MODULES.html.sh (String handling <string.h>): Update.
61975         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
61976         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
61977         * lib/unicase/u16-casexfrm.c: Likewise.
61978         * lib/unicase/u32-casexfrm.c: Likewise.
61979         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
61980         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
61981         * lib/uninorm/u16-normxfrm.c: Likewise.
61982         * lib/uninorm/u32-normxfrm.c: Likewise.
61983         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
61984         memxfrm.
61985         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
61986         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
61987         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
61988         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
61989         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
61990         Suggested by Paul Eggert.
61992 2010-08-14  Bruno Haible  <bruno@clisp.org>
61994         Tests for module 'astrxfrm'.
61995         * modules/astrxfrm-tests: New file.
61996         * tests/test-astrxfrm.c: New file.
61998         New module 'astrxfrm'.
61999         * lib/astrxfrm.h: New file.
62000         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62001         * modules/astrxfrm: New file.
62003 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62005         regex: Tweak doc.
62006         * doc/regex.texi (Overview): Don't mention regex.c.
62007         (GNU Regular Expression Compiling): Likewise.
62008         (Match-end-of-line Operator): Mention 'not_eol'.
62010 2010-08-14  Brian Gough  <bjg@gnu.org>
62011             Bruno Haible  <bruno@clisp.org>
62013         git-merge-changelog: add doc relating to use with bzr and hg.
62014         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62016 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62018         pthread: fix pthread.h creation for srcdir != builddir
62019         * modules/pthread (Makefile.am): Fix the rule to work also in a
62020         non-srcdir build.
62022 2010-08-13  Karl Berry  <karl@gnu.org>
62024         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62025         * doc/posix-*/*: force line break before @url of POSIX
62026         specifications.
62027         Suggested by Werner Lemberg.
62029 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62031         strtod: fix const diagnostic
62032         * lib/strtod.c (strtod): Don't assign const char * to char *,
62033         as this elicits a warning from GCC when warnings are enabled.
62035 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62036         and Eric Blake  <eblake@redhat.com>
62038         copy-acl: ignore ENOTSUP on HP-UX
62039         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62040         so that it is available for HP-UX.
62041         * lib/copy-acl.c (qcopy_acl): Use it.
62042         Reported by Patrick M. Callahan.
62044 2010-08-10  Eric Blake  <eblake@redhat.com>
62046         open, chown: relax license
62047         * modules/open (License): Change to LGPLv2+, with consent by all
62048         authors, for use in augeas.
62049         * modules/chown (License): Likewise.
62050         * modules/lchown (Likewise): Likewise.
62051         Requested by Adam Stokes.
62053 2010-08-09  Karl Berry  <karl@gnu.org>
62055         * build-aux/ar-lib: new file, import from Automake.
62056         * config/srclist.txt: autocheck for updates.
62058 2010-08-09  Eric Blake  <eblake@redhat.com>
62060         readlinkat: adjust client modules
62061         * modules/areadlinkat (Depends-on): Use readlinkat, not
62062         symlinkat.
62063         * modules/areadlinkat-with-size (Depends-on): Likewise.
62065         mknod: be more vocal about danger of running tests as root
62066         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62067         root, since that is just asking for problems.
62068         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62070         readlinkat: split into its own module
62071         * modules/symlinkat: Split readlinkat...
62072         * modules/readlinkat: ...into separate module.
62073         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
62074         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
62075         * lib/symlinkat.c (readlinkat): Move...
62076         * lib/readlinkat.c: ...into new file.
62077         * modules/symlinkat-tests: Split readlinkat test...
62078         * modules/readlinkat-tests: ...into separate module.
62079         * tests/test-symlinkat.c: Split...
62080         * tests/test-readlinkat.c: ...into new file.
62081         * NEWS: Document the split.
62082         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62083         * lib/unistd.in.h (readlinkat): Likewise.
62084         Suggested by Bruno Haible.
62086 2010-08-08  Bruno Haible  <bruno@clisp.org>
62088         memxfrm: Speed up.
62089         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
62090         that usually only one call to strxfrm is necessary for each string
62091         part.
62092         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62094 2010-08-07  Karl Berry  <karl@gnu.org>
62096         * doc/posix-headers/limits.texi,
62097         * doc/posix-functions/malloc.texi,
62098         * doc/posix-functions/strsignal.texi: missing @item.
62099         * doc/ld-version-script.texi: spurious leading i.
62100         * doc/regex.texi (Interval Operators): no commas inside @var.
62102 2010-08-01  Bruno Haible  <bruno@clisp.org>
62104         Integrate the regex documentation.
62105         * doc/gnulib.texi: Define 'cn' index.
62106         (Regular expressions): New a chapter that includes regex.texi and
62107         regexprops-generic.texi.
62108         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62109         syntax.
62111         Whitespace cleanup.
62112         * doc/regex.texi: Remove trailing spaces.
62114         Add regex documentation.
62115         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62116         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62117         Written by Kathy A. Hargreaves and Karl Berry.
62119 2010-08-01  Bruno Haible  <bruno@clisp.org>
62121         link: Update documentation.
62122         * doc/posix-functions/link.texi: Update regarding Solaris.
62124 2010-07-31  Bruno Haible  <bruno@clisp.org>
62126         Update modules list.
62127         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62128         (String handling <string.h>): Add memcmp2, memxfrm.
62129         (Container data structures): Add xlist, xsublist, xoset.
62130         (Core language properties): Add alignof, unused-parameter.
62131         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62132         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62133         (Unibyte characters <ctype.h>): New section.
62134         (String handling <string.h>): New section.
62135         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62136         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62137         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62138         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62139         tan, tanh, tanl, y0, y1, yn.
62140         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62141         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62142         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62143         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62144         unlockpt, vdprintf, vdprintf-posix.
62145         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62146         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62147         xconcat-filename.
62148         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62149         getdtablesize, pipe2, pipe2-safer.
62150         (Security): New section.
62151         (Networking functions): Add accept4.
62152         (Signal handling): Add sigpipe.
62153         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62154         mbmemcasecoll.
62155         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62156         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62157         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62158         pipe-filter-ii.
62159         (Misc): Add argp-version-etc, login_tty, parse-duration.
62161 2010-07-31  Bruno Haible  <bruno@clisp.org>
62163         Improve doc in MODULES.html.
62164         * modules/linkat (Description): Add the word "function".
62165         * modules/mkfifo (Description): Likewise.
62166         * modules/mknod (Description): Likewise.
62167         * modules/remove (Description): Likewise.
62168         * modules/renameat (Description): Likewise.
62169         * modules/stat (Description): Likewise.
62170         * modules/symlink (Description): Likewise.
62171         * modules/unlink (Description): Likewise.
62173 2010-07-31  Bruno Haible  <bruno@clisp.org>
62175         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62176         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62177         option --enable/disable-c++ instead of --enable/disable-cxx.
62178         * NEWS: Mention the change.
62180 2010-07-31  Bruno Haible  <bruno@clisp.org>
62182         readlink, areadlink: Relax test a bit.
62183         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62184         alternative to ENOTDIR.
62185         * tests/test-areadlink.h (test_areadlink): Likewise.
62186         Reported by Rainer Tammer.
62188 2010-07-31  Bruno Haible  <bruno@clisp.org>
62190         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62191         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62192         character, perform the search using U_STRCHR.
62193         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62194         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62195         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62196         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62197         Suggested by Paolo Bonzini.
62199 2010-07-31  Bruno Haible  <bruno@clisp.org>
62201         unistr/u*-strstr: Fix dependencies.
62202         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62203         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62204         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62206 2010-07-31  Bruno Haible  <bruno@clisp.org>
62208         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62209         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62210         the beginning of the loop.
62211         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62212         cases in 'switch' statement.
62214         unistr/u8-strchr: Fix several bugs.
62215         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62216         the string. When not found, return NULL, not a pointer near the end.
62218         More tests for unistr/u8-strchr.
62219         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62220         that the function does not read past the first occurrence of the byte
62221         being searched.
62222         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62223         * tests/unistr/test-u16-strchr.c (main): New function.
62224         * tests/unistr/test-u32-strchr.c (main): New function.
62226 2010-07-31  Bruno Haible  <bruno@clisp.org>
62228         posix-modules: Ignore backup files of documentation files.
62229         * posix-modules: grep only through files named *.texi.
62231 2010-07-31  Bruno Haible  <bruno@clisp.org>
62233         symlinkat: Fix documentation.
62234         * doc/posix-functions/readlinkat.texi: Fix module name.
62236 2010-07-31  Bruno Haible  <bruno@clisp.org>
62238         fchownat: Replace also when chown has the trailing slash bug.
62239         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62240         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62241         introduced on 2010-04-10.
62242         Reported by Rainer Tammer.
62244 2010-07-31  Bruno Haible  <bruno@clisp.org>
62246         linkat: Work around AIX 7.1 bug.
62247         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62248         whether linkat handles trailing slash correctly. If not, replace linkat
62249         and define LINKAT_TRAILING_SLASH_BUG.
62250         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62251         check whether (fd1,file1) points to a directory if file1 or file2 ends
62252         in a slash. Code taken from lib/link.c.
62253         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62254         Reported by Rainer Tammer.
62256 2010-07-31  Bruno Haible  <bruno@clisp.org>
62258         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62259         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62260         This disables an xlc optimization that was causing wrong test results.
62261         Reported by Rainer Tammer.
62263 2010-07-31  Bruno Haible  <bruno@clisp.org>
62265         iconv: Work around AIX 6.1..7.1 bug.
62266         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62267         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62268         cross-compiling, guess no on all versions of AIX.
62269         Reported by Rainer Tammer.
62271 2010-07-31  Bruno Haible  <bruno@clisp.org>
62273         readlink: Relax test a bit.
62274         * tests/test-readlink.h (test_readlink): Allow different errno value
62275         when readlink is called with a file name that ends in / and refers to
62276         a file.
62277         Suggested by Eric Blake.
62278         Reported by Rainer Tammer.
62280 2010-07-31  Bruno Haible  <bruno@clisp.org>
62282         copysign: Does not require -lm on glibc systems.
62283         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62284         gl_COMMON_DOUBLE_MATHFUNC.
62285         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62287 2010-07-31  Bruno Haible  <bruno@clisp.org>
62289         duplocale: Work around AIX 7.1 bug.
62290         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62291         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62292         * lib/duplocale.c (rpl_duplocale): Update comment.
62293         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62294         Reported by Rainer Tammer.
62296 2010-07-30  Bruno Haible  <bruno@clisp.org>
62298         dirfd: Avoid link error on AIX 7.1.
62299         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62300         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62301         exist, set REPLACE_DIRFD.
62302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62303         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62304         * doc/posix-functions/dirfd.texi: Update.
62305         Reported by Rainer Tammer.
62307 2010-07-30  Eric Blake  <eblake@redhat.com>
62309         strtod: next round of AIX fixes
62310         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62311         exponent.
62312         * tests/test-strtod.c (main): Enhance tests.
62313         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62314         Reported by Rainer Tammer.
62316         futimens: fix configure check
62317         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62318         Reported by Bruno Haible.
62320 2010-07-30  Bruno Haible  <bruno@clisp.org>
62322         getline: Update regarding AIX.
62323         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62324         Reported by Rainer Tammer.
62326 2010-07-30  Bruno Haible  <bruno@clisp.org>
62328         wcwidth: Drop replacement on AIX 7.
62329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62330         AIX 7.
62331         Reported by Rainer Tammer.
62333 2010-07-30  Bruno Haible  <bruno@clisp.org>
62335         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62336         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62337         a 'char *'.
62338         Reported by Rainer Tammer.
62340 2010-07-30  Bruno Haible  <bruno@clisp.org>
62342         unlink: Update regarding AIX.
62343         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62344         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62345         Reported by Rainer Tammer.
62347 2010-07-30  Bruno Haible  <bruno@clisp.org>
62349         symlink: Update regarding AIX.
62350         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62351         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62352         Reported by Rainer Tammer.
62354 2010-07-30  Bruno Haible  <bruno@clisp.org>
62356         strndup: Update regarding AIX.
62357         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62358         AIX 7.
62359         Reported by Rainer Tammer.
62361 2010-07-30  Bruno Haible  <bruno@clisp.org>
62363         stat: Update regarding AIX.
62364         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62365         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62366         Reported by Rainer Tammer.
62368 2010-07-30  Bruno Haible  <bruno@clisp.org>
62370         truncl: Fix autoconf test.
62371         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62372         whether truncl works.
62373         Reported by Rainer Tammer.
62375 2010-07-30  Bruno Haible  <bruno@clisp.org>
62377         round: Update regarding AIX.
62378         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62379         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62380         Reported by Rainer Tammer.
62382 2010-07-30  Bruno Haible  <bruno@clisp.org>
62384         rename: Update regarding AIX.
62385         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62386         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62387         Reported by Rainer Tammer.
62389 2010-07-30  Bruno Haible  <bruno@clisp.org>
62391         printf.m4: Update regarding AIX.
62392         * m4/printf.m4: Update comments regarding AIX.
62393         Reported by Rainer Tammer.
62395 2010-07-30  Bruno Haible  <bruno@clisp.org>
62397         iconv: Update regarding AIX.
62398         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62399         AIX 7.
62400         Reported by Rainer Tammer.
62402 2010-07-30  Bruno Haible  <bruno@clisp.org>
62404         getopt: Update regarding AIX.
62405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62406         no on AIX.
62407         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62408         Reported by Rainer Tammer.
62410 2010-07-30  Bruno Haible  <bruno@clisp.org>
62412         ldexpl; Update regarding AIX.
62413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62414         on AIX 7.
62415         Reported by Rainer Tammer.
62417 2010-07-30  Bruno Haible  <bruno@clisp.org>
62419         frexpl: Update regarding AIX.
62420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62421         on AIX 7.
62422         Reported by Rainer Tammer.
62424 2010-07-30  Bruno Haible  <bruno@clisp.org>
62426         open, fopen: Update regarding AIX.
62427         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62428         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62429         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62430         * doc/posix-functions/fopen.texi: Likewise.
62431         Reported by Rainer Tammer.
62433 2010-07-30  Bruno Haible  <bruno@clisp.org>
62435         chown: Update doc regarding AIX.
62436         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62437         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62438         Reported by Rainer Tammer.
62440 2010-07-30  Eric Blake  <eblake@redhat.com>
62442         strtod: fix bug in replacement function on AIX
62443         * lib/strtod.c (strtod): Special case broken "0x" parse in
62444         underlying strtod.
62445         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62446         * doc/posix-functions/strtod.texi (strtod): Likewise.
62447         Reported by Rainer Tammer.
62449 2010-07-30  Bruno Haible  <bruno@clisp.org>
62451         mbrlen: Fix cross-compilation guess for AIX.
62452         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62453         guess. Leftover from 2008-12-22.
62455 2010-07-30  Bruno Haible  <bruno@clisp.org>
62457         mbrtowc: Fix cross-compilation guess for AIX.
62458         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62459         guess. Leftover from 2008-12-21.
62461 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62463         init.sh: work around trap limitation of some shells
62464         * tests/init.sh (setup_): Move exit trap outside of shell function.
62466 2010-07-29  Eric Blake  <eblake@redhat.com>
62468         strtod: aid debugging
62469         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62470         understanding why strtod is rejected.
62472 2010-07-28  Bruno Haible  <bruno@clisp.org>
62474         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62475         * lib/unistr/u8-chr.c: Include <string.h>.
62476         * tests/unistr/test-u8-chr.c: Likewise.
62477         * tests/unistr/test-u16-chr.c: Likewise.
62478         * tests/unistr/test-u32-chr.c: Likewise.
62479         * tests/unistr/test-u8-strchr.c: Likewise.
62480         * tests/unistr/test-u16-strchr.c: Likewise.
62481         * tests/unistr/test-u32-strchr.c: Likewise.
62482         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62483         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62484         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62485         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62487 2010-07-28  Bruno Haible  <bruno@clisp.org>
62489         Use spaces for indentation, not tabs.
62490         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62492 2010-07-27  Bruno Haible  <bruno@clisp.org>
62494         mbspcasecmp: Fix function specification.
62495         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62496         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62497         Reported by Eric Blake <eblake@redhat.com>.
62499 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62501         timespec: use cast and not conditional, as truncation isn't possible
62502         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62503         instead of a conditional.  Comment about the situation in more detail.
62504         This undoes most of the 2009-10-29 patch.
62506 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62508         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62509         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62510         * lib/unistr/u8-strchr.c: Likewise.
62511         * modules/unistr/u8-chr: Depend on memchr.
62513         unistr/u*-strchr: add tests
62514         * modules/unistr/u8-strchr-tests: New file.
62515         * modules/unistr/u16-strchr-tests: New file.
62516         * modules/unistr/u32-strchr-tests: New file.
62517         * tests/unistr/test-strchr.h: New file.
62518         * tests/unistr/test-u8-strchr.c: New file.
62519         * tests/unistr/test-u16-strchr.c: New file.
62520         * tests/unistr/test-u32-strchr.c: New file.
62522         unistr/u*-chr: test multibyte sequences more
62523         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62524         test vector.
62525         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62526         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62527         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62529         unistr/u*-chr: test multibyte sequences
62530         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62532         unistr/u*-chr: prepare for multibyte tests
62533         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62534         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62535         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62536         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62537         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62538         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62540 2010-07-18  Bruno Haible  <bruno@clisp.org>
62542         unistr/u8-strchr: Optimize non-ASCII argument case.
62543         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62544         because the first byte often matches anyway.
62545         Reported by Pádraig Brady <P@draigbrady.com>.
62547 2010-07-15  Karl Berry  <karl@gnu.org>
62549         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62551 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62553         getcwd: on Solaris, work better if ancestors are inaccessible
62554         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62555         buffer and size, try again with a large buffer.  This works better
62556         on Solaris, since its getcwd succeeds even if the path to the root
62557         is inaccessible, and this is helpful in common cases such as .zfs
62558         hidden directories.  Problem reported by J Chapman Flack in
62559         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62560         Use system getcwd if it's declared, not merely if it's partly
62561         working; use the partly-working test only to avoid needless effort
62562         if the system getcwd fails.
62563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62564         comment that was already obsolete and is now even more obsolete.
62565         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62566         now might call strdup.
62568 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62570         pthread: Add enough so that coreutils/src/sort.c compiles.
62571         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62572         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62573         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62574         Include <sys/types.h>, in case it defines pthread_t.
62575         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62576         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62577         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62578         (pthread_rwlockattr_t, pthread_spinlock_t):
62579         New typedefs, if HAVE_PTHREAD_T is not defined.
62580         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62581         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62582         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62583         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62584         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62585         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62586         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62587         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62588         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62589         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62590         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62591         New macros.
62592         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62593         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62594         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62595         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62596         (pthread_spin_unlock): New dummy functions.
62597         (pthread_create): Return EAGAIN; don't set errno.
62598         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62599         require AC_C_INLINE.
62600         * modules/pthread (Depends-on): Add sched, time.
62601         (pthread.h): Use AM_V_GEN.
62603 2010-07-13  Bruno Haible  <bruno@clisp.org>
62605         striconveh: Don't malloc memory if the result buffer is sufficient.
62606         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62607         buffer if its size is sufficient.
62608         Reported by Ludovic Courtès <ludo@gnu.org>.
62610 2010-07-13  Bruno Haible  <bruno@clisp.org>
62612         strtod: Add safety check.
62613         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62615 2010-07-12  Bruno Haible  <bruno@clisp.org>
62617         Unify tests that set gl_cv_func_ldexpl_no_libm.
62618         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62619         gl_FUNC_LDEXPL.
62620         (gl_FUNC_LDEXPL): Invoke it.
62621         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62623 2010-07-12  Bruno Haible  <bruno@clisp.org>
62625         Unify tests that set gl_cv_func_ldexp_no_libm.
62626         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62627         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62628         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62629         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62630         * modules/strtod (Files): Add m4/ldexp.m4.
62632 2010-07-12  Bruno Haible  <bruno@clisp.org>
62634         Unify tests that set gl_cv_func_frexpl_no_libm.
62635         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62636         gl_FUNC_FREXPL_NO_LIBM.
62637         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62640 2010-07-12  Bruno Haible  <bruno@clisp.org>
62642         Unify tests that set gl_cv_func_frexp_no_libm.
62643         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62644         gl_FUNC_FREXP_NO_LIBM.
62645         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62646         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62648 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62650         memcoll: clarify sizes versus lengths, document better, and tweak perf
62651         * lib/memcoll.c (strcoll_loop, memcoll0):
62652         Improve quality of descriptive comments.  Name variables
62653         consistently as to whether they are lengths (which do not include
62654         terminating null) versus sizes (which do).
62655         * lib/xmemcoll.c (xmemcoll0): Likewise.
62656         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62657         returned when s1size == 0; this is easier to compile and saves
62658         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62660 2010-07-12  Bruno Haible  <bruno@clisp.org>
62662         Tests for module '_Exit'.
62663         * modules/_Exit-tests: New file.
62664         * tests/test-_Exit.sh: New file.
62665         * tests/test-_Exit.c: New file.
62667         New module '_Exit'.
62668         * lib/stdlib.in.h (__attribute__): New macro.
62669         (_Exit): New declaration.
62670         * lib/_Exit.c: New file.
62671         * m4/_Exit.m4: New file.
62672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62673         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62674         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62675         * modules/_Exit: New file.
62676         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62677         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62679 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62681         strtod: make it more-accurate typically, and don't require libm
62682         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62683         Include limits.h.  Don't include string.h.
62684         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62685         (locale_isspace): New function, so that no casts are needed to
62686         check whether *s is a space.
62687         (ldexp): Provide an unused dummy if not available.
62688         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62689         (strtod): Use them.  This implementation prefers to use the
62690         underlying strtod if available, falling back on our own code
62691         only to fix known bugs.  This is more likely to produce an
62692         accurate result.  Also, it avoids the use of libm functions.
62693         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62694         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62695         was absent, but it caused a test failure with coreutils.
62696         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62697         with libm.
62698         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62699         * modules/strtod-tests (Makefile.am): Likewise.
62701 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62702             Bruno Haible  <bruno@clisp.org>
62704         unistr/u8-strchr: Optimize ASCII argument case.
62705         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62707 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62709         (x)memcoll: minor tweaks
62710         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62711         is after the type that it qualifies.
62712         (memcoll0): Likewise.
62713         * lib/memcoll.h (memcoll0): Likewise.
62714         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62715         * lib/xmemcoll.h (xmemcoll0): Likewise.
62716         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62717         differs from memcoll in that the NUL byte is part of the argument.
62718         Omit the abort-checks, as performance is a real issue here.  Plus,
62719         the checks were wrong anyway (an off-by-one error).  Omit local
62720         variable 'diff', as it's a bit clearer that way.
62721         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62722         no longer needed.
62724 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62726         (x)memcoll: speedup when input is known to be NUL delimited
62727         * lib/memcoll.c: Include stdlib.
62728         (memcoll0): New function.
62729         (strcoll_loop): New function, refactored for use in both memcoll
62730         and memcoll0.
62731         * lib/memcoll.h (memcoll0): Add prototype.
62732         * lib/xmemcoll.c (xmemcoll0): New function.
62733         (collate_error): New function, refactored for use in both xmemcoll
62734         and xmemcoll0.
62735         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62736         * m4/memcoll.m4: add inline invocation.
62738 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62740         * build-aux/bootstrap: Remove any local translations
62741         from the translation project synchronization directory,
62742         so that local only translations are not distributed.
62744 2010-07-04  Bruno Haible  <bruno@clisp.org>
62746         fsusage: Clarify which code applies to which platforms.
62747         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62748         platform.
62749         * lib/fsusage.c (get_fs_usage): Likewise.
62751 2010-07-04  Bruno Haible  <bruno@clisp.org>
62753         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62754         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62755         Reported by Martin Lambers <marlam@marlam.de>.
62757 2010-07-04  Jim Meyering  <meyering@redhat.com>
62759         hash: once again explicitly disallow insertion of NULL
62760         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62761         inserting a NULL pointer cannot work with these functions.
62762         Add a comment with details.
62763         This reverts part of the 2010-07-01 commit, 5bef1a35
62764         "hash: extend module to deal with non-pointer keys".
62766 2010-07-01  Bruno Haible  <bruno@clisp.org>
62768         stdbool: Update doc.
62769         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62770         Info from Christian Weisgerber <naddy@mips.inka.de>.
62772 2010-07-01  Jim Meyering  <meyering@redhat.com>
62774         hash: extend module to deal with non-pointer keys
62775         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62776         but that allows insertion of non-pointer entries.
62777         Do not disallow an ENTRY value of NULL.
62778         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62779         * lib/hash.h (hash_insert0): Declare.
62781 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62783         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62784         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62785         not present (i.e. with autoconf 2.59 and when using gettextize, not
62786         gnulib), require AC_GNU_SOURCE instead.
62788 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62790         idpriv-drop: Fix tests.
62791         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62792         not to the test-idpriv-droptemp program.
62794 2010-06-29  Bruno Haible  <bruno@clisp.org>
62796         string: Fix syntax error with g++ 2.96.
62797         * lib/string.in.h (__pure__): Remove definition.
62798         (_GL_ATTRIBUTE_PURE): New macro.
62799         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62800         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62801         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62803 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62805         unitypes: Fix bug introduced on 2010-05-18.
62806         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62808 2010-06-22  Eric Blake  <eblake@redhat.com>
62810         memmem: slight optimization
62811         * lib/str-two-way.h (critical_factorization): Update comments.
62812         Reduce work during factorization phase.
62813         Reported by Carlos Bueno <carlos@bueno.org>.
62815 2010-06-21  Bruno Haible  <bruno@clisp.org>
62817         Fix HAVE_CALLOC_POSIX misnomer.
62818         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62819         !HAVE_CALLOC_POSIX.
62820         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62821         HAVE_CALLOC_POSIX.
62822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62823         instead of HAVE_CALLOC_POSIX.
62824         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62825         HAVE_CALLOC_POSIX.
62827         Use modern idiom for calloc() replacement.
62828         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62829         AC_FUNC_CALLOC.
62830         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62831         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62832         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62833         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62834         (gl_REPLACE_CALLOC): New macro.
62836 2010-06-21  Bruno Haible  <bruno@clisp.org>
62838         Fix HAVE_REALLOC_POSIX misnomer.
62839         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62840         !HAVE_REALLOC_POSIX.
62841         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62842         HAVE_REALLOC_POSIX.
62843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62844         instead of HAVE_REALLOC_POSIX.
62845         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62846         HAVE_REALLOC_POSIX.
62848         Use modern idiom for realloc() replacement.
62849         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62850         AC_FUNC_REALLOC.
62851         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62852         Autoconf's AC_FUNC_REALLOC.
62853         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62854         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62855         (gl_REPLACE_REALLOC): New macro.
62856         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62858 2010-06-21  Bruno Haible  <bruno@clisp.org>
62860         Fix HAVE_MALLOC_POSIX misnomer.
62861         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62862         !HAVE_MALLOC_POSIX.
62863         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62864         HAVE_MALLOC_POSIX.
62865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62866         instead of HAVE_MALLOC_POSIX.
62867         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62868         HAVE_MALLOC_POSIX.
62870         Use modern idiom for malloc() replacement.
62871         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62872         AC_FUNC_MALLOC.
62873         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62874         Autoconf's AC_FUNC_MALLOC.
62875         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62876         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62877         (gl_REPLACE_MALLOC): New macro.
62878         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62880 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62882         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62883         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62884         This macro takes 3 arguments, not 4.
62886 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62888         ipv6: fix detection under mingw
62889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62890         in6_addr.
62892 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62894         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62895         that strtod() works when cross-compiling to a glibc version known
62896         to work.
62898 2010-06-15  Bruno Haible  <bruno@clisp.org>
62900         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62902 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62904         select: Correct timeout.
62905         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62907 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62909         git-version-gen: init shell var to avoid env var influence
62910         * build-aux/git-version-gen (v): Init shell var to empty.
62912 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62914         priv-set: Don't assume that priv.h exists merely because getppriv does.
62915         See Jan Andersen's bug report about AIX 5L in
62916         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62917         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62918         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62919         * lib/priv-set.h: Likewise.
62920         * tests/test-priv-set.c: Likewise.
62922 2010-06-13  Bruno Haible  <bruno@clisp.org>
62924         relocatable: Make it easier to test whether to install wrappers.
62925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62926         RELOCATABLE_VIA_WRAPPER.
62928 2010-06-13  Bruno Haible  <bruno@clisp.org>
62930         gnulib-tool: Display specified modules and dependencies differently.
62931         * gnulib-tool (func_show_module_list): New function.
62932         (func_import, func_create_testdir): Invoke it.
62933         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62935 2010-06-13  Bruno Haible  <bruno@clisp.org>
62937         gnulib-tool: Align code of func_import and func_create_testdir.
62938         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62939         specified_modules.
62941 2010-06-12  Jim Meyering  <meyering@redhat.com>
62943         test-inttostr: avoid spurious failure on Solaris 9
62944         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62945         to accept "%ju".  Reported by Bruno Haible.
62947 2010-06-11  Jim Meyering  <meyering@redhat.com>
62949         test-sys_socket: mark variables as used more readably
62950         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62951         as "used" explicitly via (void) statement casts.  This is more
62952         readable than using them in an artificial return expression.
62953         Suggestion from Bruno Haible.
62955 2010-06-11  Bruno Haible  <bruno@clisp.org>
62957         Avoid some more warnings from "gcc -Wwrite-strings".
62958         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62959         to 'const char *'.
62960         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62961         * tests/test-c-strcasestr.c (main): Likewise.
62962         * tests/test-mbscasestr1.c (main): Likewise.
62963         * tests/test-mbscasestr2.c (main): Likewise.
62964         * tests/test-memmem.c (main): Likewise.
62965         * tests/test-strstr.c (main): Likewise.
62966         * tests/test-strcasestr.c (main): Likewise.
62968 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62970         init.sh: change framework_failure_ to fail with status 99, not 1
62971         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
62972         automake's parallel-tests rule that this is an unexpected failure,
62973         even if the test is listed in XFAIL_TESTS.
62975 2010-06-11  Jim Meyering  <meyering@redhat.com>
62977         test-inttostr: avoid warnings about 4-6KB literal strings
62978         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
62979         Include "macros.h", for its definition of ASSERT.
62980         (CK): s/assert/ASSERT/
62981         * modules/inttostr-tests (Files): Add macros.h.
62983         init.sh: don't use $ME_ or skip_ before they are defined
62984         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
62985         their first uses.  Also hoist their companions: warn_, fail_,
62986         framework_failure_, $stderr_fileno.  Prompted by a patch from
62987         Stefano Lattarini.
62989         test-sys_socket: avoid set-but-not-used warnings from gcc
62990         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
62991         avoid warning about set-but-not-used variables.
62993         test-xvasprintf: avoid 'const' discard warnings
62994         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
62995         "const" when assigning from literal strings.
62996         (test_xasprintf): Add "void" in function argument list to placate
62997         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
62999         tests: avoid compilation warnings in argmatch and exclude tests...
63000         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63001         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63002         Since it always exits, declare with the "noreturn" attribute.
63003         * tests/test-argmatch.c: Likewise.
63005         tests: avoid 'const' discard warnings in mbsstr tests
63006         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63007         * tests/test-mbsstr2.c (main): Likewise.
63009         test-verify: avoid warning from gcc's -Wmissing-declarations
63010         * tests/test-verify.c (function): Declare to be static.
63012         test-inttostr.c: include <string.h> for use of strcmp
63013         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63015         test-linkat: avoid failed assertion on "other" architectures
63016         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63017         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63018         sparc: https://bugs.launchpad.net/bugs/591968
63020 2010-06-11  Jim Meyering  <meyering@redhat.com>
63022         printf.m4: avoid autoconf's "Expanded Before Required" warning
63023         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63024         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63025         autoconf warning.
63027 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63029         Replacement header templates are now named with ".in", not "_".
63030         * doc/gnulib-intro.texi: Correct.
63032 2010-06-10  Jim Meyering  <meyering@redhat.com>
63034         inttostr-tests: depend on snprintf, not snprintf-posix
63035         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63036         snprintf-posix, to avoid this aclocal failure:
63037           missing file gnulib-tests/vasnprintf.c
63038           configure.ac:45: error: expected source file, required through \
63039           AC_LIBSOURCES, not found
63041 2010-06-10  Jim Meyering  <meyering@redhat.com>
63043         inttostr: add a new function, inttostr, and tests
63044         The namesake function was not available.  The existence of the
63045         template file, inttostr.c makes its addition nontrivial.
63046         * lib/anytostr.c: Rename from inttostr.c.
63047         (anytostr): Rename from inttostr.
63048         * lib/inttostr.c: New file.
63049         * modules/inttostr (Files): Add anytostr.c.
63050         (Makefile.am): Set lib_SOURCES instead of ...
63051         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63052         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63053         * lib/offtostr.c: Likewise.
63054         * lib/uinttostr.c: Likewise.
63055         * lib/umaxtostr.c: Likewise.
63056         * modules/inttostr-tests: New file.
63057         * tests/test-inttostr.c: New file.  Test these functions.
63059 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63060             Bruno Haible  <bruno@clisp.org>
63062         Add "Extending Gnulib" chapter to manual.
63063         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63064         chapter.
63065         (Extending Gnulib): New chapter.
63066         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63067         chapter.
63069 2010-06-09  Bruno Haible  <bruno@clisp.org>
63071         Avoid relocwrapper link errors due to gnulib replacement functions.
63072         * lib/areadlink.c: Use the system's malloc, realloc functions.
63073         (areadlink): Set errno to ENOMEM explicitly.
63074         * modules/areadlink (Depends-on): Remove malloc-posix.
63075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63077 2010-06-09  Bruno Haible  <bruno@clisp.org>
63079         Avoid relocwrapper link errors due to gnulib replacement functions.
63080         * lib/canonicalize-lgpl.c: Use the system's malloc function.
63081         * lib/malloca.c: Likewise.
63082         * lib/relocatable.c: Likewise.
63083         * lib/progreloc.c: Use the system's malloc, sprintf functions.
63084         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
63085         * lib/setenv.c: Use the system's malloc, realloc functions.
63086         * lib/strerror.c: Use the system's sprintf function.
63087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63089 2010-06-04  Bruno Haible  <bruno@clisp.org>
63091         Prefer documented low-level autoconf macro names.
63092         * m4/lib-link.m4: Use m4_translit instead of translit.
63093         * m4/environ.m4: Likewise.
63094         * m4/mathfunc.m4: Likewise.
63095         * m4/onceonly.m4: Likewise.
63096         * m4/stdint.m4: Likewise.
63097         Suggested by Eric Blake.
63099 2010-06-04  Martin Lambers  <marlam@marlam.de>
63100             Bruno Haible  <bruno@clisp.org>
63102         havelib: Allow library names with '+' characters.
63103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63104         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
63106 2010-06-09  Bruno Haible  <bruno@clisp.org>
63108         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63109         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63110         realloc failed.
63112 2010-06-08  Peter Simons  <simons@cryp.to>
63114         maint.mk: make the news-check rule more configurable
63115         * top/maint.mk (news-check-lines-spec): New variable.
63116         (news-check): Use "sed -n 1,10p" in place of "head".
63118 2010-06-07  Jim Meyering  <meyering@redhat.com>
63120         do-release-commit-and-tag: fix typo in --help
63121         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63123         regex: avoid new dead-code warning with gcc-4.6.0
63124         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63125         if-block containing a while-loop.  It's been unused for at least
63126         5 years.
63128 2010-06-05  Bruno Haible  <bruno@clisp.org>
63130         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63131         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63133 2010-06-04  Bruno Haible  <bruno@clisp.org>
63135         Update to GNU gettext 0.18.1.
63136         * modules/gettext (configure.ac): Require gettext infrastructure from
63137         version 0.18.1.
63139 2010-06-03  Bruno Haible  <bruno@clisp.org>
63141         Don't use AC_LIBOBJ with file names in subdirectories.
63142         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63143         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63144         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63145         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63146         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63147         gl_LIBUNISTRING_LIBSOURCE.
63148         (Makefile.am): Augment lib_SOURCES here, conditionally.
63149         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63151 2010-06-03  Bruno Haible  <bruno@clisp.org>
63153         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63154         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63155         expansion does not end with a newline.
63156         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63157         unnecessary newline.
63159 2010-06-03  Bruno Haible  <bruno@clisp.org>
63161         Reduce dependencies.
63162         * tests/test-quotearg.h: New file, extracted from
63163         tests/test-quotearg.c.
63164         * tests/test-quotearg-simple.c: New file, extracted from
63165         tests/test-quotearg.c.
63166         * tests/test-quotearg.c: Don't include <ctype.h>.
63167         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63168         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63169         use_quote_double_quotes, use_quotearg_colon): Moved to
63170         tests/test-quotearg.h.
63171         (results_g, flag_results, custom_quotes, custom_results): Moved
63172         to tests/test-quotearg-simple.c.
63173         (main): Moved the part that does not depend on gettext to
63174         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63175         performed.
63176         * modules/quotearg-simple: New file.
63177         * modules/quotearg-simple-tests: New file.
63178         * modules/quotearg (Depends-on): Add quotearg-simple.
63179         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63180         (Files): Add tests/test-quotearg.h.
63181         Reported by Paolo Bonzini.
63183 2010-06-03  Bruno Haible  <bruno@clisp.org>
63185         Reduce dependencies.
63186         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63188 2010-06-03  Bruno Haible  <bruno@clisp.org>
63190         time: Undefine more broken macros.
63191         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63192         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63193         Reported by Eric Blake.
63195 2010-06-03  Bruno Haible  <bruno@clisp.org>
63197         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63198         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63199         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63200         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63201         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63202         Reported by Ludovic Courtès <ludo@gnu.org>.
63204 2010-06-02  Eric Blake  <eblake@redhat.com>
63206         time: work with mingw + pthreads-win32 library
63207         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63208         if timespec is defined only in pthread.h.
63209         * modules/time (Makefile.am): Substitute it.
63210         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63211         <pthread.h>, when needed.
63212         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63213         from the library.
63215 2010-05-31  Bruno Haible  <bruno@clisp.org>
63217         Avoid expanding two macros in the wrong order.
63218         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63219         gl_LIBUNISTRING if it is defined.
63220         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63221         autoconf >= 2.64.
63222         Reported by Ludovic Courtès <ludo@gnu.org>.
63224 2010-05-27  Jim Meyering  <meyering@redhat.com>
63226         maint.mk: also prohibit "#undef" of always-defined symbols
63227         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63228         Allow more than one space before the symbol name.
63229         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63230         the regexp uses alternation.
63232 2010-05-26  Eric Blake  <eblake@redhat.com>
63234         maint.mk: avoid echo -e
63235         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63236         Convert all uses of echo -* to printf.
63237         Reported by Matthias Bolte.
63239 2010-05-25  Bruno Haible  <bruno@clisp.org>
63241         Update to GNU gettext 0.18, part 2.
63242         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63243         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63245 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63247         Add missing include in test-pwrite.c.
63248         * tests/test-pwrite.c: Include string.h, for strcmp.
63250 2010-05-24  Bruno Haible  <bruno@clisp.org>
63252         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63254 2010-05-24  Bruno Haible  <bruno@clisp.org>
63256         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63257         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63258         iconveh_error argument.
63259         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63260         U_STRCONV_TO_LOCALE.
63261         * lib/unistr/u16-strcoll.c: Likewise.
63262         * lib/unistr/u32-strcoll.c: Likewise.
63263         * modules/unistr/u8-strcoll (Depends-on): Add
63264         uniconv/u8-strconv-to-enc, localcharset. Remove
63265         uniconv/u8-strconv-to-locale.
63266         (configure.ac): Bump version number.
63267         * modules/unistr/u16-strcoll (Depends-on): Add
63268         uniconv/u16-strconv-to-enc, localcharset. Remove
63269         uniconv/u16-strconv-to-locale.
63270         (configure.ac): Bump version number.
63271         * modules/unistr/u32-strcoll (Depends-on): Add
63272         uniconv/u32-strconv-to-enc, localcharset. Remove
63273         uniconv/u32-strconv-to-locale.
63274         (configure.ac): Bump version number.
63276 2010-05-24  Bruno Haible  <bruno@clisp.org>
63278         Avoid a test failure on NetBSD 5.0.
63279         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63280         an iconv() bug.
63282 2010-05-24  Bruno Haible  <bruno@clisp.org>
63284         Adjust #include directive style.
63285         * modules/regex (Includes): Recommend to write <regex.h>.
63287 2010-05-24  Bruno Haible  <bruno@clisp.org>
63289         regex: Don't require alloca.
63290         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63291         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63292         only inside if (0).
63294 2010-05-23  Jim Meyering  <meyering@redhat.com>
63296         test-renameat.c: include <sys/stat.h>
63297         * tests/test-renameat.c: Include <sys/stat.h>; required for
63298         definition of S_IS* macros.
63300 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63302         Update maintainer documentation for 'relocatable-prog' module.
63303         * doc/relocatable-maint.texi: Update.
63304         Comments by Bruno Haible.
63306 2010-05-23  Bruno Haible  <bruno@clisp.org>
63308         git-merge-changelog: Enable --split-merged-entry by default.
63309         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63310         (usage): Don't mention this option any more.
63311         Reported by Ralf Wildenhues.
63313 2010-05-23  Jim Meyering  <meyering@redhat.com>
63315         test-pwrite: do not leave behind a test file named "out"
63316         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63317         The trivial-looking use of init.sh is really necessary.
63318         It ensures that the temporary file, "out", is created in
63319         a temporary directory, and removed upon termination.
63320         * tests/test-pwrite.sh: Re-add file.
63321         * modules/pwrite-tests: Reference it.
63323 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63325         Fix output redirection buglet in init.sh.
63326         * tests/init.sh: Fix redirection of stderr.
63328 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63330         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63332 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63334         * modules/valgrind-tests: New file.
63335         * m4/valgrind-tests.m4: New file.
63336         * doc/valgrind-tests.texi: New file.
63337         * doc/gnulib.texi (Running self-tests under valgrind): New
63338         section.
63340 2010-05-19  Bruno Haible  <bruno@clisp.org>
63342         Clean up dead code in recent commit.
63343         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63344         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63345         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63346         Suggested by Paolo Bonzini.
63348 2010-05-19  Bruno Haible  <bruno@clisp.org>
63350         Avoid valgrind error reports from libunistring.
63351         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63352         * modules/libunistring (Files): Add it.
63353         * modules/libunistring-optional (Files): Likewise.
63355 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63356             Bruno Haible  <bruno@clisp.org>
63358         New module 'libunistring-optional'.
63359         * modules/libunistring-optional: New file.
63360         * m4/libunistring-base.m4: New file.
63361         * m4/libunistring-optional.m4: New file.
63362         * lib/unicase.in.h: Renamed from lib/unicase.h.
63363         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63364         * lib/unictype.in.h: Renamed from lib/unictype.h.
63365         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63366         * lib/uniname.in.h: Renamed from lib/uniname.h.
63367         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63368         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63369         * lib/unistr.in.h: Renamed from lib/unistr.h.
63370         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63371         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63372         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63373         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63374         gl_LIBUNISTRING. If the library was found, determine the installed
63375         version and set LIBUNISTRING_VERSION.
63376         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63377         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63378         handle a configuration option --with-included-libunistring.
63379         * modules/libunistring (Files): Add m4/absolute-header.m4.
63380         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63381         Add m4/libunistring-base.m4.
63382         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63383         (Makefile.am): Build unicase.h from unicase.in.h.
63384         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63385         Add m4/libunistring-base.m4.
63386         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63387         (Makefile.am): Build uniconv.h from uniconv.in.h.
63388         * modules/unictype/base (Files): Use unictype.in.h instead of
63389         unictype.h. Add m4/libunistring-base.m4.
63390         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63391         (Makefile.am): Build unictype.h from unictype.in.h.
63392         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63393         Add m4/libunistring-base.m4.
63394         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63395         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63396         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63397         Add m4/libunistring-base.m4.
63398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63399         (Makefile.am): Build uniname.h from uniname.in.h.
63400         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63401         Add m4/libunistring-base.m4.
63402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63403         (Makefile.am): Build uninorm.h from uninorm.in.h.
63404         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63405         unistdio.h. Add m4/libunistring-base.m4.
63406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63407         (Makefile.am): Build unistdio.h from unistdio.in.h.
63408         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63409         Add m4/libunistring-base.m4.
63410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63411         (Makefile.am): Build unistr.h from unistr.in.h.
63412         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63413         Add m4/libunistring-base.m4.
63414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63415         (Makefile.am): Build unitypes.h from unitypes.in.h.
63416         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63417         Add m4/libunistring-base.m4.
63418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63419         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63420         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63421         uniwidth.h. Add m4/libunistring-base.m4.
63422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63423         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63424         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63425         instead of augmenting lib_SOURCES.
63426         * modules/unicase/empty-suffix-context: Likewise.
63427         * modules/unicase/locale-language: Likewise.
63428         * modules/unicase/tolower: Likewise.
63429         * modules/unicase/totitle: Likewise.
63430         * modules/unicase/toupper: Likewise.
63431         * modules/unicase/u8-casecmp: Likewise.
63432         * modules/unicase/u8-casecoll: Likewise.
63433         * modules/unicase/u8-casefold: Likewise.
63434         * modules/unicase/u8-casexfrm: Likewise.
63435         * modules/unicase/u8-ct-casefold: Likewise.
63436         * modules/unicase/u8-ct-tolower: Likewise.
63437         * modules/unicase/u8-ct-totitle: Likewise.
63438         * modules/unicase/u8-ct-toupper: Likewise.
63439         * modules/unicase/u8-is-cased: Likewise.
63440         * modules/unicase/u8-is-casefolded: Likewise.
63441         * modules/unicase/u8-is-lowercase: Likewise.
63442         * modules/unicase/u8-is-titlecase: Likewise.
63443         * modules/unicase/u8-is-uppercase: Likewise.
63444         * modules/unicase/u8-prefix-context: Likewise.
63445         * modules/unicase/u8-suffix-context: Likewise.
63446         * modules/unicase/u8-tolower: Likewise.
63447         * modules/unicase/u8-totitle: Likewise.
63448         * modules/unicase/u8-toupper: Likewise.
63449         * modules/unicase/u16-casecmp: Likewise.
63450         * modules/unicase/u16-casecoll: Likewise.
63451         * modules/unicase/u16-casefold: Likewise.
63452         * modules/unicase/u16-casexfrm: Likewise.
63453         * modules/unicase/u16-ct-casefold: Likewise.
63454         * modules/unicase/u16-ct-tolower: Likewise.
63455         * modules/unicase/u16-ct-totitle: Likewise.
63456         * modules/unicase/u16-ct-toupper: Likewise.
63457         * modules/unicase/u16-is-cased: Likewise.
63458         * modules/unicase/u16-is-casefolded: Likewise.
63459         * modules/unicase/u16-is-lowercase: Likewise.
63460         * modules/unicase/u16-is-titlecase: Likewise.
63461         * modules/unicase/u16-is-uppercase: Likewise.
63462         * modules/unicase/u16-prefix-context: Likewise.
63463         * modules/unicase/u16-suffix-context: Likewise.
63464         * modules/unicase/u16-tolower: Likewise.
63465         * modules/unicase/u16-totitle: Likewise.
63466         * modules/unicase/u16-toupper: Likewise.
63467         * modules/unicase/u32-casecmp: Likewise.
63468         * modules/unicase/u32-casecoll: Likewise.
63469         * modules/unicase/u32-casefold: Likewise.
63470         * modules/unicase/u32-casexfrm: Likewise.
63471         * modules/unicase/u32-ct-casefold: Likewise.
63472         * modules/unicase/u32-ct-tolower: Likewise.
63473         * modules/unicase/u32-ct-totitle: Likewise.
63474         * modules/unicase/u32-ct-toupper: Likewise.
63475         * modules/unicase/u32-is-cased: Likewise.
63476         * modules/unicase/u32-is-casefolded: Likewise.
63477         * modules/unicase/u32-is-lowercase: Likewise.
63478         * modules/unicase/u32-is-titlecase: Likewise.
63479         * modules/unicase/u32-is-uppercase: Likewise.
63480         * modules/unicase/u32-prefix-context: Likewise.
63481         * modules/unicase/u32-suffix-context: Likewise.
63482         * modules/unicase/u32-tolower: Likewise.
63483         * modules/unicase/u32-totitle: Likewise.
63484         * modules/unicase/u32-toupper: Likewise.
63485         * modules/unicase/ulc-casecmp: Likewise.
63486         * modules/unicase/ulc-casecoll: Likewise.
63487         * modules/unicase/ulc-casexfrm: Likewise.
63488         * modules/uniconv/u8-conv-from-enc: Likewise.
63489         * modules/uniconv/u8-conv-to-enc: Likewise.
63490         * modules/uniconv/u8-strconv-from-enc: Likewise.
63491         * modules/uniconv/u8-strconv-from-locale: Likewise.
63492         * modules/uniconv/u8-strconv-to-enc: Likewise.
63493         * modules/uniconv/u8-strconv-to-locale: Likewise.
63494         * modules/uniconv/u16-conv-from-enc: Likewise.
63495         * modules/uniconv/u16-conv-to-enc: Likewise.
63496         * modules/uniconv/u16-strconv-from-enc: Likewise.
63497         * modules/uniconv/u16-strconv-from-locale: Likewise.
63498         * modules/uniconv/u16-strconv-to-enc: Likewise.
63499         * modules/uniconv/u16-strconv-to-locale: Likewise.
63500         * modules/uniconv/u32-conv-from-enc: Likewise.
63501         * modules/uniconv/u32-conv-to-enc: Likewise.
63502         * modules/uniconv/u32-strconv-from-enc: Likewise.
63503         * modules/uniconv/u32-strconv-from-locale: Likewise.
63504         * modules/uniconv/u32-strconv-to-enc: Likewise.
63505         * modules/uniconv/u32-strconv-to-locale: Likewise.
63506         * modules/unictype/bidicategory-byname: Likewise.
63507         * modules/unictype/bidicategory-name: Likewise.
63508         * modules/unictype/bidicategory-of: Likewise.
63509         * modules/unictype/bidicategory-test: Likewise.
63510         * modules/unictype/block-list: Likewise.
63511         * modules/unictype/block-test: Likewise.
63512         * modules/unictype/category-C: Likewise.
63513         * modules/unictype/category-Cc: Likewise.
63514         * modules/unictype/category-Cf: Likewise.
63515         * modules/unictype/category-Cn: Likewise.
63516         * modules/unictype/category-Co: Likewise.
63517         * modules/unictype/category-Cs: Likewise.
63518         * modules/unictype/category-L: Likewise.
63519         * modules/unictype/category-Ll: Likewise.
63520         * modules/unictype/category-Lm: Likewise.
63521         * modules/unictype/category-Lo: Likewise.
63522         * modules/unictype/category-Lt: Likewise.
63523         * modules/unictype/category-Lu: Likewise.
63524         * modules/unictype/category-M: Likewise.
63525         * modules/unictype/category-Mc: Likewise.
63526         * modules/unictype/category-Me: Likewise.
63527         * modules/unictype/category-Mn: Likewise.
63528         * modules/unictype/category-N: Likewise.
63529         * modules/unictype/category-Nd: Likewise.
63530         * modules/unictype/category-Nl: Likewise.
63531         * modules/unictype/category-No: Likewise.
63532         * modules/unictype/category-P: Likewise.
63533         * modules/unictype/category-Pc: Likewise.
63534         * modules/unictype/category-Pd: Likewise.
63535         * modules/unictype/category-Pe: Likewise.
63536         * modules/unictype/category-Pf: Likewise.
63537         * modules/unictype/category-Pi: Likewise.
63538         * modules/unictype/category-Po: Likewise.
63539         * modules/unictype/category-Ps: Likewise.
63540         * modules/unictype/category-S: Likewise.
63541         * modules/unictype/category-Sc: Likewise.
63542         * modules/unictype/category-Sk: Likewise.
63543         * modules/unictype/category-Sm: Likewise.
63544         * modules/unictype/category-So: Likewise.
63545         * modules/unictype/category-Z: Likewise.
63546         * modules/unictype/category-Zl: Likewise.
63547         * modules/unictype/category-Zp: Likewise.
63548         * modules/unictype/category-Zs: Likewise.
63549         * modules/unictype/category-and: Likewise.
63550         * modules/unictype/category-and-not: Likewise.
63551         * modules/unictype/category-byname: Likewise.
63552         * modules/unictype/category-name: Likewise.
63553         * modules/unictype/category-none: Likewise.
63554         * modules/unictype/category-of: Likewise.
63555         * modules/unictype/category-or: Likewise.
63556         * modules/unictype/category-test: Likewise.
63557         * modules/unictype/combining-class: Likewise.
63558         * modules/unictype/ctype-alnum: Likewise.
63559         * modules/unictype/ctype-alpha: Likewise.
63560         * modules/unictype/ctype-blank: Likewise.
63561         * modules/unictype/ctype-cntrl: Likewise.
63562         * modules/unictype/ctype-digit: Likewise.
63563         * modules/unictype/ctype-graph: Likewise.
63564         * modules/unictype/ctype-lower: Likewise.
63565         * modules/unictype/ctype-print: Likewise.
63566         * modules/unictype/ctype-punct: Likewise.
63567         * modules/unictype/ctype-space: Likewise.
63568         * modules/unictype/ctype-upper: Likewise.
63569         * modules/unictype/ctype-xdigit: Likewise.
63570         * modules/unictype/decimal-digit: Likewise.
63571         * modules/unictype/digit: Likewise.
63572         * modules/unictype/mirror: Likewise.
63573         * modules/unictype/numeric: Likewise.
63574         * modules/unictype/property-alphabetic: Likewise.
63575         * modules/unictype/property-ascii-hex-digit: Likewise.
63576         * modules/unictype/property-bidi-arabic-digit: Likewise.
63577         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63578         * modules/unictype/property-bidi-block-separator: Likewise.
63579         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63580         * modules/unictype/property-bidi-common-separator: Likewise.
63581         * modules/unictype/property-bidi-control: Likewise.
63582         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63583         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63584         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63585         * modules/unictype/property-bidi-european-digit: Likewise.
63586         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63587         * modules/unictype/property-bidi-left-to-right: Likewise.
63588         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63589         * modules/unictype/property-bidi-other-neutral: Likewise.
63590         * modules/unictype/property-bidi-pdf: Likewise.
63591         * modules/unictype/property-bidi-segment-separator: Likewise.
63592         * modules/unictype/property-bidi-whitespace: Likewise.
63593         * modules/unictype/property-byname: Likewise.
63594         * modules/unictype/property-combining: Likewise.
63595         * modules/unictype/property-composite: Likewise.
63596         * modules/unictype/property-currency-symbol: Likewise.
63597         * modules/unictype/property-dash: Likewise.
63598         * modules/unictype/property-decimal-digit: Likewise.
63599         * modules/unictype/property-default-ignorable-code-point: Likewise.
63600         * modules/unictype/property-deprecated: Likewise.
63601         * modules/unictype/property-diacritic: Likewise.
63602         * modules/unictype/property-extender: Likewise.
63603         * modules/unictype/property-format-control: Likewise.
63604         * modules/unictype/property-grapheme-base: Likewise.
63605         * modules/unictype/property-grapheme-extend: Likewise.
63606         * modules/unictype/property-grapheme-link: Likewise.
63607         * modules/unictype/property-hex-digit: Likewise.
63608         * modules/unictype/property-hyphen: Likewise.
63609         * modules/unictype/property-id-continue: Likewise.
63610         * modules/unictype/property-id-start: Likewise.
63611         * modules/unictype/property-ideographic: Likewise.
63612         * modules/unictype/property-ids-binary-operator: Likewise.
63613         * modules/unictype/property-ids-trinary-operator: Likewise.
63614         * modules/unictype/property-ignorable-control: Likewise.
63615         * modules/unictype/property-iso-control: Likewise.
63616         * modules/unictype/property-join-control: Likewise.
63617         * modules/unictype/property-left-of-pair: Likewise.
63618         * modules/unictype/property-line-separator: Likewise.
63619         * modules/unictype/property-logical-order-exception: Likewise.
63620         * modules/unictype/property-lowercase: Likewise.
63621         * modules/unictype/property-math: Likewise.
63622         * modules/unictype/property-non-break: Likewise.
63623         * modules/unictype/property-not-a-character: Likewise.
63624         * modules/unictype/property-numeric: Likewise.
63625         * modules/unictype/property-other-alphabetic: Likewise.
63626         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63627         * modules/unictype/property-other-grapheme-extend: Likewise.
63628         * modules/unictype/property-other-id-continue: Likewise.
63629         * modules/unictype/property-other-id-start: Likewise.
63630         * modules/unictype/property-other-lowercase: Likewise.
63631         * modules/unictype/property-other-math: Likewise.
63632         * modules/unictype/property-other-uppercase: Likewise.
63633         * modules/unictype/property-paired-punctuation: Likewise.
63634         * modules/unictype/property-paragraph-separator: Likewise.
63635         * modules/unictype/property-pattern-syntax: Likewise.
63636         * modules/unictype/property-pattern-white-space: Likewise.
63637         * modules/unictype/property-private-use: Likewise.
63638         * modules/unictype/property-punctuation: Likewise.
63639         * modules/unictype/property-quotation-mark: Likewise.
63640         * modules/unictype/property-radical: Likewise.
63641         * modules/unictype/property-sentence-terminal: Likewise.
63642         * modules/unictype/property-soft-dotted: Likewise.
63643         * modules/unictype/property-space: Likewise.
63644         * modules/unictype/property-terminal-punctuation: Likewise.
63645         * modules/unictype/property-test: Likewise.
63646         * modules/unictype/property-titlecase: Likewise.
63647         * modules/unictype/property-unassigned-code-value: Likewise.
63648         * modules/unictype/property-unified-ideograph: Likewise.
63649         * modules/unictype/property-uppercase: Likewise.
63650         * modules/unictype/property-variation-selector: Likewise.
63651         * modules/unictype/property-white-space: Likewise.
63652         * modules/unictype/property-xid-continue: Likewise.
63653         * modules/unictype/property-xid-start: Likewise.
63654         * modules/unictype/property-zero-width: Likewise.
63655         * modules/unictype/scripts: Likewise.
63656         * modules/unictype/syntax-c-ident: Likewise.
63657         * modules/unictype/syntax-c-whitespace: Likewise.
63658         * modules/unictype/syntax-java-ident: Likewise.
63659         * modules/unictype/syntax-java-whitespace: Likewise.
63660         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63661         * modules/unilbrk/u8-width-linebreaks: Likewise.
63662         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63663         * modules/unilbrk/u16-width-linebreaks: Likewise.
63664         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63665         * modules/unilbrk/u32-width-linebreaks: Likewise.
63666         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63667         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63668         * modules/uniname/uniname: Likewise.
63669         * modules/uninorm/canonical-decomposition: Likewise.
63670         * modules/uninorm/composition: Likewise.
63671         * modules/uninorm/decomposing-form: Likewise.
63672         * modules/uninorm/decomposition: Likewise.
63673         * modules/uninorm/filter: Likewise.
63674         * modules/uninorm/nfc: Likewise.
63675         * modules/uninorm/nfd: Likewise.
63676         * modules/uninorm/nfkc: Likewise.
63677         * modules/uninorm/nfkd: Likewise.
63678         * modules/uninorm/u8-normalize: Likewise.
63679         * modules/uninorm/u8-normcmp: Likewise.
63680         * modules/uninorm/u8-normcoll: Likewise.
63681         * modules/uninorm/u8-normxfrm: Likewise.
63682         * modules/uninorm/u16-normalize: Likewise.
63683         * modules/uninorm/u16-normcmp: Likewise.
63684         * modules/uninorm/u16-normcoll: Likewise.
63685         * modules/uninorm/u16-normxfrm: Likewise.
63686         * modules/uninorm/u32-normalize: Likewise.
63687         * modules/uninorm/u32-normcmp: Likewise.
63688         * modules/uninorm/u32-normcoll: Likewise.
63689         * modules/uninorm/u32-normxfrm: Likewise.
63690         * modules/unistdio/u8-asnprintf: Likewise.
63691         * modules/unistdio/u8-asprintf: Likewise.
63692         * modules/unistdio/u8-snprintf: Likewise.
63693         * modules/unistdio/u8-sprintf: Likewise.
63694         * modules/unistdio/u8-u8-asnprintf: Likewise.
63695         * modules/unistdio/u8-u8-asprintf: Likewise.
63696         * modules/unistdio/u8-u8-snprintf: Likewise.
63697         * modules/unistdio/u8-u8-sprintf: Likewise.
63698         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63699         * modules/unistdio/u8-u8-vasprintf: Likewise.
63700         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63701         * modules/unistdio/u8-u8-vsprintf: Likewise.
63702         * modules/unistdio/u8-vasnprintf: Likewise.
63703         * modules/unistdio/u8-vasprintf: Likewise.
63704         * modules/unistdio/u8-vsnprintf: Likewise.
63705         * modules/unistdio/u8-vsprintf: Likewise.
63706         * modules/unistdio/u16-asnprintf: Likewise.
63707         * modules/unistdio/u16-asprintf: Likewise.
63708         * modules/unistdio/u16-snprintf: Likewise.
63709         * modules/unistdio/u16-sprintf: Likewise.
63710         * modules/unistdio/u16-u16-asnprintf: Likewise.
63711         * modules/unistdio/u16-u16-asprintf: Likewise.
63712         * modules/unistdio/u16-u16-snprintf: Likewise.
63713         * modules/unistdio/u16-u16-sprintf: Likewise.
63714         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63715         * modules/unistdio/u16-u16-vasprintf: Likewise.
63716         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63717         * modules/unistdio/u16-u16-vsprintf: Likewise.
63718         * modules/unistdio/u16-vasnprintf: Likewise.
63719         * modules/unistdio/u16-vasprintf: Likewise.
63720         * modules/unistdio/u16-vsnprintf: Likewise.
63721         * modules/unistdio/u16-vsprintf: Likewise.
63722         * modules/unistdio/u32-asnprintf: Likewise.
63723         * modules/unistdio/u32-asprintf: Likewise.
63724         * modules/unistdio/u32-snprintf: Likewise.
63725         * modules/unistdio/u32-sprintf: Likewise.
63726         * modules/unistdio/u32-u32-asnprintf: Likewise.
63727         * modules/unistdio/u32-u32-asprintf: Likewise.
63728         * modules/unistdio/u32-u32-snprintf: Likewise.
63729         * modules/unistdio/u32-u32-sprintf: Likewise.
63730         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63731         * modules/unistdio/u32-u32-vasprintf: Likewise.
63732         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63733         * modules/unistdio/u32-u32-vsprintf: Likewise.
63734         * modules/unistdio/u32-vasnprintf: Likewise.
63735         * modules/unistdio/u32-vasprintf: Likewise.
63736         * modules/unistdio/u32-vsnprintf: Likewise.
63737         * modules/unistdio/u32-vsprintf: Likewise.
63738         * modules/unistdio/ulc-asnprintf: Likewise.
63739         * modules/unistdio/ulc-asprintf: Likewise.
63740         * modules/unistdio/ulc-fprintf: Likewise.
63741         * modules/unistdio/ulc-snprintf: Likewise.
63742         * modules/unistdio/ulc-sprintf: Likewise.
63743         * modules/unistdio/ulc-vasnprintf: Likewise.
63744         * modules/unistdio/ulc-vasprintf: Likewise.
63745         * modules/unistdio/ulc-vfprintf: Likewise.
63746         * modules/unistdio/ulc-vsnprintf: Likewise.
63747         * modules/unistdio/ulc-vsprintf: Likewise.
63748         * modules/unistr/u8-check: Likewise.
63749         * modules/unistr/u8-chr: Likewise.
63750         * modules/unistr/u8-cmp: Likewise.
63751         * modules/unistr/u8-cmp2: Likewise.
63752         * modules/unistr/u8-cpy: Likewise.
63753         * modules/unistr/u8-cpy-alloc: Likewise.
63754         * modules/unistr/u8-endswith: Likewise.
63755         * modules/unistr/u8-mblen: Likewise.
63756         * modules/unistr/u8-mbsnlen: Likewise.
63757         * modules/unistr/u8-mbtouc: Likewise.
63758         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63759         * modules/unistr/u8-mbtoucr: Likewise.
63760         * modules/unistr/u8-move: Likewise.
63761         * modules/unistr/u8-next: Likewise.
63762         * modules/unistr/u8-prev: Likewise.
63763         * modules/unistr/u8-set: Likewise.
63764         * modules/unistr/u8-startswith: Likewise.
63765         * modules/unistr/u8-stpcpy: Likewise.
63766         * modules/unistr/u8-stpncpy: Likewise.
63767         * modules/unistr/u8-strcat: Likewise.
63768         * modules/unistr/u8-strchr: Likewise.
63769         * modules/unistr/u8-strcmp: Likewise.
63770         * modules/unistr/u8-strcoll: Likewise.
63771         * modules/unistr/u8-strcpy: Likewise.
63772         * modules/unistr/u8-strcspn: Likewise.
63773         * modules/unistr/u8-strdup: Likewise.
63774         * modules/unistr/u8-strlen: Likewise.
63775         * modules/unistr/u8-strmblen: Likewise.
63776         * modules/unistr/u8-strmbtouc: Likewise.
63777         * modules/unistr/u8-strncat: Likewise.
63778         * modules/unistr/u8-strncmp: Likewise.
63779         * modules/unistr/u8-strncpy: Likewise.
63780         * modules/unistr/u8-strnlen: Likewise.
63781         * modules/unistr/u8-strpbrk: Likewise.
63782         * modules/unistr/u8-strrchr: Likewise.
63783         * modules/unistr/u8-strspn: Likewise.
63784         * modules/unistr/u8-strstr: Likewise.
63785         * modules/unistr/u8-strtok: Likewise.
63786         * modules/unistr/u8-to-u16: Likewise.
63787         * modules/unistr/u8-to-u32: Likewise.
63788         * modules/unistr/u8-uctomb: Likewise.
63789         * modules/unistr/u16-check: Likewise.
63790         * modules/unistr/u16-chr: Likewise.
63791         * modules/unistr/u16-cmp: Likewise.
63792         * modules/unistr/u16-cmp2: Likewise.
63793         * modules/unistr/u16-cpy: Likewise.
63794         * modules/unistr/u16-cpy-alloc: Likewise.
63795         * modules/unistr/u16-endswith: Likewise.
63796         * modules/unistr/u16-mblen: Likewise.
63797         * modules/unistr/u16-mbsnlen: Likewise.
63798         * modules/unistr/u16-mbtouc: Likewise.
63799         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63800         * modules/unistr/u16-mbtoucr: Likewise.
63801         * modules/unistr/u16-move: Likewise.
63802         * modules/unistr/u16-next: Likewise.
63803         * modules/unistr/u16-prev: Likewise.
63804         * modules/unistr/u16-set: Likewise.
63805         * modules/unistr/u16-startswith: Likewise.
63806         * modules/unistr/u16-stpcpy: Likewise.
63807         * modules/unistr/u16-stpncpy: Likewise.
63808         * modules/unistr/u16-strcat: Likewise.
63809         * modules/unistr/u16-strchr: Likewise.
63810         * modules/unistr/u16-strcmp: Likewise.
63811         * modules/unistr/u16-strcoll: Likewise.
63812         * modules/unistr/u16-strcpy: Likewise.
63813         * modules/unistr/u16-strcspn: Likewise.
63814         * modules/unistr/u16-strdup: Likewise.
63815         * modules/unistr/u16-strlen: Likewise.
63816         * modules/unistr/u16-strmblen: Likewise.
63817         * modules/unistr/u16-strmbtouc: Likewise.
63818         * modules/unistr/u16-strncat: Likewise.
63819         * modules/unistr/u16-strncmp: Likewise.
63820         * modules/unistr/u16-strncpy: Likewise.
63821         * modules/unistr/u16-strnlen: Likewise.
63822         * modules/unistr/u16-strpbrk: Likewise.
63823         * modules/unistr/u16-strrchr: Likewise.
63824         * modules/unistr/u16-strspn: Likewise.
63825         * modules/unistr/u16-strstr: Likewise.
63826         * modules/unistr/u16-strtok: Likewise.
63827         * modules/unistr/u16-to-u32: Likewise.
63828         * modules/unistr/u16-to-u8: Likewise.
63829         * modules/unistr/u16-uctomb: Likewise.
63830         * modules/unistr/u32-check: Likewise.
63831         * modules/unistr/u32-chr: Likewise.
63832         * modules/unistr/u32-cmp: Likewise.
63833         * modules/unistr/u32-cmp2: Likewise.
63834         * modules/unistr/u32-cpy: Likewise.
63835         * modules/unistr/u32-cpy-alloc: Likewise.
63836         * modules/unistr/u32-endswith: Likewise.
63837         * modules/unistr/u32-mblen: Likewise.
63838         * modules/unistr/u32-mbsnlen: Likewise.
63839         * modules/unistr/u32-mbtouc: Likewise.
63840         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63841         * modules/unistr/u32-mbtoucr: Likewise.
63842         * modules/unistr/u32-move: Likewise.
63843         * modules/unistr/u32-next: Likewise.
63844         * modules/unistr/u32-prev: Likewise.
63845         * modules/unistr/u32-set: Likewise.
63846         * modules/unistr/u32-startswith: Likewise.
63847         * modules/unistr/u32-stpcpy: Likewise.
63848         * modules/unistr/u32-stpncpy: Likewise.
63849         * modules/unistr/u32-strcat: Likewise.
63850         * modules/unistr/u32-strchr: Likewise.
63851         * modules/unistr/u32-strcmp: Likewise.
63852         * modules/unistr/u32-strcoll: Likewise.
63853         * modules/unistr/u32-strcpy: Likewise.
63854         * modules/unistr/u32-strcspn: Likewise.
63855         * modules/unistr/u32-strdup: Likewise.
63856         * modules/unistr/u32-strlen: Likewise.
63857         * modules/unistr/u32-strmblen: Likewise.
63858         * modules/unistr/u32-strmbtouc: Likewise.
63859         * modules/unistr/u32-strncat: Likewise.
63860         * modules/unistr/u32-strncmp: Likewise.
63861         * modules/unistr/u32-strncpy: Likewise.
63862         * modules/unistr/u32-strnlen: Likewise.
63863         * modules/unistr/u32-strpbrk: Likewise.
63864         * modules/unistr/u32-strrchr: Likewise.
63865         * modules/unistr/u32-strspn: Likewise.
63866         * modules/unistr/u32-strstr: Likewise.
63867         * modules/unistr/u32-strtok: Likewise.
63868         * modules/unistr/u32-to-u16: Likewise.
63869         * modules/unistr/u32-to-u8: Likewise.
63870         * modules/unistr/u32-uctomb: Likewise.
63871         * modules/uniwbrk/u8-wordbreaks: Likewise.
63872         * modules/uniwbrk/u16-wordbreaks: Likewise.
63873         * modules/uniwbrk/u32-wordbreaks: Likewise.
63874         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63875         * modules/uniwbrk/wordbreak-property: Likewise.
63876         * modules/uniwidth/u8-strwidth: Likewise.
63877         * modules/uniwidth/u8-width: Likewise.
63878         * modules/uniwidth/u16-strwidth: Likewise.
63879         * modules/uniwidth/u16-width: Likewise.
63880         * modules/uniwidth/u32-strwidth: Likewise.
63881         * modules/uniwidth/u32-width: Likewise.
63882         * modules/uniwidth/width: Likewise.
63883         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63884         with $(LIBUNISTRING).
63885         * modules/unicase/ignorable-tests: Likewise.
63886         * modules/unicase/locale-language-tests: Likewise.
63887         * modules/unicase/tolower-tests: Likewise.
63888         * modules/unicase/totitle-tests: Likewise.
63889         * modules/unicase/toupper-tests: Likewise.
63890         * modules/unicase/u8-casecmp-tests: Likewise.
63891         * modules/unicase/u8-casecoll-tests: Likewise.
63892         * modules/unicase/u8-casefold-tests: Likewise.
63893         * modules/unicase/u8-is-cased-tests: Likewise.
63894         * modules/unicase/u8-is-casefolded-tests: Likewise.
63895         * modules/unicase/u8-is-lowercase-tests: Likewise.
63896         * modules/unicase/u8-is-titlecase-tests: Likewise.
63897         * modules/unicase/u8-is-uppercase-tests: Likewise.
63898         * modules/unicase/u8-tolower-tests: Likewise.
63899         * modules/unicase/u8-totitle-tests: Likewise.
63900         * modules/unicase/u8-toupper-tests: Likewise.
63901         * modules/unicase/u16-casecmp-tests: Likewise.
63902         * modules/unicase/u16-casecoll-tests: Likewise.
63903         * modules/unicase/u16-casefold-tests: Likewise.
63904         * modules/unicase/u16-is-cased-tests: Likewise.
63905         * modules/unicase/u16-is-casefolded-tests: Likewise.
63906         * modules/unicase/u16-is-lowercase-tests: Likewise.
63907         * modules/unicase/u16-is-titlecase-tests: Likewise.
63908         * modules/unicase/u16-is-uppercase-tests: Likewise.
63909         * modules/unicase/u16-tolower-tests: Likewise.
63910         * modules/unicase/u16-totitle-tests: Likewise.
63911         * modules/unicase/u16-toupper-tests: Likewise.
63912         * modules/unicase/u32-casecmp-tests: Likewise.
63913         * modules/unicase/u32-casecoll-tests: Likewise.
63914         * modules/unicase/u32-casefold-tests: Likewise.
63915         * modules/unicase/u32-is-cased-tests: Likewise.
63916         * modules/unicase/u32-is-casefolded-tests: Likewise.
63917         * modules/unicase/u32-is-lowercase-tests: Likewise.
63918         * modules/unicase/u32-is-titlecase-tests: Likewise.
63919         * modules/unicase/u32-is-uppercase-tests: Likewise.
63920         * modules/unicase/u32-tolower-tests: Likewise.
63921         * modules/unicase/u32-totitle-tests: Likewise.
63922         * modules/unicase/u32-toupper-tests: Likewise.
63923         * modules/unicase/ulc-casecmp-tests: Likewise.
63924         * modules/unicase/ulc-casecoll-tests: Likewise.
63925         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63926         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63927         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63928         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63929         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63930         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63931         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63932         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63933         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63934         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63935         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63936         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63937         * modules/unictype/bidicategory-byname-tests: Likewise.
63938         * modules/unictype/bidicategory-name-tests: Likewise.
63939         * modules/unictype/bidicategory-of-tests: Likewise.
63940         * modules/unictype/bidicategory-test-tests: Likewise.
63941         * modules/unictype/block-list-tests: Likewise.
63942         * modules/unictype/block-of-tests: Likewise.
63943         * modules/unictype/block-test-tests: Likewise.
63944         * modules/unictype/category-C-tests: Likewise.
63945         * modules/unictype/category-Cc-tests: Likewise.
63946         * modules/unictype/category-Cf-tests: Likewise.
63947         * modules/unictype/category-Cn-tests: Likewise.
63948         * modules/unictype/category-Co-tests: Likewise.
63949         * modules/unictype/category-Cs-tests: Likewise.
63950         * modules/unictype/category-L-tests: Likewise.
63951         * modules/unictype/category-Ll-tests: Likewise.
63952         * modules/unictype/category-Lm-tests: Likewise.
63953         * modules/unictype/category-Lo-tests: Likewise.
63954         * modules/unictype/category-Lt-tests: Likewise.
63955         * modules/unictype/category-Lu-tests: Likewise.
63956         * modules/unictype/category-M-tests: Likewise.
63957         * modules/unictype/category-Mc-tests: Likewise.
63958         * modules/unictype/category-Me-tests: Likewise.
63959         * modules/unictype/category-Mn-tests: Likewise.
63960         * modules/unictype/category-N-tests: Likewise.
63961         * modules/unictype/category-Nd-tests: Likewise.
63962         * modules/unictype/category-Nl-tests: Likewise.
63963         * modules/unictype/category-No-tests: Likewise.
63964         * modules/unictype/category-P-tests: Likewise.
63965         * modules/unictype/category-Pc-tests: Likewise.
63966         * modules/unictype/category-Pd-tests: Likewise.
63967         * modules/unictype/category-Pe-tests: Likewise.
63968         * modules/unictype/category-Pf-tests: Likewise.
63969         * modules/unictype/category-Pi-tests: Likewise.
63970         * modules/unictype/category-Po-tests: Likewise.
63971         * modules/unictype/category-Ps-tests: Likewise.
63972         * modules/unictype/category-S-tests: Likewise.
63973         * modules/unictype/category-Sc-tests: Likewise.
63974         * modules/unictype/category-Sk-tests: Likewise.
63975         * modules/unictype/category-Sm-tests: Likewise.
63976         * modules/unictype/category-So-tests: Likewise.
63977         * modules/unictype/category-Z-tests: Likewise.
63978         * modules/unictype/category-Zl-tests: Likewise.
63979         * modules/unictype/category-Zp-tests: Likewise.
63980         * modules/unictype/category-Zs-tests: Likewise.
63981         * modules/unictype/category-and-not-tests: Likewise.
63982         * modules/unictype/category-and-tests: Likewise.
63983         * modules/unictype/category-byname-tests: Likewise.
63984         * modules/unictype/category-name-tests: Likewise.
63985         * modules/unictype/category-none-tests: Likewise.
63986         * modules/unictype/category-of-tests: Likewise.
63987         * modules/unictype/category-or-tests: Likewise.
63988         * modules/unictype/category-test-withtable-tests: Likewise.
63989         * modules/unictype/combining-class-tests: Likewise.
63990         * modules/unictype/ctype-alnum-tests: Likewise.
63991         * modules/unictype/ctype-alpha-tests: Likewise.
63992         * modules/unictype/ctype-blank-tests: Likewise.
63993         * modules/unictype/ctype-cntrl-tests: Likewise.
63994         * modules/unictype/ctype-digit-tests: Likewise.
63995         * modules/unictype/ctype-graph-tests: Likewise.
63996         * modules/unictype/ctype-lower-tests: Likewise.
63997         * modules/unictype/ctype-print-tests: Likewise.
63998         * modules/unictype/ctype-punct-tests: Likewise.
63999         * modules/unictype/ctype-space-tests: Likewise.
64000         * modules/unictype/ctype-upper-tests: Likewise.
64001         * modules/unictype/ctype-xdigit-tests: Likewise.
64002         * modules/unictype/decimal-digit-tests: Likewise.
64003         * modules/unictype/digit-tests: Likewise.
64004         * modules/unictype/mirror-tests: Likewise.
64005         * modules/unictype/numeric-tests: Likewise.
64006         * modules/unictype/property-alphabetic-tests: Likewise.
64007         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64008         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64009         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64010         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64011         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64012         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64013         * modules/unictype/property-bidi-control-tests: Likewise.
64014         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64015         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64016         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64017         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64018         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64019         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64020         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64021         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64022         * modules/unictype/property-bidi-pdf-tests: Likewise.
64023         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64024         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64025         * modules/unictype/property-byname-tests: Likewise.
64026         * modules/unictype/property-combining-tests: Likewise.
64027         * modules/unictype/property-composite-tests: Likewise.
64028         * modules/unictype/property-currency-symbol-tests: Likewise.
64029         * modules/unictype/property-dash-tests: Likewise.
64030         * modules/unictype/property-decimal-digit-tests: Likewise.
64031         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64032         * modules/unictype/property-deprecated-tests: Likewise.
64033         * modules/unictype/property-diacritic-tests: Likewise.
64034         * modules/unictype/property-extender-tests: Likewise.
64035         * modules/unictype/property-format-control-tests: Likewise.
64036         * modules/unictype/property-grapheme-base-tests: Likewise.
64037         * modules/unictype/property-grapheme-extend-tests: Likewise.
64038         * modules/unictype/property-grapheme-link-tests: Likewise.
64039         * modules/unictype/property-hex-digit-tests: Likewise.
64040         * modules/unictype/property-hyphen-tests: Likewise.
64041         * modules/unictype/property-id-continue-tests: Likewise.
64042         * modules/unictype/property-id-start-tests: Likewise.
64043         * modules/unictype/property-ideographic-tests: Likewise.
64044         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64045         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64046         * modules/unictype/property-ignorable-control-tests: Likewise.
64047         * modules/unictype/property-iso-control-tests: Likewise.
64048         * modules/unictype/property-join-control-tests: Likewise.
64049         * modules/unictype/property-left-of-pair-tests: Likewise.
64050         * modules/unictype/property-line-separator-tests: Likewise.
64051         * modules/unictype/property-logical-order-exception-tests: Likewise.
64052         * modules/unictype/property-lowercase-tests: Likewise.
64053         * modules/unictype/property-math-tests: Likewise.
64054         * modules/unictype/property-non-break-tests: Likewise.
64055         * modules/unictype/property-not-a-character-tests: Likewise.
64056         * modules/unictype/property-numeric-tests: Likewise.
64057         * modules/unictype/property-other-alphabetic-tests: Likewise.
64058         * modules/unictype/property-other-default-ignorable-code-point-tests:
64059         Likewise.
64060         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64061         * modules/unictype/property-other-id-continue-tests: Likewise.
64062         * modules/unictype/property-other-id-start-tests: Likewise.
64063         * modules/unictype/property-other-lowercase-tests: Likewise.
64064         * modules/unictype/property-other-math-tests: Likewise.
64065         * modules/unictype/property-other-uppercase-tests: Likewise.
64066         * modules/unictype/property-paired-punctuation-tests: Likewise.
64067         * modules/unictype/property-paragraph-separator-tests: Likewise.
64068         * modules/unictype/property-pattern-syntax-tests: Likewise.
64069         * modules/unictype/property-pattern-white-space-tests: Likewise.
64070         * modules/unictype/property-private-use-tests: Likewise.
64071         * modules/unictype/property-punctuation-tests: Likewise.
64072         * modules/unictype/property-quotation-mark-tests: Likewise.
64073         * modules/unictype/property-radical-tests: Likewise.
64074         * modules/unictype/property-sentence-terminal-tests: Likewise.
64075         * modules/unictype/property-soft-dotted-tests: Likewise.
64076         * modules/unictype/property-space-tests: Likewise.
64077         * modules/unictype/property-terminal-punctuation-tests: Likewise.
64078         * modules/unictype/property-test-tests: Likewise.
64079         * modules/unictype/property-titlecase-tests: Likewise.
64080         * modules/unictype/property-unassigned-code-value-tests: Likewise.
64081         * modules/unictype/property-unified-ideograph-tests: Likewise.
64082         * modules/unictype/property-uppercase-tests: Likewise.
64083         * modules/unictype/property-variation-selector-tests: Likewise.
64084         * modules/unictype/property-white-space-tests: Likewise.
64085         * modules/unictype/property-xid-continue-tests: Likewise.
64086         * modules/unictype/property-xid-start-tests: Likewise.
64087         * modules/unictype/property-zero-width-tests: Likewise.
64088         * modules/unictype/scripts-tests: Likewise.
64089         * modules/unictype/syntax-c-ident-tests: Likewise.
64090         * modules/unictype/syntax-c-whitespace-tests: Likewise.
64091         * modules/unictype/syntax-java-ident-tests: Likewise.
64092         * modules/unictype/syntax-java-whitespace-tests: Likewise.
64093         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
64094         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
64095         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
64096         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
64097         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
64098         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
64099         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
64100         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
64101         * modules/uniname/uniname-tests: Likewise.
64102         * modules/uninorm/canonical-decomposition-tests: Likewise.
64103         * modules/uninorm/compat-decomposition-tests: Likewise.
64104         * modules/uninorm/composition-tests: Likewise.
64105         * modules/uninorm/decomposing-form-tests: Likewise.
64106         * modules/uninorm/decomposition-tests: Likewise.
64107         * modules/uninorm/filter-tests: Likewise.
64108         * modules/uninorm/nfc-tests: Likewise.
64109         * modules/uninorm/nfd-tests: Likewise.
64110         * modules/uninorm/nfkc-tests: Likewise.
64111         * modules/uninorm/nfkd-tests: Likewise.
64112         * modules/uninorm/u8-normcmp-tests: Likewise.
64113         * modules/uninorm/u8-normcoll-tests: Likewise.
64114         * modules/uninorm/u16-normcmp-tests: Likewise.
64115         * modules/uninorm/u16-normcoll-tests: Likewise.
64116         * modules/uninorm/u32-normcmp-tests: Likewise.
64117         * modules/uninorm/u32-normcoll-tests: Likewise.
64118         * modules/unistdio/u8-asnprintf-tests: Likewise.
64119         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64120         * modules/unistdio/u8-vasprintf-tests: Likewise.
64121         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64122         * modules/unistdio/u8-vsprintf-tests: Likewise.
64123         * modules/unistdio/u16-asnprintf-tests: Likewise.
64124         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64125         * modules/unistdio/u16-vasprintf-tests: Likewise.
64126         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64127         * modules/unistdio/u16-vsprintf-tests: Likewise.
64128         * modules/unistdio/u32-asnprintf-tests: Likewise.
64129         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64130         * modules/unistdio/u32-vasprintf-tests: Likewise.
64131         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64132         * modules/unistdio/u32-vsprintf-tests: Likewise.
64133         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64134         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64135         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64136         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64137         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64138         * modules/unistr/u8-check-tests: Likewise.
64139         * modules/unistr/u8-chr-tests: Likewise.
64140         * modules/unistr/u8-cmp-tests: Likewise.
64141         * modules/unistr/u8-cmp2-tests: Likewise.
64142         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64143         * modules/unistr/u8-cpy-tests: Likewise.
64144         * modules/unistr/u8-mblen-tests: Likewise.
64145         * modules/unistr/u8-mbsnlen-tests: Likewise.
64146         * modules/unistr/u8-mbtouc-tests: Likewise.
64147         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64148         * modules/unistr/u8-mbtoucr-tests: Likewise.
64149         * modules/unistr/u8-move-tests: Likewise.
64150         * modules/unistr/u8-next-tests: Likewise.
64151         * modules/unistr/u8-prev-tests: Likewise.
64152         * modules/unistr/u8-set-tests: Likewise.
64153         * modules/unistr/u8-stpcpy-tests: Likewise.
64154         * modules/unistr/u8-stpncpy-tests: Likewise.
64155         * modules/unistr/u8-strcat-tests: Likewise.
64156         * modules/unistr/u8-strcmp-tests: Likewise.
64157         * modules/unistr/u8-strcoll-tests: Likewise.
64158         * modules/unistr/u8-strcpy-tests: Likewise.
64159         * modules/unistr/u8-strdup-tests: Likewise.
64160         * modules/unistr/u8-strlen-tests: Likewise.
64161         * modules/unistr/u8-strmblen-tests: Likewise.
64162         * modules/unistr/u8-strmbtouc-tests: Likewise.
64163         * modules/unistr/u8-strncat-tests: Likewise.
64164         * modules/unistr/u8-strncmp-tests: Likewise.
64165         * modules/unistr/u8-strncpy-tests: Likewise.
64166         * modules/unistr/u8-strnlen-tests: Likewise.
64167         * modules/unistr/u8-to-u16-tests: Likewise.
64168         * modules/unistr/u8-to-u32-tests: Likewise.
64169         * modules/unistr/u8-uctomb-tests: Likewise.
64170         * modules/unistr/u16-check-tests: Likewise.
64171         * modules/unistr/u16-chr-tests: Likewise.
64172         * modules/unistr/u16-cmp-tests: Likewise.
64173         * modules/unistr/u16-cmp2-tests: Likewise.
64174         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64175         * modules/unistr/u16-cpy-tests: Likewise.
64176         * modules/unistr/u16-mblen-tests: Likewise.
64177         * modules/unistr/u16-mbsnlen-tests: Likewise.
64178         * modules/unistr/u16-mbtouc-tests: Likewise.
64179         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64180         * modules/unistr/u16-mbtoucr-tests: Likewise.
64181         * modules/unistr/u16-move-tests: Likewise.
64182         * modules/unistr/u16-next-tests: Likewise.
64183         * modules/unistr/u16-prev-tests: Likewise.
64184         * modules/unistr/u16-set-tests: Likewise.
64185         * modules/unistr/u16-stpcpy-tests: Likewise.
64186         * modules/unistr/u16-stpncpy-tests: Likewise.
64187         * modules/unistr/u16-strcat-tests: Likewise.
64188         * modules/unistr/u16-strcmp-tests: Likewise.
64189         * modules/unistr/u16-strcoll-tests: Likewise.
64190         * modules/unistr/u16-strcpy-tests: Likewise.
64191         * modules/unistr/u16-strdup-tests: Likewise.
64192         * modules/unistr/u16-strlen-tests: Likewise.
64193         * modules/unistr/u16-strmblen-tests: Likewise.
64194         * modules/unistr/u16-strmbtouc-tests: Likewise.
64195         * modules/unistr/u16-strncat-tests: Likewise.
64196         * modules/unistr/u16-strncmp-tests: Likewise.
64197         * modules/unistr/u16-strncpy-tests: Likewise.
64198         * modules/unistr/u16-strnlen-tests: Likewise.
64199         * modules/unistr/u16-to-u32-tests: Likewise.
64200         * modules/unistr/u16-to-u8-tests: Likewise.
64201         * modules/unistr/u16-uctomb-tests: Likewise.
64202         * modules/unistr/u32-check-tests: Likewise.
64203         * modules/unistr/u32-chr-tests: Likewise.
64204         * modules/unistr/u32-cmp-tests: Likewise.
64205         * modules/unistr/u32-cmp2-tests: Likewise.
64206         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64207         * modules/unistr/u32-cpy-tests: Likewise.
64208         * modules/unistr/u32-mblen-tests: Likewise.
64209         * modules/unistr/u32-mbsnlen-tests: Likewise.
64210         * modules/unistr/u32-mbtouc-tests: Likewise.
64211         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64212         * modules/unistr/u32-mbtoucr-tests: Likewise.
64213         * modules/unistr/u32-move-tests: Likewise.
64214         * modules/unistr/u32-next-tests: Likewise.
64215         * modules/unistr/u32-prev-tests: Likewise.
64216         * modules/unistr/u32-set-tests: Likewise.
64217         * modules/unistr/u32-stpcpy-tests: Likewise.
64218         * modules/unistr/u32-stpncpy-tests: Likewise.
64219         * modules/unistr/u32-strcat-tests: Likewise.
64220         * modules/unistr/u32-strcmp-tests: Likewise.
64221         * modules/unistr/u32-strcoll-tests: Likewise.
64222         * modules/unistr/u32-strcpy-tests: Likewise.
64223         * modules/unistr/u32-strdup-tests: Likewise.
64224         * modules/unistr/u32-strlen-tests: Likewise.
64225         * modules/unistr/u32-strmblen-tests: Likewise.
64226         * modules/unistr/u32-strmbtouc-tests: Likewise.
64227         * modules/unistr/u32-strncat-tests: Likewise.
64228         * modules/unistr/u32-strncmp-tests: Likewise.
64229         * modules/unistr/u32-strncpy-tests: Likewise.
64230         * modules/unistr/u32-strnlen-tests: Likewise.
64231         * modules/unistr/u32-to-u16-tests: Likewise.
64232         * modules/unistr/u32-to-u8-tests: Likewise.
64233         * modules/unistr/u32-uctomb-tests: Likewise.
64234         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64235         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64236         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64237         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64238         * modules/uniwidth/u8-strwidth-tests: Likewise.
64239         * modules/uniwidth/u8-width-tests: Likewise.
64240         * modules/uniwidth/u16-strwidth-tests: Likewise.
64241         * modules/uniwidth/u16-width-tests: Likewise.
64242         * modules/uniwidth/u32-strwidth-tests: Likewise.
64243         * modules/uniwidth/u32-width-tests: Likewise.
64244         * modules/uniwidth/width-tests: Likewise.
64246 2010-05-18  Richard Jones  <rjones@redhat.com>
64248         doc: users.txt: list hivex
64249         * users.txt: Add hivex.
64251 2010-05-18  Richard Jones  <rjones@redhat.com>
64253         doc: users.txt: list febootstrap
64254         * users.txt: Add febootstrap.
64256 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64258         bootstrap: fix an error when gnulib is not used as a git submodule
64259         * build-aux/bootstrap (gnulib_path): If its length is zero then
64260         assign "gnulib" to it.
64261         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64263 2010-05-16  Bruno Haible  <bruno@clisp.org>
64265         Avoid autoconf warnings about AM_ICONV.
64266         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64267         2.64.
64269 2010-05-16  Bruno Haible  <bruno@clisp.org>
64271         absolute-header: Make the macro usable in more situations.
64272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64273         from gl_ABSOLUTE_HEADER.
64274         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64276 2010-05-16  James Youngman  <jay@gnu.org>
64278         doc: update users.txt
64279         * users.txt: Add CSSC.
64281 2010-05-16  Jim Meyering  <meyering@redhat.com>
64283         init.sh: fix an error in the previous change; add more comments
64284         * tests/init.sh: Compare exit code in loop against 9, not 2.
64285         Patch by Bruno Haible.
64286         Make the two tests more similar by adding an empty "then" clause.
64287         Add comments.
64289         init.sh: avoid unnecessary shell re-exec
64290         * tests/init.sh: Improve the re-exec-required check to first test the
64291         current shell.  If it passes the test, do not search for a shell that
64292         does pass, and do not re-exec.  This test is particularly contorted to
64293         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64294         of $(...) evokes a syntax error and causes immediate shell exit with
64295         status 2.  Bruno Haible reported that the re-exec made it impossible
64296         to single-step through any init.sh-using script.
64298 2010-05-16  Bruno Haible  <bruno@clisp.org>
64300         Fix collision between gnulib's and libintl's printf replacements.
64301         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64302         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64303         (printf): When using GNU C, map the __printf__ function to rpl_printf
64304         via __asm__. When not using GNU C, define rpl_printf instead of
64305         __printf__.
64306         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64307         commit.
64308         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64309         commit.
64310         * m4/asm-underscore.m4: New file.
64311         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64312         * modules/stdio (Files): Add m4/asm-underscore.m4.
64313         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64314         Reported by Ben Pfaff.
64316 2010-05-16  Bruno Haible  <bruno@clisp.org>
64318         verify: Avoid skipping the test on openSUSE 11.0.
64319         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64321 2010-05-13  Bruno Haible  <bruno@clisp.org>
64323         Avoid useless warnings from G++.
64324         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64325         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64326         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64328 2010-05-11  Jim Meyering  <meyering@redhat.com>
64330         maint.mk: tweak preceding change
64331         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64332         regexps tighter by anchoring at EOL, and make the new group "shy"
64333         for slightly decreased overhead.
64335 2010-05-11  Eric Blake  <eblake@redhat.com>
64337         maint.mk: gnulib doesn't guarantee NSIG
64338         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64340 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64342         test-pwrite.c: Remove unused variable declaration.
64343         * tests/test-pwrite.c (main): Remove read_buf declaration.
64345         Remove useless test-pwrite.sh file.
64346         * tests/test-pwrite.sh: Delete file.
64347         * modules/pwrite-tests: Remove references.
64348         Reported by Bruno Haible.
64350 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64352         init.sh: fix a typo
64353         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64355 2010-05-10  Jim Meyering  <meyering@redhat.com>
64357         maint.mk: avoid using a temporary file in the always-defined-macros check
64358         * top/maint.mk (.re-defmac): Remove rule.
64359         (gl_trap_): Remove definition.
64360         (sc_prohibit_always-defined_macros): Rewrite not to create and
64361         depend on a temporary file.  Instead, depend on GNU grep's ability
64362         to read a list of regular expressions from stdin when given "-f -".
64364 2010-05-09  Bruno Haible  <bruno@clisp.org>
64366         Update to GNU gettext 0.18, part 1.
64367         * m4/gettext.m4: Update to GNU gettext 0.18.
64368         * m4/intl.m4: Likewise.
64369         * m4/po.m4: Likewise.
64370         * modules/gettext (Files): Add m4/fcntl-o.m4.
64371         (configure.ac): Require gettext infrastructure from version 0.18.
64373 2010-05-09  Jim Meyering  <meyering@redhat.com>
64375         init.sh: enable MALLOC_PERTURB_
64376         * tests/init.sh: Enable glibc's malloc-perturbing option.
64378         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64379         With my recent change in init.sh from the two-line form:
64380             -#   : ${srcdir=.}
64381             -#   . "$srcdir/init.sh"; path_prepend_ .
64382             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64383         I noticed that using the one-line form would cause this test
64384         to fail with a false-positive, or to stop working altogether,
64385         depending on whether help-version changed or all the tests did.
64386         * top/maint.mk (_hv_regex): Remove this definition.
64387         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64388         (_hv_regex_strong): Use a stronger regex to check for conformance.
64389         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64390         Give a separate diagnostic for lack of conforming use.
64392         maint.mk: prohibit definition of symbols defined by gnulib
64393         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64394         definition of symbols defined by gnulib.
64396 2010-05-09  Bruno Haible  <bruno@clisp.org>
64398         acl: Avoid test failure on Cygwin-hosted mingw.
64399         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64401 2010-05-09  Bruno Haible  <bruno@clisp.org>
64403         error: Use system's fcntl function.
64404         * lib/error.c (fcntl): Undefine.
64406 2010-05-09  Jim Meyering  <meyering@redhat.com>
64408         verify: adjust formatting to be more consistent
64409         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64410         argument-list '('s, and after one comma.
64412 2010-05-09  Bruno Haible  <bruno@clisp.org>
64414         error: More reliable output on mingw.
64415         * lib/error.c: Include <windows.h>.
64416         (is_open): New function.
64417         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64418         defined.
64420 2010-05-09  Bruno Haible  <bruno@clisp.org>
64422         vasnprintf: Fix syntax errors in libintl build on mingw.
64423         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64424         pad_ourselves and prec_ourselves after use.
64426 2010-05-08  Bruno Haible  <bruno@clisp.org>
64428         * lib/config.charset: Update comments for Cygwin 1.7.
64429         * lib/localcharset.c: Likewise.
64431 2010-05-07  Jim Meyering  <meyering@redhat.com>
64433         init.sh: improve comments
64434         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64435         . "${srcdir=.}/init.sh"; path_prepend_ .
64436         Add a note about path_prepend_ and the alternative of using
64437         TESTS_ENVIRONMENT.
64439 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64441         exclude: Unescape hashed patterns in wildcard mode.
64442         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64443         to the hash list.
64444         * tests/test-exclude8.sh: New test case.
64445         * modules/exclude-tests: Add new test.
64447 2010-05-05  Eric Blake  <eblake@redhat.com>
64449         verify: automate tests
64450         * modules/verify-tests: New module.
64451         * tests/test-verify.sh: New file.
64452         * tests/test-verify.c: Guard each negative test with a unique id.
64453         Also avoid warning about unused left hand of comma expressions.
64455 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64457         Further improvements to verify.h, suggested by Eric Blake.
64458         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64459         the GL_* versions, to avoid collision with OpenGL.
64460         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64461         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64462         than testing merely whether it's defined.
64464         Modify verify.h to pacify gcc -Wredundant_decls.
64465         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64466         These use the prefix "GL_" since they're likely to be useful elsewhere.
64467         We may need to break them out into a different .h file.
64468         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64469         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64470         of verify_function__.
64472 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64474         Tests for module pwrite.
64475         * modules/pwrite-tests: New file.
64476         * tests/test-pwrite.sh: New file.
64477         * tests/test-pwrite.c: New file.
64479         New module pwrite.
64480         * lib/unistd.in.h (pwrite): New declaration.
64481         * lib/pwrite.c: New file, from glibc with modifications.
64482         * m4/pwrite.m4: New file.
64483         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64484         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64485         REPLACE_PWRITE.
64486         * modules/pwrite: New file.
64487         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64488         REPLACE_PWRITE.
64489         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64490         * doc/posix-functions/pwrite.texi: Mention the new module.
64492 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64494         pread: Update documentation.
64495         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64497 2010-05-04  Eric Blake  <eblake@redhat.com>
64499         docs: update cygwin progress
64500         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64501         this bug.
64502         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64503         Added in cygwin 1.7.2.
64504         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64505         Likewise.
64506         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64507         Likewise.
64508         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64509         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64510         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64511         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64512         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64513         Mention nproc module.
64514         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64515         bug in cygwin 1.7.5 addition.
64516         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64517         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64518         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64519         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64520         1.7.5.
64521         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64522         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64523         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64524         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64525         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64526         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64527         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64528         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64529         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64530         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64531         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64532         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64533         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64534         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64535         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64536         Likewise.
64537         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64538         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64539         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64540         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64541         Likewise.
64542         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64543         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64544         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64545         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64546         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64547         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64548         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64549         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64550         Likewise.
64551         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64552         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64553         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64554         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64555         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64556         Likewise.
64557         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64558         Likewise.
64559         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64560         Likewise.
64561         * doc/glibc-functions/xdrrec_endofrecord.texi
64562         (xdrrec_endofrecord): Likewise.
64563         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64564         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64565         Likewise.
64566         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64567         Likewise.
64569 2010-05-04  Jim Meyering  <meyering@redhat.com>
64571         gendocs.sh: make its "-s FILE" option more useful
64572         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64573         $PACKAGE to reflect the probably-different basename of "FILE".
64575 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64577         bootstrap: don't ignore download_po_files failure
64578         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64579         failure.
64581 2010-05-03  Jim Meyering  <meyering@redhat.com>
64583         maint.mk: allow to pass options to gendocs.sh
64584         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64585         (gendocs_options_): New overridable variable.
64587         gnu-web-doc-update: don't ignore configure or build failure
64588         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64590         announce-gen: backslash-escape '@'s in --help output
64591         * build-aux/announce-gen: Fix syntax errors.
64593         maint.mk, announce-gen: allow project-specific announcement mail headers
64594         * top/maint.mk (translation_project_): Define default.
64595         (announcement_Cc_, announcement_mail_headers_): Likewise.
64596         (announcement): Invoke announce-gen with new --mail-headers option.
64597         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64599         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64600         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64601         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64602         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64603         line in the "err2" output file when running "make check" in verbose
64604         mode (i.e., with set -x enabled).
64606 2010-05-03  Bruno Haible  <bruno@clisp.org>
64608         wctob: Fix for weird platforms.
64609         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64610         argument value.
64612 2010-05-03  Jim Meyering  <meyering@redhat.com>
64614         maint.mk: prohibit unwarranted use of <strings.h>
64615         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64616         strings.h in a file that does not also use strcasecmp, strncasecmp,
64617         ffs or ffsll.
64619         maint.mk: remove obsolete comments
64620         * top/maint.mk: Remove stale, commented-out rules.
64622 2010-05-02  Bruno Haible  <bruno@clisp.org>
64624         wcwidth: Declare also when it's aliased.
64625         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64626         macro.
64628 2010-05-02  Bruno Haible  <bruno@clisp.org>
64630         Fix regression from 2010-04-25.
64631         * gnulib-tool (func_modules_transitive_closure): Check the status of
64632         all modules, not only of the tests that are of the form foo-tests where
64633         foo is a module.
64635 2010-05-02  Bruno Haible  <bruno@clisp.org>
64637         wctob: Work around nasty Cygwin 1.7.2 bug.
64638         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64639         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64641 2010-05-01  Bruno Haible  <bruno@clisp.org>
64643         fpurge: Sharper test.
64644         * tests/test-fpurge.c (main): Add one more ftell check.
64645         * modules/fpurge-tests (Depends-on): Add ftell.
64646         Suggested by Eric Blake.
64648 2010-05-01  Bruno Haible  <bruno@clisp.org>
64650         ftello: Another test.
64651         * tests/test-ftello3.c: New file.
64652         * modules/ftello-tests (Files): Add it.
64653         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64654         MOSTLYCLEANFILES.
64656         ftell: Another test.
64657         * tests/test-ftell3.c: New file.
64658         * modules/ftell-tests (Files): Add it.
64659         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64660         MOSTLYCLEANFILES.
64662 2010-05-01  Bruno Haible  <bruno@clisp.org>
64664         ftell, ftello: Work around Solaris bug.
64665         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64666         * lib/ftello.c: Include stdio-impl.h.
64667         (ftello): On Solaris, when _IOWRT is set, compute the result without
64668         looking at _IOREAD.
64669         * modules/ftello (Files): Add lib/stdio-impl.h.
64670         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64671         * doc/posix-functions/ftello.texi: Likewise.
64672         Reported by Eric Blake.
64674 2010-05-01  Bruno Haible  <bruno@clisp.org>
64676         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64677         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64678         the _IOWRT flag is also set.
64680 2010-05-01  Bruno Haible  <bruno@clisp.org>
64682         Fix doc about a HP-UX stdio bug.
64683         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64684         * doc/posix-functions/ftello.texi: Likewise.
64686 2010-05-01  Bruno Haible  <bruno@clisp.org>
64688         lseek test: Fix failure on Solaris.
64689         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64690         output.
64692 2010-04-30  Jim Meyering  <meyering@redhat.com>
64694         bootstrap: don't ignore failure to generate po*/Makevars
64695         * build-aux/bootstrap (with_gettext): Don't ignore failure
64696         to create po/Makevars or runtime-po/Makevars.
64698 2010-04-29  Eric Blake  <eblake@redhat.com>
64700         headers: relax license to LGPLv2+
64701         * modules/fcntl-h (License): Relax license.
64702         * modules/getopt-posix (License): Likewise.
64703         * modules/locale (License): Likewise.
64704         * modules/math (License): Likewise.
64705         * modules/pty (License): Likewise.
64706         * modules/sched (License): Likewise.
64707         * modules/search (License): Likewise.
64708         * modules/spawn (License): Likewise.
64709         * modules/stdarg (License): Likewise.
64710         * modules/sysexits (License): Likewise.
64712 2010-04-29  Jim Meyering  <meyering@redhat.com>
64714         inttypes: relax license to LGPLv2+
64715         * modules/inttypes (License): Relax license.
64717 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64719         * top/maint.mk (indent): Run twice to produce idempotent results.
64721 2010-04-28  Bruno Haible  <bruno@clisp.org>
64723         getdate: Generate getdate.c in the source directory.
64724         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64725         MOSTLYCLEANFILES.
64726         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64728 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64730         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64731         is not declared as a const *; avoid warnings in that case.
64733 2010-04-28  Eric Blake  <eblake@redhat.com>
64735         canonicalize-lgpl: avoid compiler warning
64736         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64737         declaration' / 'extraneous semicolon' warning with some compilers.
64738         Reported by Andreas Gruenbacher.
64740 2010-04-28  Jim Meyering  <meyering@redhat.com>
64742         init.sh: ensure a more reliable exit status when exiting via trap
64743         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64744         Inspired by patches from Dmitry V. Levin.
64745         Also trap on signal 3 (SIGQUIT).
64747 2010-04-27  Bruno Haible  <bruno@clisp.org>
64749         Update doc about utimes().
64750         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64751         'utimens' module.
64752         Reported by Andreas Gruenbacher <agruen@suse.de>.
64754 2010-04-27  Eric Blake  <eblake@redhat.com>
64756         full-read, full-write: relax license
64757         * modules/full-read (License): Drop to LGPLv2+.
64758         * modules/full-write (License): Likewise.
64759         * modules/safe-read (License): Likewise.
64760         * modules/safe-write (License): Likewise.
64762         pthread: mention library for linking
64763         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64765 2010-04-27  Jim Meyering  <meyering@redhat.com>
64767         maint.mk: fix a bug introduced in last change
64768         * top/maint.mk (gl_assured_headers_): Now that all names are on
64769         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64770         is not anchored to end of word, it should be adequate.
64772         maint.mk: avoid side-effect in latest syntax-check
64773         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64774         to run commands via $(shell...), and hence to incur cost only when
64775         the new rule is actually run.
64777         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64778         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64779         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64780         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64781         (gl_assured_headers_, az_, AZ_): Define.
64782         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64784 2010-04-26  Jim Meyering  <jim@meyering.net>
64785             Bruno Haible  <bruno@clisp.org>
64787         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64788         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64789         Prompted by an exchange with Gilles Espinasse.
64791 2010-04-26  Jim Meyering  <meyering@redhat.com>
64793         git-version-gen: aesthetic tweak
64794         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64795         so that the command remains on a single line.
64797 2010-04-26  Eric Blake  <eblake@redhat.com>
64799         git-version-gen: allow use on EBCDIC hosts
64800         * build-aux/git-version-gen (dirty): Use literal rather than tying
64801         ourselves to ascii.
64802         Reported by Steve Goetze.
64804 2010-04-25  Bruno Haible  <bruno@clisp.org>
64806         netdb: Add support for GNULIB_POSIXCHECK.
64807         * lib/netdb.in.h: Include warn-on-use.h.
64808         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64809         functions are used when GNULIB_POSIXCHECK is defined and the
64810         getaddrinfo module is not in use.
64811         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64812         freeaddrinfo, gai_strerror, getnameinfo are declared.
64813         * modules/netdb (Depends-on): Add warn-on-use.
64814         (Makefile.am): Include warn-on-use.h in netdb.h.
64816 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64818         build: avoid "make check" failure without .git/ directory
64819         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64820         there is no .git/ directory.
64822 2010-04-25  Bruno Haible  <bruno@clisp.org>
64824         ptsname: Fix misuse of ttyname_r.
64825         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64826         of errno.
64828 2010-04-25  Bruno Haible  <bruno@clisp.org>
64830         ttyname_r: Make it work on Solaris 10.
64831         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64832         if the system function has the POSIX declaration. Test whether the
64833         function fails if the buffer is less than 128 bytes large.
64834         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64835         system's ttyname_r function. Provide a reasonably large buffer.
64836         * modules/ttyname_r (Depends-on): Add extensions.
64837         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64839 2010-04-25  Bruno Haible  <bruno@clisp.org>
64841         Use the 'extensions' module for some more functions on Solaris.
64842         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64843         module.
64844         * doc/posix-functions/ctime_r.texi: Likewise.
64845         * doc/posix-functions/getgrgid_r.texi: Likewise.
64846         * doc/posix-functions/getgrnam_r.texi: Likewise.
64847         * doc/posix-functions/getpwnam_r.texi: Likewise.
64848         * doc/posix-functions/getpwuid_r.texi: Likewise.
64849         * doc/posix-functions/readdir_r.texi: Likewise.
64850         * doc/posix-functions/sigwait.texi: Likewise.
64851         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64852         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64854 2010-04-25  Bruno Haible  <bruno@clisp.org>
64856         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64857         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64858         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64859         * lib/ttyname_r.c: Include <limits.h>.
64860         (ttyname_r): Define using the system's ttyname_r function, if it exists
64861         and not on Solaris.
64862         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64863         set.
64864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64865         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64866         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64867         Reported by Simon Josefsson.
64869 2010-04-25  Bruno Haible  <bruno@clisp.org>
64871         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64872         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64873         * doc/posix-functions/ctime_r.texi: Likewise.
64874         * doc/posix-functions/getgrgid_r.texi: Likewise.
64875         * doc/posix-functions/getgrnam_r.texi: Likewise.
64876         * doc/posix-functions/getlogin_r.texi: Likewise.
64877         * doc/posix-functions/getpwnam_r.texi: Likewise.
64878         * doc/posix-functions/getpwuid_r.texi: Likewise.
64879         * doc/posix-functions/readdir_r.texi: Likewise.
64880         * doc/posix-functions/sigwait.texi: Likewise.
64881         * doc/posix-functions/ttyname_r.texi: Likewise.
64882         Reported by Simon Josefsson.
64884 2010-04-25  Bruno Haible  <bruno@clisp.org>
64886         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64887         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64888         also to --create-testdir.
64889         (func_acceptable): Don't consider the status of *-tests modules here.
64890         (func_modules_transitive_closure): Consider it here, before including a
64891         test module.
64892         (func_import, func_create_testdir): Set inc_all_direct_tests,
64893         inc_all_indirect_tests.
64894         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64895         --create-testdir and --create-megatestdir.
64897 2010-04-25  Bruno Haible  <bruno@clisp.org>
64899         gnulib-tool: Add --without-*-tests options.
64900         * gnulib-tool (func_usage): Document the --without-*-tests options.
64901         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64902         excl_unportable_tests): New variables.
64903         Fail if they are specified with --import or --update.
64904         (func_acceptable): Respect the excl_*_tests variables.
64905         (func_import): Set the excl_*_tests variables to empty.
64907 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64908             Bruno Haible  <bruno@clisp.org>
64910         Work around a MacOS X 10.4 bug with openpty.
64911         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64912         * tests/test-openpty.c (main): Close the master side explicitly.
64914 2010-04-25  Bruno Haible  <bruno@clisp.org>
64916         strnlen: Fix a C++ test error on MacOS X and Solaris.
64917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64918         the function is not declared.
64919         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64920         Simon Josefsson.
64922 2010-04-24  Bruno Haible  <bruno@clisp.org>
64924         Avoid a gcc warning.
64925         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64926         of correct type for %08lx directive.
64927         Reported by Eric Blake.
64929 2010-04-24  Bruno Haible  <bruno@clisp.org>
64931         vasnprintf: Correct errno value in case of out-of-memory.
64932         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64933         or sprintf. Use the errno value from SNPRINTF or sprintf.
64934         Reported by Ian Beckwith <ianb@erislabs.net>.
64936 2010-04-24  Bruno Haible  <bruno@clisp.org>
64938         ansi-c++-opt: Find correct compiler when cross-compiling.
64939         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64940         AC_CHECK_PROGS.
64941         Reported by Simon Josefsson.
64943 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64945         vc-list-files: Add support for subversion
64946         * build-aux/vc-list-files: Use "svn list" to generate the list of
64947         files controlled by subversion.
64949 2010-04-23  Jim Meyering  <meyering@redhat.com>
64951         vc-list-files tests: convert to use init.sh
64952         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64953         path_prepend_.
64954         Use Exit, not exit.
64955         Use skip_ rather than open coding it.
64956         Remove trap set-up and compare definitions.
64957         * tests/test-vc-list-files-git.sh: Likewise.
64958         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64960 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64962         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64963         backup files.
64965 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64967         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
64969 2010-04-20  Eric Blake  <eblake@redhat.com>
64971         tests: be robust to ignored SIGPIPE
64972         * tests/test-select-in.sh: Consume all output.
64973         * tests/test-lseek.sh: Check correct exit status, while avoiding
64974         EPIPE.
64976 2010-04-20  Simon Josefsson  <simon@josefsson.org>
64977             Bruno Haible  <bruno@clisp.org>
64979         visibility: Don't use -fvisibility if it leads to a warning.
64980         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
64981         yes, don't pretend that visibility works if it leads to a warning.
64982         Reported by Mike Gran <spk121@yahoo.com>.
64984 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
64986         * build-aux/bootstrap: Use "git -h" for testing for supported options
64987         instead of "git --help".  The short-form option only shows a summary,
64988         and doesn't layout the full man page.  Grep for the full option name
64989         in the summary, too.
64991 2010-04-19  Bruno Haible  <bruno@clisp.org>
64993         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
64994         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
64995         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
64996         mention of RELOCATABLE_STRIP.
64997         Reported by Sylvain Beucler <beuc@beuc.net>.
64999 2010-04-19  Bruno Haible  <bruno@clisp.org>
65001         * lib/diffseq.h: Fix typo in comment.
65002         Reported by Eric Blake.
65004 2010-04-19  Bruno Haible  <bruno@clisp.org>
65006         ioctl: Move autoconf macro to a .m4 file.
65007         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65008         * modules/ioctl (Files): Add it.
65009         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65010         Reported by Ian Beckwith <ianb@erislabs.net>.
65012 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65013             Bruno Haible  <bruno@clisp.org>
65015         diffseq: Accommodate use-case with abstract arrays.
65016         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65017         is not defined.
65018         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65019         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65021 2010-04-18  Bruno Haible  <bruno@clisp.org>
65023         * doc/posix-headers/stdbool.texi: More precise wording.
65025 2010-04-17  Jim Meyering  <meyering@redhat.com>
65027         maint.mk: use gnu-style indentation in an embedded perl script
65028         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65029         Rename variable: s/two/last_two_bytes/
65031 2010-04-16  Eric Blake  <eblake@redhat.com>
65033         test-stdbool: skip test that fails with Solaris CC
65034         * tests/test-stdbool.c (f): Skip test that causes compilation
65035         error under buggy C++ compiler.
65036         * lib/stdbool.in.h: Document the limitation.
65037         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65039         setenv: allow compilation with C++
65040         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65041         register keyword.
65043         stdint: allow test to pass with C++
65044         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65046         getopt: allow compilation with C++
65047         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65048         struct.
65049         * lib/getopt.c (_getopt_internal_r): Use correct type.
65050         Reported by Dagobert Michelson, via Joel E. Denny.
65052 2010-04-16  Bruno Haible  <bruno@clisp.org>
65054         Override netdb.h always.
65055         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65056         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65057         Reported by Ludovic Courtès <ludo@gnu.org>.
65059 2010-04-15  Bruno Haible  <bruno@clisp.org>
65061         openpty: Fix mistake from 2010-03-21.
65062         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65063         Reported by Simon Josefsson.
65065 2010-04-15  Eric Blake  <eblake@redhat.com>
65067         test-forkpty: fix expected signature
65068         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65069         Reported by Simon Josefsson.
65071 2010-04-15  Jim Meyering  <meyering@redhat.com>
65073         maint.mk: texinfo_suffix_re_: correct the default regexp
65074         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
65076         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
65077         make it configurable via texinfo_suffix_re_.
65079 2010-04-14  Eric Blake  <eblake@redhat.com>
65081         strtok_r: relax license to LGPLv2+
65082         * modules/strtok_r (License): Relax license.
65083         Reported by Matthias Bolte.
65085 2010-04-14  Simon Josefsson  <simon@josefsson.org>
65087         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
65088         version 1.4.4 by default instead of requiring the libgcrypt
65089         version used during build.  This makes it possible to use the
65090         application with older but still binary compatible libgcrypt
65091         versions.
65093 2010-04-13  Eric Blake  <eblake@redhat.com>
65095         getopt-gnu: match recent glibc fixes and posix ruling
65096         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
65097         '+' handling, when requesting extensions.
65098         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
65099         'W;' handling.
65100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
65101         * doc/posix-functions/getopt.texi (getopt): Document this.
65102         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65104         Likewise.
65106         getopt: merge bug fixes from glibc
65107         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
65108         diagnostics.  Honor '+:' correctly.  Reject ';'.
65110         getopt-posix: detect MacOS bug
65111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65112         optind when missing a required argument.
65113         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65114         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65115         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65116         Likewise.
65118         getopt-posix: avoid spurious failure on Solaris
65119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65120         an indicator that setting optind=1 is sufficient for reset.
65122         getopt-posix: avoid spurious failure on FreeBSD
65123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65124         in POSIX mode, since the m4 test uses it.
65126         gnulib-tool: silence warning on BSD sh
65127         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65129 2010-04-13  Jim Meyering  <meyering@redhat.com>
65131         doc: users.txt: GNU patch now uses gnulib
65132         * users.txt: Add patch.
65134 2010-04-12  Jim Meyering  <meyering@redhat.com>
65136         maint.mk: generate more concise timing data for syntax-check rules
65137         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65138         " done" from each line that reports a syntax-check test duration.
65140 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65142         git-version-gen: use "git update-index..." rather than "git status"
65143         * build-aux/git-version-gen: Use git update-index --refresh, not
65144         "git status".  With some versions of git, "git status" would fail
65145         to update the index and result in an unwarranted "-dirty" suffix.
65147 2010-04-11  Jim Meyering  <meyering@redhat.com>
65149         openat: correct formatting (no semantic change)
65150         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65151         Suggested by Bruno Haible.
65153 2010-04-11  Bruno Haible  <bruno@clisp.org>
65155         Stricter declaration checking in testdirs.
65156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65157         If for_tests is true, augment AM_CPPFLAGS to define
65158         GNULIB_STRICT_CHECKING.
65159         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65160         GNULIB_STRICT_CHECKING is defined, verify that the function is
65161         declared.
65163 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65164             Bruno Haible  <bruno@clisp.org>
65166         libunistring: Improve configure output.
65167         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65168         Don't say "consider installing GNU libunistring" when checking again
65169         with libiconv.
65171 2010-04-11  Bruno Haible  <bruno@clisp.org>
65173         libunistring: Correct value of $LTLIBUNISTRING.
65174         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65175         correct the value of $LTLIBUNISTRING.
65177 2010-04-11  Bruno Haible  <bruno@clisp.org>
65179         havelib: Add static libraries to LIBS in the right order.
65180         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65181         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65183 2010-04-11  Bruno Haible  <bruno@clisp.org>
65185         libunistring: Detect libunistring also when it depends on libiconv.
65186         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65187         the second AC_LIB_HAVE_LINKFLAGS invocation.
65189 2010-04-11  James Youngman  <jay@gnu.org>
65191         close-stream: declare local scalars to be "const"
65192         * lib/close-stream.c (close_stream): Make boolean variables const
65193         to document the fact that we set but do not change them.
65195 2010-04-11  Bruno Haible  <bruno@clisp.org>
65197         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65199 2010-04-11  Jim Meyering  <meyering@redhat.com>
65201         maint.mk: don't include dist-check.mk
65202         * top/maint.mk: Remove bogus include directive.
65204         maint.mk: improve empty-line-at-EOF check
65205         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65206         solution, rather than tail+Perl-based one.  The latter would read
65207         a few kilobytes from the end of each file, and did not handle empty
65208         files properly.
65210         maint.mk: print the elapsed time for each syntax-check rule
65211         * top/maint.mk (sc_m_rules_): Save start time in a file.
65212         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65213         (local-check): Interpose the .z rules
65215 2010-04-11  Jim Meyering  <meyering@redhat.com>
65217         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65218         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65219         empty file with one that ends in an empty line.
65221 2010-04-10  Bruno Haible  <bruno@clisp.org>
65223         mkdir: Make it work on mingw64.
65224         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65225         * lib/mkdir.c: Update comment.
65226         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65228 2010-04-10  Bruno Haible  <bruno@clisp.org>
65230         Don't override improved macro from newer autoconf.
65231         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65232         autoconf >= 2.62.
65233         Reported by Joel E. Denny <jdenny@clemson.edu>.
65235 2010-04-10  Jim Meyering  <meyering@redhat.com>
65237         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65238         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65240         maint.mk: correct a diagnostic
65241         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65242         in diagnostic; now use $prohibit.
65244 2010-04-10  Bruno Haible  <address@hidden>
65246         fchownat: Fix a C++ test error on Solaris 8.
65247         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65248         the function does not exist.
65250 2010-04-10  Bruno Haible  <bruno@clisp.org>
65252         vasnprintf: Add more tests.
65253         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65254         (test_function): Test converting an invalid wide string.
65256         vasnprintf: Correct handling of unconvertible wide string arguments.
65257         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65258         VASNPRINTF.
65259         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65260         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65261         smaller than the expected maximum need for the directive. Set errno to
65262         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65263         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65265         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65266         * modules/vasnprintf (Files): Add m4/printf.m4.
65267         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65269 2010-04-10  Bruno Haible  <bruno@clisp.org>
65271         vasnprintf: Fix crash in %ls directive.
65272         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65273         string is passed as argument to %ls, with no precision and no width.
65274         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65276 2010-04-10  Bruno Haible  <bruno@clisp.org>
65278         vasnprintf: Fix multiple test failures on mingw.
65279         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65280         _snprintf, or snwprintf, not _snwprintf.
65282 2010-04-10  Bruno Haible  <bruno@clisp.org>
65284         write: Fix a C++ test error on mingw.
65285         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65287 2010-04-10  Bruno Haible  <bruno@clisp.org>
65289         vasnprintf test: Reduce code duplication.
65290         * tests/test-vasnprintf.c (test_function): New function, extracted from
65291         test_vasnprintf.
65292         (test_vasnprintf, test_asnprintf): Invoke it.
65294 2010-04-10  Bruno Haible  <bruno@clisp.org>
65296         strnlen: Fix warning in C++ mode on MacOS X.
65297         * lib/string.in.h (strnlen): Use the modern idiom.
65298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65299         defining strnlen as a macro already in <config.h>.
65300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65301         REPLACE_STRNLEN.
65302         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65305 2010-04-08  James Youngman  <jay@gnu.org>
65307         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65308         the example.
65310 2010-04-09  Jim Meyering  <meyering@redhat.com>
65312         maint.mk: print better diagnostic when there is no $(_hv_file)
65313         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65314         announce that when $(_hv_file) (aka help-version) does not exist.
65316         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65317         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65318         not try to interpret its random input bytes.  Jarno Rajahalme reported
65319         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65320         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65321         (mktempd_): Likewise, just in case.
65323         ftruncate: add two years to projected module removal date: 2012
65324         * m4/ftruncate.m4: Adjust comments.
65326         ftruncate: mark module as obsolete; even MinGW provides it, now
65327         * modules/ftruncate (Status): Obsolete.
65328         (Notice): Say that.
65329         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65330         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65332 2010-04-08  Bruno Haible  <bruno@clisp.org>
65334         Fix side effects from tests-related modules.
65335         * modules/dprintf-posix (Comment): New section.
65336         * modules/fprintf-posix (Comment): Likewise.
65337         * modules/obstack-printf-posix (Comment): Likewise.
65338         * modules/printf-posix (Comment): Likewise.
65339         * modules/snprintf-posix (Comment): Likewise.
65340         * modules/sprintf-posix (Comment): Likewise.
65341         * modules/vasnprintf-posix (Comment): Likewise.
65342         * modules/vasprintf-posix (Comment): Likewise.
65343         * modules/vdprintf-posix (Comment): Likewise.
65344         * modules/vfprintf-posix (Comment): Likewise.
65345         * modules/vprintf-posix (Comment): Likewise.
65346         * modules/vsnprintf-posix (Comment): Likewise.
65347         * modules/vsprintf-posix (Comment): Likewise.
65348         * modules/xprintf-posix (Comment): Likewise.
65349         * modules/xvasprintf-posix (Comment): Likewise.
65350         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65351         * modules/floorf-tests (Depends-on): Likewise.
65352         * modules/round-tests (Depends-on): Likewise.
65353         * modules/roundf-tests (Depends-on): Likewise.
65354         * modules/trunc-tests (Depends-on): Likewise.
65355         * modules/truncf-tests (Depends-on): Likewise.
65356         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65357         'fprintf-posix' module is not present.
65358         * tests/test-floorf2.c (check): Likewise.
65359         * tests/test-trunc2.c (check): Likewise.
65360         * tests/test-truncf2.c (check): Likewise.
65361         * tests/test-round2.c (equal): Likewise.
65362         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65364 2010-04-07  Karl Berry  <karl@gnu.org>
65366         * config/srclist.txt,
65367         * config/srclistvars.sh,
65368         * config/srclist-update: doc fixes.
65370 2010-04-07  Jim Meyering  <meyering@redhat.com>
65372         maint.mk: add a PATH crosschecking syntax-check rule
65373         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65374         Useful if you use a test like the one in help-version (coreutils,
65375         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65376         printed by prog --version.
65378 2010-04-06  Bruno Haible  <bruno@clisp.org>
65380         Fix link error on mingw.
65381         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65382         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65384 2010-04-06  Bruno Haible  <bruno@clisp.org>
65386         Assume rmdir exists.
65387         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65389 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65391         doc: update users.txt
65392         * users.txt: Add gcal.
65394 2010-04-06  Jim Meyering  <meyering@redhat.com>
65396         init.sh: simply unset TMPDIR rather than risking env -i
65397         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65398         although it probably works fine on all Unix-based systems, some
65399         systems (Cygwin?) cannot tolerate a totally cleared environment.
65400         Suggestion from Eric Blake.
65402 2010-04-06  Jim Meyering  <meyering@redhat.com>
65404         init.sh: portability fix: use env's POSIX-specified -i option not -u
65405         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65406         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65408 2010-04-05  Bruno Haible  <bruno@clisp.org>
65410         btowc: Work around Cygwin 1.7.2 bug.
65411         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65412         does not map NUL to 0.
65413         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65415 2010-04-05  Bruno Haible  <bruno@clisp.org>
65417         Make the multithread modules work on Cygwin 1.7.2.
65418         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65419         imported symbols can be declared weak, so that it returns "no" on
65420         Cygwin 1.7.2.
65422 2010-04-05  Bruno Haible  <bruno@clisp.org>
65424         Use the module 'strncat'.
65425         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65427         Tests for module 'strncat'.
65428         * modules/strncat-tests: New file.
65429         * tests/test-strncat.c: New file.
65431         New module 'strncat'.
65432         * lib/string.in.h (strncat): New declaration.
65433         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65434         * m4/strncat.m4: New file, based on m4/memchr.m4.
65435         * modules/strncat: New file.
65436         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65437         is declared.
65438         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65439         REPLACE_STRNCAT.
65440         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65441         REPLACE_STRNCAT.
65442         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65443         module.
65444         * tests/test-string-c++.cc: Check signature of strncat.
65446 2010-04-05  Jim Meyering  <meyering@redhat.com>
65448         xstrtoumax-tests: convert to use init.sh
65449         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65450         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65451         Use Exit, not exit.
65452         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65454         xstrtoimax-tests: convert to use init.sh
65455         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65456         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65457         Use Exit, not exit.
65458         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65460 2010-04-05  Bruno Haible  <bruno@clisp.org>
65462         sys_socket: Avoid #define replacements in C++ mode.
65463         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65464         warning to the function if possible, rather than #defining the symbol
65465         to a dysfunctional alias.
65467 2010-04-05  Bruno Haible  <bruno@clisp.org>
65469         fseeko: Fix C++ test error on mingw.
65470         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65471         gl_FUNC_FSEEKO.
65472         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65473         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65475         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65477 2010-04-05  Bruno Haible  <bruno@clisp.org>
65479         duplocale: Improve test output.
65480         * tests/test-duplocale.c (main): Print reason for skipped test.
65482 2010-04-05  Bruno Haible  <bruno@clisp.org>
65484         Assume rmdir exists.
65485         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65486         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65488 2010-04-05  Bruno Haible  <bruno@clisp.org>
65490         Fix link error on Solaris 8 with cc.
65491         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65493 2010-04-05  Bruno Haible  <bruno@clisp.org>
65495         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65496         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65498 2010-04-05  Bruno Haible  <bruno@clisp.org>
65500         vasprintf: Update documentation.
65501         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65503 2010-04-05  Bruno Haible  <bruno@clisp.org>
65505         ptsname: Improve test.
65506         * tests/test-ptsname.c (main): Also try the various master names of BSD
65507         systems.
65509 2010-04-05  Bruno Haible  <bruno@clisp.org>
65511         memchr: Avoid a possible C++ test error.
65512         * lib/string.in.h (memchr): Provide declaration if function is missing.
65513         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65514         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65516         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65518 2010-04-05  Bruno Haible  <bruno@clisp.org>
65520         strtok_r: Improve idiom.
65521         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65522         AC_LIBOBJ is used.
65524 2010-04-05  Bruno Haible  <bruno@clisp.org>
65526         strdup: Improve idiom.
65527         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65528         AC_LIBOBJ is used.
65529         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65530         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65531         when AC_LIBOBJ is used.
65533 2010-04-05  Bruno Haible  <bruno@clisp.org>
65535         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65536         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65537         don't set REPLACE_MBSINIT to 1.
65538         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65539         don't set REPLACE_MBRTOWC to 1.
65540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65541         exist, don't set REPLACE_MBSRTOWCS to 1.
65542         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65543         exist, don't set REPLACE_MBSNRTOWCS to 1.
65544         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65545         don't set REPLACE_WCRTOMB to 1.
65546         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65547         exist, don't set REPLACE_WCSRTOMBS to 1.
65548         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65549         exist, don't set REPLACE_WCSNRTOMBS to 1.
65551 2010-04-05  Bruno Haible  <bruno@clisp.org>
65553         ldexpl: Improve idiom.
65554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65555         make sure to set HAVE_DECL_LDEXPL to 0.
65557 2010-04-05  Jim Meyering  <meyering@redhat.com>
65559         xstrtol-tests: convert to use init.sh
65560         * modules/xstrtol-tests (Files): Add tests/init.sh.
65561         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65562         Use Exit, not exit.
65563         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65565         atexit-tests: convert to use init.sh
65566         * modules/atexit-tests (Files): Add tests/init.sh.
65567         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65568         Use Exit, not exit.
65569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65571         init.sh: fix typo
65572         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65574         init.sh: make it easier for a test script to write to the tty, ...
65575         when using automake's parallel-tests mode.
65576         * tests/init.sh (stderr_fileno_): Define overridable variable.
65577         (warn_): New function, to use it.
65578         (fail_, skip_, framework_failure_): Use warn_.
65580 2010-04-04  Bruno Haible  <bruno@clisp.org>
65582         btowc: Avoid warning.
65583         * lib/btowc.c: Include <stdlib.h>.
65584         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65586 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65587             Bruno Haible  <bruno@clisp.org>
65589         wchar: Port to NetBSD 1.5.
65590         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65591         * lib/wctype.in.h (WEOF): Likewise.
65593 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65594             Bruno Haible  <bruno@clisp.org>
65596         Port extended stdio to NetBSD 1.5.
65597         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65598         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65599         older.
65601 2010-04-04  Bruno Haible  <bruno@clisp.org>
65603         string: Remove unused substitution.
65604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65605         HAVE_DECL_STRERROR.
65606         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65608 2010-04-04  Bruno Haible  <bruno@clisp.org>
65610         strtod: Avoid a possible C++ test error.
65611         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65612         set REPLACE_STRTOD.
65614 2010-04-04  Bruno Haible  <bruno@clisp.org>
65616         strerror: Update documentation.
65617         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65619 2010-04-04  Bruno Haible  <bruno@clisp.org>
65621         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65622         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65623         _GL_CXXALIAS_SYS_CAST.
65625 2010-04-04  Bruno Haible  <bruno@clisp.org>
65627         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65628         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65629         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65630         REPLACE_FREXPL to 1.
65631         * doc/posix-functions/frexpl.texi: Update documentation.
65633 2010-04-04  Bruno Haible  <bruno@clisp.org>
65635         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65636         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65638 2010-04-04  Bruno Haible  <bruno@clisp.org>
65640         Implement nanosleep for native Windows.
65641         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65643 2010-04-04  Bruno Haible  <bruno@clisp.org>
65645         math: Fix some C++ test errors on Solaris 8.
65646         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65648 2010-04-04  Bruno Haible  <bruno@clisp.org>
65650         math: Fix some C++ test errors on Cygwin.
65651         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65652         truncl): Provide declaration if the system does not have it.
65653         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65654         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65655         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65656         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65657         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65658         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65659         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65660         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65661         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65662         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65663         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65664         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65665         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65666         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65667         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65668         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65670         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65671         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65672         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65673         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65674         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65676 2010-04-04  Bruno Haible  <bruno@clisp.org>
65678         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65679         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65680         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65681         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65682         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65683         * m4/isinf.m4 (gl_ISINF): Likewise.
65684         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65686 2010-04-04  Bruno Haible  <bruno@clisp.org>
65688         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65689         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65691 2010-04-04  Bruno Haible  <bruno@clisp.org>
65693         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65694         * modules/tmpfile (configure.ac): Update.
65696         tmpfile: Fix C++ test error on mingw.
65697         * lib/stdio.in.h (tmpfile): New declaration.
65698         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65699         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65700         * modules/tmpfile (Depends-on): Add stdio.
65701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65702         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65703         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65704         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65705         REPLACE_TMPFILE.
65706         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65708 2010-04-04  Bruno Haible  <bruno@clisp.org>
65710         ioctl: Fix C++ test error on mingw.
65711         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65712         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65713         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65715 2010-04-03  Bruno Haible  <bruno@clisp.org>
65717         wcwidth: Fix C++ test error on mingw.
65718         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65720         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65722 2010-04-03  Bruno Haible  <bruno@clisp.org>
65724         nanosleep: Fix C++ test error on mingw.
65725         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65726         * lib/time.in.h (nanosleep): Use modern idiom.
65727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65728         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65729         REPLACE_NANOSLEEP to 1.
65730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65731         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65733 2010-04-03  Bruno Haible  <bruno@clisp.org>
65735         strptime: Fix C++ test error on mingw.
65736         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65737         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65738         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65739         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65741         not REPLACE_STRPTIME.
65742         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65743         REPLACE_STRPTIME.
65745 2010-04-03  Bruno Haible  <bruno@clisp.org>
65747         timegm: Fix C++ test error on mingw.
65748         * lib/time.in.h (timegm): Use modern idiom.
65749         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65750         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65751         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65752         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65754 2010-04-03  Bruno Haible  <bruno@clisp.org>
65756         timegm: Assume declaration if function exists.
65757         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65758         if it exists. Don't clobber ac_cv_func_timegm.
65760 2010-04-03  Bruno Haible  <bruno@clisp.org>
65762         time_r: Fix C++ test error on mingw.
65763         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65764         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65765         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65766         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65767         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65769 2010-04-03  Bruno Haible  <bruno@clisp.org>
65771         time_r: Minor updates.
65772         * modules/time_r (Description): Mention the provided functions.
65773         * lib/time_r.c: Don't include <string.h>.
65774         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65775         * doc/posix-functions/localtime_r.texi: Likewise.
65777 2010-04-03  Bruno Haible  <bruno@clisp.org>
65779         time: Fix regression introduced on 2010-03-08.
65780         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65781         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65783 2010-04-03  Jim Meyering  <meyering@redhat.com>
65785         maint.mk: don't silently disable project-specific syntax-check rules
65786         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65787         that they need to convert their project-specific syntax-check rules
65788         to use the new _sc_search_regexp.
65790 2010-04-03  Bruno Haible  <bruno@clisp.org>
65792         fchdir: Fix regression introduced on 2010-03-08.
65793         * lib/unistd.in.h (fchdir): Fix declaration.
65794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65796         REPLACE_FCHDIR.
65797         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65798         REPLACE_FCHDIR.
65800 2010-04-03  Bruno Haible  <bruno@clisp.org>
65802         getpagesize: Fix C++ test error on mingw.
65803         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65804         system does not declare the function.
65805         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65806         declared.
65807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65808         HAVE_DECL_GETPAGESIZE.
65809         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65811 2010-04-03  Bruno Haible  <bruno@clisp.org>
65813         stdio: Make C++ tests work on mingw.
65814         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65815         does not declare the function.
65817 2010-04-03  Bruno Haible  <bruno@clisp.org>
65819         ftello: Fix C++ test error on mingw.
65820         * lib/stdio.in.h (ftello): Use modern idiom.
65821         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65822         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65823         is missing and that it needs to be replaced.
65824         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65826         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65828 2010-04-03  Bruno Haible  <bruno@clisp.org>
65830         fseeko: Fix C++ test error on mingw.
65831         * lib/stdio.in.h (fseeko): Use modern idiom.
65832         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65833         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65834         is missing and that it needs to be replaced.
65835         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65837         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65839 2010-04-03  Bruno Haible  <bruno@clisp.org>
65841         mkstemp: Fix C++ test error on mingw.
65842         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65844         function is missing and that it needs to be replaced.
65845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65846         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65848 2010-04-03  Bruno Haible  <bruno@clisp.org>
65850         stpncpy: Fix C++ test error on mingw.
65851         * lib/string.in.h (stpncpy): Use modern idiom.
65852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65853         function is missing and that it needs to be replaced.
65854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65855         REPLACE_STPNCPY.
65856         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65858 2010-04-03  Bruno Haible  <bruno@clisp.org>
65860         sys_stat: Fix C++ test error on mingw.
65861         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65862         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65864 2010-04-03  Bruno Haible  <bruno@clisp.org>
65866         pty: Update doc.
65867         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65869 2010-04-03  Bruno Haible  <bruno@clisp.org>
65871         unistd: Fix C++ test error on mingw.
65872         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65874 2010-04-03  Bruno Haible  <bruno@clisp.org>
65876         Update doc regarding mingw.
65877         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65878         * doc/glibc-functions/login_tty.texi: Likewise.
65879         * doc/glibc-functions/forkpty.texi: Likewise.
65881 2010-04-03  Bruno Haible  <bruno@clisp.org>
65883         stdlib: Avoid compilation failure of c-strtold on mingw.
65884         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65886 2010-04-03  Bruno Haible  <bruno@clisp.org>
65888         locale: Make C++ tests work on Cygwin and mingw.
65889         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65890         cannot provide the function.
65891         Reported by Simon Josefsson.
65893 2010-04-03  Bruno Haible  <bruno@clisp.org>
65895         localename: Port to MacOS X 10.6.
65896         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65897         memory layout of the locales in MacOS X 10.6 as well.
65898         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65900 2010-04-02  Bruno Haible  <bruno@clisp.org>
65902         gnulib-tool: Ensure that long-running tests are executed last.
65903         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65904         running tests after the one for the other tests.
65906 2010-04-02  Bruno Haible  <bruno@clisp.org>
65908         gnulib-tool: Ensure the tests in the main directory are executed first.
65909         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65910         start with the current directory.
65912 2010-04-02  Bruno Haible  <bruno@clisp.org>
65914         Tests for module 'havelib', moved here from GNU gettext.
65915         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65916         modifications.
65917         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65918         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65919         with modifications.
65920         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65921         modifications.
65922         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65923         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65924         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65925         with modifications.
65926         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65927         with modifications.
65928         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65929         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65930         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65931         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65932         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65933         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65934         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65935         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65936         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65937         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65938         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65939         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65940         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65941         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65942         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65943         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65944         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65945         with modifications.
65946         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65947         with modifications.
65948         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65949         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65950         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65951         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65952         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65953         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65954         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65955         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65956         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65957         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65958         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65959         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65960         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65961         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65962         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65963         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65964         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65965         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65966         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65967         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
65968         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
65969         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
65970         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
65971         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
65972         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
65973         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
65974         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
65975         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
65976         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
65977         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
65978         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
65979         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
65980         * tests/havelib/rpathx/rpathx.c: New file, from
65981         gettext/autoconf-lib-link.
65982         * tests/havelib/rpathx/Makefile.am: New file, from
65983         gettext/autoconf-lib-link.
65984         * tests/havelib/rpathx/configure.ac: New file, from
65985         gettext/autoconf-lib-link with modifications.
65986         * tests/havelib/rpathy/rpathy.c: New file, from
65987         gettext/autoconf-lib-link.
65988         * tests/havelib/rpathy/Makefile.am: New file, from
65989         gettext/autoconf-lib-link.
65990         * tests/havelib/rpathy/configure.ac: New file, from
65991         gettext/autoconf-lib-link with modifications.
65992         * tests/havelib/rpathz/rpathz.c: New file, from
65993         gettext/autoconf-lib-link.
65994         * tests/havelib/rpathz/Makefile.am: New file, from
65995         gettext/autoconf-lib-link.
65996         * tests/havelib/rpathz/configure.ac: New file, from
65997         gettext/autoconf-lib-link with modifications.
65998         * tests/havelib/rpathlx/usex.c: New file, from
65999         gettext/autoconf-lib-link.
66000         * tests/havelib/rpathlx/Makefile.am: New file, from
66001         gettext/autoconf-lib-link.
66002         * tests/havelib/rpathlx/configure.ac: New file, from
66003         gettext/autoconf-lib-link with modifications.
66004         * tests/havelib/rpathly/usey.c: New file, from
66005         gettext/autoconf-lib-link.
66006         * tests/havelib/rpathly/Makefile.am: New file, from
66007         gettext/autoconf-lib-link.
66008         * tests/havelib/rpathly/configure.ac: New file, from
66009         gettext/autoconf-lib-link with modifications.
66010         * tests/havelib/rpathlz/usez.c: New file, from
66011         gettext/autoconf-lib-link.
66012         * tests/havelib/rpathlz/Makefile.am: New file, from
66013         gettext/autoconf-lib-link.
66014         * tests/havelib/rpathlz/configure.ac: New file, from
66015         gettext/autoconf-lib-link with modifications.
66016         * tests/havelib/rpathlyx/usey.c: New file, from
66017         gettext/autoconf-lib-link.
66018         * tests/havelib/rpathlyx/Makefile.am: New file, from
66019         gettext/autoconf-lib-link.
66020         * tests/havelib/rpathlyx/configure.ac: New file, from
66021         gettext/autoconf-lib-link with modifications.
66022         * tests/havelib/rpathlzyx/usez.c: New file, from
66023         gettext/autoconf-lib-link.
66024         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66025         gettext/autoconf-lib-link.
66026         * tests/havelib/rpathlzyx/configure.ac: New file, from
66027         gettext/autoconf-lib-link with modifications.
66028         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66029         with modifications.
66031 2010-04-02  Bruno Haible  <bruno@clisp.org>
66033         gnulib-tool: Create distributed built sources also for the tests.
66034         * gnulib-tool (func_create_testdir): Also generate distributed built
66035         sources in the tests directory.
66037 2010-04-02  Bruno Haible  <bruno@clisp.org>
66039         gnulib-tool: Obey user's environment variables.
66040         * gnulib-tool (func_create_testdir): When creating built sources,
66041         respect the environment variables for autoconf, automake, etc. given by
66042         the user.
66044 2010-04-02  Bruno Haible  <bruno@clisp.org>
66046         gnulib-tool: Provide the value of --m4-base to modules.
66047         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66048         of gl_m4_base.
66050 2010-04-02  Eric Blake  <eblake@redhat.com>
66052         maint.mk: fix some fallout
66053         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66054         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66056 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66058         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66059         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66060         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66061         (sc_cast_of_x_alloc_return_value): Likewise.
66062         (sc_cast_of_alloca_return_value): Likewise.
66063         (sc_space_tab): Likewise.
66064         (sc_prohibit_atoi_atof): Likewise.
66065         (sc_prohibit_magic_number_exit): Likewise.
66066         (sc_error_exit_success): Likewise.
66067         (sc_file_system): Likewise.
66068         (sc_prohibit_have_config_h): Likewise.
66069         (sc_require_config_h): Likewise.
66070         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66071         (sc_obsolete_symbols): Likewise.
66072         (sc_changelog): Likewise.
66073         (sc_program_name): Likewise.
66074         (sc_the_the): Likewise.
66075         (sc_trailing_blank): Likewise.
66076         (sc_two_space_separator_in_usage): Likewise.
66077         (sc_useless_cpp_parens): Likewise.
66078         (sc_GPL_version): Likewise.
66079         (sc_GFDL_version): Likewise.
66080         (sc_texinfo_acronym): Likewise.
66081         (sc_prohibit_cvs_keyword): Likewise.
66082         (sc_prohibit_stat_st_blocks): Likewise.
66083         (sc_prohibit_S_IS_definition): Likewise.
66084         (sc_redundant_const): Likewise.
66085         (sc_makefile_TAB_only_indentation): Likewise.
66086         (sc_m4_quote_check): Likewise.
66087         (sc_makefile_path_separator_check): Likewise.
66088         (sc_copyright_check): Likewise.
66089         (sc_Wundef_boolean): Likewise.
66090         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
66092         maint.mk: match 0 or more whitespace-before-function-call '('
66093         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
66094         that have zero or two-and-more spaces between the function name
66095         and the open parenthesis.
66096         (sc_error_message_warn_fatal): Likewise.
66097         (sc_error_message_uppercase): Likewise.
66098         (sc_error_message_period): Likewise.
66100 2010-03-31  Eric Blake  <eblake@redhat.com>
66102         maint.mk: check for [ as well as test
66103         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
66104         Based on a libvirt report by Matthias Bolte.
66106         gnumakefile: don't squelch _version output
66107         * top/GNUmakefile (_version): Create one-shot dependency rather
66108         than using $(shell) when version must be regenerated.
66109         (_autoreconf): Run verbosely, by default.
66111         sys_time: avoid compiler warnings
66112         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66113         unconditional, fixing regression from 2010-03-29.
66114         Reported by Simon Josefsson.
66116 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66118         maint.mk: s/_header_without_use/_sc_header_without_use/
66119         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66120         (sc_prohibit_assert_without_use): Use the new name.
66121         (sc_prohibit_close_stream_without_use): Likewise.
66122         (sc_prohibit_getopt_without_use): Likewise.
66123         (sc_prohibit_quotearg_without_use): Likewise.
66124         (sc_prohibit_quote_without_use): Likewise.
66125         (sc_prohibit_long_options_without_use): Likewise.
66126         (sc_prohibit_inttostr_without_use): Likewise.
66127         (sc_prohibit_ignore_value_without_use): Likewise.
66128         (sc_prohibit_error_without_use): Likewise.
66129         (sc_prohibit_xalloc_without_use): Likewise.
66130         (sc_prohibit_hash_without_use): Likewise.
66131         (sc_prohibit_hash_pjw_without_use): Likewise.
66132         (sc_prohibit_safe_read_without_use): Likewise.
66133         (sc_prohibit_argmatch_without_use): Likewise.
66134         (sc_prohibit_canonicalize_without_use): Likewise.
66135         (sc_prohibit_root_dev_ino_without_use): Likewise.
66136         (sc_prohibit_openat_without_use): Likewise.
66137         (sc_prohibit_c_ctype_without_use): Likewise.
66138         (sc_prohibit_signal_without_use): Likewise.
66139         (sc_prohibit_intprops_without_use): Likewise.
66141 2010-03-30  Eric Blake  <eblake@redhat.com>
66143         maint: improve module indicators
66144         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66145         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66146         columns, and avoid extra macro expansion.
66148         fdopendir: work around FreeBSD bug
66149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66150         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66151         * modules/dirent (Makefile.am): Substitute it.
66152         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66153         declaration.
66154         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66155         fix.
66156         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66158 2010-03-29  Bruno Haible  <bruno@clisp.org>
66160         Emit #pragma system_header after the inclusion guard, not before.
66161         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66162         guard that spans the entire file, not before. This enables an
66163         optimization in GCC's preprocessor.
66164         * lib/ctype.in.h: Likewise.
66165         * lib/dirent.in.h: Likewise.
66166         * lib/errno.in.h: Likewise.
66167         * lib/float.in.h: Likewise.
66168         * lib/getopt.in.h: Likewise.
66169         * lib/iconv.in.h: Likewise.
66170         * lib/langinfo.in.h: Likewise.
66171         * lib/locale.in.h: Likewise.
66172         * lib/math.in.h: Likewise.
66173         * lib/netdb.in.h: Likewise.
66174         * lib/netinet_in.in.h: Likewise.
66175         * lib/pty.in.h: Likewise.
66176         * lib/sched.in.h: Likewise.
66177         * lib/se-selinux.in.h: Likewise.
66178         * lib/search.in.h: Likewise.
66179         * lib/spawn.in.h: Likewise.
66180         * lib/stdarg.in.h: Likewise.
66181         * lib/stdint.in.h: Likewise.
66182         * lib/string.in.h: Likewise.
66183         * lib/strings.in.h: Likewise.
66184         * lib/sys_file.in.h: Likewise.
66185         * lib/sys_ioctl.in.h: Likewise.
66186         * lib/sys_time.in.h: Likewise.
66187         * lib/sys_times.in.h: Likewise.
66188         * lib/sys_utsname.in.h: Likewise.
66189         * lib/sys_wait.in.h: Likewise.
66190         * lib/sysexits.in.h: Likewise.
66191         * lib/wctype.in.h: Likewise.
66193 2010-03-28  James Youngman  <jay@gnu.org>
66195         save-cwd: don't leak a file descriptor when the caller execs.
66196         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66197         saved file descriptor.
66198         * modules/save-cwd (Depends-on): Depend on cloexec.
66200 2010-03-29  Bruno Haible  <bruno@clisp.org>
66202         Remove vestiges of fts-lgpl module.
66203         * lib/fts_.h: Assume GNULIB_FTS is 1.
66204         * lib/fts.c: Likewise.
66205         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66207 2010-03-28  Bruno Haible  <bruno@clisp.org>
66209         Fix definition of tests witness macro.
66210         * gnulib-tool (func_import): Fix definition of witness macro.
66212 2010-03-28  Bruno Haible  <bruno@clisp.org>
66214         Fix ioctl's protoype on glibc systems.
66215         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66216         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66217         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66218         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66219         signature. If not, arrange to replace the ioctl function.
66220         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66221         REPLACE_IOCTL.
66222         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66223         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66224         Reported by Ludovic Courtès <ludo@gnu.org>.
66226 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66228         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66229         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66230         made it so grep -r --include=GLOB* ... did not work.
66232 2010-03-26  Jim Meyering  <meyering@redhat.com>
66233             Eric Blake  <eblake@redhat.com>
66235         maint.mk: prohibit use of test's -o and -a operators
66236         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66238 2010-03-28  Bruno Haible  <bruno@clisp.org>
66240         Remove unused GNULIB_XYZ macro definitions.
66241         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66242         invocation.
66244 2010-03-28  Bruno Haible  <bruno@clisp.org>
66246         Mark privileged tests modules.
66247         * modules/idpriv-drop-tests (Status): New section.
66248         * modules/idpriv-droptemp-tests (Status): New section.
66250 2010-03-28  Bruno Haible  <bruno@clisp.org>
66252         Split C++ tests into separate tests modules.
66253         * modules/dirent-c++-tests: New file, extracted from
66254         modules/dirent-tests.
66255         * modules/dirent-tests: Depend on it.
66256         * modules/fcntl-h-c++-tests: New file, extracted from
66257         modules/fcntl-h-tests.
66258         * modules/fcntl-h-tests: Depend on it.
66259         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66260         * modules/glob-tests: Depend on it.
66261         * modules/iconv-h-c++-tests: New file, extracted from
66262         modules/iconv-h-tests.
66263         * modules/iconv-h-tests: Depend on it.
66264         * modules/langinfo-c++-tests: New file, extracted from
66265         modules/langinfo-tests.
66266         * modules/langinfo-tests: Depend on it.
66267         * modules/locale-c++-tests: New file, extracted from
66268         modules/locale-tests.
66269         * modules/locale-tests: Depend on it.
66270         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66271         * modules/math-tests: Depend on it.
66272         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66273         * modules/pty-tests: Depend on it.
66274         * modules/search-c++-tests: New file, extracted from
66275         modules/search-tests.
66276         * modules/search-tests: Depend on it.
66277         * modules/signal-c++-tests: New file, extracted from
66278         modules/signal-tests.
66279         * modules/signal-tests: Depend on it.
66280         * modules/spawn-c++-tests: New file, extracted from
66281         modules/spawn-tests.
66282         * modules/spawn-tests: Depend on it.
66283         * modules/stdio-c++-tests: New file, extracted from
66284         modules/stdio-tests.
66285         * modules/stdio-tests: Depend on it.
66286         * modules/stdlib-c++-tests: New file, extracted from
66287         modules/stdlib-tests.
66288         * modules/stdlib-tests: Depend on it.
66289         * modules/string-c++-tests: New file, extracted from
66290         modules/string-tests.
66291         * modules/string-tests: Depend on it.
66292         * modules/sys_ioctl-c++-tests: New file, extracted from
66293         modules/sys_ioctl-tests.
66294         * modules/sys_ioctl-tests: Depend on it.
66295         * modules/sys_select-c++-tests: New file, extracted from
66296         modules/sys_select-tests.
66297         * modules/sys_select-tests: Depend on it.
66298         * modules/sys_socket-c++-tests: New file, extracted from
66299         modules/sys_socket-tests.
66300         * modules/sys_socket-tests: Depend on it.
66301         * modules/sys_stat-c++-tests: New file, extracted from
66302         modules/sys_stat-tests.
66303         * modules/sys_stat-tests: Depend on it.
66304         * modules/sys_time-c++-tests: New file, extracted from
66305         modules/sys_time-tests.
66306         * modules/sys_time-tests: Depend on it.
66307         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66308         * modules/time-tests: Depend on it.
66309         * modules/unistd-c++-tests: New file, extracted from
66310         modules/unistd-tests.
66311         * modules/unistd-tests: Depend on it.
66312         * modules/wchar-c++-tests: New file, extracted from
66313         modules/wchar-tests.
66314         * modules/wchar-tests: Depend on it.
66315         * modules/wctype-c++-tests: New file, extracted from
66316         modules/wctype-tests.
66317         * modules/wctype-tests: Depend on it.
66318         Reported by Simon Josefsson.
66320 2010-03-28  Bruno Haible  <bruno@clisp.org>
66322         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66323         * gnulib-tool (func_exists_module): New function, extracted from
66324         func_verify_module.
66325         (func_verify_module): Use it.
66326         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66327         'foo' only if 'foo' exists.
66328         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66329         module.
66331 2010-03-28  Bruno Haible  <bruno@clisp.org>
66333         gnulib-tool: Add support for special categories of tests.
66334         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66335         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66336         (func_usage): Document them.
66337         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66338         inc_unportable_tests, inc_all_tests): New variables.
66339         (func_acceptable): Consider these variables.
66340         (func_modules_transitive_closure): Make it work when the 'Status' field
66341         consists of multiple words.
66342         (func_import): Store and restore the values of inc_cxx_tests,
66343         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66344         inc_all_tests in gnulib-comp.m4.
66345         (func_create_testdir): Set inc_all_tests to true.
66346         * doc/gnulib.texi (Extra tests modules): New section.
66347         Suggested by Jim Meyering.
66349 2010-03-28  Bruno Haible  <bruno@clisp.org>
66351         ansi-c++-opt: Allow turning off the C++ build by default.
66352         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66353         gl_CXX_CHOICE_DEFAULT_NO is defined.
66354         Requested by Eric Blake.
66356 2010-03-28  Bruno Haible  <bruno@clisp.org>
66358         unistd: Avoid #define replacements in C++ mode.
66359         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66360         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66361         setsockopt, shutdown, select): In C++, attach a warning to the function
66362         if possible, rather than #defining the symbol to a dysfunctional alias.
66363         Reported by John W. Eaton <jwe@gnu.org>.
66365 2010-03-28  Bruno Haible  <bruno@clisp.org>
66367         Fix link errors on mingw.
66368         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66369         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66370         $(LIBSOCKET).
66371         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66372         $(LIBSOCKET).
66374 2010-03-28  Bruno Haible  <bruno@clisp.org>
66375             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66377         lib-ignore: Determine different options for different compilers.
66378         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66379         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66380         Add comments.
66381         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66382         * NEWS: Mention the change.
66384 2010-03-27  Bruno Haible  <bruno@clisp.org>
66386         Remove unused GNULIB_XYZ macro definitions.
66387         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66388         * modules/fseek (configure.ac): Likewise.
66389         * modules/ioctl (configure.ac): Likewise.
66390         * modules/open (configure.ac): Likewise.
66391         * modules/stdlib-safer (configure.ac): Likewise.
66393 2010-03-27  Bruno Haible  <bruno@clisp.org>
66395         Add a remark about certain modules.
66396         * modules/malloc (Comment): New section.
66397         * modules/realloc (Comment): Likewise.
66398         * modules/sigpipe (Comment): Likewise.
66400 2010-03-27  Bruno Haible  <bruno@clisp.org>
66402         Resolve conflict between the two kinds of module indicators.
66403         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66404         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66405         * modules/canonicalize (configure.ac): Invoke
66406         gl_MODULE_INDICATOR_FOR_TESTS.
66407         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66408         GNULIB_XYZ.
66409         * tests/test-dirent-c++.cc: Likewise.
66410         * tests/test-dirent-safer.c: Likewise.
66411         * tests/test-dup2.c: Likewise.
66412         * tests/test-fchdir.c: Likewise.
66413         * tests/test-fcntl-h-c++.cc: Likewise.
66414         * tests/test-getopt.c: Likewise.
66415         * tests/test-getopt.h: Likewise.
66416         * tests/test-langinfo-c++.cc: Likewise.
66417         * tests/test-locale-c++.cc: Likewise.
66418         * tests/test-math-c++.cc: Likewise.
66419         * tests/test-pty-c++.cc: Likewise.
66420         * tests/test-search-c++.cc: Likewise.
66421         * tests/test-signal-c++.cc: Likewise.
66422         * tests/test-spawn-c++.cc: Likewise.
66423         * tests/test-stdio-c++.cc: Likewise.
66424         * tests/test-stdlib-c++.cc: Likewise.
66425         * tests/test-string-c++.cc: Likewise.
66426         * tests/test-sys_ioctl-c++.cc: Likewise.
66427         * tests/test-sys_select-c++.cc: Likewise.
66428         * tests/test-sys_socket-c++.cc: Likewise.
66429         * tests/test-sys_stat-c++.cc: Likewise.
66430         * tests/test-sys_time-c++.cc: Likewise.
66431         * tests/test-time-c++.cc: Likewise.
66432         * tests/test-unistd-c++.cc: Likewise.
66433         * tests/test-wchar-c++.cc: Likewise.
66434         * tests/uninorm/test-u8-nfc.c: Likewise.
66435         * tests/uninorm/test-u8-nfd.c: Likewise.
66436         * tests/uninorm/test-u8-nfkc.c: Likewise.
66437         * tests/uninorm/test-u8-nfkd.c: Likewise.
66438         * tests/uninorm/test-u16-nfc.c: Likewise.
66439         * tests/uninorm/test-u16-nfd.c: Likewise.
66440         * tests/uninorm/test-u16-nfkc.c: Likewise.
66441         * tests/uninorm/test-u16-nfkd.c: Likewise.
66442         * tests/uninorm/test-u32-nfc.c: Likewise.
66443         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66444         * tests/uninorm/test-u32-nfd.c: Likewise.
66445         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66446         * tests/uninorm/test-u32-nfkc.c: Likewise.
66447         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66448         * tests/uninorm/test-u32-nfkd.c: Likewise.
66449         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66450         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66452 2010-03-27  Bruno Haible  <bruno@clisp.org>
66454         Distinguish two kinds of module indicators.
66455         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66456         gl_MODULE_INDICATOR.
66457         (gl_MODULE_INDICATOR): New macro.
66458         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66459         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66460         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66461         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66462         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66463         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66464         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66465         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66466         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66467         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66468         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66469         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66472         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66473         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66474         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66475         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66476         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66477         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66478         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66479         * modules/cloexec (configure.ac): Likewise.
66480         * modules/getopt-gnu (configure.ac): Likewise.
66481         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66482         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66483         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66484         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66486 2010-03-27  Bruno Haible  <bruno@clisp.org>
66488         New module description field 'Comment'.
66489         * gnulib-tool: New option --extract-comment.
66490         (func_usage): Document it.
66491         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66492         (func_get_comment): New function.
66493         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66495 2010-03-27  Bruno Haible  <bruno@clisp.org>
66497         Addendum to 2010-02-07 commit.
66498         * gnulib-tool (func_usage): Document --extract-applicability option.
66500 2010-03-27  Bruno Haible  <bruno@clisp.org>
66502         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66503         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66504         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66505         rather than link errors.
66507 2010-03-27  Bruno Haible  <bruno@clisp.org>
66509         Avoid side effects from tests-related modules on the compilation of lib.
66510         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66511         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66512         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66513         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66514         macro.
66515         (func_import): Define a witness macro. Assign it a value that depends
66516         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66517         tests-related modules.
66518         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66519         Reported by Jim Meyering.
66521 2010-03-27  Bruno Haible  <bruno@clisp.org>
66523         Factorize common .m4 code.
66524         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66525         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66526         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66527         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66528         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66529         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66530         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66531         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66532         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66533         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66534         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66535         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66536         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66537         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66538         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66539         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66540         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66541         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66543         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66544         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66546         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66547         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66548         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66549         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66550         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66551         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66552         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66553         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66554         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66555         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66557 2010-03-27  Bruno Haible  <bruno@clisp.org>
66559         Fix a compilation error on Cygwin with g++ >= 4.3.
66560         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66561         if it is undefined or if we alias it to chmod.
66562         (lstat): Don't warn about the use of this function if it is undefined
66563         or if we alias it to stat.
66564         Reported by Simon Josefsson.
66566 2010-03-27  Bruno Haible  <bruno@clisp.org>
66568         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66569         * modules/getlogin (configure.ac): Update.
66571         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66572         * modules/getlogin_r (configure.ac): Update.
66574         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66576         * modules/inet_ntop (configure.ac): Update.
66578         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66579         * modules/inet_pton (configure.ac): Update.
66581         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66582         * modules/mbslen (configure.ac): Update.
66584         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66585         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66586         * modules/forkpty (configure.ac): Update.
66587         * modules/openpty (configure.ac): Update.
66589 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66591         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66592         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66594 2010-03-25  Eric Blake  <eblake@redhat.com>
66596         maint: use pragma consistently across replacement headers
66597         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66598         * lib/dirent.in.h (system_header): Likewise.
66599         * lib/errno.in.h (system_header): Likewise.
66600         * lib/float.in.h (system_header): Likewise.
66601         * lib/getopt.in.h (system_header): Likewise.
66602         * lib/iconv.in.h (system_header): Likewise.
66603         * lib/inttypes.in.h (system_header): Likewise.
66604         * lib/langinfo.in.h (system_header): Likewise.
66605         * lib/locale.in.h (system_header): Likewise.
66606         * lib/math.in.h (system_header): Likewise.
66607         * lib/netdb.in.h (system_header): Likewise.
66608         * lib/netinet_in.in.h (system_header): Likewise.
66609         * lib/pty.in.h (system_header): Likewise.
66610         * lib/sched.in.h (system_header): Likewise.
66611         * lib/se-selinux.in.h (system_header): Likewise.
66612         * lib/search.in.h (system_header): Likewise.
66613         * lib/spawn.in.h (system_header): Likewise.
66614         * lib/stdarg.in.h (system_header): Likewise.
66615         * lib/stdint.in.h (system_header): Likewise.
66616         * lib/string.in.h (system_header): Likewise.
66617         * lib/strings.in.h (system_header): Likewise.
66618         * lib/sys_file.in.h (system_header): Likewise.
66619         * lib/sys_ioctl.in.h (system_header): Likewise.
66620         * lib/sys_socket.in.h (system_header): Likewise.
66621         * lib/sys_times.in.h (system_header): Likewise.
66622         * lib/sys_utsname.in.h (system_header): Likewise.
66623         * lib/sys_wait.in.h (system_header): Likewise.
66624         * lib/sysexits.in.h (system_header): Likewise.
66625         * lib/unistd.in.h (system_header): Likewise.
66626         * lib/wctype.in.h (system_header): Likewise.
66628         arpa/inet: fix mingw compilation warning
66629         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66630         Reported by Matthew Bolte.
66632 2010-03-25  Bruno Haible  <bruno@clisp.org>
66634         Avoid collision between gnulib wrapper and libintl wrapper.
66635         * lib/printf.c (printf): Don't define if a printf wrapper is already
66636         defined in intl/printf.c.
66637         Reported by Michel Boaventura <michel@michelboaventura.com>.
66639 2010-03-25  Bruno Haible  <bruno@clisp.org>
66641         Use ANSI C.
66642         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66644 2010-03-25  Bruno Haible  <bruno@clisp.org>
66646         Minor formatting changes.
66647         * lib/acosl.c: Insert space before function argument list.
66648         * lib/argz.c: Likewise.
66649         * lib/asinl.c: Likewise.
66650         * lib/expl.c: Likewise.
66651         * lib/gen-uni-tables.c: Likewise.
66652         * lib/gettext.h: Likewise.
66653         * lib/glthread/lock.h: Likewise.
66654         * lib/tanl.c: Likewise.
66655         * lib/uniname/uniname.c: Likewise.
66656         * tests/test-idpriv-drop.c: Likewise.
66657         * tests/test-idpriv-droptemp.c: Likewise.
66658         * tests/test-lock.c: Likewise.
66659         * tests/test-tls.c: Likewise.
66660         * lib/argp-help.c: Insert space before function-like macro argument
66661         list.
66662         * lib/memcmp.c: Likewise.
66663         * tests/test-base64.c: Likewise.
66664         * lib/localename.c: Insert space before sizeof's argument list.
66665         * lib/safe-alloc.h: Likewise.
66666         * lib/file-set.h: Insert space before macro argument list.
66667         * tests/test-argp.c: Likewise.
66668         * lib/argp-namefrob.h: Insert space before function parameter list.
66669         * lib/getaddrinfo.c: Likewise.
66670         * lib/netdb.in.h: Likewise.
66671         * lib/parse-duration.h: Likewise.
66672         * lib/parse-duration.c: Likewise.
66673         * lib/poll.c: Likewise.
66674         * lib/select.c: Likewise.
66675         * lib/trim.h: Likewise.
66676         * tests/test-usleep.c: Likewise.
66677         * lib/ldexpl.c: Insert space before function parameter list and before
66678         function argument list.
66679         * lib/logl.c: Likewise.
66680         * lib/sqrtl.c: Likewise.
66681         * lib/trim.c: Likewise.
66682         * lib/cosl.c: Use GNU style indentation. Insert space before function
66683         argument list.
66684         * lib/sinl.c: Likewise.
66685         * lib/tsearch.c: Insert space after 'for'.
66686         Reported by Jim Meyering.
66688 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66690         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66691         config header before grepping, as it's not present before
66692         autoreconf/configure are run.  Reported by Simon Josefsson.
66694 2010-03-23  Bruno Haible  <bruno@clisp.org>
66696         pt_chown: Make it work with automake < 1.11.
66697         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66698         Reported by Simon Josefsson.
66700 2010-03-23  Bruno Haible  <bruno@clisp.org>
66702         pt_chown: Don't depend on GPLed modules.
66703         * lib/pt_chown.c: Don't include idpriv.h.
66704         (main): Don't drop privileges.
66705         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66706         Reported by Simon Josefsson.
66708 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66710         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66711         suggestions from karl@freefriends.org (Karl Berry).
66713 2010-03-22  Eric Blake  <eblake@redhat.com>
66715         gethostname: further tweaks
66716         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66717         are overriding gethostname.
66718         Suggested by Bruno Haible.
66720 2010-03-21  Bruno Haible  <bruno@clisp.org>
66722         Fix comments.
66723         * lib/forkpty.c (rpl_forkpty): Fix comment.
66724         * lib/openpty.c (rpl_openpty): Likewise.
66725         Reported by Eric Blake.
66727 2010-03-22  Eric Blake  <eblake@redhat.com>
66729         gethostname: fix build on mingw
66730         * lib/unistd.in.h (includes): Work around fact that mingw
66731         <winsock2.h> re-includes <unistd.h>, by avoiding any
66732         redeclarations if we are being included by <winsock2.h>.
66733         Reported by Matthias Bolte.
66735 2010-03-21  Bruno Haible  <bruno@clisp.org>
66737         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66738         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66739         modifications.
66740         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66741         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66742         provide the replacement.
66743         * modules/forkpty (Depends-on): Add openpty, login_tty.
66744         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66745         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66746         * doc/glibc-functions/forkpty.texi: More supported platforms.
66747         * config/srclist.txt: Add forkpty.c (commented).
66749 2010-03-21  Bruno Haible  <bruno@clisp.org>
66751         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66752         (Makefile.am): Verify that PTY_LIB is defined.
66754         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66756 2010-03-21  Bruno Haible  <bruno@clisp.org>
66758         Tests for module 'login_tty'.
66759         * modules/login_tty-tests: New file.
66760         * tests/test-login_tty.c: New file.
66762         New module 'login_tty'.
66763         * lib/login_tty.c: New file.
66764         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66765         * modules/login_tty: New file.
66766         * doc/glibc-functions/login_tty.texi: Mention the new module.
66768 2010-03-21  Bruno Haible  <bruno@clisp.org>
66770         login_tty: Documentation.
66771         * doc/glibc-functions/login_tty.texi: New file.
66772         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66774 2010-03-21  Bruno Haible  <bruno@clisp.org>
66776         pty: Consistent macro naming.
66777         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66778         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66779         * modules/pty (configure.ac): Update.
66781 2010-03-21  Bruno Haible  <bruno@clisp.org>
66783         Tests for openpty: Make stricter.
66784         * tests/test-openpty.c (main): Add test of canonical processing and
66785         erase.
66786         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66788         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66789         * lib/openpty.c (openpty): New replacement function.
66790         * lib/pty.in.h: Include <termios.h>.
66791         (openpty): Update declaration. Add comments.
66792         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66793         is not declared, arrange to provide the replacement. Check for _getpty
66794         and posix_openpt.
66795         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66796         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66797         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66798         * modules/pty-tests (test_pty_c___LDADD): New variable.
66799         * doc/glibc-functions/openpty.texi: More supported platforms.
66801 2010-03-21  Bruno Haible  <bruno@clisp.org>
66803         setenv: Tweaks.
66804         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66805         the test program.
66806         * doc/posix-functions/setenv.texi: Update platforms list.
66808 2010-03-21  Bruno Haible  <bruno@clisp.org>
66810         New module 'unlockpt'.
66811         * lib/unlockpt.c: New file, from glibc with modifications.
66812         * m4/unlockpt.m4: New file.
66813         * modules/unlockpt: New file.
66814         * lib/stdlib.in.h (unlockpt): New declaration.
66815         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66816         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66817         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66818         HAVE_UNLOCKPT.
66819         * doc/posix-functions/unlockpt.texi: Mention the new module.
66820         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66821         * config/srclist.txt: Add unlockpt.c (commented).
66823 2010-03-21  Jim Meyering  <meyering@redhat.com>
66825         maint.mk: prohibit inclusion of "intprops.h" without use
66826         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66828 2010-03-21  Bruno Haible  <bruno@clisp.org>
66830         New module 'grantpt'.
66831         * lib/grantpt.c: New file, from glibc with modifications.
66832         * m4/grantpt.m4: New file.
66833         * modules/grantpt: New file.
66834         * lib/stdlib.in.h (grantpt): New declaration.
66835         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66836         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66837         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66838         HAVE_GRANTPT.
66839         * doc/posix-functions/grantpt.texi: Mention the new module.
66840         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66841         * config/srclist.txt: Add grantpt.c (commented).
66843 2010-03-21  Bruno Haible  <bruno@clisp.org>
66845         New module 'pt_chown'.
66846         * lib/pt_chown.c: New file, from glibc with modifications.
66847         * lib/pty-private.h: New file, from glibc with modifications.
66848         * modules/pt_chown: New file.
66849         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66851 2010-03-21  Bruno Haible  <bruno@clisp.org>
66853         Tests for module 'ptsname'.
66854         * modules/ptsname-tests: New file.
66855         * tests/test-ptsname.c: New file.
66857         New module 'ptsname'.
66858         * lib/ptsname.c: New file, from glibc with modifications.
66859         * m4/ptsname.m4: New file.
66860         * modules/ptsname: New file.
66861         * lib/stdlib.in.h (ptsname): New declaration.
66862         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66863         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66864         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66865         HAVE_PTSNAME.
66866         * doc/posix-functions/ptsname.texi: Mention the new module.
66867         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66868         * config/srclist.txt: Add ptsname.c (commented).
66870 2010-03-21  Bruno Haible  <bruno@clisp.org>
66872         Tests for module 'ttyname_r'.
66873         * modules/ttyname_r-tests: New file.
66874         * tests/test-ttyname_r.c: New file.
66876         New module 'ttyname_r'.
66877         * lib/ttyname_r.c: New file.
66878         * m4/ttyname_r.m4: New file.
66879         * modules/ttyname_r: New file.
66880         * lib/unistd.in.h (ttyname_r): New declaration.
66881         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66882         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66883         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66884         HAVE_TTYNAME_R.
66885         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66886         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66888 2010-03-20  Bruno Haible  <bruno@clisp.org>
66890         signal: Undefine macro definitions in C++ mode.
66891         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66892         sigfillset): Undefine macro definitions from the system header in C++
66893         mode.
66894         Reported by John W. Eaton <jwe@gnu.org>.
66896 2010-03-20  Bruno Haible  <bruno@clisp.org>
66898         Ensure no #include statements inside extern "C" { ... }.
66899         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66900         contain #include statements.
66901         * lib/time.in.h: Likewise.
66903 2010-03-20  Bruno Haible  <bruno@clisp.org>
66905         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66906         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66907         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66908         Reported by John W. Eaton <jwe@gnu.org>.
66910 2010-03-20  Bruno Haible  <bruno@clisp.org>
66912         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66913         Reported by Jim Meyering.
66915 2010-03-20  Bruno Haible  <bruno@clisp.org>
66917         pipe: Set errno upon failure.
66918         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66919         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66920         errno value in error message.
66922 2010-03-20  Bruno Haible  <bruno@clisp.org>
66923             Jim Meyering  <meyering@redhat.com>
66925         lchown: Avoid "unused variable" warning.
66926         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66928 2010-03-20  Bruno Haible  <bruno@clisp.org>
66930         Work around unlink() bug on MacOS X 10.5.6.
66931         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66932         attempting to unlink a parent directory.
66933         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66934         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66935         activate for the replacement function.
66936         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66938 2010-03-20  Bruno Haible  <bruno@clisp.org>
66940         Fix link errors on Solaris 8.
66941         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66942         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66944 2010-03-19  Jim Meyering  <meyering@redhat.com>
66946         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66947         The _LIBC implementation of build_range_exp correctly honors the
66948         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66949         However, the non-_LIBC implementation would ignore that syntax-bit
66950         flag and return REG_ERANGE unconditionally.
66951         This change makes it honor that flag.
66952         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66953         Make two pointer parameters "const".
66954         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66955         (parse_bracket_exp): Update caller.
66957         regex.m4: correct the reversed range endpoint ([b-a]) test
66958         * m4/regex.m4: When requiring that [b-a] evoke failure,
66959         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66960         test pass once again for x86-based systems.
66962 2010-03-19  Bruno Haible  <bruno@clisp.org>
66964         scandir: Fix link error on Solaris 8.
66965         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66966         macros.
66968 2010-03-19  Bruno Haible  <bruno@clisp.org>
66970         getusershell: Fix documentation.
66971         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
66972         module.
66973         * doc/glibc-functions/setusershell.texi: Likewise.
66975         getusershell: Provide declaration, missing on Solaris 9.
66976         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
66977         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
66978         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
66979         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
66980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66981         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
66982         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
66983         HAVE_GETUSERSHELL.
66984         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
66986 2010-03-19  Bruno Haible  <bruno@clisp.org>
66988         wctype: Provide iswblank function.
66989         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
66990         exists and is fine.
66991         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
66992         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
66993         * tests/test-wctype.c (main): Re-enable the iswblank tests.
66994         * doc/posix-functions/iswblank.texi: Update.
66996 2010-03-19  Bruno Haible  <bruno@clisp.org>
66998         Tests of module 'pty' in C++ mode.
66999         * modules/pty-tests: New file.
67000         * tests/test-pty-c++.cc: New file.
67001         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67003 2010-03-19  Eric Blake  <eblake@redhat.com>
67005         logb: fix documentation
67006         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67007         1.5 declaration bug.
67009         forkpty, openpty: prefer glibc's const-safe prototype
67010         * lib/forkpty.c (rpl_forkpty): New file.
67011         * lib/openpty.c (rpl_openpty): Likewise.
67012         * modules/forkpty (Files): Distribute it.
67013         * modules/openpty (Files): Likewise.
67014         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67015         check...
67016         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67017         replacement for non-const BSD signature.
67018         * modules/pty (Makefile.am): Substitute witnesses.
67019         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67020         * tests/test-forkpty.c: Update signature check.
67021         * tests/test-openpty.c: Likewise.
67022         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67023         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67025         forkpty, openpty: split functions into new modules
67026         * modules/pty (Makefile.am): Substitute new witnesses.
67027         (Libraries): Move library detection...
67028         * modules/forkpty: ...into new module.
67029         * modules/openpty: Another new module.
67030         * modules/pty-tests: Rename and split...
67031         * modules/forkpty-tests: ...to this...
67032         * modules/openpty-tests: ...and this.
67033         * tests/test-pty.c: Rename and split...
67034         * tests/test-forkpty.c: ...to this...
67035         * tests/test-openpty.c: ...and this.
67036         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67037         (gl_PTY): Split library searching...
67038         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67039         (gl_FORKPTY, gl_OPENPTY): New macros.
67040         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67041         * NEWS: Mention the split.
67042         * MODULES.html.sh (Misc): Document the modules.
67043         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67044         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67046         pty: improve replacement header
67047         * lib/pty.in.h: New file.
67048         * modules/pty (Files): Ship it.
67049         (Makefile.am): Always build replacement.
67050         * m4/pty.m4: Rename...
67051         * m4/pty_h.m4: ...to this.
67052         (gl_PTY): Modernize setting of witness macros; update check of
67053         forkpty to take proper advantage of cache.
67054         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67056         getopt: avoid compiler warning
67057         * lib/getopt.c (attribute_hidden): Remove unused macro.
67059 2010-03-18  Bruno Haible  <bruno@clisp.org>
67061         Fix link errors on Solaris 8.
67062         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67063         * modules/search-tests (test_search_c___LDADD): Likewise.
67064         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67065         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67066         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67067         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67068         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67069         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67070         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67072 2010-03-18  Bruno Haible  <bruno@clisp.org>
67074         Fix bug introduced on 2010-03-14.
67075         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
67076         (gl_SPAWN_H): Require it.
67077         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
67078         Reported by Simon Josefsson.
67080 2010-03-18  Bruno Haible  <bruno@clisp.org>
67082         Fix typo introduced on 2009-12-31.
67083         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
67084         posix_spawn_file_actions_adddup2.
67086 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
67087         and Eric Blake  <eblake@redhat.com>
67089         test-vc-list-files-git: make more robust
67090         * tests/test-vc-list-files-git.sh: Unset problematic environment
67091         variables.  Chain commands together.
67093 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
67095         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
67096         `AC_CHECK_DECL' invocation.
67098 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
67100         * lib/inttostr.c (inttostr): Make sure the invocation of verify
67101         appears before executable statements. Suggested by Petr Sumbera
67102         <Petr.Sumbera@Sun.COM>.
67104 2010-03-14  Bruno Haible  <bruno@clisp.org>
67106         * tests/test-flock.c (test_exclusive): Comment out a test that causes
67107         portability problems. Instead use a simpler test.
67108         (main): Check that invalid arguments are rejected only on Linux.
67110 2010-03-14  Bruno Haible  <bruno@clisp.org>
67112         Fix bug introduced on 2009-12-31.
67113         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67114         gl_PREREQ_SYS_H_WINSOCK2 always.
67115         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67116         SYS_SOCKET_H variable.
67117         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67118         Update comments.
67119         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67120         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67121         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67122         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67123         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67125 2010-03-14  Bruno Haible  <bruno@clisp.org>
67127         Fix values returned by sinl, cosl.
67128         * lib/trigl.h: Add specification comments.
67129         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67130         that combines the values from the precomputed table with the values of
67131         the Chebyshev polynomials.
67133 2010-03-14  Bruno Haible  <bruno@clisp.org>
67135         Fix compilation error when modules 'posix_spawn[p]' are not used.
67136         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67139 2010-03-14  Bruno Haible  <bruno@clisp.org>
67141         Fix compilation error on mingw when module 'time_r' is not used.
67142         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67143         is 1.
67144         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67145         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67146         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67149 2010-03-14  Bruno Haible  <bruno@clisp.org>
67151         Fix compilation error with Sun C.
67152         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67153         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67154         instead of GCC specific ULONG_LONG_MAX.
67155         * lib/xstrtoll.c: Likewise.
67156         * lib/xstrtoull.c: Likewise.
67158 2010-03-13  Bruno Haible  <bruno@clisp.org>
67160         Allow the user to disable C++ code and tests.
67161         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67162         (gl_PROG_ANSI_CXX): Require it.
67164 2010-03-13  Bruno Haible  <bruno@clisp.org>
67166         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67167         cases.
67169 2010-03-13  Bruno Haible  <bruno@clisp.org>
67171         Test that gnulib does not break the standard C++ headers.
67172         * tests/test-locale-c++2.cc: New file.
67173         * modules/locale-tests (Files): Add it.
67174         (Makefile.am): Compile it for test-locale-c++.
67175         * tests/test-math-c++2.cc: New file.
67176         * modules/math-tests (Files): Add it.
67177         (Makefile.am): Compile it for test-math-c++.
67178         * tests/test-signal-c++2.cc: New file.
67179         * modules/signal-tests (Files): Add it.
67180         (Makefile.am): Compile it for test-signal-c++.
67181         * tests/test-stdio-c++2.cc: New file.
67182         * modules/stdio-tests (Files): Add it.
67183         (Makefile.am): Compile it for test-stdio-c++.
67184         * tests/test-stdlib-c++2.cc: New file.
67185         * modules/stdlib-tests (Files): Add it.
67186         (Makefile.am): Compile it for test-stdlib-c++.
67187         * tests/test-string-c++2.cc: New file.
67188         * modules/string-tests (Files): Add it.
67189         (Makefile.am): Compile it for test-string-c++.
67190         * tests/test-time-c++2.cc: New file.
67191         * modules/time-tests (Files): Add it.
67192         (Makefile.am): Compile it for test-time-c++.
67193         Reported by John W. Eaton <jwe@gnu.org>.
67195 2010-03-13  Bruno Haible  <bruno@clisp.org>
67197         * gnulib-tool (func_usage): Clarify which options are available for
67198         --create-testdir and --create-megatestdir.
67200 2010-03-13  Bruno Haible  <bruno@clisp.org>
67202         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67203         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67204         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67205         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67206         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67207         when appropriate.
67208         Reported by Jim Meyering.
67210 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67212         * gnulib-tool (func_import): Explain origin of code.
67214 2010-03-12  Bruno Haible  <bruno@clisp.org>
67216         Fix problem with automake's definition of CXXLINK.
67217         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67218         Reported by Simon Josefsson and Ludovic Courtès.
67220 2010-03-12  Bruno Haible  <bruno@clisp.org>
67222         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67223         stable releases.
67225 2010-03-11  Bruno Haible  <bruno@clisp.org>
67227         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67228         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67229         whether the system provides one variant or multiple variants of the
67230         function.
67231         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67232         C++ compilers.
67233         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67234         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67235         Reported by Jim Meyering.
67237 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67239         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67241 2010-03-08  Bruno Haible  <bruno@clisp.org>
67243         gnulib-tool: Add support for --libtool in --create-testdir.
67244         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67245         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67247 2010-03-08  Eric Blake  <eblake@redhat.com>
67249         gnulib-tool.texi: mention possibility of git submodule
67250         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67251         submodules.
67252         * doc/.gitignore: Ignore another generated file.
67254 2010-03-08  Karl Berry  <karl@gnu.org>
67256         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67257         of committing gnulib files while skipping others.
67259 2010-03-07  Bruno Haible  <bruno@clisp.org>
67261         Tests of module 'wctype' in C++ mode.
67262         * tests/test-wctype-c++.cc: New file.
67263         * modules/wctype-tests (Files): Add it and tests/signature.h.
67264         (Depends-on): Add ansi-c++-opt.
67265         (Makefile.am): Arrange to compile and run test-wctype-c++.
67267         Tests of module 'wchar' in C++ mode.
67268         * tests/test-wchar-c++.cc: New file.
67269         * modules/wchar-tests (Files): Add it and tests/signature.h.
67270         (Depends-on): Add ansi-c++-opt.
67271         (Makefile.am): Arrange to compile and run test-wchar-c++.
67272         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67273         gl_MODULE_INDICATOR.
67275         Tests of module 'unistd' in C++ mode.
67276         * tests/test-unistd-c++.cc: New file.
67277         * modules/unistd-tests (Files): Add it and tests/signature.h.
67278         (Depends-on): Add ansi-c++-opt.
67279         (Makefile.am): Arrange to compile and run test-unistd-c++.
67280         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67281         gl_MODULE_INDICATOR.
67283         Tests of module 'time' in C++ mode.
67284         * tests/test-time-c++.cc: New file.
67285         * modules/time-tests (Files): Add it and tests/signature.h.
67286         (Depends-on): Add ansi-c++-opt.
67287         (Makefile.am): Arrange to compile and run test-time-c++.
67288         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67290         Tests of module 'sys_time' in C++ mode.
67291         * tests/test-sys_time-c++.cc: New file.
67292         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67293         (Depends-on): Add ansi-c++-opt.
67294         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67295         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67296         gl_MODULE_INDICATOR.
67298         Tests of module 'sys_stat' in C++ mode.
67299         * tests/test-sys_stat-c++.cc: New file.
67300         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67301         (Depends-on): Add ansi-c++-opt.
67302         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67303         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67304         gl_MODULE_INDICATOR.
67306         Tests of module 'sys_socket' in C++ mode.
67307         * tests/test-sys_socket-c++.cc: New file.
67308         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67309         (Depends-on): Add ansi-c++-opt.
67310         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67311         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67312         gl_MODULE_INDICATOR.
67314         Tests of module 'sys_select' in C++ mode.
67315         * tests/test-sys_select-c++.cc: New file.
67316         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67317         (Depends-on): Add ansi-c++-opt.
67318         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67319         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67320         gl_MODULE_INDICATOR.
67322         Tests of module 'sys_ioctl' in C++ mode.
67323         * tests/test-sys_ioctl-c++.cc: New file.
67324         * modules/sys_ioctl-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_ioctl-c++.
67327         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67328         gl_MODULE_INDICATOR.
67330         Tests of module 'string' in C++ mode.
67331         * tests/test-string-c++.cc: New file.
67332         * modules/string-tests (Files): Add it and tests/signature.h.
67333         (Depends-on): Add ansi-c++-opt.
67334         (Makefile.am): Arrange to compile and run test-string-c++.
67335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67336         gl_MODULE_INDICATOR.
67338         Tests of module 'stdlib' in C++ mode.
67339         * tests/test-stdlib-c++.cc: New file.
67340         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67341         (Depends-on): Add ansi-c++-opt.
67342         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67343         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67344         gl_MODULE_INDICATOR.
67346         Tests of module 'stdio' in C++ mode.
67347         * tests/test-stdio-c++.cc: New file.
67348         * modules/stdio-tests (Files): Add it and tests/signature.h.
67349         (Depends-on): Add ansi-c++-opt.
67350         (Makefile.am): Arrange to compile and run test-stdio-c++.
67351         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67352         gl_MODULE_INDICATOR.
67354         Tests of module 'spawn' in C++ mode.
67355         * tests/test-spawn-c++.cc: New file.
67356         * modules/spawn-tests (Files): Add it and tests/signature.h.
67357         (Depends-on): Add ansi-c++-opt.
67358         (Makefile.am): Arrange to compile and run test-spawn-c++.
67359         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67360         gl_MODULE_INDICATOR.
67362         Tests of module 'signal' in C++ mode.
67363         * tests/test-signal-c++.cc: New file.
67364         * modules/signal-tests (Files): Add it and tests/signature.h.
67365         (Depends-on): Add ansi-c++-opt.
67366         (Makefile.am): Arrange to compile and run test-signal-c++.
67367         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67368         gl_MODULE_INDICATOR.
67370         Tests of module 'search' in C++ mode.
67371         * tests/test-search-c++.cc: New file.
67372         * modules/search-tests (Files): Add it and tests/signature.h.
67373         (Depends-on): Add ansi-c++-opt.
67374         (Makefile.am): Arrange to compile and run test-search-c++.
67375         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67376         gl_MODULE_INDICATOR.
67378         Tests of module 'math' in C++ mode.
67379         * tests/test-math-c++.cc: New file.
67380         * modules/math-tests (Files): Add it and tests/signature.h.
67381         (Depends-on): Add ansi-c++-opt.
67382         (Makefile.am): Arrange to compile and run test-math-c++.
67383         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67385         Tests of module 'locale' in C++ mode.
67386         * tests/test-locale-c++.cc: New file.
67387         * modules/locale-tests (Files): Add it and tests/signature.h.
67388         (Depends-on): Add ansi-c++-opt.
67389         (Makefile.am): Arrange to compile and run test-locale-c++.
67390         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67391         gl_MODULE_INDICATOR.
67393         Tests of module 'langinfo' in C++ mode.
67394         * tests/test-langinfo-c++.cc: New file.
67395         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67396         (Depends-on): Add ansi-c++-opt.
67397         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67398         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67399         gl_MODULE_INDICATOR.
67401         Tests of module 'iconv-h' in C++ mode.
67402         * tests/test-iconv-h-c++.cc: New file.
67403         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67404         (Depends-on): Add ansi-c++-opt.
67405         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67407         Tests of module 'glob' in C++ mode.
67408         * tests/test-glob-c++.cc: New file.
67409         * modules/glob-tests (Files): Add it.
67410         (Depends-on): Add ansi-c++-opt.
67411         (Makefile.am): Arrange to compile and run test-glob-c++.
67413         Tests of module 'fcntl-h' in C++ mode.
67414         * tests/test-fcntl-h-c++.cc: New file.
67415         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67416         (Depends-on): Add ansi-c++-opt.
67417         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67418         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67419         gl_MODULE_INDICATOR.
67421         Tests of module 'dirent' in C++ mode.
67422         * tests/test-dirent-c++.cc: New file.
67423         * modules/dirent-tests (Files): Add it and tests/signature.h.
67424         (Depends-on): Add ansi-c++-opt.
67425         (Makefile.am): Arrange to compile and run test-dirent-c++.
67426         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67427         gl_MODULE_INDICATOR.
67429         New module 'ansi-c++-opt'.
67430         * modules/ansi-c++-opt: New file.
67431         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67433         Document C++ namespace mode.
67434         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67436         wctype: Avoid #define replacements in C++ mode.
67437         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67438         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67439         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67440         In C++, define a namespaced alias symbol.
67441         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67442         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67443         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67444         rule.
67446         wchar: Avoid #define replacements in C++ mode.
67447         * lib/wchar.in.h: Include c++defs.h.
67448         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67449         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67450         symbol.
67451         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67452         * modules/wchar (Depends-on): Add c++defs.
67453         (Makefile.am): Update wchar.h rule.
67455         unistd: Avoid #define replacements in C++ mode.
67456         * lib/unistd.in.h: Include c++defs.h.
67457         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67458         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67459         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67460         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67461         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67462         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67463         symbol.
67464         (environ): Update.
67465         * modules/unistd (Depends-on): Add c++defs.
67466         (Makefile.am): Update unistd.h rule.
67468         time: Avoid #define replacements in C++ mode.
67469         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67470         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67471         define a namespaced alias symbol.
67472         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67473         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67474         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67475         * modules/time (Depends-on): Add c++defs, warn-on-use.
67476         (Makefile.am): Update time.h rule.
67477         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67478         * modules/nanosleep (configure.ac): Likewise.
67479         * modules/strptime (configure.ac): Likewise.
67480         * modules/timegm (configure.ac): Likewise.
67482         sys_time: Avoid #define replacements in C++ mode.
67483         * lib/sys_time.in.h: Include c++defs.h.
67484         (gettimeofday): In C++, define a namespaced alias symbol.
67485         * modules/sys_time (Depends-on): Add c++defs.
67486         (Makefile.am): Update sys/time.h rule.
67488         sys_stat: Avoid #define replacements in C++ mode.
67489         * lib/sys_stat.in.h: Include c++defs.h.
67490         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67491         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67492         namespaced alias symbol.
67493         In C++, define a namespaced alias symbol.
67494         * modules/sys_stat (Depends-on): Add c++defs.
67495         (Makefile.am): Update sys/stat.h rule.
67497         sys_socket: Avoid #define replacements in C++ mode.
67498         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67499         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67500         definitions also when the system has a <sys/socket.h>.
67501         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67502         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67503         In C++, define a namespaced alias symbol.
67504         * modules/sys_socket (Depends-on): Add c++defs.
67505         (Makefile.am): Update sys/socket.h rule.
67507         sys_select: Avoid #define replacements in C++ mode.
67508         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67509         definitions also when the system has a <sys/select.h>.
67510         (select): In C++, define a namespaced alias symbol.
67511         * modules/sys_select (Depends-on): Add c++defs.
67512         (Makefile.am): Update sys/select.h rule.
67514         sys_ioctl: Avoid #define replacements in C++ mode.
67515         * lib/sys_ioctl.in.h: Include c++defs.h.
67516         (ioctl): In C++, define a namespaced alias symbol.
67517         * modules/sys_ioctl (Depends-on): Add c++defs.
67518         (Makefile.am): Update sys/ioctl.h rule.
67520         string: Avoid #define replacements in C++ mode.
67521         * lib/string.in.h: Include c++defs.h.
67522         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67523         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67524         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67525         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67526         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67527         * modules/string (Depends-on): Add c++defs.
67528         (Makefile.am): Update string.h rule.
67530         stdlib: Avoid #define replacements in C++ mode.
67531         * lib/stdlib.in.h: Include c++defs.h.
67532         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67533         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67534         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67535         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67536         symbol.
67537         * modules/stdlib (Depends-on): Add c++defs.
67538         (Makefile.am): Update stdlib.h rule.
67540         stdio: Avoid #define replacements in C++ mode.
67541         * lib/stdio.in.h: Include c++defs.h.
67542         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67543         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67544         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67545         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67546         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67547         namespaced alias symbol.
67548         * modules/stdio (Depends-on): Add c++defs.
67549         (Makefile.am): Update stdio.h rule.
67551         spawn: Avoid #define replacements in C++ mode.
67552         * lib/spawn.in.h: Include c++defs.h.
67553         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67554         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67555         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67556         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67557         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67558         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67559         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67560         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67561         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67562         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67563         In C++, define a namespaced alias symbol.
67564         * modules/spawn (Depends-on): Add c++defs.
67565         (Makefile.am): Update spawn.h rule.
67567         signal: Avoid #define replacements in C++ mode.
67568         * lib/signal.in.h: Include c++defs.h.
67569         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67570         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67571         namespaced alias symbol.
67572         * modules/signal (Depends-on): Add c++defs.
67573         (Makefile.am): Update signal.h rule.
67575         search: Avoid #define replacements in C++ mode.
67576         * lib/search.in.h: Include c++defs.h.
67577         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67578         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67579         symbol.
67580         * modules/search (Depends-on): Add c++defs.
67581         (Makefile.am): Update search.h rule.
67583         math: Avoid #define replacements in C++ mode.
67584         * lib/math.in.h: Include c++defs.h.
67585         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67586         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67587         trunc, truncl): In C++, define a namespaced alias symbol.
67588         * modules/math (Depends-on): Add c++defs.
67589         (Makefile.am): Update math.h rule.
67591         locale: Avoid #define replacements in C++ mode.
67592         * lib/locale.in.h: Include c++defs.h.
67593         (duplocale): In C++, define a namespaced alias symbol.
67594         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67595         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67596         * modules/locale (Depends-on): Add c++defs.
67597         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67599         langinfo: Avoid #define replacements in C++ mode.
67600         * lib/langinfo.in.h: Include c++defs.h.
67601         (nl_langinfo): In C++, define a namespaced alias symbol.
67602         * modules/langinfo (Depends-on): Add c++defs.
67603         (Makefile.am): Update langinfo.h rule.
67605         iconv-h: Avoid #define replacements in C++ mode.
67606         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67607         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67608         symbol.
67609         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67610         whenever iconv is present.
67611         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67612         (Makefile.am): Update iconv.h rule.
67614         glob: Avoid #define replacements in C++ mode.
67615         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67616         (_gl_glob_errfunc_fn): New type.
67617         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67618         symbol.
67619         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67620         (Makefile.am): Update glob.h rule.
67622         fcntl-h: Avoid #define replacements in C++ mode.
67623         * lib/fcntl.in.h: Include c++defs.h.
67624         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67625         * modules/fcntl-h (Depends-on): Add c++defs.
67626         (Makefile.am): Update fcntl.h rule.
67628         dirent: Avoid #define replacements in C++ mode.
67629         * lib/dirent.in.h: Include c++defs.h.
67630         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67631         namespaced alias symbol.
67632         (dirfd): Update declaration.
67633         * modules/dirent (Depends-on): Add c++defs.
67634         (Makefile.am): Update dirent.h rule.
67636         ctype: Make it usable in C++ code.
67637         * lib/ctype.in.h: Include c++defs.h.
67638         (isblank): Declare as extern "C".
67639         * modules/ctype (Depends-on): Add c++defs.
67640         (Makefile.am): Update ctype.h rule.
67642         New module 'c++defs'.
67643         * modules/c++defs: New file.
67644         * build-aux/c++defs.h: New file.
67645         Reported by John W. Eaton <jwe@gnu.org>.
67647 2010-03-07  Bruno Haible  <bruno@clisp.org>
67649         logb: Provide missing declaration for Cygwin.
67650         * lib/math.in.h (logb): New declaration.
67651         * m4/logb.m4: New file.
67652         * modules/logb (Files): Add m4/logb.m4.
67653         (Depends-on): Add math.
67654         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67655         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67657         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67658         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67660 2010-03-07  Bruno Haible  <bruno@clisp.org>
67662         Fix test-cond link error.
67663         * tests/test-cond.c: Include <stdio.h>.
67665 2010-03-07  Bruno Haible  <bruno@clisp.org>
67667         Fix test-dirent-safer link error.
67668         * modules/dirent-safer-tests (Makefile.am): Define
67669         test_dirent_safer_LDADD.
67671 2010-03-07  Bruno Haible  <bruno@clisp.org>
67673         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67674         among default module list.
67676 2010-03-07  Bruno Haible  <bruno@clisp.org>
67678         Fix link error on platforms with GNU libiconv.
67679         * modules/unistr/u8-strcoll-tests (Makefile): Define
67680         test_u8_strcoll_LDADD.
67681         * modules/unistr/u16-strcoll-tests (Makefile): Define
67682         test_u16_strcoll_LDADD.
67683         * modules/unistr/u32-strcoll-tests (Makefile): Define
67684         test_u32_strcoll_LDADD.
67686 2010-03-07  Bruno Haible  <bruno@clisp.org>
67688         Use POSIX declarations for socket functions.
67689         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67690         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67691         rpl_sendto): Change declaration to match POSIX.
67692         * lib/connect.c (rpl_connect): Likewise.
67693         * lib/accept.c (rpl_accept): Likewise.
67694         * lib/bind.c (rpl_bind): Likewise.
67695         * lib/getpeername.c (rpl_getpeername): Likewise.
67696         * lib/getsockname.c (rpl_getsockname): Likewise.
67697         * lib/recv.c (rpl_recv): Likewise.
67698         * lib/send.c (rpl_send): Likewise.
67699         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67700         * lib/sendto.c (rpl_sendto): Likewise.
67702 2010-03-06  Bruno Haible  <bruno@clisp.org>
67704         Clarify access, euidaccess, faccessat.
67705         * doc/posix-functions/faccessat.texi: Mention security problem under
67706         "Other problems", not "Portability problems".
67707         * doc/posix-functions/access.texi: Likewise. Mention a related security
67708         problem.
67709         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67710         * lib/euidaccess.c: Add comments about platforms.
67711         * lib/unistd.in.h (access, euidaccess): Add warnings.
67713 2010-03-07  Bruno Haible  <bruno@clisp.org>
67715         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67716         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67717         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67718         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67719         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67720         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67721         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67722         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67723         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67724         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67725         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67726         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67727         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67728         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67729         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67730         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67731         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67732         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67733         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67734         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67735         Likewise.
67736         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67737         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67738         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67739         Likewise.
67740         * tests/test-spawn.c (main): Make it work when
67741         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67743 2010-03-07  Bruno Haible  <bruno@clisp.org>
67745         Fix incorrect Makefile.am generation in German locale.
67746         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67747         Execute sed command with character range in C locale.
67749 2010-03-06  Bruno Haible  <bruno@clisp.org>
67751         Tests for module 'iconv-h'.
67752         * modules/iconv-h-tests: New file.
67753         * tests/test-iconv-h.c: New file.
67755         New module 'iconv-h'.
67756         * modules/iconv-h: New file.
67757         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67758         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67759         (configure.ac): Remove gl_ICONV_H.
67760         (Makefile.am): Remove rule for iconv.h.
67762 2010-03-06  Bruno Haible  <bruno@clisp.org>
67764         More consistent naming of *.m4 files.
67765         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67766         * modules/wctype (Files): Update.
67768         More consistent naming of *.m4 files.
67769         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67770         * modules/wchar (Files): Update.
67772 2010-03-06  Jim Meyering  <meyering@redhat.com>
67774         euidaccess: relax license to LGPLv2+
67775         * modules/euidaccess (License): Relax to LGPLv2+.
67777 2010-03-06  Bruno Haible  <bruno@clisp.org>
67779         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67780         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67781         (Makefile.am): Augment lib_SOURCES instead.
67783 2010-03-04  Jim Meyering  <meyering@redhat.com>
67785         utime: remove obsolete module
67786         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67787         unnecessary for years, and has been marked as obsolete for 10 months.
67788         * modules/utime: Remove file.
67789         * lib/utime.c: Remove file.
67790         * m4/utime.m4: Remove file.
67791         * m4/utimes-null.m4: Remove file.
67792         * doc/posix-functions/utime.texi (utime): Remove reference to
67793         the module.  Move the sole "fixed by gnulib" item into the
67794         "problems not fixed by Gnulib" list.
67795         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67797 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67799         * modules/exit (License): Relax license to LGPLv2+.
67800         (Status): Mark as obsolete.
67801         * NEWS: Mention deprecated 'exit' module.
67802         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67803         of now obsolete 'exit'.
67805 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67807         fts-lgpl: remove unused module
67808         * modules/fts-lgpl: Remove.
67809         * MODULES.html.sh (func_all_modules): Adjust.
67810         * check-module (find_included_lib_files): Adjust.
67811         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67813 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67815         copy-acl: enhance Solaris ACL error handling
67816         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67817         * lib/set-mode-acl.c (qset_acl): Likewise.
67819 2010-03-02  Bruno Haible  <bruno@clisp.org>
67821         spawn: Don't override the system defined values on FreeBSD 8.
67822         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67823         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67824         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67825         if HAVE_POSIX_SPAWN is 1.
67826         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67828 2010-03-01  Bruno Haible  <bruno@clisp.org>
67830         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67831         regarding Automake.
67833 2010-02-25  Bruno Haible  <bruno@clisp.org>
67835         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67836         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67837         setting, not afterwards.
67838         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67840 2010-02-24  Eric Blake  <eblake@redhat.com>
67842         bootstrap, git-version-gen: use timestamp
67843         * build-aux/git-version-gen (scriptversion): Force UTC.
67844         * build-aux/bootstrap (scriptversion): New variable.
67846         bootstrap: allow older git
67847         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67848         older than 1.6.4.  Requested by the libvirt project.
67850 2010-02-23  Eric Blake  <eblake@redhat.com>
67852         warn-on-use: work with old autoconf
67853         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67854         AS_VAR semantics of autoconf 2.60.
67855         Reported by Bruno Haible.
67857         bootstrap: improve some comments
67858         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67859         clarification comments.
67861         gettimeofday: provide correct function
67862         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67863         when replacement is declared, otherwise provide gettimeofday.
67864         Reported by Michael Goffioul.
67866 2010-02-23  Jim Meyering  <meyering@redhat.com>
67868         lib-ignore: relax license to "unlimited", not LGPLv2+
67869         * modules/lib-ignore (License): Relax to "unlimited".
67871 2010-02-23  Jim Meyering  <meyering@redhat.com>
67873         lib-ignore: relax license to LGPLv2+
67874         * modules/lib-ignore (License): Relax to LGPLv2+.
67876 2010-02-22  Eric Blake  <eblake@redhat.com>
67878         lseek: avoid bash 3.2 broken pipe bug
67879         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67880         warning from bash 3.2.
67881         Reported by Ben Pfaff, with analysis from Bruno Haible.
67883         bootstrap: support non-FSF copyright holder
67884         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67885         bootstrap.conf override of COPYRIGHT_HOLDER.
67886         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67888         bootstrap: interoperate with gettext 0.14.1
67889         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67891         bootstrap: allow for alternate submodule location
67892         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67893         hardcoding submodule location.
67894         (gnulib_mk): Allow direct use of Makefile.am.
67896         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67897         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67898         rather than reconfiguring where the submodule points.
67900         gettimeofday: restore support for platforms that lack function
67901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67902         replacement if function is missing.
67903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67904         * modules/sys_time (Makefile.am): Substitute it.
67905         * lib/sys_time.in.h (gettimeofday): Check it.
67906         Reported by Michael Goffioul.
67908 2010-02-21  Bruno Haible  <bruno@clisp.org>
67910         * lib/stdio.in.h (obstack_printf): Fix typo.
67912 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67914         vc-list-files: use bzr ls's -R option
67915         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67916         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67918 2010-02-21  Jim Meyering  <meyering@redhat.com>
67920         init.sh: fix EXEEXT shims to work also for names like test-prog
67921         * tests/init.sh: Re-exec a better shell, when needed.
67922         If the current shell lacks support for posix $(...), an init.sh-using
67923         test will now try to find a shell that supports that.  If EXEEXT is
67924         nonempty, we also require support for hyphen-in-alias-name and shell
67925         substitutions like ${var#glob}.  Failure to find such a shell results
67926         in a skipped test.
67928 2010-02-21  Bruno Haible  <bruno@clisp.org>
67930         Really work around "broken pipe" error message from bash 3.2.
67931         * gnulib-tool (func_reset_sigpipe): Remove function.
67932         (echo): In bash 3.2, define to a function that uses printf.
67933         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67935 2010-02-20  Bruno Haible  <bruno@clisp.org>
67937         Restore support for automake 1.9.6 with autoconf 2.61.
67938         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67939         Reported by James Youngman <jay@gnu.org>.
67941 2010-02-20  Bruno Haible  <bruno@clisp.org>
67943         Improve *printf warning condition.
67944         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67945         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67946         and the function is overridden due to SIGPIPE emulation.
67948 2010-02-20  Bruno Haible  <bruno@clisp.org>
67950         * lib/stdio.in.h: Tweak comments.
67952 2010-02-19  Bruno Haible  <bruno@clisp.org>
67954         Make it easier to find modules. New gnulib-tool option '--find'.
67955         * gnulib-tool: New option --find.
67956         (func_usage): Document it.
67957         (func_sanitize_modulelist): New function, extracted from
67958         func_all_modules.
67959         (func_all_modules): Invoke it.
67960         * doc/gnulib-tool.texi (Which modules?): New node.
67962 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67964         * lib/sys_select.in.h: Provide select replacement even if
67965         sys/select.h exists on a system, for Interix.
67967 2010-02-18  Jim Meyering  <meyering@redhat.com>
67969         init.sh: don't use $(...) just yet
67970         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
67971         to accommodate e.g., Solaris' /bin/sh.
67973 2010-02-17  Bruno Haible  <bruno@clisp.org>
67975         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
67976         Reported by Ludovic Courtès <ludo@gnu.org>.
67978 2010-02-16  Simon Josefsson  <simon@josefsson.org>
67980         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
67981         linking with -lintl.
67983 2010-02-17  Simon Josefsson  <simon@josefsson.org>
67985         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
67986         if not provided by the system's netdb.h.  Reported by
67987         ludo@gnu.org (Ludovic Courtès).
67989 2010-02-15  Jim Meyering  <meyering@redhat.com>
67991         init.sh: improve portability and efficiency
67992         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
67993         "dummy" in a for loop.
67994         Use '!', not '^' to select the complement of a character set used
67995         in a "case" statement.
67996         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
67997         Suggestions from Eric Blake.
67999         init.sh: automatically accommodate programs with the .exe suffix
68000         Automatically arrange for an invocation of "prog" to execute the
68001         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68002         may use the simpler "prog", yet still work when built on a system
68003         that requires specifying the added suffix.
68004         Do this by constructing a function named "prog" that invokes
68005         "prog.exe" for each .exe file in selected directories.
68006         * tests/init.sh (find_exe_basenames_): New function.
68007         (create_exe_shim_functions_): New function.
68008         (path_prepend_): Use it.
68010         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68011         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68012         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68014 2010-02-14  Jim Meyering  <meyering@redhat.com>
68016         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68017         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68018         (sc_prohibit_hash_pjw_without_use): New rule.
68020         maint.mk: allow the default upload destination dir to be overridden
68021         * top/maint.mk (upload_dest_dir_): Define with a default that
68022         preserves the status quo.
68023         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68024         Reported by Peter Simons.
68026         maint.mk: prohibit inclusion of "hash.h" without_use
68027         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68029 2010-02-10  Jim Meyering  <meyering@redhat.com>
68031         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68032         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68034 2010-02-09  Eric Blake  <ebb9@byu.net>
68035         and Bruno Haible  <bruno@clisp.org>
68037         obstack-printf-posix: ensure declaration
68038         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68039         extracted from gl_FUNC_OBSTACK_PRINTF.
68040         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68041         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68042         Likewise.
68043         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68044         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68045         0.
68047 2010-02-08  Bruno Haible  <bruno@clisp.org>
68049         gnulib-tool: Fix typo in 2010-02-07 commit.
68050         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68051         Reported by Eric Blake.
68053 2010-02-07  Bruno Haible  <bruno@clisp.org>
68055         gnulib-tool: Fix up caching patches.
68056         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68057         option --no-cache. Use associative arrays when supported by the shell.
68058         (sed_comments): New variable.
68059         (modcache): Renamed from do_cache.
68060         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68061         abbreviate unnecessarily.
68062         (have_associative): New variable.
68063         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68064         way also for ksh and zsh.
68065         (func_init_sed_convert_to_cache_statements): New function, extracted
68066         from func_cache_lookup_module. Add support for associative arrays.
68067         Don't set the c_MODULE_cached variable here. Ignore all lines before
68068         the first field header. Remove only the final newline, not all trailing
68069         newlines. Support empty fields correctly. Limit the use of 'eval' to
68070         assignments.
68071         (func_get_description, func_get_status, func_get_notice,
68072         func_get_applicability, func_get_filelist, func_get_dependencies,
68073         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
68074         func_get_automake_snippet, func_get_include_directive,
68075         func_get_link_directive, func_get_license, func_get_maintainer):
68076         Update documentation. List the unoptimized code first. Add support for
68077         associative arrays. Limit the use of 'eval' to assignments.
68078         (func_get_applicability): Undo stylistic pessimisations.
68079         (func_get_automake_snippet, func_get_include_directive): Reduce code
68080         duplication.
68081         (func_modules_transitive_closure, func_modules_add_dummy,
68082         func_modules_notice, func_modules_to_filelist, func_add_file,
68083         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
68084         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
68085         func_create_testdir, func_create_megatestdir): Update documentation.
68087 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68089         * gnulib-tool (func_cache_lookup_module): Store the module name
68090         belonging to the cache variable; error out if two different
68091         module names map to the same cache variable name.
68093 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68095         gnulib-tool: Make caching optional.
68096         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
68097         Update matching short versions of --no-changelog.
68098         (func_usage): Update.
68099         (sed_extract_cache_prog): Renamed from ...
68100         (sed_extract_prog): ... this; revert to old extraction script.
68101         (func_get_description, func_get_status)
68102         (func_get_notice, func_get_applicability, func_get_filelist)
68103         (func_get_dependencies, func_get_autoconf_early_snippet)
68104         (func_get_autoconf_snippet, func_get_automake_snippet)
68105         (func_get_include_directive, func_get_link_directive)
68106         (func_get_license, func_get_maintainer): If $do_cache is false,
68107         use old, non-caching extraction scripts.
68108         Suggestion by Bruno Haible.
68110 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68112         gnulib-tool: cache module metainformation.
68113         * gnulib-tool (sed_extract_prog): Match newline before each
68114         header, and rewrite header to a shell variable suffix.
68115         (func_cache_var, func_cache_lookup_module): New functions,
68116         to turn a module name into a cache variable prefix, and to
68117         look up and cache module metainformation.
68118         (func_get_description, func_get_status)
68119         (func_get_notice, func_get_applicability, func_get_filelist)
68120         (func_get_dependencies, func_get_autoconf_early_snippet)
68121         (func_get_autoconf_snippet, func_get_automake_snippet)
68122         (func_get_include_directive, func_get_link_directive)
68123         (func_get_license, func_get_maintainer): Use
68124         func_cache_lookup_module.
68126 2010-02-07  Bruno Haible  <bruno@clisp.org>
68128         fnctl: Fix missing dependency.
68129         * modules/fcntl (Depends-on): Add getdtablesize.
68130         Reported by John W. Eaton <jwe@gnu.org>.
68132 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68134         Argp: fix recognition of short alias options.
68136         * lib/argp-parse.c (convert_options): Fix improper use of
68137         `|' between character values.
68138         * tests/test-argp.c (group1_option): New alias option
68139         --read (-r).
68140         (group1_parser): Special handling for 'r'.
68141         (test15): New test case.
68142         (test_fun): Add test15.
68143         * tests/test-argp-2.sh: Update expected --help and --usage
68144         outputs.
68146 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68148         * tests/test-argp.c: Fix indentation.
68150 2010-02-04  Eric Blake  <ebb9@byu.net>
68152         gettimeofday: expose type of second argument
68153         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68154         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68155         * tests/test-gettimeofday.c: Use it to silence warning.
68156         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68157         the issue.
68159 2010-02-03  Jim Meyering  <meyering@redhat.com>
68161         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68162         * lib/regcomp.c (TYPE_SIGNED): Define.
68163         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68165         regcomp.c: avoid a new -Wshadow warning
68166         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68168 2010-02-01  Jim Meyering  <meyering@redhat.com>
68170         removing useless parentheses in cpp #define directives
68171         For motivation, see commit c0221df4, "define STREQ(a,b)
68172         consistently, removing useless parentheses"
68173         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68174         * lib/mountlist.c (MNT_IGNORE): Likewise.
68175         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68177 2010-02-01  Eric Blake  <ebb9@byu.net>
68179         sys_time: use link-warning
68180         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68181         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68182         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68183         * modules/sys_time (Depends-on): Add warn-on-use.
68184         (Makefile.am): Always build replacement.
68185         (configure.ac): Update substitutions.
68186         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68187         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68188         bother with SYS_TIME_H.
68189         * modules/gettimeofday (configure.ac): Declare indicator.
68190         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68191         in use.
68193         closein-tests: silence compiler warning
68194         * tests/test-closein.c (main): Ignore fread result.
68195         * modules/closein-tests (Depends-on): Add ignore-value.
68197         tests: silence warning about system return
68198         * tests/test-areadlink-with-size.c (main): Ignore system result.
68199         * tests/test-areadlink.c (main): Likewise.
68200         * tests/test-areadlinkat-with-size.c (main): Likewise.
68201         * tests/test-areadlinkat.c (main): Likewise.
68202         * tests/test-canonicalize-lgpl.c (main): Likewise.
68203         * tests/test-canonicalize.c (main): Likewise.
68204         * tests/test-chown.c (main): Likewise.
68205         * tests/test-fchownat.c (main): Likewise.
68206         * tests/test-fdutimensat.c (main): Likewise.
68207         * tests/test-fstatat.c (main): Likewise.
68208         * tests/test-futimens.c (main): Likewise.
68209         * tests/test-lchown.c (main): Likewise.
68210         * tests/test-link.c (main): Likewise.
68211         * tests/test-linkat.c (main): Likewise.
68212         * tests/test-lstat.c (main): Likewise.
68213         * tests/test-mkdir.c (main): Likewise.
68214         * tests/test-mkdirat.c (main): Likewise.
68215         * tests/test-mkfifo.c (main): Likewise.
68216         * tests/test-mkfifoat.c (main): Likewise.
68217         * tests/test-mknod.c (main): Likewise.
68218         * tests/test-readlink.c (main): Likewise.
68219         * tests/test-remove.c (main): Likewise.
68220         * tests/test-rename.c (main): Likewise.
68221         * tests/test-renameat.c (main): Likewise.
68222         * tests/test-rmdir.c (main): Likewise.
68223         * tests/test-symlink.c (main): Likewise.
68224         * tests/test-symlinkat.c (main): Likewise.
68225         * tests/test-unlink.c (main): Likewise.
68226         * tests/test-unlinkat.c (main): Likewise.
68227         * tests/test-utimens.c (main): Likewise.
68228         * tests/test-utimensat.c (main): Likewise.
68229         * modules/areadlink-tests (Depends-on): Add ignore-value.
68230         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68231         * modules/areadlinkat-tests (Depends-on): Likewise.
68232         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68233         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68234         * modules/canonicalize-tests (Depends-on): Likewise.
68235         * modules/chown-tests (Depends-on): Likewise.
68236         * modules/fdutimensat-tests (Depends-on): Likewise.
68237         * modules/futimens-tests (Depends-on): Likewise.
68238         * modules/lchown-tests (Depends-on): Likewise.
68239         * modules/link-tests (Depends-on): Likewise.
68240         * modules/linkat-tests (Depends-on): Likewise.
68241         * modules/lstat-tests (Depends-on): Likewise.
68242         * modules/mkdir-tests (Depends-on): Likewise.
68243         * modules/mkfifo-tests (Depends-on): Likewise.
68244         * modules/mkfifoat-tests (Depends-on): Likewise.
68245         * modules/mknod-tests (Depends-on): Likewise.
68246         * modules/openat-tests (Depends-on): Likewise.
68247         * modules/readlink-tests (Depends-on): Likewise.
68248         * modules/remove-tests (Depends-on): Likewise.
68249         * modules/rename-tests (Depends-on): Likewise.
68250         * modules/renameat-tests (Depends-on): Likewise.
68251         * modules/rmdir-tests (Depends-on): Likewise.
68252         * modules/symlink-tests (Depends-on): Likewise.
68253         * modules/symlinkat-tests (Depends-on): Likewise.
68254         * modules/unlink-tests (Depends-on): Likewise.
68255         * modules/utimens-tests (Depends-on): Likewise.
68256         * modules/utimensat-tests (Depends-on): Likewise.
68258 2010-01-31  Bruno Haible  <bruno@clisp.org>
68260         Perform the same test for many <math.h> functions.
68261         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68262         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68263         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68264         of gl_MATHFUNC.
68265         * modules/acos (configure.ac): Likewise.
68266         * modules/asin (configure.ac): Likewise.
68267         * modules/atan (configure.ac): Likewise.
68268         * modules/atan2 (configure.ac): Likewise.
68269         * modules/cbrt (configure.ac): Likewise.
68270         * modules/copysign (configure.ac): Likewise.
68271         * modules/cos (configure.ac): Likewise.
68272         * modules/cosh (configure.ac): Likewise.
68273         * modules/erf (configure.ac): Likewise.
68274         * modules/erfc (configure.ac): Likewise.
68275         * modules/exp (configure.ac): Likewise.
68276         * modules/fmod (configure.ac): Likewise.
68277         * modules/hypot (configure.ac): Likewise.
68278         * modules/j0 (configure.ac): Likewise.
68279         * modules/j1 (configure.ac): Likewise.
68280         * modules/jn (configure.ac): Likewise.
68281         * modules/lgamma (configure.ac): Likewise.
68282         * modules/log (configure.ac): Likewise.
68283         * modules/log10 (configure.ac): Likewise.
68284         * modules/log1p (configure.ac): Likewise.
68285         * modules/pow (configure.ac): Likewise.
68286         * modules/remainder (configure.ac): Likewise.
68287         * modules/sin (configure.ac): Likewise.
68288         * modules/sinh (configure.ac): Likewise.
68289         * modules/tan (configure.ac): Likewise.
68290         * modules/tanh (configure.ac): Likewise.
68291         * modules/y0 (configure.ac): Likewise.
68292         * modules/y1 (configure.ac): Likewise.
68293         * modules/yn (configure.ac): Likewise.
68294         Suggested by Paolo Bonzini.
68296 2010-01-31  Bruno Haible  <bruno@clisp.org>
68298         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68300 2010-01-31  Bruno Haible  <bruno@clisp.org>
68302         Work around getdelim() bug on FreeBSD 8.0.
68303         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68304         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68305         not work.
68306         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68307         is 1.
68308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68309         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68310         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68311         a non-zero size.
68312         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68314 2010-01-31  Bruno Haible  <bruno@clisp.org>
68316         Work around getline() bug on FreeBSD 8.0.
68317         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68318         and a non-zero size.
68319         * tests/test-getline.c (main): Likewise.
68320         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68321         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68323 2010-01-28  Eric Blake  <ebb9@byu.net>
68325         regex: fix build failure
68326         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68327         platforms.
68329 2010-01-28  Jim Meyering  <meyering@redhat.com>
68331         regex: do not ignore memory allocation failure
68332         * lib/regex_internal.c (create_cd_newstate): Detect
68333         re_node_set_init_copy failure.   Extracted from glibc commit
68334         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68336         regex: sync more white-space changes from libc
68337         * lib/regex_internal.c: White-space only changes.
68338         * lib/regexec.c: Likewise.
68340         regex: add many uses of __attribute_warn_unused_result__
68341         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68342         * lib/regexec.c: Likewise.
68343         Extracted from a messy glibc commit.
68345         regcomp.c: spelling and merge-artifact from glibc
68346         * lib/regcomp.c: Merge remainder of glibc's
68347         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68349         regcomp.c: sync white-space changes from glibc
68350         * lib/regcomp.c: Merge to accommodate white space
68351         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68353         regcomp.c: do not ignore internal return values
68354         * lib/regcomp.c: Do not ignore internal return values.
68355         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68356         but without its white-space changes and spelling fixes.
68358         regex_internal.h: define __attribute_warn_unused_result__
68359         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68361         maint: add a syntax-check rule to check for vulnerable Makefile.in
68362         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68364 2010-01-27  Jim Meyering  <meyering@redhat.com>
68366         ncftpput-ftp: clean up spaces
68367         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68368         Remove trailing blanks.
68370 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68372         * build-aux/git-version-gen: Fix copyright statement.
68373         * build-aux/gnupload: Likewise.
68374         * tests/test-arcfour.c: Likewise.
68375         * tests/test-arctwo.c: Likewise.
68376         * tests/test-count-one-bits.c: Likewise.
68377         * tests/test-crc.c: Likewise.
68378         * tests/test-des.c: Likewise.
68379         * tests/test-gc-arcfour.c: Likewise.
68380         * tests/test-gc-arctwo.c: Likewise.
68381         * tests/test-gc-des.c: Likewise.
68382         * tests/test-gc-hmac-md5.c: Likewise.
68383         * tests/test-gc-hmac-sha1.c: Likewise.
68384         * tests/test-gc-md2.c: Likewise.
68385         * tests/test-gc-md4.c: Likewise.
68386         * tests/test-gc-md5.c: Likewise.
68387         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68388         * tests/test-gc-rijndael.c: Likewise.
68389         * tests/test-gc-sha1.c: Likewise.
68390         * tests/test-gc.c: Likewise.
68391         * tests/test-gethostname.c: Likewise.
68392         * tests/test-gettimeofday.c: Likewise.
68393         * tests/test-hash.c: Likewise.
68394         * tests/test-hmac-md5.c: Likewise.
68395         * tests/test-hmac-sha1.c: Likewise.
68396         * tests/test-md2.c: Likewise.
68397         * tests/test-md4.c: Likewise.
68398         * tests/test-md5.c: Likewise.
68399         * tests/test-memchr.c: Likewise.
68400         * tests/test-memchr2.c: Likewise.
68401         * tests/test-memcmp.c: Likewise.
68402         * tests/test-memmem.c: Likewise.
68403         * tests/test-memrchr.c: Likewise.
68404         * tests/test-rawmemchr.c: Likewise.
68405         * tests/test-read-file.c: Likewise.
68406         * tests/test-rijndael.c: Likewise.
68407         * tests/test-sockets.c: Likewise.
68408         * tests/test-strchrnul.c: Likewise.
68409         * tests/test-strstr.c: Likewise.
68410         * tests/test-strtod.c: Likewise.
68411         * build-aux/ncftpput-ftp: Likewise.
68413 2010-01-26  Eric Blake  <ebb9@byu.net>
68415         ignore-value: update recommended header name
68416         * modules/ignore-value (Include): Only use <> for headers that
68417         exist in glibc.
68419 2010-01-26  Jim Meyering  <meyering@redhat.com>
68421         test-userspec.c: avoid compiler warnings
68422         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68423         and "initialization discards qualifiers..." warnings.
68424         Put the first "uid" in its own scope, and make char* members "const".
68426 2010-01-25  Bruno Haible  <bruno@clisp.org>
68428         gnulib-tool: Make warning diagnostics consistent.
68429         * gnulib-tool (func_warning): New function.
68430         Use it everywhere where gnulib-tool produces output to stderr and it is
68431         not a fatal error.
68433 2010-01-25  Bruno Haible  <bruno@clisp.org>
68435         Fix test dependencies.
68436         * modules/xstrtol-tests (Depends-on): Add inttypes.
68437         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68439 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68441         syntax-check: detect incorrect boolean macro values in config.h
68442         * modules/maintainer-makefile (configure.ac): Parameterize the location
68443         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68444         The logic is from Eric Blake and the location indicated by Jim Meyering.
68445         Note the more natural CONFIG_HEADER name is prohibited by automake
68446         for backwards compatibility reasons.
68447         * top/maint.mk (sc_Wundef_boolean): New rule.
68449 2010-01-25  Jim Meyering  <meyering@redhat.com>
68451         bootstrap: detect MacOS 10.6's shasum, too
68452         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68453         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68455 2010-01-23  Jim Meyering  <meyering@redhat.com>
68457         xstrtoll: new module
68458         * modules/xstrtoll: New file.
68459         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68460         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68461         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68462         ./configure fails if you use this module and lack "long long".
68463         * modules/xstrtoll-tests: New module.
68464         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68465         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68466         new init.sh-based test framework.
68468 2010-01-24  Bruno Haible  <bruno@clisp.org>
68470         Tests for module 'yn'.
68471         * modules/yn-tests: New file.
68472         * tests/test-yn.c: New file.
68474         Tests for module 'y1'.
68475         * modules/y1-tests: New file.
68476         * tests/test-y1.c: New file.
68478         Tests for module 'y0'.
68479         * modules/y0-tests: New file.
68480         * tests/test-y0.c: New file.
68482         Tests for module 'tanh'.
68483         * modules/tanh-tests: New file.
68484         * tests/test-tanh.c: New file.
68486         Tests for module 'tan'.
68487         * modules/tan-tests: New file.
68488         * tests/test-tan.c: New file.
68490         Tests for module 'sqrt'.
68491         * modules/sqrt-tests: New file.
68492         * tests/test-sqrt.c: New file.
68494         Tests for module 'sinh'.
68495         * modules/sinh-tests: New file.
68496         * tests/test-sinh.c: New file.
68498         Tests for module 'sin'.
68499         * modules/sin-tests: New file.
68500         * tests/test-sin.c: New file.
68502         Tests for module 'rint'.
68503         * modules/rint-tests: New file.
68504         * tests/test-rint.c: New file.
68506         Tests for module 'remainder'.
68507         * modules/remainder-tests: New file.
68508         * tests/test-remainder.c: New file.
68510         Tests for module 'pow'.
68511         * modules/pow-tests: New file.
68512         * tests/test-pow.c: New file.
68514         Tests for module 'nextafter'.
68515         * modules/nextafter-tests: New file.
68516         * tests/test-nextafter.c: New file.
68518         Tests for module 'modf'.
68519         * modules/modf-tests: New file.
68520         * tests/test-modf.c: New file.
68522         Tests for module 'logb'.
68523         * modules/logb-tests: New file.
68524         * tests/test-logb.c: New file.
68526         Tests for module 'log1p'.
68527         * modules/log1p-tests: New file.
68528         * tests/test-log1p.c: New file.
68530         Tests for module 'log10'.
68531         * modules/log10-tests: New file.
68532         * tests/test-log10.c: New file.
68534         Tests for module 'log'.
68535         * modules/log-tests: New file.
68536         * tests/test-log.c: New file.
68538         Tests for module 'lgamma'.
68539         * modules/lgamma-tests: New file.
68540         * tests/test-lgamma.c: New file.
68542         Tests for module 'ldexp'.
68543         * modules/ldexp-tests: New file.
68544         * tests/test-ldexp.c: New file.
68546         Tests for module 'jn'.
68547         * modules/jn-tests: New file.
68548         * tests/test-jn.c: New file.
68550         Tests for module 'j1'.
68551         * modules/j1-tests: New file.
68552         * tests/test-j1.c: New file.
68554         Tests for module 'j0'.
68555         * modules/j0-tests: New file.
68556         * tests/test-j0.c: New file.
68558         Tests for module 'hypot'.
68559         * modules/hypot-tests: New file.
68560         * tests/test-hypot.c: New file.
68562         Tests for module 'fmod'.
68563         * modules/fmod-tests: New file.
68564         * tests/test-fmod.c: New file.
68566         Tests for module 'fabs'.
68567         * modules/fabs-tests: New file.
68568         * tests/test-fabs.c: New file.
68570         Tests for module 'exp'.
68571         * modules/exp-tests: New file.
68572         * tests/test-exp.c: New file.
68574         Tests for module 'erfc'.
68575         * modules/erfc-tests: New file.
68576         * tests/test-erfc.c: New file.
68578         Tests for module 'erf'.
68579         * modules/erf-tests: New file.
68580         * tests/test-erf.c: New file.
68582         Tests for module 'cosh'.
68583         * modules/cosh-tests: New file.
68584         * tests/test-cosh.c: New file.
68586         Tests for module 'cos'.
68587         * modules/cos-tests: New file.
68588         * tests/test-cos.c: New file.
68590         Tests for module 'copysign'.
68591         * modules/copysign-tests: New file.
68592         * tests/test-copysign.c: New file.
68594         Tests for module 'cbrt'.
68595         * modules/cbrt-tests: New file.
68596         * tests/test-cbrt.c: New file.
68598         Tests for module 'atan2'.
68599         * modules/atan2-tests: New file.
68600         * tests/test-atan2.c: New file.
68602         Tests for module 'atan'.
68603         * modules/atan-tests: New file.
68604         * tests/test-atan.c: New file.
68606         Tests for module 'asin'.
68607         * modules/asin-tests: New file.
68608         * tests/test-asin.c: New file.
68610         Tests for module 'acos'.
68611         * modules/acos-tests: New file.
68612         * tests/test-acos.c: New file.
68614 2010-01-24  Bruno Haible  <bruno@clisp.org>
68616         Fix tests for common <math.h> functions.
68617         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68618         code snippet that references the function pointer, rather than merely
68619         calling the function. Substitute the FUNC_LIBM variable.
68620         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68621         * modules/acos (configure.ac): Likewise.
68622         * modules/asin (configure.ac): Likewise.
68623         * modules/atan (configure.ac): Likewise.
68624         * modules/atan2 (configure.ac): Likewise.
68625         * modules/cbrt (configure.ac): Likewise.
68626         * modules/copysign (configure.ac): Likewise.
68627         * modules/cos (configure.ac): Likewise.
68628         * modules/cosh (configure.ac): Likewise.
68629         * modules/erf (configure.ac): Likewise.
68630         * modules/erfc (configure.ac): Likewise.
68631         * modules/exp (configure.ac): Likewise.
68632         * modules/fabs (configure.ac): Likewise.
68633         * modules/fmod (configure.ac): Likewise.
68634         * modules/hypot (configure.ac): Likewise.
68635         * modules/j0 (configure.ac): Likewise.
68636         * modules/j1 (configure.ac): Likewise.
68637         * modules/jn (configure.ac): Likewise.
68638         * modules/ldexp (configure.ac): Likewise.
68639         * modules/lgamma (configure.ac): Likewise.
68640         * modules/log (configure.ac): Likewise.
68641         * modules/log10 (configure.ac): Likewise.
68642         * modules/log1p (configure.ac): Likewise.
68643         * modules/logb (configure.ac): Likewise.
68644         * modules/modf (configure.ac): Likewise.
68645         * modules/nextafter (configure.ac): Likewise.
68646         * modules/pow (configure.ac): Likewise.
68647         * modules/remainder (configure.ac): Likewise.
68648         * modules/rint (configure.ac): Likewise.
68649         * modules/sin (configure.ac): Likewise.
68650         * modules/sinh (configure.ac): Likewise.
68651         * modules/tan (configure.ac): Likewise.
68652         * modules/tanh (configure.ac): Likewise.
68653         * modules/y0 (configure.ac): Likewise.
68654         * modules/y1 (configure.ac): Likewise.
68655         * modules/yn (configure.ac): Likewise.
68657 2010-01-24  Bruno Haible  <bruno@clisp.org>
68659         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68660         * tests/test-acosl.c (x): New variable.
68661         (main): Store argument in x and fetch it from x.
68662         * tests/test-asinl.c (x): New variable.
68663         (main): Store argument in x and fetch it from x.
68664         * tests/test-atanl.c (x): New variable.
68665         (main): Store argument in x and fetch it from x.
68666         * tests/test-cosl.c (x): New variable.
68667         (main): Store argument in x and fetch it from x.
68668         * tests/test-expl.c (x): New variable.
68669         (main): Store argument in x and fetch it from x.
68670         * tests/test-logl.c (x): New variable.
68671         (main): Store argument in x and fetch it from x.
68672         * tests/test-sinl.c (x): New variable.
68673         (main): Store argument in x and fetch it from x.
68674         * tests/test-sqrtl.c (x): New variable.
68675         (main): Store argument in x and fetch it from x.
68676         * tests/test-tanl.c (x): New variable.
68677         (main): Store argument in x and fetch it from x.
68679 2010-01-24  Bruno Haible  <bruno@clisp.org>
68681         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68682         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68683         assignments to the initial TESTS_ENVIRONMENT.
68684         * doc/gnulib.texi (Unit test modules): Document it.
68685         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68686         TESTS_ENVIRONMENT.
68687         * modules/btowc-tests (Makefile.am): Likewise.
68688         * modules/c-stack-tests (Makefile.am): Likewise.
68689         * modules/c-strcase-tests (Makefile.am): Likewise.
68690         * modules/copy-file-tests (Makefile.am): Likewise.
68691         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68692         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68693         * modules/mbrtowc-tests (Makefile.am): Likewise.
68694         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68695         * modules/mbscasestr-tests (Makefile.am): Likewise.
68696         * modules/mbschr-tests (Makefile.am): Likewise.
68697         * modules/mbscspn-tests (Makefile.am): Likewise.
68698         * modules/mbsinit-tests (Makefile.am): Likewise.
68699         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68700         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68701         * modules/mbspbrk-tests (Makefile.am): Likewise.
68702         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68703         * modules/mbsrchr-tests (Makefile.am): Likewise.
68704         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68705         * modules/mbsspn-tests (Makefile.am): Likewise.
68706         * modules/mbsstr-tests (Makefile.am): Likewise.
68707         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68708         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68709         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68710         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68711         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68712         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68713         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68714         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68715         * modules/wcrtomb-tests (Makefile.am): Likewise.
68716         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68717         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68718         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68719         assignments from TESTS_ENVIRONMENT.
68720         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68721         augmentation.
68722         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68723         * modules/atexit-tests (Makefile.am): Likewise.
68724         * modules/binary-io-tests (Makefile.am): Likewise.
68725         * modules/closein-tests (Makefile.am): Likewise.
68726         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68727         * modules/exclude-tests (Makefile.am): Likewise.
68728         * modules/fflush-tests (Makefile.am): Likewise.
68729         * modules/fpending-tests (Makefile.am): Likewise.
68730         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68731         * modules/freadahead-tests (Makefile.am): Likewise.
68732         * modules/freadptr-tests (Makefile.am): Likewise.
68733         * modules/freadseek-tests (Makefile.am): Likewise.
68734         * modules/fseek-tests (Makefile.am): Likewise.
68735         * modules/fseeko-tests (Makefile.am): Likewise.
68736         * modules/ftell-tests (Makefile.am): Likewise.
68737         * modules/ftello-tests (Makefile.am): Likewise.
68738         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68739         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68740         * modules/lseek-tests (Makefile.am): Likewise.
68741         * modules/parse-duration-tests (Makefile.am): Likewise.
68742         * modules/perror-tests (Makefile.am): Likewise.
68743         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68744         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68745         * modules/pipe-tests (Makefile.am): Likewise.
68746         * modules/pread-tests (Makefile.am): Likewise.
68747         * modules/printf-posix-tests (Makefile.am): Likewise.
68748         * modules/select-tests (Makefile.am): Likewise.
68749         * modules/sigpipe-tests (Makefile.am): Likewise.
68750         * modules/tsearch-tests (Makefile.am): Likewise.
68751         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68752         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68753         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68754         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68755         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68756         * modules/version-etc-tests (Makefile.am): Likewise.
68757         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68758         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68759         * modules/xalloc-die-tests (Makefile.am): Likewise.
68760         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68761         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68762         * modules/xstrtol-tests (Makefile.am): Likewise.
68763         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68764         * modules/yesno-tests (Makefile.am): Likewise.
68765         Suggested by Jim Meyering.
68767 2010-01-24  Bruno Haible  <bruno@clisp.org>
68769         More documentation.
68770         * doc/gnulib.texi (Writing modules): New chapter.
68771         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68772         the new chapter.
68774 2010-01-24  Jim Meyering  <meyering@redhat.com>
68776         maint.mk: do not prepend "./" after filtering
68777         * top/maint.mk (_prepend_srcdir_prefix): New variable
68778         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68779         "./" when $(srcdir) is ".".
68781         define STREQ(a,b) consistently, removing useless parentheses
68782         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68783         since the only risk is that "a" or "b" contains an unparenthesized
68784         comma, but if either did that, STREQ would have 3 or more arguments.
68785         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68786         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68787         * lib/hash-triple.c (STREQ): Likewise.
68788         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68789         * lib/getugroups.c (STREQ): Likewise.
68791 2010-01-23  Jim Meyering  <meyering@redhat.com>
68793         maint.mk: fix syntax-check in a non-srcdir build directory
68794         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68795         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68797 2010-01-22  Jim Meyering  <meyering@redhat.com>
68799         userspec: add unit tests
68800         * tests/test-userspec.c: New file.
68801         * modules/userspec-tests: Likewise.
68803 2010-01-21  Jim Meyering  <meyering@redhat.com>
68805         maint.mk: handle source file names containing "." robustly
68806         * top/maint.mk (_dot_escaped_srcdir): Define.
68807         (VC_LIST): Use it in LHS of sed substitution.
68809 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68811         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68812         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68813         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68814         from a non-srcdir build.
68816 2010-01-20  Eric Blake  <ebb9@byu.net>
68818         warn-on-use: use instead of link-warning
68819         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68820         * modules/unistd (Depends-on, Makefile.am): Likewise.
68821         * modules/arpa_inet (Depends-on): Replace link-warning with
68822         warn-on-use.
68823         (Makefile.am): Update rules accordingly.
68824         * modules/ctype (Depends-on, Makefile.am): Likewise.
68825         * modules/dirent (Depends-on, Makefile.am): Likewise.
68826         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68827         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68828         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68829         * modules/locale (Depends-on, Makefile.am): Likewise.
68830         * modules/math (Depends-on, Makefile.am): Likewise.
68831         * modules/search (Depends-on, Makefile.am): Likewise.
68832         * modules/signal (Depends-on, Makefile.am): Likewise.
68833         * modules/spawn (Depends-on, Makefile.am): Likewise.
68834         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68835         * modules/string (Depends-on, Makefile.am): Likewise.
68836         * modules/strings (Depends-on, Makefile.am): Likewise.
68837         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68838         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68839         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68840         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68841         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68842         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68843         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68844         * modules/wchar (Depends-on, Makefile.am): Likewise.
68845         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68846         should be poisoned.
68847         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68848         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68849         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68850         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68852         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68853         * m4/math_h.m4 (gl_MATH_H): Likewise.
68854         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68855         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68856         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68857         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68858         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68860         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68861         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68865         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68866         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68867         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68868         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68869         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68870         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68871         GL_LINK_WARNING.
68872         * lib/ctype.in.h: Likewise.
68873         * lib/dirent.in.h: Likewise.
68874         * lib/fcntl.in.h: Likewise.
68875         * lib/inttypes.in.h: Likewise.
68876         * lib/langinfo.in.h: Likewise.
68877         * lib/locale.in.h: Likewise.
68878         * lib/math.in.h: Likewise.
68879         * lib/search.in.h: Likewise.
68880         * lib/signal.in.h: Likewise.
68881         * lib/spawn.in.h: Likewise.
68882         * lib/stdio.in.h: Likewise.
68883         * lib/stdlib.in.h: Likewise.
68884         * lib/string.in.h: Likewise.
68885         * lib/strings.in.h: Likewise.
68886         * lib/sys_file.in.h: Likewise.
68887         * lib/sys_ioctl.in.h: Likewise.
68888         * lib/sys_select.in.h: Likewise.
68889         * lib/sys_socket.in.h: Likewise.
68890         * lib/sys_stat.in.h: Likewise.
68891         * lib/sys_times.in.h: Likewise.
68892         * lib/sys_utsname.in.h: Likewise.
68893         * lib/unistd.in.h: Likewise.
68894         * lib/wchar.in.h: Likewise.
68896 2010-01-20  Bruno Haible  <bruno@clisp.org>
68898         Avoid duplicate -lm.
68899         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68900         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68901         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68903         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68904         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68905         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68906         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68907         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68908         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68909         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68910         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68911         Reported by Paolo Bonzini.
68913 2010-01-19  Bruno Haible  <bruno@clisp.org>
68915         langinfo, nl_langinfo: Relicense under LGPLv2+.
68916         * modules/langinfo (License): Change to LGPLv2+.
68917         * modules/nl_langinfo (License): Likewise.
68918         Patch by David Lutterkort <lutter@redhat.com>.
68920 2010-01-19  Bruno Haible  <bruno@clisp.org>
68922         Avoid compilation error with cc on OSF/1 5.1.
68923         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68924         statement, not before.
68925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68927 2010-01-18  Bruno Haible  <bruno@clisp.org>
68929         Avoid a link error due to the __printf__ symbol.
68930         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68931         and 2.6.x.
68932         (__format__, __printf__): Remove definitions.
68933         * lib/argp-fmtstream.h: Likewise.
68934         * lib/argp.h: Likewise.
68935         * lib/error.h: Likewise.
68936         * lib/vasnprintf.h: Likewise.
68937         * lib/xprintf.h: Likewise.
68938         * lib/xvasprintf.h: Likewise.
68939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68941 2010-01-18  Bruno Haible  <bruno@clisp.org>
68943         Tests for module 'tanl'.
68944         * modules/tanl-tests: New file.
68945         * tests/test-tanl.c: New file.
68947         Tests for module 'sqrtl'.
68948         * modules/sqrtl-tests: New file.
68949         * tests/test-sqrtl.c: New file.
68951         Tests for module 'sinl'.
68952         * modules/sinl-tests: New file.
68953         * tests/test-sinl.c: New file.
68955         Tests for module 'logl'.
68956         * modules/logl-tests: New file.
68957         * tests/test-logl.c: New file.
68959         Tests for module 'expl'.
68960         * modules/expl-tests: New file.
68961         * tests/test-expl.c: New file.
68963         Tests for module 'cosl'.
68964         * modules/cosl-tests: New file.
68965         * tests/test-cosl.c: New file.
68967         Tests for module 'atanl'.
68968         * modules/atanl-tests: New file.
68969         * tests/test-atanl.c: New file.
68971         Tests for module 'asinl'.
68972         * modules/asinl-tests: New file.
68973         * tests/test-asinl.c: New file.
68975         Tests for module 'acosl'.
68976         * modules/acosl-tests: New file.
68977         * tests/test-acosl.c: New file.
68979         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68980         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
68981         tanl): Use the standard gnulib idiom.
68982         * lib/cosl.c: Don't include trigl.c and sincosl.c.
68983         * lib/sinl.c: Likewise.
68984         * lib/tanl.c: Don't include trigl.c.
68985         (kernel_tanl): Make static.
68986         * lib/sincosl.c: Include trigl.h first.
68987         * lib/trigl.c: Likewise.
68988         * m4/acosl.m4: New file.
68989         * m4/asinl.m4: New file.
68990         * m4/atanl.m4: New file.
68991         * m4/cosl.m4: New file.
68992         * m4/expl.m4: New file.
68993         * m4/logl.m4: New file.
68994         * m4/sinl.m4: New file.
68995         * m4/sqrtl.m4: New file.
68996         * m4/tanl.m4: New file.
68997         * m4/mathl.m4: Remove file.
68998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
68999         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69000         Don't initialize GNULIB_MATHL.
69001         * modules/acosl: New file.
69002         * modules/asinl: New file.
69003         * modules/atanl: New file.
69004         * modules/cosl: New file.
69005         * modules/expl: New file.
69006         * modules/logl: New file.
69007         * modules/sinl: New file.
69008         * modules/sqrtl: New file.
69009         * modules/tanl: New file.
69010         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69011         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69012         substitute GNULIB_MATHL.
69013         * modules/mathl: Rewritten.
69014         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69015         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69016         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69017         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69018         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69019         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69020         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69021         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69022         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69024 2010-01-18  Bruno Haible  <bruno@clisp.org>
69026         sqrt: Make gl_FUNC_SQRT requirable.
69027         * m4/sqrt.m4: New file.
69028         * modules/sqrt (Files): Add it.
69029         (configure.ac): Invoke gl_FUNC_SQRT.
69031 2010-01-18  Bruno Haible  <bruno@clisp.org>
69033         New modules for common <math.h> functions.
69034         * m4/mathfunc.m4: New file.
69035         * modules/acos: New file.
69036         * modules/asin: New file.
69037         * modules/atan: New file.
69038         * modules/atan2: New file.
69039         * modules/cbrt: New file.
69040         * modules/copysign: New file.
69041         * modules/cos: New file.
69042         * modules/cosh: New file.
69043         * modules/erf: New file.
69044         * modules/erfc: New file.
69045         * modules/exp: New file.
69046         * modules/fabs: New file.
69047         * modules/fmod: New file.
69048         * modules/hypot: New file.
69049         * modules/j0: New file.
69050         * modules/j1: New file.
69051         * modules/jn: New file.
69052         * modules/ldexp: New file.
69053         * modules/lgamma: New file.
69054         * modules/log: New file.
69055         * modules/log10: New file.
69056         * modules/log1p: New file.
69057         * modules/logb: New file.
69058         * modules/modf: New file.
69059         * modules/nextafter: New file.
69060         * modules/pow: New file.
69061         * modules/remainder: New file.
69062         * modules/rint: New file.
69063         * modules/sin: New file.
69064         * modules/sinh: New file.
69065         * modules/sqrt: New file.
69066         * modules/tan: New file.
69067         * modules/tanh: New file.
69068         * modules/y0: New file.
69069         * modules/y1: New file.
69070         * modules/yn: New file.
69071         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69072         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69073         * doc/posix-functions/atan.texi: Mention the 'atan' module.
69074         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
69075         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
69076         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
69077         * doc/posix-functions/cos.texi: Mention the 'cos' module.
69078         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
69079         * doc/posix-functions/erf.texi: Mention the 'erf' module.
69080         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
69081         * doc/posix-functions/exp.texi: Mention the 'exp' module.
69082         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
69083         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
69084         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
69085         * doc/posix-functions/j0.texi: Mention the 'j0' module.
69086         * doc/posix-functions/j1.texi: Mention the 'j1' module.
69087         * doc/posix-functions/jn.texi: Mention the 'jn' module.
69088         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
69089         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
69090         * doc/posix-functions/log.texi: Mention the 'log' module.
69091         * doc/posix-functions/log10.texi: Mention the 'log10' module.
69092         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
69093         * doc/posix-functions/logb.texi: Mention the 'logb' module.
69094         * doc/posix-functions/modf.texi: Mention the 'modf' module.
69095         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
69096         * doc/posix-functions/pow.texi: Mention the 'pow' module.
69097         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
69098         * doc/posix-functions/rint.texi: Mention the 'rint' module.
69099         * doc/posix-functions/sin.texi: Mention the 'sin' module.
69100         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
69101         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
69102         * doc/posix-functions/tan.texi: Mention the 'tan' module.
69103         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
69104         * doc/posix-functions/y0.texi: Mention the 'y0' module.
69105         * doc/posix-functions/y1.texi: Mention the 'y1' module.
69106         * doc/posix-functions/yn.texi: Mention the 'yn' module.
69108 2010-01-18  Jim Meyering  <meyering@redhat.com>
69110         ignore-value: relax license to LGPLv2+
69111         * modules/ignore-value (License): Relax to LGPLv2+.
69113         getdate: don't leak when TZ contains two or more '"'s
69114         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69115         double quote in TZ after the first one.
69117         readtokens: do not leak internal token_lengths buffer
69118         * lib/readtokens.c (readtokens): Free the local, lengths,
69119         when the supplied "token_lengths" parameter is NULL.
69121 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69123         Fix a couple of missing LIBTHREAD link failures on AIX.
69124         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69125         $(LIBTHREAD).
69126         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69128         Link test-poll against INET_PTON_LIB.
69129         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69130         for inet_pton on Solaris 10.
69132 2010-01-17  Bruno Haible  <bruno@clisp.org>
69134         unistdio/*-sprintf: Fix typo in module description.
69135         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69136         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69137         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69138         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69139         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69140         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69141         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69144 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69146         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69147         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69148         variables in shell case patterns, for AIX and HP-UX ksh.
69150         Split large sed scripts, for HP-UX sed.
69151         * modules/stdio: Split sed scripts around 50 sed commands,
69152         to avoid HP-UX limit of 99 commands, in the near future.
69153         * modules/string: Likewise.
69154         * modules/unistd: Likewise.
69156         gnulib-tool: avoid writing in the current directory.
69157         * gnulib-tool (func_emit_lib_Makefile_am)
69158         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69159         not in the current directory, so concurrent gnulib-tool
69160         instances do not interfere.
69162 2010-01-16  Jim Meyering  <meyering@redhat.com>
69164         doc: update users.txt
69165         * users.txt: Add grep.
69166         (diffutils, gzip): Update URLs.
69168 2010-01-12  Bruno Haible  <bruno@clisp.org>
69170         posix_spawn: Avoid test failure on Cygwin.
69171         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69172         characters.
69173         Reported by Simon Josefsson.
69175 2010-01-12  Bruno Haible  <bruno@clisp.org>
69177         * tests/test-cond.c (main): When skipping the test, show the reason.
69179 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69181         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69183 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69185         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69186         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69188 2010-01-12  Eric Blake  <ebb9@byu.net>
69190         build: guarantee AS_VAR_IF
69191         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69192         (gl_AS_VAR_IF): Move...
69193         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69194         Reported by Simon Josefsson.
69196 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69198         * lib/stdio.in.h: Fix typo.
69200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69202         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69203         libgpg-error.
69205 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69207         * tests/test-xalloc-die.sh: Use $EXEEXT.
69209 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69210             Bruno Haible  <bruno@clisp.org>
69212         getlogin, getlogin_r: Avoid test failure.
69213         * tests/test-getlogin.c: Include <stdio.h>.
69214         (main): Skip the test when the function fails because stdin is not a
69215         tty.
69216         * tests/test-getlogin_r.c: Include <stdio.h>.
69217         (main): Skip the test when the function fails because stdin is not a
69218         tty.
69220 2010-01-11  Eric Blake  <ebb9@byu.net>
69222         tests: avoid more large file warnings
69223         * tests/test-fflush.c: Avoid warning about ftell use.
69224         * tests/test-fseek.c: Avoid warning about fseek use.
69226 2010-01-10  Bruno Haible  <bruno@clisp.org>
69228         nproc: Work better on Linux when /proc and /sys are not mounted.
69229         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69230         as lower bound when, on glibc/Linux systems,
69231         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69232         Suggested by Pádraig Brady <P@draigbrady.com>.
69233         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69235         nproc: Refactor.
69236         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69237         extracted from num_processors.
69238         (num_processors): Call it.
69240 2010-01-11  Jim Meyering  <meyering@redhat.com>
69242         utimecmp: avoid new warning from upcoming gcc-4.5.0
69243         * lib/utimecmp.c (BILLION): Define using #define rather than an
69244         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69246 2010-01-11  Eric Blake  <ebb9@byu.net>
69248         math: add portability warnings for classification macros
69249         * modules/math (Depends-on): Add warn-on-use.
69250         (Makefile.am): Provide new substitutions.
69251         * m4/math_h.m4 (gl_MATH_H): Require inline.
69252         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69253         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69254         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69255         implement warnings.
69257         unistd: warn on use of environ without module
69258         * modules/unistd (Depends-on): Add warn-on-use.
69259         (Makefile.am): Provide new substitutions.
69260         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69261         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69263         stdio: warn on suspicious uses
69264         * modules/stdio (Depends-on): Add warn-on-use.
69265         (Makefile.am): Provide new substitutions.
69266         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69267         fseeko.
69268         * lib/stdio.in.h (gets): Always warn on use.
69269         (fseek, ftell): Adjust when warnings are issued, and honor
69270         _GL_NO_LARGE_FILES as a way to silence the warning.
69271         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69272         any warning about large file offsets.
69273         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69274         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69275         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69276         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69277         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69278         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69279         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69280         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69282         warn-on-use: new module
69283         * modules/warn-on-use: New file.
69284         * build-aux/warn-on-use.h: Likewise.
69285         * m4/warn-on-use.m4: Likewise.
69286         * MODULES.html.sh (Support for building): Mention it.
69288 2010-01-10  Bruno Haible  <bruno@clisp.org>
69290         Tests for module 'unistr/u32-strdup'.
69291         * modules/unistr/u32-strdup-tests: New file.
69292         * tests/unistr/test-u32-strdup.c: New file.
69294         Tests for module 'unistr/u16-strdup'.
69295         * modules/unistr/u16-strdup-tests: New file.
69296         * tests/unistr/test-u16-strdup.c: New file.
69298         Tests for module 'unistr/u8-strdup'.
69299         * modules/unistr/u8-strdup-tests: New file.
69300         * tests/unistr/test-u8-strdup.c: New file.
69301         * tests/unistr/test-strdup.h: New file.
69303         Tests for module 'unistr/u32-strncmp'.
69304         * modules/unistr/u32-strncmp-tests: New file.
69305         * tests/unistr/test-u32-strncmp.c: New file.
69307         Tests for module 'unistr/u16-strncmp'.
69308         * modules/unistr/u16-strncmp-tests: New file.
69309         * tests/unistr/test-u16-strncmp.c: New file.
69311         Tests for module 'unistr/u8-strncmp'.
69312         * modules/unistr/u8-strncmp-tests: New file.
69313         * tests/unistr/test-u8-strncmp.c: New file.
69314         * tests/unistr/test-strncmp.h: New file.
69316         Tests for module 'unistr/u32-strcoll'.
69317         * modules/unistr/u32-strcoll-tests: New file.
69318         * tests/unistr/test-u32-strcoll.c: New file.
69320         Tests for module 'unistr/u16-strcoll'.
69321         * modules/unistr/u16-strcoll-tests: New file.
69322         * tests/unistr/test-u16-strcoll.c: New file.
69324         Tests for module 'unistr/u8-strcoll'.
69325         * modules/unistr/u8-strcoll-tests: New file.
69326         * tests/unistr/test-u8-strcoll.c: New file.
69328         Tests for module 'unistr/u32-strcmp'.
69329         * modules/unistr/u32-strcmp-tests: New file.
69330         * tests/unistr/test-u32-strcmp.c: New file.
69331         * tests/unistr/test-u32-strcmp.h: New file.
69333         Tests for module 'unistr/u16-strcmp'.
69334         * modules/unistr/u16-strcmp-tests: New file.
69335         * tests/unistr/test-u16-strcmp.c: New file.
69336         * tests/unistr/test-u16-strcmp.h: New file.
69338         Tests for module 'unistr/u8-strcmp'.
69339         * modules/unistr/u8-strcmp-tests: New file.
69340         * tests/unistr/test-u8-strcmp.c: New file.
69341         * tests/unistr/test-u8-strcmp.h: New file.
69342         * tests/unistr/test-strcmp.h: New file.
69344         Tests for module 'unistr/u32-strncat'.
69345         * modules/unistr/u32-strncat-tests: New file.
69346         * tests/unistr/test-u32-strncat.c: New file.
69348         Tests for module 'unistr/u16-strncat'.
69349         * modules/unistr/u16-strncat-tests: New file.
69350         * tests/unistr/test-u16-strncat.c: New file.
69352         Tests for module 'unistr/u8-strncat'.
69353         * modules/unistr/u8-strncat-tests: New file.
69354         * tests/unistr/test-u8-strncat.c: New file.
69355         * tests/unistr/test-strncat.h: New file.
69357         Tests for module 'unistr/u32-strcat'.
69358         * modules/unistr/u32-strcat-tests: New file.
69359         * tests/unistr/test-u32-strcat.c: New file.
69361         Tests for module 'unistr/u16-strcat'.
69362         * modules/unistr/u16-strcat-tests: New file.
69363         * tests/unistr/test-u16-strcat.c: New file.
69365         Tests for module 'unistr/u8-strcat'.
69366         * modules/unistr/u8-strcat-tests: New file.
69367         * tests/unistr/test-u8-strcat.c: New file.
69368         * tests/unistr/test-strcat.h: New file.
69370         Tests for module 'unistr/u32-stpncpy'.
69371         * modules/unistr/u32-stpncpy-tests: New file.
69372         * tests/unistr/test-u32-stpncpy.c: New file.
69374         Tests for module 'unistr/u16-stpncpy'.
69375         * modules/unistr/u16-stpncpy-tests: New file.
69376         * tests/unistr/test-u16-stpncpy.c: New file.
69378         Tests for module 'unistr/u8-stpncpy'.
69379         * modules/unistr/u8-stpncpy-tests: New file.
69380         * tests/unistr/test-u8-stpncpy.c: New file.
69381         * tests/unistr/test-stpncpy.h: New file.
69383         Tests for module 'unistr/u32-strncpy'.
69384         * modules/unistr/u32-strncpy-tests: New file.
69385         * tests/unistr/test-u32-strncpy.c: New file.
69387         Tests for module 'unistr/u16-strncpy'.
69388         * modules/unistr/u16-strncpy-tests: New file.
69389         * tests/unistr/test-u16-strncpy.c: New file.
69391         Tests for module 'unistr/u8-strncpy'.
69392         * modules/unistr/u8-strncpy-tests: New file.
69393         * tests/unistr/test-u8-strncpy.c: New file.
69394         * tests/unistr/test-strncpy.h: New file.
69396         Tests for module 'unistr/u32-stpcpy'.
69397         * modules/unistr/u32-stpcpy-tests: New file.
69398         * tests/unistr/test-u32-stpcpy.c: New file.
69400         Tests for module 'unistr/u16-stpcpy'.
69401         * modules/unistr/u16-stpcpy-tests: New file.
69402         * tests/unistr/test-u16-stpcpy.c: New file.
69404         Tests for module 'unistr/u8-stpcpy'.
69405         * modules/unistr/u8-stpcpy-tests: New file.
69406         * tests/unistr/test-u8-stpcpy.c: New file.
69407         * tests/unistr/test-stpcpy.h: New file.
69409         Tests for module 'unistr/u32-strcpy'.
69410         * modules/unistr/u32-strcpy-tests: New file.
69411         * tests/unistr/test-u32-strcpy.c: New file.
69413         Tests for module 'unistr/u16-strcpy'.
69414         * modules/unistr/u16-strcpy-tests: New file.
69415         * tests/unistr/test-u16-strcpy.c: New file.
69417         Tests for module 'unistr/u8-strcpy'.
69418         * modules/unistr/u8-strcpy-tests: New file.
69419         * tests/unistr/test-u8-strcpy.c: New file.
69420         * tests/unistr/test-strcpy.h: New file.
69422         Tests for module 'unistr/u32-strnlen'.
69423         * modules/unistr/u32-strnlen-tests: New file.
69424         * tests/unistr/test-u32-strnlen.c: New file.
69426         Tests for module 'unistr/u16-strnlen'.
69427         * modules/unistr/u16-strnlen-tests: New file.
69428         * tests/unistr/test-u16-strnlen.c: New file.
69430         Tests for module 'unistr/u8-strnlen'.
69431         * modules/unistr/u8-strnlen-tests: New file.
69432         * tests/unistr/test-u8-strnlen.c: New file.
69433         * tests/unistr/test-strnlen.h: New file.
69435         Tests for module 'unistr/u32-strlen'.
69436         * modules/unistr/u32-strlen-tests: New file.
69437         * tests/unistr/test-u32-strlen.c: New file.
69439         Tests for module 'unistr/u16-strlen'.
69440         * modules/unistr/u16-strlen-tests: New file.
69441         * tests/unistr/test-u16-strlen.c: New file.
69443         Tests for module 'unistr/u8-strlen'.
69444         * modules/unistr/u8-strlen-tests: New file.
69445         * tests/unistr/test-u8-strlen.c: New file.
69447         Tests for module 'unistr/u32-prev'.
69448         * modules/unistr/u32-prev-tests: New file.
69449         * tests/unistr/test-u32-prev.c: New file.
69451         Tests for module 'unistr/u16-prev'.
69452         * modules/unistr/u16-prev-tests: New file.
69453         * tests/unistr/test-u16-prev.c: New file.
69455         Tests for module 'unistr/u8-prev'.
69456         * modules/unistr/u8-prev-tests: New file.
69457         * tests/unistr/test-u8-prev.c: New file.
69459         Tests for module 'unistr/u32-next'.
69460         * modules/unistr/u32-next-tests: New file.
69461         * tests/unistr/test-u32-next.c: New file.
69463         Tests for module 'unistr/u16-next'.
69464         * modules/unistr/u16-next-tests: New file.
69465         * tests/unistr/test-u16-next.c: New file.
69467         Tests for module 'unistr/u8-next'.
69468         * modules/unistr/u8-next-tests: New file.
69469         * tests/unistr/test-u8-next.c: New file.
69471         Tests for module 'unistr/u32-strmbtouc'.
69472         * modules/unistr/u32-strmbtouc-tests: New file.
69473         * tests/unistr/test-u32-strmbtouc.c: New file.
69475         Tests for module 'unistr/u16-strmbtouc'.
69476         * modules/unistr/u16-strmbtouc-tests: New file.
69477         * tests/unistr/test-u16-strmbtouc.c: New file.
69479         Tests for module 'unistr/u8-strmbtouc'.
69480         * modules/unistr/u8-strmbtouc-tests: New file.
69481         * tests/unistr/test-u8-strmbtouc.c: New file.
69483         Tests for module 'unistr/u32-strmblen'.
69484         * modules/unistr/u32-strmblen-tests: New file.
69485         * tests/unistr/test-u32-strmblen.c: New file.
69487         Tests for module 'unistr/u16-strmblen'.
69488         * modules/unistr/u16-strmblen-tests: New file.
69489         * tests/unistr/test-u16-strmblen.c: New file.
69491         Tests for module 'unistr/u8-strmblen'.
69492         * modules/unistr/u8-strmblen-tests: New file.
69493         * tests/unistr/test-u8-strmblen.c: New file.
69495         Tests for module 'unistr/u32-cpy-alloc'.
69496         * modules/unistr/u32-cpy-alloc-tests: New file.
69497         * tests/unistr/test-u32-cpy-alloc.c: New file.
69499         Tests for module 'unistr/u16-cpy-alloc'.
69500         * modules/unistr/u16-cpy-alloc-tests: New file.
69501         * tests/unistr/test-u16-cpy-alloc.c: New file.
69503         Tests for module 'unistr/u8-cpy-alloc'.
69504         * modules/unistr/u8-cpy-alloc-tests: New file.
69505         * tests/unistr/test-u8-cpy-alloc.c: New file.
69506         * tests/unistr/test-cpy-alloc.h: New file.
69508         Tests for module 'unistr/u32-mbsnlen'.
69509         * modules/unistr/u32-mbsnlen-tests: New file.
69510         * tests/unistr/test-u32-mbsnlen.c: New file.
69512         Tests for module 'unistr/u16-mbsnlen'.
69513         * modules/unistr/u16-mbsnlen-tests: New file.
69514         * tests/unistr/test-u16-mbsnlen.c: New file.
69516         Tests for module 'unistr/u8-mbsnlen'.
69517         * modules/unistr/u8-mbsnlen-tests: New file.
69518         * tests/unistr/test-u8-mbsnlen.c: New file.
69520         Tests for module 'unistr/u32-chr'.
69521         * modules/unistr/u32-chr-tests: New file.
69522         * tests/unistr/test-u32-chr.c: New file.
69524         Tests for module 'unistr/u16-chr'.
69525         * modules/unistr/u16-chr-tests: New file.
69526         * tests/unistr/test-u16-chr.c: New file.
69528         Tests for module 'unistr/u8-chr'.
69529         * modules/unistr/u8-chr-tests: New file.
69530         * tests/unistr/test-u8-chr.c: New file.
69531         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69533         Tests for module 'unistr/u32-cmp2'.
69534         * modules/unistr/u32-cmp2-tests: New file.
69535         * tests/unistr/test-u32-cmp2.c: New file.
69537         Tests for module 'unistr/u16-cmp2'.
69538         * modules/unistr/u16-cmp2-tests: New file.
69539         * tests/unistr/test-u16-cmp2.c: New file.
69541         Tests for module 'unistr/u8-cmp2'.
69542         * modules/unistr/u8-cmp2-tests: New file.
69543         * tests/unistr/test-u8-cmp2.c: New file.
69544         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69546         Tests for module 'unistr/u32-cmp'.
69547         * modules/unistr/u32-cmp-tests: New file.
69548         * tests/unistr/test-u32-cmp.c: New file.
69550         Tests for module 'unistr/u16-cmp'.
69551         * modules/unistr/u16-cmp-tests: New file.
69552         * tests/unistr/test-u16-cmp.c: New file.
69554         Tests for module 'unistr/u8-cmp'.
69555         * modules/unistr/u8-cmp-tests: New file.
69556         * tests/unistr/test-u8-cmp.c: New file.
69557         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69559         Tests for module 'unistr/u32-set'.
69560         * modules/unistr/u32-set-tests: New file.
69561         * tests/unistr/test-u32-set.c: New file.
69563         Tests for module 'unistr/u16-set'.
69564         * modules/unistr/u16-set-tests: New file.
69565         * tests/unistr/test-u16-set.c: New file.
69567         Tests for module 'unistr/u8-set'.
69568         * modules/unistr/u8-set-tests: New file.
69569         * tests/unistr/test-u8-set.c: New file.
69570         * tests/unistr/test-set.h: New file.
69572         Tests for module 'unistr/u32-move'.
69573         * modules/unistr/u32-move-tests: New file.
69574         * tests/unistr/test-u32-move.c: New file.
69576         Tests for module 'unistr/u16-move'.
69577         * modules/unistr/u16-move-tests: New file.
69578         * tests/unistr/test-u16-move.c: New file.
69580         Tests for module 'unistr/u8-move'.
69581         * modules/unistr/u8-move-tests: New file.
69582         * tests/unistr/test-u8-move.c: New file.
69583         * tests/unistr/test-move.h: New file.
69585         Tests for module 'unistr/u32-cpy'.
69586         * modules/unistr/u32-cpy-tests: New file.
69587         * tests/unistr/test-u32-cpy.c: New file.
69589         Tests for module 'unistr/u16-cpy'.
69590         * modules/unistr/u16-cpy-tests: New file.
69591         * tests/unistr/test-u16-cpy.c: New file.
69593         Tests for module 'unistr/u8-cpy'.
69594         * modules/unistr/u8-cpy-tests: New file.
69595         * tests/unistr/test-u8-cpy.c: New file.
69596         * tests/unistr/test-cpy.h: New file.
69598 2010-01-09  Bruno Haible  <bruno@clisp.org>
69600         Tests for module 'unistr/u32-uctomb'.
69601         * modules/unistr/u32-uctomb-tests: New file.
69602         * tests/unistr/test-u32-uctomb.c: New file.
69604         Tests for module 'unistr/u16-uctomb'.
69605         * modules/unistr/u16-uctomb-tests: New file.
69606         * tests/unistr/test-u16-uctomb.c: New file.
69608         Tests for module 'unistr/u8-uctomb'.
69609         * modules/unistr/u8-uctomb-tests: New file.
69610         * tests/unistr/test-u8-uctomb.c: New file.
69612         Tests for module 'unistr/u32-mbtoucr'.
69613         * modules/unistr/u32-mbtoucr-tests: New file.
69614         * tests/unistr/test-u32-mbtoucr.c: New file.
69616         Tests for module 'unistr/u16-mbtoucr'.
69617         * modules/unistr/u16-mbtoucr-tests: New file.
69618         * tests/unistr/test-u16-mbtoucr.c: New file.
69620         Tests for module 'unistr/u8-mbtoucr'.
69621         * modules/unistr/u8-mbtoucr-tests: New file.
69622         * tests/unistr/test-u8-mbtoucr.c: New file.
69624         Tests for module 'unistr/u32-mbtouc'.
69625         * modules/unistr/u32-mbtouc-tests: New file.
69626         * tests/unistr/test-u32-mbtouc.c: New file.
69628         Tests for module 'unistr/u16-mbtouc'.
69629         * modules/unistr/u16-mbtouc-tests: New file.
69630         * tests/unistr/test-u16-mbtouc.c: New file.
69632         Tests for module 'unistr/u8-mbtouc'.
69633         * modules/unistr/u8-mbtouc-tests: New file.
69634         * tests/unistr/test-u8-mbtouc.c: New file.
69636         Tests for module 'unistr/u32-mbtouc-unsafe'.
69637         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69638         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69639         * tests/unistr/test-u32-mbtouc.h: New file.
69641         Tests for module 'unistr/u16-mbtouc-unsafe'.
69642         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69643         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69644         * tests/unistr/test-u16-mbtouc.h: New file.
69646         Tests for module 'unistr/u8-mbtouc-unsafe'.
69647         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69648         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69649         * tests/unistr/test-u8-mbtouc.h: New file.
69651         Tests for module 'unistr/u32-mblen'.
69652         * modules/unistr/u32-mblen-tests: New file.
69653         * tests/unistr/test-u32-mblen.c: New file.
69655         Tests for module 'unistr/u16-mblen'.
69656         * modules/unistr/u16-mblen-tests: New file.
69657         * tests/unistr/test-u16-mblen.c: New file.
69659         Tests for module 'unistr/u8-mblen'.
69660         * modules/unistr/u8-mblen-tests: New file.
69661         * tests/unistr/test-u8-mblen.c: New file.
69663         Tests for module 'unistr/u32-to-u16'.
69664         * modules/unistr/u32-to-u16-tests: New file.
69665         * tests/unistr/test-u32-to-u16.c: New file.
69667         Tests for module 'unistr/u32-to-u8'.
69668         * modules/unistr/u32-to-u8-tests: New file.
69669         * tests/unistr/test-u32-to-u8.c: New file.
69671         Tests for module 'unistr/u16-to-u32'.
69672         * modules/unistr/u16-to-u32-tests: New file.
69673         * tests/unistr/test-u16-to-u32.c: New file.
69675         Tests for module 'unistr/u16-to-u8'.
69676         * modules/unistr/u16-to-u8-tests: New file.
69677         * tests/unistr/test-u16-to-u8.c: New file.
69679         Tests for module 'unistr/u8-to-u32'.
69680         * modules/unistr/u8-to-u32-tests: New file.
69681         * tests/unistr/test-u8-to-u32.c: New file.
69683         Tests for module 'unistr/u8-to-u16'.
69684         * modules/unistr/u8-to-u16-tests: New file.
69685         * tests/unistr/test-u8-to-u16.c: New file.
69687         Tests for module 'unistr/u32-check'.
69688         * modules/unistr/u32-check-tests: New file.
69689         * tests/unistr/test-u32-check.c: New file.
69691         Tests for module 'unistr/u16-check'.
69692         * modules/unistr/u16-check-tests: New file.
69693         * tests/unistr/test-u16-check.c: New file.
69695         Tests for module 'unistr/u8-check'.
69696         * modules/unistr/u8-check-tests: New file.
69697         * tests/unistr/test-u8-check.c: New file.
69699         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69700         (category_equals): New function.
69701         (main): Add more tests.
69702         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69704         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69706 2010-01-10  Bruno Haible  <bruno@clisp.org>
69708         unistr/u*-strcoll: Try harder to distinguish different strings.
69709         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69710         compare s1 and s2 to see if they are different.
69712 2010-01-10  Bruno Haible  <bruno@clisp.org>
69714         unistr/u*-stpncpy: Fix the return value.
69715         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69716         description of the return value consistent with stpncpy in glibc.
69717         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69718         written non-NUL unit.
69720 2010-01-10  Bruno Haible  <bruno@clisp.org>
69722         unistr/u*-next: Add missing dependencies.
69723         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69724         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69725         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69727 2010-01-10  Bruno Haible  <bruno@clisp.org>
69729         unistr/u8-mbsnlen: Fix return value for incomplete character.
69730         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69731         u8_mblen.
69732         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69733         Remove unistr/u8-mblen.
69734         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69735         u16_mblen.
69736         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69737         Remove unistr/u16-mblen.
69739 2010-01-10  Bruno Haible  <bruno@clisp.org>
69741         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69742         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69743         Reported by Brian Gough <bjg@gnu.org> and
69744         Chris Clayton <chris2553@googlemail.com> via
69745         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69747 2010-01-09  Bruno Haible  <bruno@clisp.org>
69749         unistr/u16-to-u32: Reject invalid input.
69750         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69751         u16_mbtouc.
69752         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69753         Remove unistr/u16-mbtouc.
69755         unistr/u16-to-u8: Reject invalid input.
69756         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69757         u16_mbtouc.
69758         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69759         Remove unistr/u16-mbtouc.
69761         unistr/u8-to-u32: Reject invalid input.
69762         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69763         u8_mbtouc.
69764         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69765         Remove unistr/u8-mbtouc.
69767         unistr/u8-to-u16: Reject invalid input.
69768         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69769         u8_mbtouc.
69770         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69771         Remove unistr/u8-mbtouc.
69773 2010-01-09  Bruno Haible  <bruno@clisp.org>
69775         Tests for module 'getlogin'.
69776         * modules/getlogin-tests: New file.
69777         * tests/test-getlogin.c: New file.
69779         New module 'getlogin'.
69780         * lib/unistd.in.h (getlogin): New declaration.
69781         * lib/getlogin.c: New file.
69782         * m4/getlogin.m4: New file.
69783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69784         HAVE_GETLOGIN.
69785         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69786         HAVE_GETLOGIN.
69787         * modules/getlogin: New file.
69788         * doc/posix-functions/getlogin.texi: Mention the new module.
69789         Reported by John W. Eaton <jwe@gnu.org>.
69791 2010-01-09  Bruno Haible  <bruno@clisp.org>
69793         getlogin_r: Support for native Windows.
69794         * lib/getlogin_r.c: Include <windows.h>
69795         (getlogin_r): Implement for native Windows.
69796         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69797         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69798         via John W. Eaton <jwe@gnu.org>.
69800 2010-01-09  Bruno Haible  <bruno@clisp.org>
69802         getlogin_r: Small fixes.
69803         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69804         succeeds.
69805         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69806         before testing whether getlogin_r is declared. No need to set
69807         HAVE_DECL_GETLOGIN_R to 1.
69808         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69810 2010-01-09  Bruno Haible  <bruno@clisp.org>
69812         * lib/unistd.in.h (getlogin_r): Add comment.
69814 2010-01-09  Bruno Haible  <bruno@clisp.org>
69816         Tests for module 'getlogin_r'.
69817         * modules/getlogin_r-tests: New file.
69818         * tests/test-getlogin_r.c: New file.
69820 2010-01-09  Jim Meyering  <meyering@redhat.com>
69822         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69823         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69824         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69826 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69828         * lib/dup2.c (rpl_dup2): Improve comment.
69830 2010-01-08  Eric Blake  <ebb9@byu.net>
69832         maint.mk: allow packages to add makefile @@ exceptions
69833         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69834         (sc_makefile_check): Rename...
69835         (sc_makefile_at_at_check): ...to this, and use hook.
69837         dup2: work around mingw bug
69838         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69839         Reported by Simon Josefsson.
69841 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69843         glob: Fix C++ compilation.
69844         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69845         C++.
69847 2010-01-07  Bruno Haible  <bruno@clisp.org>
69849         Fix indentation of wctype.in.h, broken since 2007-01-06.
69850         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69852 2010-01-07  Bruno Haible  <bruno@clisp.org>
69854         mbslen: Avoid collision with system function.
69855         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69856         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69857         * m4/mbslen.m4: New file.
69858         * modules/mbslen (Files): Add it.
69859         (configure.ac): Invoke gl_MBSLEN.
69860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69861         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69862         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69863         via Ian Beckwith <ianb@erislabs.net>.
69865 2010-01-07  Bruno Haible  <bruno@clisp.org>
69867         dirent: Document the last fix.
69868         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69870 2010-01-07  Bruno Haible  <bruno@clisp.org>
69872         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69873         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69874         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69875         va_list are defined.
69876         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69877         Reported by Eric Blake.
69879 2010-01-07  Bruno Haible  <bruno@clisp.org>
69881         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69882         * modules/xlist (Depends-on): Add 'list',
69883         * modules/xoset (Depends-on): Add 'oset'.
69884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69886 2010-01-07  Bruno Haible  <bruno@clisp.org>
69888         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69889         * doc/posix-functions/strncasecmp.texi: Likewise.
69891 2010-01-07  Bruno Haible  <bruno@clisp.org>
69893         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69895 2010-01-07  John W. Eaton  <jwe@octave.org>
69897         wctype: allow C++ use
69898         * lib/wctype.in.h: Add extern "C" block for C++.
69900 2010-01-06  Eric Blake  <ebb9@byu.net>
69902         maint.mk: detect incorrect GFDL usage
69903         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69905 2010-01-06  Jim Meyering  <meyering@redhat.com>
69906         and Eric Blake  <ebb9@byu.net>
69908         maint.mk: ignore multi-line copyright in NEWS
69909         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69911 2010-01-06  Eric Blake  <ebb9@byu.net>
69913         select: add missing dependency
69914         * modules/select-tests (Depends-on): Move sockets dependency...
69915         * modules/select (Depends-on): ...here.
69916         Reported by Ian Beckwith.
69918         doc: regenerate INSTALL
69919         * doc/INSTALL: Reflect recent autoconf update.
69920         * doc/INSTALL.ISO: Likewise.
69921         * doc/INSTALL.UTF-8: Likewise.
69923         pread: fix compilation on glibc
69924         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69925         Reported by Ralf Wildenhues.
69927         dirent: fix test failure
69928         * lib/dirent.in.h (includes): Guarantee ino_t.
69929         Reported by Ralf Wildenhues.
69931 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69933         linkat, renameat: avoid bad free
69934         * lib/at-func2.c (at_func2): Fix typo.
69935         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69937 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69939         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69940         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69941         to avoid failure of symlink test later.
69943 2010-01-06  Eric Blake  <ebb9@byu.net>
69945         stdio, unistd: guarantee ssize_t
69946         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69947         2008 are exposed when needed.
69948         * lib/stdio.in.h (includes): Likewise.
69949         Reported by Ralf Wildenhues.
69951 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69953         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69954         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69955         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69957 2010-01-06  Jim Meyering  <meyering@redhat.com>
69959         readtokens: this module *does* require xalloc.h
69960         It uses only functions that were omitted by the old syntax-check rule.
69961         * lib/readtokens.c: Include "xalloc.h" once again.
69962         * modules/readtokens (Depends-on): Add xalloc.
69963         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69965 2010-01-05  Eric Blake  <ebb9@byu.net>
69967         maint: support 'make announcement' from a VPATH build
69968         * top/maint.mk (announcement): Look for correct NEWS file.
69970 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
69972         utimens (fdutimens): ignore a negative FD, per contract
69973         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
69974         when we have a valid file descriptor.  Otherwise, using a brand
69975         new glibc (with just-patched futimens that now fails with EBADF)
69976         would cause this function to fail with ENOSYS.
69977         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
69978         See also http://bugzilla.redhat.com/552320.
69980 2010-01-05  Eric Blake  <ebb9@byu.net>
69982         strcase: document what it provides
69983         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
69984         gnulib module.
69985         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
69986         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
69988 2010-01-05  Jim Meyering  <meyering@redhat.com>
69990         maint: remove useless inclusions of "xalloc.h"
69991         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
69992         * lib/readtokens.c: Likewise.
69993         * lib/same.c: Likewise.
69994         * modules/getloadavg (Depends-on): Remove xalloc.
69995         * modules/readtokens: Likewise.
69996         * modules/same: Likewise.
69998         maint.mk: include 4 more function names in alloca.h-checking regexp
69999         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70000         regexp.  Before, we would give a false-positive (saying alloca.h
70001         is included unnecessarily) when the only uses involved omitted symbols.
70003         xalloc.h: use consistent formatting
70004         * lib/xalloc.h: Move declarations to start in the first column.
70006 2010-01-05  Eric Blake  <ebb9@byu.net>
70008         mkdir: avoid xalloc
70009         * lib/mkdir.c (includes): Drop unused header.
70010         Reported by John W. Eaton.
70012 2010-01-04  Jim Meyering  <meyering@redhat.com>
70014         nl_langinfo: avoid configure-time syntax error
70015         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70016         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70017         the empty string.  Don't let that provoke a shell syntax error.
70019         regcomp, regexec, fnmatch: avoid array bounds read error
70020         * lib/regcomp.c (build_equiv_class): From glibc:
70021         Use only the low 24 bits of a findidx return value as an index
70022         into the weights array.  Patch by Ulrich Drepper:
70023         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70024         * lib/regexec.c (check_node_accept_bytes): Likewise.
70025         * lib/fnmatch_loop.c (FCT): Likewise.
70027         regcomp: skip collseq lookup when there are no rules
70028         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70029         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70031         regcomp: recognize ill-formed { } expressions
70032         * lib/regcomp.c (parse_dup_op): From glibc:
70033         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70035         regcomp: fix typo in comment
70036         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70037         s/satisfy/satisfies/.
70039         regcomp: sync from glibc: remove dead store
70040         * lib/regcomp.c (duplicate_node_closure): Remove useless
70041         search_duplicated_node call and dead store.
70043         regcomp: sync from glibc; always use nl_langinfo
70044         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70045         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70046         * modules/regex (Depends-on): Add nl_langinfo.
70048 2010-01-04  Eric Blake  <ebb9@byu.net>
70050         fdopendir: fix configure test
70051         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70053 2010-01-01  Bruno Haible  <bruno@clisp.org>
70055         wchar: Remove unused configure check.
70056         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70058 2010-01-01  Eric Blake  <ebb9@byu.net>
70060         headers: make check of system header explicit
70061         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70062         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70063         ourselves.
70064         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70067         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70068         internals.
70069         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70070         missing.
70071         Suggested by Bruno Haible.
70073 2010-01-01  Jim Meyering  <meyering@redhat.com>
70075         ChangeLog: tweak to eliminate unnecessary copyright line
70076         * ChangeLog: Remove a copyright line that was mistakenly updated
70077         by today's update-copyright run.  Reported by Eric Blake.
70079         test-update-copyright: don't let envvar setting cause test failure
70080         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70082 2010-01-01  Bruno Haible  <bruno@clisp.org>
70084         localename: Avoid gcc warning.
70085         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
70086         function if it is not used.
70088 2010-01-01  Jim Meyering  <meyering@redhat.com>
70090         update nearly all FSF copyright year lists to include 2010
70091         Use the same procedure as for 2009, outlined in
70092         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
70094         version-etc: set COPYRIGHT_YEAR to 2010
70095         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
70097 2009-12-31  Eric Blake  <ebb9@byu.net>
70099         doc: correct availability of cygwin 1.5.x getopt
70100         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
70101         variables.
70102         * doc/posix-functions/opterr.texi (opterr): Likewise.
70103         * doc/posix-functions/optind.texi (optind): Likewise.
70104         * doc/posix-functions/optopt.texi (optopt): Likewise.
70105         * doc/posix-functions/tzname.texi (tzname): Likewise.
70107         openat: update maintainer
70108         * modules/openat (Maintainer): Add myself.
70110         utimens: avoid shadowing warning
70111         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70112         buffers into one, to avoid shadowing, as well as avoiding a
70113         redundant stat.
70114         Reported by Jim Meyering.
70116         test-dup2: avoid compiler warning
70117         * tests/test-dup2.c (is_inheritable): Only define if used.
70119 2010-01-01  Bruno Haible  <bruno@clisp.org>
70121         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70122         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70123         defined, use wctomb instead of wcrtomb.
70125 2010-01-01  Bruno Haible  <bruno@clisp.org>
70127         iconv: Reject native Solaris iconv.
70128         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70129         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70131 2009-12-31  Bruno Haible  <bruno@clisp.org>
70133         * tests/test-signal.c (main): Remove test of 'SIG'.
70135 2009-12-31  Bruno Haible  <bruno@clisp.org>
70137         spawn: Fix incomplete fix.
70138         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70139         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70140         warnings for GNULIB_POSIXCHECK again.
70141         Reported by Eric Blake.
70143 2009-12-31  Bruno Haible  <bruno@clisp.org>
70145         Avoid namespace pollution on glibc systems.
70146         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70147         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70148         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70149         glibc systems.
70151 2009-12-31  Bruno Haible  <bruno@clisp.org>
70153         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70154         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70155         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70156         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70157         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70158         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70159         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70161 2009-12-31  Bruno Haible  <bruno@clisp.org>
70163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70164         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70165         afterwards.
70167 2009-12-31  Bruno Haible  <bruno@clisp.org>
70169         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70170         SYS_UTSNAME_H.
70172 2009-12-31  Bruno Haible  <bruno@clisp.org>
70174         spawn: Fix misapplied patch.
70175         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70176         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70177         warnings for GNULIB_POSIXCHECK.
70179 2009-12-31  Bruno Haible  <bruno@clisp.org>
70181         times: Update after sys_times changed.
70182         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70183         * modules/times (Files): Add it.
70184         (configure.ac): Invoke gl_FUNC_TIMES.
70186 2009-12-31  Bruno Haible  <bruno@clisp.org>
70188         Use AC_C_INLINE where necessary.
70189         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70190         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70192         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70193         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70194         * m4/mbiter.m4 (gl_MBITER): Likewise.
70195         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70196         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70197         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70198         * modules/u64 (configure.ac): Likewise.
70200 2009-12-31  Bruno Haible  <bruno@clisp.org>
70202         Use AC_C_INLINE instead of module 'inline' where possible.
70203         * modules/inline (Description): Clarify purpose.
70204         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70205         * modules/count-one-bits (Depends-on): Remove inline.
70206         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70207         * modules/openat (Depends-on): Remove inline.
70208         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70209         instead of depending on module 'inline'.
70210         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70211         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70212         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70213         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70214         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70215         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70216         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70217         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70218         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70219         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70220         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70221         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70222         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70223         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70224         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70225         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70226         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70227         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70228         Likewise.
70229         * modules/unictype/property-ascii-hex-digit (Depends-on,
70230         configure.ac): Likewise.
70231         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70232         configure.ac): Likewise.
70233         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70234         configure.ac): Likewise.
70235         * modules/unictype/property-bidi-block-separator (Depends-on,
70236         configure.ac): Likewise.
70237         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70238         configure.ac): Likewise.
70239         * modules/unictype/property-bidi-common-separator (Depends-on,
70240         configure.ac): Likewise.
70241         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70242         Likewise.
70243         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70244         configure.ac): Likewise.
70245         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70246         configure.ac): Likewise.
70247         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70248         configure.ac): Likewise.
70249         * modules/unictype/property-bidi-european-digit (Depends-on,
70250         configure.ac): Likewise.
70251         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70252         configure.ac): Likewise.
70253         * modules/unictype/property-bidi-left-to-right (Depends-on,
70254         configure.ac): Likewise.
70255         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70256         configure.ac): Likewise.
70257         * modules/unictype/property-bidi-other-neutral (Depends-on,
70258         configure.ac): Likewise.
70259         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70260         Likewise.
70261         * modules/unictype/property-bidi-segment-separator (Depends-on,
70262         configure.ac): Likewise.
70263         * modules/unictype/property-bidi-whitespace (Depends-on,
70264         configure.ac): Likewise.
70265         * modules/unictype/property-combining (Depends-on, configure.ac):
70266         Likewise.
70267         * modules/unictype/property-composite (Depends-on, configure.ac):
70268         Likewise.
70269         * modules/unictype/property-currency-symbol (Depends-on,
70270         configure.ac): Likewise.
70271         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70272         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70273         Likewise.
70274         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70275         configure.ac): Likewise.
70276         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70277         Likewise.
70278         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70279         Likewise.
70280         * modules/unictype/property-extender (Depends-on, configure.ac):
70281         Likewise.
70282         * modules/unictype/property-format-control (Depends-on, configure.ac):
70283         Likewise.
70284         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70285         Likewise.
70286         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70287         Likewise.
70288         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70289         Likewise.
70290         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70291         Likewise.
70292         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70293         Likewise.
70294         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70295         Likewise.
70296         * modules/unictype/property-id-start (Depends-on, configure.ac):
70297         Likewise.
70298         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70299         Likewise.
70300         * modules/unictype/property-ids-binary-operator (Depends-on,
70301         configure.ac): Likewise.
70302         * modules/unictype/property-ids-trinary-operator (Depends-on,
70303         configure.ac): Likewise.
70304         * modules/unictype/property-ignorable-control (Depends-on,
70305         configure.ac): Likewise.
70306         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70307         Likewise.
70308         * modules/unictype/property-join-control (Depends-on, configure.ac):
70309         Likewise.
70310         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70311         Likewise.
70312         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70313         Likewise.
70314         * modules/unictype/property-logical-order-exception (Depends-on,
70315         configure.ac): Likewise.
70316         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70317         Likewise.
70318         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70319         * modules/unictype/property-non-break (Depends-on, configure.ac):
70320         Likewise.
70321         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70322         Likewise.
70323         * modules/unictype/property-numeric (Depends-on, configure.ac):
70324         Likewise.
70325         * modules/unictype/property-other-alphabetic (Depends-on,
70326         configure.ac): Likewise.
70327         * modules/unictype/property-other-default-ignorable-code-point
70328         (Depends-on, configure.ac): Likewise.
70329         * modules/unictype/property-other-grapheme-extend (Depends-on,
70330         configure.ac): Likewise.
70331         * modules/unictype/property-other-id-continue (Depends-on,
70332         configure.ac): Likewise.
70333         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70334         Likewise.
70335         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70336         Likewise.
70337         * modules/unictype/property-other-math (Depends-on, configure.ac):
70338         Likewise.
70339         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70340         Likewise.
70341         * modules/unictype/property-paired-punctuation (Depends-on,
70342         configure.ac): Likewise.
70343         * modules/unictype/property-paragraph-separator (Depends-on,
70344         configure.ac): Likewise.
70345         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70346         Likewise.
70347         * modules/unictype/property-pattern-white-space (Depends-on,
70348         configure.ac): Likewise.
70349         * modules/unictype/property-private-use (Depends-on, configure.ac):
70350         Likewise.
70351         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70352         Likewise.
70353         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70354         Likewise.
70355         * modules/unictype/property-radical (Depends-on, configure.ac):
70356         Likewise.
70357         * modules/unictype/property-sentence-terminal (Depends-on,
70358         configure.ac): Likewise.
70359         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70360         Likewise.
70361         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70362         * modules/unictype/property-terminal-punctuation (Depends-on,
70363         configure.ac): Likewise.
70364         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70365         Likewise.
70366         * modules/unictype/property-unassigned-code-value (Depends-on,
70367         configure.ac): Likewise.
70368         * modules/unictype/property-unified-ideograph (Depends-on,
70369         configure.ac): Likewise.
70370         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70371         Likewise.
70372         * modules/unictype/property-variation-selector (Depends-on,
70373         configure.ac): Likewise.
70374         * modules/unictype/property-white-space (Depends-on, configure.ac):
70375         Likewise.
70376         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70377         Likewise.
70378         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70379         Likewise.
70380         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70381         Likewise.
70382         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70383         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70384         Likewise.
70386 2009-12-31  Bruno Haible  <bruno@clisp.org>
70388         Remove unnecessary AC_C_INLINE invocation.
70389         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70390         since 2009-08-21.
70392 2009-12-31  Jim Meyering  <meyering@redhat.com>
70394         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70395         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70396         With this change, we can all remove the gpg_key_ID = ... definition
70397         from our respective cfg.mk files.
70399         maint.mk: create announcement template in ~/, not in /tmp
70400         * top/maint.mk (emit_upload_commands): Adjust.
70401         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70402         Remove temporary file, .ci-msg.
70404 2009-12-31  Eric Blake  <ebb9@byu.net>
70406         link-warning: always build headers with link warnings
70407         * modules/arpa_inet (Makefile.am): Always build replacement
70408         header.
70409         * modules/ctype (Makefile.am): Likewise.
70410         * modules/dirent (Makefile.am): Likewise.
70411         * modules/inttypes (Makefile.am): Likewise.
70412         * modules/langinfo (Makefile.am): Likewise.
70413         * modules/locale (Makefile.am): Likewise.
70414         * modules/spawn (Makefile.am): Likewise.
70415         * modules/sys_file (Makefile.am): Likewise.
70416         * modules/sys_ioctl (Makefile.am): Likewise.
70417         * modules/sys_select (Makefile.am): Likewise.
70418         * modules/sys_socket (Makefile.am): Likewise.
70419         * modules/sys_times (Makefile.am): Likewise.
70420         * modules/sys_utsname (Makefile.am): Likewise.
70421         * modules/sys_wait (Makefile.am): Likewise.
70422         * modules/wchar (Makefile.am): Likewise.
70423         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70424         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70425         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70426         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70427         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70428         Likewise.
70429         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70430         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70431         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70432         Likewise.
70433         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70434         Likewise.
70435         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70437         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70439         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70440         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70441         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70442         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70443         (gl_WCHAR_H_DEFAULTS): Likewise.
70445 2009-12-31  Eric Blake  <ebb9@byu.net>
70447         signal, spawn: use link warnings
70448         * lib/signal.in.h (sigset_t): Make unconditional.
70449         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70450         (sigpending, sigprocmask, sigaction): Add link warnings.
70451         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70452         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70453         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70454         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70455         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70456         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70457         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70458         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70459         (posix_spawn_file_actions_destroy)
70460         (posix_spawn_file_actions_addopen)
70461         (posix_spawn_file_actions_addclose)
70462         (posix_spawn_file_actions_adddup2): Likewise.
70463         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70464         * tests/test-signal.c (main): Enhance test.
70466         spawn: improve wrapper support
70467         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70468         (gl_SPAWN_H_DEFAULTS): New defaults.
70469         * modules/spawn (Makefile.am): Substitute them.
70470         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70471         Only declare if missing or broken.
70473         sys_times, sys_utsname: use include_next
70474         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70475         header.
70476         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70477         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70478         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70479         * modules/sys_times (Depends-on): Add include_next.
70480         (Makefile.am): Substitute additional values.
70481         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70482         * lib/sys_times.in.h (includes): Include native header, if
70483         available.
70484         * lib/sys_utsname.in.h (includes): Likewise.
70485         * tests/test-sys_times.c (main): Enhance test.
70487         fdutimensat: revert prior patch
70488         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70489         utimens.h.
70490         Reported by Bruno Haible.
70492 2009-12-30  Eric Blake  <ebb9@byu.net>
70494         sys_wait: drop link-warning dependency
70495         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70496         link-warning efforts.
70497         * lib/sys_wait.in.h: Likewise.
70499         fdutimensat: remove bogus dependency
70500         * modules/fdutimensat (Depends-on): Drop inline.
70502         unistd: fix typo
70503         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70505 2009-12-30  Bruno Haible  <bruno@clisp.org>
70507         Fix compilation error with Solaris cc.
70508         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70509         * lib/unicase/u16-is-invariant.c: Likewise.
70510         * lib/unicase/u32-is-invariant.c: Likewise.
70511         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70513 2009-12-30  Bruno Haible  <bruno@clisp.org>
70515         Fix test crash.
70516         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70517         locales.
70518         Reported by Simon Josefsson <simon@josefsson.org>.
70520 2009-12-30  Bruno Haible  <bruno@clisp.org>
70522         Fix compilation error on most platforms.
70523         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70524         Reported by Simon Josefsson <simon@josefsson.org>
70525         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70527 2009-12-30  Eric Blake  <ebb9@byu.net>
70529         futimens, utimensat: work around ntfs-3g bug
70530         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70531         a ctime bug is present, and expand workaround to cover ntfs-3g.
70532         * lib/utimens.c (fdutimens, lutimens): Likewise.
70533         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70534         (validate_timespec): Adjust return value.
70535         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70536         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70537         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70539 2009-12-29  Eric Blake  <ebb9@byu.net>
70541         link-warning: make usage consistent
70542         * modules/ctype (Depends-on): Add link-warning.
70543         (Makefile.am): Update rules accordingly.
70544         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70545         * modules/locale (Depends-on, Makefile.am): Likewise.
70546         * modules/sys_file (Makefile.am): Likewise.
70547         * modules/getopt-posix (Makefile.am): Delete unused link warning
70548         efforts.
70549         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70550         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70551         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70552         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70554         stdio: remove unused variables
70555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70556         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70557         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70559         tests: test more substitute headers
70560         * modules/ctype-tests: New file.
70561         * modules/dirent-tests: Likewise.
70562         * modules/spawn-tests: Likewise.
70563         * modules/sys_file-tests: Likewise.
70564         * modules/sys_ioctl-tests: Likewise.
70565         * modules/sys_wait-tests: Likewise.
70566         * tests/test-ctype.c: Likewise.
70567         * tests/test-dirent.c: Likewise.
70568         * tests/test-spawn.c: Likewise.
70569         * tests/test-sys_file.c: Likewise.
70570         * tests/test-sys_ioctl.c: Likewise.
70571         * tests/test-sys_wait.c: Likewise.
70572         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70573         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70574         whether or not flock is in use.
70576         tests: remove License section from module
70577         * modules/arpa_inet-tests: Remove unneeded section.
70578         * modules/byteswap-tests: Likewise.
70579         * modules/ceilf-tests: Likewise.
70580         * modules/ceill-tests: Likewise.
70581         * modules/crypto/des-tests: Likewise.
70582         * modules/crypto/gc-arcfour-tests: Likewise.
70583         * modules/crypto/gc-arctwo-tests: Likewise.
70584         * modules/crypto/gc-des-tests: Likewise.
70585         * modules/crypto/gc-hmac-md5-tests: Likewise.
70586         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70587         * modules/crypto/gc-md2-tests: Likewise.
70588         * modules/crypto/gc-md4-tests: Likewise.
70589         * modules/crypto/gc-md5-tests: Likewise.
70590         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70591         * modules/crypto/gc-rijndael-tests: Likewise.
70592         * modules/crypto/gc-sha1-tests: Likewise.
70593         * modules/crypto/gc-tests: Likewise.
70594         * modules/crypto/md2-tests: Likewise.
70595         * modules/crypto/md4-tests: Likewise.
70596         * modules/fcntl-h-tests: Likewise.
70597         * modules/floorf-tests: Likewise.
70598         * modules/floorl-tests: Likewise.
70599         * modules/frexp-nolibm-tests: Likewise.
70600         * modules/frexp-tests: Likewise.
70601         * modules/frexpl-nolibm-tests: Likewise.
70602         * modules/frexpl-tests: Likewise.
70603         * modules/getaddrinfo-tests: Likewise.
70604         * modules/inttypes-tests: Likewise.
70605         * modules/isfinite-tests: Likewise.
70606         * modules/isinf-tests: Likewise.
70607         * modules/ldexpl-tests: Likewise.
70608         * modules/locale-tests: Likewise.
70609         * modules/math-tests: Likewise.
70610         * modules/netdb-tests: Likewise.
70611         * modules/netinet_in-tests: Likewise.
70612         * modules/printf-frexp-tests: Likewise.
70613         * modules/printf-frexpl-tests: Likewise.
70614         * modules/priv-set-tests: Likewise.
70615         * modules/random_r-tests: Likewise.
70616         * modules/round-tests: Likewise.
70617         * modules/roundf-tests: Likewise.
70618         * modules/roundl-tests: Likewise.
70619         * modules/search-tests: Likewise.
70620         * modules/select-tests: Likewise.
70621         * modules/signal-tests: Likewise.
70622         * modules/stdbool-tests: Likewise.
70623         * modules/stddef-tests: Likewise.
70624         * modules/stdint-tests: Likewise.
70625         * modules/stdio-tests: Likewise.
70626         * modules/stdlib-tests: Likewise.
70627         * modules/string-tests: Likewise.
70628         * modules/strings-tests: Likewise.
70629         * modules/sys_select-tests: Likewise.
70630         * modules/sys_socket-tests: Likewise.
70631         * modules/sys_stat-tests: Likewise.
70632         * modules/sys_time-tests: Likewise.
70633         * modules/sys_utsname-tests: Likewise.
70634         * modules/sysexits-tests: Likewise.
70635         * modules/time-tests: Likewise.
70636         * modules/trunc-tests: Likewise.
70637         * modules/truncf-tests: Likewise.
70638         * modules/truncl-tests: Likewise.
70639         * modules/tsearch-tests: Likewise.
70640         * modules/unistd-tests: Likewise.
70641         * modules/wchar-tests: Likewise.
70642         * modules/wctype-tests: Likewise.
70644         tests: fix license on several tests
70645         * tests/test-des.c: Update to GPLv3+.
70646         * tests/test-flock.c: Likewise.
70647         * tests/test-fsync.c: Likewise.
70648         * tests/test-futimens.h: Likewise.
70649         * tests/test-gc-arcfour.c: Likewise.
70650         * tests/test-gc-arctwo.c: Likewise.
70651         * tests/test-gc-des.c: Likewise.
70652         * tests/test-gc-hmac-md5.c: Likewise.
70653         * tests/test-gc-hmac-sha1.c: Likewise.
70654         * tests/test-gc-md2.c: Likewise.
70655         * tests/test-gc-md4.c: Likewise.
70656         * tests/test-gc-md5.c: Likewise.
70657         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70658         * tests/test-gc-rijndael.c: Likewise.
70659         * tests/test-gc-sha1.c: Likewise.
70660         * tests/test-gc.c: Likewise.
70661         * tests/test-getcwd.c: Likewise.
70662         * tests/test-link.c: Likewise.
70663         * tests/test-link.h: Likewise.
70664         * tests/test-lutimens.h: Likewise.
70665         * tests/test-md2.c: Likewise.
70666         * tests/test-md4.c: Likewise.
70667         * tests/test-mkdir.h: Likewise.
70668         * tests/test-rename.c: Likewise.
70669         * tests/test-rename.h: Likewise.
70670         * tests/test-safe-alloc.c: Likewise.
70671         * tests/test-utimens-common.h: Likewise.
70672         * tests/test-utimens.h: Likewise.
70674         maint: sync license texts
70675         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70676         * doc/gpl-3.0.texi: Revert copyright year update.
70677         * doc/lgpl-3.0.texi: Likewise.
70679 2009-12-29  Jim Meyering  <meyering@redhat.com>
70681         update nearly all FSF copyright year lists to include 2009
70682         The files named by the following are exempted:
70683             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70684               test -f "$dst" && { echo "$dst"; continue; }
70685               test -d "$dst" || continue
70686               echo "$dst"/$(basename "$src")
70687             done > exempt
70688             git ls-files tests/unictype >> exempt
70689         In the remaining files, convert to all-interval notation if
70690         - there is already at least one year interval like 2000-2003
70691         - the file is maintained by me
70692         - the file is in lib/uni*/, where that style already prevails
70693         Otherwise, use update-copyright's default.
70695 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70696         and Eric Blake  <ebb9@byu.net>
70698         tests: don't require debug system() to pass
70699         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70700         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70701         * tests/test-unlink.h (test_unlink_func): Likewise.
70702         * tests/test-fstatat.c (main): ...into callers.
70703         * tests/test-lstat.c (main): Likewise.
70704         * tests/test-rmdir.c (main): Likewise.
70705         * tests/test-unlink.c (main): Likewise.
70706         * tests/test-unlinkat.c (main): Likewise.
70707         * tests/test-areadlink-with-size.c (main): Don't require a
70708         debug-only system call to pass, aiding cross-testing to mingw.
70709         * tests/test-areadlink.c (main): Likewise.
70710         * tests/test-areadlinkat-with-size.c (main): Likewise.
70711         * tests/test-areadlinkat.c (main): Likewise.
70712         * tests/test-canonicalize-lgpl.c (main): Likewise.
70713         * tests/test-canonicalize.c (main): Likewise.
70714         * tests/test-chown.c (main): Likewise.
70715         * tests/test-fchownat.c (main): Likewise.
70716         * tests/test-lchown.c (main): Likewise.
70717         * tests/test-fdutimensat.c (main): Likewise.
70718         * tests/test-futimens.c (main): Likewise.
70719         * tests/test-link.c (main): Likewise.
70720         * tests/test-linkat.c (main): Likewise.
70721         * tests/test-mkdir.c (main): Likewise.
70722         * tests/test-mkdirat.c (main): Likewise.
70723         * tests/test-mkfifo.c (main): Likewise.
70724         * tests/test-mkfifoat.c (main): Likewise.
70725         * tests/test-mknod.c (main): Likewise.
70726         * tests/test-readlink.c (main): Likewise.
70727         * tests/test-remove.c (main): Likewise.
70728         * tests/test-rename.c (main): Likewise.
70729         * tests/test-renameat.c (main): Likewise.
70730         * tests/test-symlink.c (main): Likewise.
70731         * tests/test-symlinkat.c (main): Likewise.
70732         * tests/test-utimens.c (main): Likewise.
70733         * tests/test-utimensat.c (main): Likewise.
70735 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70737         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70738         on $(UNUSED_PARAMETER_H) to avoid build failure.
70740 2009-12-28  Jim Meyering  <meyering@redhat.com>
70742         update-copyright: you may specify a max. line length other than 72
70743         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70745         maint: use consistent FSF copyright line syntax
70746         * lib/posixtm.c: Add missing comma in FSF copyright line.
70747         * lib/posixtm.h: Likewise.
70748         * lib/getugroups.c: Add missing ", Inc.".
70750         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70751         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70752         FSF copyright line.  Remove trailing blanks.
70754 2009-12-28  Eric Blake  <ebb9@byu.net>
70756         test-dup2: reduce dependencies
70757         * modules/cloexec (Configure.ac): Set witness.
70758         * modules/dup2-tests (Depends-on): Drop cloexec.
70759         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70760         not present.
70761         Suggested by Bruno Haible.
70763 2009-12-26  Bruno Haible  <bruno@clisp.org>
70765         Remove an unneeded dependency.
70766         * modules/fseterr (Depends-on): Remove dup2.
70768 2009-12-26  Eric Blake  <ebb9@byu.net>
70770         tests: use macros.h in more places
70771         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70772         (ASSERT_STREAM): Provide default of stderr.
70773         * tests/test-dirent-safer.c: Include macros.h, using alternate
70774         stream for assertions.
70775         * tests/test-dup-safer.c: Likewise.
70776         * tests/test-freopen-safer.c: Likewise.
70777         * tests/test-getopt.c: Likewise.
70778         * tests/test-openat-safer.c: Likewise.
70779         * tests/test-pipe.c: Likewise.
70780         * tests/test-popen-safer.c: Likewise.
70781         * modules/dirent-safer-tests (Files): Include macros.h.
70782         * modules/unistd-safer-tests (Files): Likewise.
70783         * modules/freopen-safer-tests (Files): Likewise.
70784         * modules/getopt-posix-tests (Files): Likewise.
70785         * modules/openat-safer-tests (Files): Likewise.
70786         * modules/pipe-tests (Files): Likewise.
70788 2009-12-26  Bruno Haible  <bruno@clisp.org>
70790         javacomp-script: Portability fix.
70791         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70792         that it also works on Solaris.
70794 2009-12-26  Bruno Haible  <bruno@clisp.org>
70796         localename: Fix storage allocation of gl_locale_name_thread's result.
70797         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70798         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70799         all platforms that have 'uselocale'.
70800         (gl_locale_name_thread_unsafe): New function, extracted from
70801         gl_locale_name_thread.
70802         (gl_locale_name_thread): Call struniq on all platforms that have
70803         'uselocale'.
70804         * tests/test-localename.c (test_locale_name_thread): Check that the
70805         resulting strings are permanently allocated.
70806         * modules/localename-tests (Depends-on): Add strdup.
70808 2009-12-26  Bruno Haible  <bruno@clisp.org>
70810         * tests/test-localename.c (categories): Fill in the strings.
70812 2009-12-26  Jim Meyering  <meyering@redhat.com>
70814         isdir: complete the removal of m4/isdir.m4
70815         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70817         isdir: clean up, since at least grep still uses it
70818         * lib/isdir.c: Include "isdir.h".
70819         (S_ISDIR): Remove now-unneeded definition.
70820         * modules/isdir (Files): Add lib/isdir.h.
70821         * lib/isdir.h: New file, with declaration.
70822         * m4/isdir.m4: Remove file -- unneeded.
70824 2009-12-25  Bruno Haible  <bruno@clisp.org>
70826         selinux-h: Make generated .h files standalone.
70827         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70828         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70829         * lib/se-selinux.in.h: Likewise.
70830         * modules/selinux-h (Depends-on): Add unused-parameter.
70831         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70832         selinux/selinux.h and selinux/context.h.
70833         Suggested by Eric Blake.
70835 2009-12-25  Bruno Haible  <bruno@clisp.org>
70837         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70838         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70839         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70840         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70841         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70843 2009-12-24  Bruno Haible  <bruno@clisp.org>
70845         openat: Fix warning.
70846         * lib/openat-proc.c: Include <unistd.h>.
70848 2009-12-24  Bruno Haible  <bruno@clisp.org>
70850         New module 'unused-parameter'.
70851         * build-aux/unused-parameter.h: New file, extracted from earlier
70852         gnulib-common.m4.
70853         * modules/unused-parameter: New file.
70854         * lib/unistr.h: Include unused-parameter.h.
70855         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70856         _GL_UNUSED.
70857         * modules/unistr/base (Depends-on): Add unused-parameter.
70859 2009-12-24  Bruno Haible  <bruno@clisp.org>
70861         Add missing dependencies to 'extensions' module.
70862         * m4/extensions.m4: Add comment.
70863         * modules/accept4 (Depends-on): Add extensions.
70864         * modules/dup3 (Depends-on): Likewise.
70865         * modules/fcntl (Depends-on): Likewise.
70866         * modules/futimens (Depends-on): Likewise.
70867         * modules/mknod (Depends-on): Likewise.
70868         * modules/pipe2 (Depends-on): Likewise.
70869         * modules/stat-time (Depends-on): Likewise.
70870         * modules/strcasestr-simple (Depends-on): Likewise.
70871         * modules/strsignal (Depends-on): Likewise.
70872         * modules/utimensat (Depends-on): Likewise.
70873         * modules/localcharset (Depends-on): Likewise. Needed because of
70874         gl_FCNTL_O_FLAGS.
70875         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70876         AC_TYPE_MBSTATE_T.
70877         * modules/wcsnrtombs (Depends-on): Likewise.
70878         * modules/wcsrtombs (Depends-on): Likewise.
70880 2009-12-24  Bruno Haible  <bruno@clisp.org>
70882         binary-io: Avoid gcc warning due to SET_BINARY.
70883         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70884         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70886 2009-12-24  Bruno Haible  <bruno@clisp.org>
70888         Avoid future namespace pollution on glibc systems.
70889         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70890         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70891         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70892         glibc systems.
70894 2009-12-24  Bruno Haible  <bruno@clisp.org>
70896         Refactor common macros used in tests.
70897         * tests/macros.h: New file.
70898         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70899         and/or <stdlib.h>, if appropriate.
70900         (ASSERT, SIZEOF): Remove macros.
70901         * tests/test-areadlink-with-size.c: Likewise.
70902         * tests/test-areadlinkat.c: Likewise.
70903         * tests/test-areadlinkat-with-size.c: Likewise.
70904         * tests/test-argmatch.c: Likewise.
70905         * tests/test-argv-iter.c: Likewise.
70906         * tests/test-array-mergesort.c: Likewise.
70907         * tests/test-array_list.c: Likewise.
70908         * tests/test-array_oset.c: Likewise.
70909         * tests/test-avltree_list.c: Likewise.
70910         * tests/test-avltree_oset.c: Likewise.
70911         * tests/test-avltreehash_list.c: Likewise.
70912         * tests/test-base64.c: Likewise.
70913         * tests/test-binary-io.c: Likewise.
70914         * tests/test-bitrotate.c: Likewise.
70915         * tests/test-btowc.c: Likewise.
70916         * tests/test-byteswap.c: Likewise.
70917         * tests/test-c-ctype.c: Likewise.
70918         * tests/test-c-stack.c: Likewise.
70919         * tests/test-c-strcasecmp.c: Likewise.
70920         * tests/test-c-strcasestr.c: Likewise.
70921         * tests/test-c-strncasecmp.c: Likewise.
70922         * tests/test-c-strstr.c: Likewise.
70923         * tests/test-canonicalize-lgpl.c: Likewise.
70924         * tests/test-canonicalize.c: Likewise.
70925         * tests/test-carray_list.c: Likewise.
70926         * tests/test-ceilf1.c: Likewise.
70927         * tests/test-ceilf2.c: Likewise.
70928         * tests/test-ceill.c: Likewise.
70929         * tests/test-chown.c: Likewise.
70930         * tests/test-cloexec.c: Likewise.
70931         * tests/test-copy-acl.c: Likewise.
70932         * tests/test-copy-file.c: Likewise.
70933         * tests/test-count-one-bits.c: Likewise.
70934         * tests/test-dprintf-posix.c: Likewise.
70935         * tests/test-dup2.c: Likewise.
70936         * tests/test-dup3.c: Likewise.
70937         * tests/test-duplocale.c: Likewise.
70938         * tests/test-fbufmode.c: Likewise.
70939         * tests/test-fchdir.c: Likewise.
70940         * tests/test-fchownat.c: Likewise.
70941         * tests/test-fcntl-safer.c: Likewise.
70942         * tests/test-fcntl.c: Likewise.
70943         * tests/test-fdopendir.c: Likewise.
70944         * tests/test-fdutimensat.c: Likewise.
70945         * tests/test-fflush2.c: Likewise.
70946         * tests/test-file-has-acl.c: Likewise.
70947         * tests/test-filevercmp.c: Likewise.
70948         * tests/test-flock.c: Likewise.
70949         * tests/test-floorf1.c: Likewise.
70950         * tests/test-floorf2.c: Likewise.
70951         * tests/test-floorl.c: Likewise.
70952         * tests/test-fnmatch.c: Likewise.
70953         * tests/test-fopen.h: Likewise.
70954         * tests/test-fpending.c: Likewise.
70955         * tests/test-fprintf-posix.c: Likewise.
70956         * tests/test-fpurge.c: Likewise.
70957         * tests/test-freadable.c: Likewise.
70958         * tests/test-freadahead.c: Likewise.
70959         * tests/test-freading.c: Likewise.
70960         * tests/test-freadptr.c: Likewise.
70961         * tests/test-freadptr2.c: Likewise.
70962         * tests/test-freadseek.c: Likewise.
70963         * tests/test-freopen.c: Likewise.
70964         * tests/test-frexp.c: Likewise.
70965         * tests/test-frexpl.c: Likewise.
70966         * tests/test-fseek.c: Likewise.
70967         * tests/test-fseeko.c: Likewise.
70968         * tests/test-fstatat.c: Likewise.
70969         * tests/test-fstrcmp.c: Likewise.
70970         * tests/test-fsync.c: Likewise.
70971         * tests/test-ftell.c: Likewise.
70972         * tests/test-ftello.c: Likewise.
70973         * tests/test-func.c: Likewise.
70974         * tests/test-futimens.c: Likewise.
70975         * tests/test-fwritable.c: Likewise.
70976         * tests/test-fwriting.c: Likewise.
70977         * tests/test-getcwd.c: Likewise.
70978         * tests/test-getdate.c: Likewise.
70979         * tests/test-getdelim.c: Likewise.
70980         * tests/test-getdtablesize.c: Likewise.
70981         * tests/test-getgroups.c: Likewise.
70982         * tests/test-getline.c: Likewise.
70983         * tests/test-getndelim2.c: Likewise.
70984         * tests/test-glob.c: Likewise.
70985         * tests/test-hash.c: Likewise.
70986         * tests/test-i-ring.c: Likewise.
70987         * tests/test-iconv-utf.c: Likewise.
70988         * tests/test-iconv.c: Likewise.
70989         * tests/test-idpriv-drop.c: Likewise.
70990         * tests/test-idpriv-droptemp.c: Likewise.
70991         * tests/test-inet_ntop.c: Likewise.
70992         * tests/test-inet_pton.c: Likewise.
70993         * tests/test-isblank.c: Likewise.
70994         * tests/test-isfinite.c: Likewise.
70995         * tests/test-isinf.c: Likewise.
70996         * tests/test-isnan.c: Likewise.
70997         * tests/test-isnand.h: Likewise.
70998         * tests/test-isnanf.h: Likewise.
70999         * tests/test-isnanl.h: Likewise.
71000         * tests/test-lchown.c: Likewise.
71001         * tests/test-ldexpl.c: Likewise.
71002         * tests/test-link.c: Likewise.
71003         * tests/test-linkat.c: Likewise.
71004         * tests/test-linked_list.c: Likewise.
71005         * tests/test-linkedhash_list.c: Likewise.
71006         * tests/test-localename.c: Likewise.
71007         * tests/test-lseek.c: Likewise.
71008         * tests/test-lstat.c: Likewise.
71009         * tests/test-mbmemcasecmp.c: Likewise.
71010         * tests/test-mbmemcasecoll.c: Likewise.
71011         * tests/test-mbrtowc.c: Likewise.
71012         * tests/test-mbscasecmp.c: Likewise.
71013         * tests/test-mbscasestr1.c: Likewise.
71014         * tests/test-mbscasestr2.c: Likewise.
71015         * tests/test-mbscasestr3.c: Likewise.
71016         * tests/test-mbscasestr4.c: Likewise.
71017         * tests/test-mbschr.c: Likewise.
71018         * tests/test-mbscspn.c: Likewise.
71019         * tests/test-mbsinit.c: Likewise.
71020         * tests/test-mbsncasecmp.c: Likewise.
71021         * tests/test-mbsnrtowcs.c: Likewise.
71022         * tests/test-mbspbrk.c: Likewise.
71023         * tests/test-mbspcasecmp.c: Likewise.
71024         * tests/test-mbsrchr.c: Likewise.
71025         * tests/test-mbsrtowcs.c: Likewise.
71026         * tests/test-mbsspn.c: Likewise.
71027         * tests/test-mbsstr1.c: Likewise.
71028         * tests/test-mbsstr2.c: Likewise.
71029         * tests/test-mbsstr3.c: Likewise.
71030         * tests/test-memchr.c: Likewise.
71031         * tests/test-memchr2.c: Likewise.
71032         * tests/test-memcmp.c: Likewise.
71033         * tests/test-memmem.c: Likewise.
71034         * tests/test-memrchr.c: Likewise.
71035         * tests/test-mkdir.c: Likewise.
71036         * tests/test-mkdirat.c: Likewise.
71037         * tests/test-mkfifo.c: Likewise.
71038         * tests/test-mkfifoat.c: Likewise.
71039         * tests/test-mknod.c: Likewise.
71040         * tests/test-nanosleep.c: Likewise.
71041         * tests/test-nl_langinfo.c: Likewise.
71042         * tests/test-obstack-printf.c: Likewise.
71043         * tests/test-open.c: Likewise.
71044         * tests/test-openat.c: Likewise.
71045         * tests/test-pipe-filter-gi1.c: Likewise.
71046         * tests/test-pipe-filter-gi2-main.c: Likewise.
71047         * tests/test-pipe-filter-ii1.c: Likewise.
71048         * tests/test-pipe-filter-ii2-main.c: Likewise.
71049         * tests/test-pipe2.c: Likewise.
71050         * tests/test-popen.h: Likewise.
71051         * tests/test-posixtm.c: Likewise.
71052         * tests/test-pread.c: Likewise.
71053         * tests/test-printf-frexp.c: Likewise.
71054         * tests/test-printf-frexpl.c: Likewise.
71055         * tests/test-printf-posix.c: Likewise.
71056         * tests/test-priv-set.c: Likewise.
71057         * tests/test-quotearg.c: Likewise.
71058         * tests/test-random_r.c: Likewise.
71059         * tests/test-rawmemchr.c: Likewise.
71060         * tests/test-rbtree_list.c: Likewise.
71061         * tests/test-rbtree_oset.c: Likewise.
71062         * tests/test-rbtreehash_list.c: Likewise.
71063         * tests/test-readlink.c: Likewise.
71064         * tests/test-remove.c: Likewise.
71065         * tests/test-rename.c: Likewise.
71066         * tests/test-renameat.c: Likewise.
71067         * tests/test-rmdir.c: Likewise.
71068         * tests/test-round1.c: Likewise.
71069         * tests/test-roundf1.c: Likewise.
71070         * tests/test-roundl.c: Likewise.
71071         * tests/test-safe-alloc.c: Likewise.
71072         * tests/test-sameacls.c: Likewise.
71073         * tests/test-set-mode-acl.c: Likewise.
71074         * tests/test-setenv.c: Likewise.
71075         * tests/test-sigaction.c: Likewise.
71076         * tests/test-signbit.c: Likewise.
71077         * tests/test-sleep.c: Likewise.
71078         * tests/test-snprintf-posix.c: Likewise.
71079         * tests/test-snprintf.c: Likewise.
71080         * tests/test-sprintf-posix.c: Likewise.
71081         * tests/test-stat-time.c: Likewise.
71082         * tests/test-stat.c: Likewise.
71083         * tests/test-strcasestr.c: Likewise.
71084         * tests/test-strchrnul.c: Likewise.
71085         * tests/test-strerror.c: Likewise.
71086         * tests/test-striconv.c: Likewise.
71087         * tests/test-striconveh.c: Likewise.
71088         * tests/test-striconveha.c: Likewise.
71089         * tests/test-strsignal.c: Likewise.
71090         * tests/test-strstr.c: Likewise.
71091         * tests/test-strtod.c: Likewise.
71092         * tests/test-strverscmp.c: Likewise.
71093         * tests/test-symlink.c: Likewise.
71094         * tests/test-symlinkat.c: Likewise.
71095         * tests/test-trunc1.c: Likewise.
71096         * tests/test-trunc2.c: Likewise.
71097         * tests/test-truncf1.c: Likewise.
71098         * tests/test-truncf2.c: Likewise.
71099         * tests/test-truncl.c: Likewise.
71100         * tests/test-uname.c: Likewise.
71101         * tests/test-unlink.c: Likewise.
71102         * tests/test-unlinkat.c: Likewise.
71103         * tests/test-unsetenv.c: Likewise.
71104         * tests/test-usleep.c: Likewise.
71105         * tests/test-utimens.c: Likewise.
71106         * tests/test-utimensat.c: Likewise.
71107         * tests/test-vasnprintf-posix.c: Likewise.
71108         * tests/test-vasnprintf-posix2.c: Likewise.
71109         * tests/test-vasnprintf.c: Likewise.
71110         * tests/test-vasprintf-posix.c: Likewise.
71111         * tests/test-vasprintf.c: Likewise.
71112         * tests/test-vdprintf-posix.c: Likewise.
71113         * tests/test-vfprintf-posix.c: Likewise.
71114         * tests/test-vprintf-posix.c: Likewise.
71115         * tests/test-vsnprintf-posix.c: Likewise.
71116         * tests/test-vsnprintf.c: Likewise.
71117         * tests/test-vsprintf-posix.c: Likewise.
71118         * tests/test-wcrtomb.c: Likewise.
71119         * tests/test-wcsnrtombs.c: Likewise.
71120         * tests/test-wcsrtombs.c: Likewise.
71121         * tests/test-wctype.c: Likewise.
71122         * tests/test-wcwidth.c: Likewise.
71123         * tests/test-xfprintf-posix.c: Likewise.
71124         * tests/test-xmemdup0.c: Likewise.
71125         * tests/test-xprintf-posix.c: Likewise.
71126         * tests/test-xvasprintf.c: Likewise.
71127         * tests/unicase/test-locale-language.c: Likewise.
71128         * tests/unicase/test-mapping-part1.h: Likewise.
71129         * tests/unicase/test-predicate-part1.h: Likewise.
71130         * tests/unicase/test-u8-casecmp.c: Likewise.
71131         * tests/unicase/test-u8-casecoll.c: Likewise.
71132         * tests/unicase/test-u8-casefold.c: Likewise.
71133         * tests/unicase/test-u8-is-cased.c: Likewise.
71134         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71135         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71136         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71137         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71138         * tests/unicase/test-u8-tolower.c: Likewise.
71139         * tests/unicase/test-u8-totitle.c: Likewise.
71140         * tests/unicase/test-u8-toupper.c: Likewise.
71141         * tests/unicase/test-u16-casecmp.c: Likewise.
71142         * tests/unicase/test-u16-casecoll.c: Likewise.
71143         * tests/unicase/test-u16-casefold.c: Likewise.
71144         * tests/unicase/test-u16-is-cased.c: Likewise.
71145         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71146         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71147         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71148         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71149         * tests/unicase/test-u16-tolower.c: Likewise.
71150         * tests/unicase/test-u16-totitle.c: Likewise.
71151         * tests/unicase/test-u16-toupper.c: Likewise.
71152         * tests/unicase/test-u32-casecmp.c: Likewise.
71153         * tests/unicase/test-u32-casecoll.c: Likewise.
71154         * tests/unicase/test-u32-casefold.c: Likewise.
71155         * tests/unicase/test-u32-is-cased.c: Likewise.
71156         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71157         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71158         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71159         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71160         * tests/unicase/test-u32-tolower.c: Likewise.
71161         * tests/unicase/test-u32-totitle.c: Likewise.
71162         * tests/unicase/test-u32-toupper.c: Likewise.
71163         * tests/unicase/test-ulc-casecmp.c: Likewise.
71164         * tests/unicase/test-ulc-casecoll.c: Likewise.
71165         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71166         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71167         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71168         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71169         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71170         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71171         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71172         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71173         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71174         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71175         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71176         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71177         * tests/unictype/test-bidi_byname.c: Likewise.
71178         * tests/unictype/test-bidi_name.c: Likewise.
71179         * tests/unictype/test-bidi_of.c: Likewise.
71180         * tests/unictype/test-bidi_test.c: Likewise.
71181         * tests/unictype/test-block_list.c: Likewise.
71182         * tests/unictype/test-block_of.c: Likewise.
71183         * tests/unictype/test-block_test.c: Likewise.
71184         * tests/unictype/test-categ_and.c: Likewise.
71185         * tests/unictype/test-categ_and_not.c: Likewise.
71186         * tests/unictype/test-categ_byname.c: Likewise.
71187         * tests/unictype/test-categ_name.c: Likewise.
71188         * tests/unictype/test-categ_none.c: Likewise.
71189         * tests/unictype/test-categ_of.c: Likewise.
71190         * tests/unictype/test-categ_or.c: Likewise.
71191         * tests/unictype/test-categ_test_withtable.c: Likewise.
71192         * tests/unictype/test-combining.c: Likewise.
71193         * tests/unictype/test-decdigit.c: Likewise.
71194         * tests/unictype/test-digit.c: Likewise.
71195         * tests/unictype/test-mirror.c: Likewise.
71196         * tests/unictype/test-numeric.c: Likewise.
71197         * tests/unictype/test-pr_byname.c: Likewise.
71198         * tests/unictype/test-pr_test.c: Likewise.
71199         * tests/unictype/test-predicate-part1.h: Likewise.
71200         * tests/unictype/test-scripts.c: Likewise.
71201         * tests/unictype/test-sy_c_ident.c: Likewise.
71202         * tests/unictype/test-sy_java_ident.c: Likewise.
71203         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71204         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71205         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71206         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71207         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71208         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71209         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71210         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71211         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71212         * tests/uninorm/test-compat-decomposition.c: Likewise.
71213         * tests/uninorm/test-composition.c: Likewise.
71214         * tests/uninorm/test-decomposing-form.c: Likewise.
71215         * tests/uninorm/test-decomposition.c: Likewise.
71216         * tests/uninorm/test-u8-nfc.c: Likewise.
71217         * tests/uninorm/test-u8-nfd.c: Likewise.
71218         * tests/uninorm/test-u8-nfkc.c: Likewise.
71219         * tests/uninorm/test-u8-nfkd.c: Likewise.
71220         * tests/uninorm/test-u8-normcmp.c: Likewise.
71221         * tests/uninorm/test-u8-normcoll.c: Likewise.
71222         * tests/uninorm/test-u16-nfc.c: Likewise.
71223         * tests/uninorm/test-u16-nfd.c: Likewise.
71224         * tests/uninorm/test-u16-nfkc.c: Likewise.
71225         * tests/uninorm/test-u16-nfkd.c: Likewise.
71226         * tests/uninorm/test-u16-normcmp.c: Likewise.
71227         * tests/uninorm/test-u16-normcoll.c: Likewise.
71228         * tests/uninorm/test-u32-nfc.c: Likewise.
71229         * tests/uninorm/test-u32-nfd.c: Likewise.
71230         * tests/uninorm/test-u32-nfkc.c: Likewise.
71231         * tests/uninorm/test-u32-nfkd.c: Likewise.
71232         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71233         * tests/uninorm/test-u32-normcmp.c: Likewise.
71234         * tests/uninorm/test-u32-normcoll.c: Likewise.
71235         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71236         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71237         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71238         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71239         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71240         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71241         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71242         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71243         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71244         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71245         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71246         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71247         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71248         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71249         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71250         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71251         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71252         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71253         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71254         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71255         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71256         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71257         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71258         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71259         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71260         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71261         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71262         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71263         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71264         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71265         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71266         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71267         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71268         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71269         * tests/uniwidth/test-u8-width.c: Likewise.
71270         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71271         * tests/uniwidth/test-u16-width.c: Likewise.
71272         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71273         * tests/uniwidth/test-u32-width.c: Likewise.
71274         * tests/uniwidth/test-uc_width.c: Likewise.
71275         * tests/uniwidth/test-uc_width2.c: Likewise.
71276         * modules/acl-tests (Files): Add tests/macros.h.
71277         * modules/areadlink-tests (Files): Likewise.
71278         * modules/areadlink-with-size-tests (Files): Likewise.
71279         * modules/areadlinkat-tests (Files): Likewise.
71280         * modules/areadlinkat-with-size-tests (Files): Likewise.
71281         * modules/argmatch-tests (Files): Likewise.
71282         * modules/argv-iter-tests (Files): Likewise.
71283         * modules/array-list-tests (Files): Likewise.
71284         * modules/array-mergesort-tests (Files): Likewise.
71285         * modules/array-oset-tests (Files): Likewise.
71286         * modules/avltree-list-tests (Files): Likewise.
71287         * modules/avltree-oset-tests (Files): Likewise.
71288         * modules/avltreehash-list-tests (Files): Likewise.
71289         * modules/base64-tests (Files): Likewise.
71290         * modules/binary-io-tests (Files): Likewise.
71291         * modules/bitrotate-tests (Files): Likewise.
71292         * modules/btowc-tests (Files): Likewise.
71293         * modules/byteswap-tests (Files): Likewise.
71294         * modules/c-ctype-tests (Files): Likewise.
71295         * modules/c-stack-tests (Files): Likewise.
71296         * modules/c-strcase-tests (Files): Likewise.
71297         * modules/c-strcasestr-tests (Files): Likewise.
71298         * modules/c-strstr-tests (Files): Likewise.
71299         * modules/canonicalize-lgpl-tests (Files): Likewise.
71300         * modules/canonicalize-tests (Files): Likewise.
71301         * modules/carray-list-tests (Files): Likewise.
71302         * modules/ceilf-tests (Files): Likewise.
71303         * modules/ceill-tests (Files): Likewise.
71304         * modules/chown-tests (Files): Likewise.
71305         * modules/cloexec-tests (Files): Likewise.
71306         * modules/copy-file-tests (Files): Likewise.
71307         * modules/count-one-bits-tests (Files): Likewise.
71308         * modules/dprintf-posix-tests (Files): Likewise.
71309         * modules/dup2-tests (Files): Likewise.
71310         * modules/dup3-tests (Files): Likewise.
71311         * modules/duplocale-tests (Files): Likewise.
71312         * modules/fbufmode-tests (Files): Likewise.
71313         * modules/fchdir-tests (Files): Likewise.
71314         * modules/fcntl-safer-tests (Files): Likewise.
71315         * modules/fcntl-tests (Files): Likewise.
71316         * modules/fdopendir-tests (Files): Likewise.
71317         * modules/fdutimensat-tests (Files): Likewise.
71318         * modules/fflush-tests (Files): Likewise.
71319         * modules/filevercmp-tests (Files): Likewise.
71320         * modules/flock-tests (Files): Likewise.
71321         * modules/floorf-tests (Files): Likewise.
71322         * modules/floorl-tests (Files): Likewise.
71323         * modules/fnmatch-tests (Files): Likewise.
71324         * modules/fopen-safer-tests (Files): Likewise.
71325         * modules/fopen-tests (Files): Likewise.
71326         * modules/fpending-tests (Files): Likewise.
71327         * modules/fprintf-posix-tests (Files): Likewise.
71328         * modules/fpurge-tests (Files): Likewise.
71329         * modules/freadable-tests (Files): Likewise.
71330         * modules/freadahead-tests (Files): Likewise.
71331         * modules/freading-tests (Files): Likewise.
71332         * modules/freadptr-tests (Files): Likewise.
71333         * modules/freadseek-tests (Files): Likewise.
71334         * modules/freopen-tests (Files): Likewise.
71335         * modules/frexp-nolibm-tests (Files): Likewise.
71336         * modules/frexp-tests (Files): Likewise.
71337         * modules/frexpl-nolibm-tests (Files): Likewise.
71338         * modules/frexpl-tests (Files): Likewise.
71339         * modules/fseek-tests (Files): Likewise.
71340         * modules/fseeko-tests (Files): Likewise.
71341         * modules/fstrcmp-tests (Files): Likewise.
71342         * modules/fsync-tests (Files): Likewise.
71343         * modules/ftell-tests (Files): Likewise.
71344         * modules/ftello-tests (Files): Likewise.
71345         * modules/func-tests (Files): Likewise.
71346         * modules/futimens-tests (Files): Likewise.
71347         * modules/fwritable-tests (Files): Likewise.
71348         * modules/fwriting-tests (Files): Likewise.
71349         * modules/getcwd-tests (Files): Likewise.
71350         * modules/getdate-tests (Files): Likewise.
71351         * modules/getdelim-tests (Files): Likewise.
71352         * modules/getdtablesize-tests (Files): Likewise.
71353         * modules/getgroups-tests (Files): Likewise.
71354         * modules/getline-tests (Files): Likewise.
71355         * modules/getndelim2-tests (Files): Likewise.
71356         * modules/glob-tests (Files): Likewise.
71357         * modules/hash-tests (Files): Likewise.
71358         * modules/i-ring-tests (Files): Likewise.
71359         * modules/iconv-tests (Files): Likewise.
71360         * modules/iconv_open-utf-tests (Files): Likewise.
71361         * modules/idpriv-drop-tests (Files): Likewise.
71362         * modules/idpriv-droptemp-tests (Files): Likewise.
71363         * modules/inet_ntop-tests (Files): Likewise.
71364         * modules/inet_pton-tests (Files): Likewise.
71365         * modules/isblank-tests (Files): Likewise.
71366         * modules/isfinite-tests (Files): Likewise.
71367         * modules/isinf-tests (Files): Likewise.
71368         * modules/isnan-tests (Files): Likewise.
71369         * modules/isnand-nolibm-tests (Files): Likewise.
71370         * modules/isnand-tests (Files): Likewise.
71371         * modules/isnanf-nolibm-tests (Files): Likewise.
71372         * modules/isnanf-tests (Files): Likewise.
71373         * modules/isnanl-nolibm-tests (Files): Likewise.
71374         * modules/isnanl-tests (Files): Likewise.
71375         * modules/lchown-tests (Files): Likewise.
71376         * modules/ldexpl-tests (Files): Likewise.
71377         * modules/link-tests (Files): Likewise.
71378         * modules/linkat-tests (Files): Likewise.
71379         * modules/linked-list-tests (Files): Likewise.
71380         * modules/linkedhash-list-tests (Files): Likewise.
71381         * modules/localename-tests (Files): Likewise.
71382         * modules/lseek-tests (Files): Likewise.
71383         * modules/lstat-tests (Files): Likewise.
71384         * modules/mbmemcasecmp-tests (Files): Likewise.
71385         * modules/mbmemcasecoll-tests (Files): Likewise.
71386         * modules/mbrtowc-tests (Files): Likewise.
71387         * modules/mbscasecmp-tests (Files): Likewise.
71388         * modules/mbscasestr-tests (Files): Likewise.
71389         * modules/mbschr-tests (Files): Likewise.
71390         * modules/mbscspn-tests (Files): Likewise.
71391         * modules/mbsinit-tests (Files): Likewise.
71392         * modules/mbsncasecmp-tests (Files): Likewise.
71393         * modules/mbsnrtowcs-tests (Files): Likewise.
71394         * modules/mbspbrk-tests (Files): Likewise.
71395         * modules/mbspcasecmp-tests (Files): Likewise.
71396         * modules/mbsrchr-tests (Files): Likewise.
71397         * modules/mbsrtowcs-tests (Files): Likewise.
71398         * modules/mbsspn-tests (Files): Likewise.
71399         * modules/mbsstr-tests (Files): Likewise.
71400         * modules/memchr-tests (Files): Likewise.
71401         * modules/memchr2-tests (Files): Likewise.
71402         * modules/memcmp-tests (Files): Likewise.
71403         * modules/memmem-tests (Files): Likewise.
71404         * modules/memrchr-tests (Files): Likewise.
71405         * modules/mkdir-tests (Files): Likewise.
71406         * modules/mkfifo-tests (Files): Likewise.
71407         * modules/mkfifoat-tests (Files): Likewise.
71408         * modules/mknod-tests (Files): Likewise.
71409         * modules/nanosleep-tests (Files): Likewise.
71410         * modules/nl_langinfo-tests (Files): Likewise.
71411         * modules/obstack-printf-tests (Files): Likewise.
71412         * modules/open-tests (Files): Likewise.
71413         * modules/openat-tests (Files): Likewise.
71414         * modules/pipe-filter-gi-tests (Files): Likewise.
71415         * modules/pipe-filter-ii-tests (Files): Likewise.
71416         * modules/pipe2-tests (Files): Likewise.
71417         * modules/popen-safer-tests (Files): Likewise.
71418         * modules/popen-tests (Files): Likewise.
71419         * modules/posixtm-tests (Files): Likewise.
71420         * modules/pread-tests (Files): Likewise.
71421         * modules/printf-frexp-tests (Files): Likewise.
71422         * modules/printf-frexpl-tests (Files): Likewise.
71423         * modules/printf-posix-tests (Files): Likewise.
71424         * modules/priv-set-tests (Files): Likewise.
71425         * modules/quotearg-tests (Files): Likewise.
71426         * modules/random_r-tests (Files): Likewise.
71427         * modules/rawmemchr-tests (Files): Likewise.
71428         * modules/rbtree-list-tests (Files): Likewise.
71429         * modules/rbtree-oset-tests (Files): Likewise.
71430         * modules/rbtreehash-list-tests (Files): Likewise.
71431         * modules/readlink-tests (Files): Likewise.
71432         * modules/remove-tests (Files): Likewise.
71433         * modules/rename-tests (Files): Likewise.
71434         * modules/renameat-tests (Files): Likewise.
71435         * modules/rmdir-tests (Files): Likewise.
71436         * modules/round-tests (Files): Likewise.
71437         * modules/roundf-tests (Files): Likewise.
71438         * modules/roundl-tests (Files): Likewise.
71439         * modules/safe-alloc-tests (Files): Likewise.
71440         * modules/setenv-tests (Files): Likewise.
71441         * modules/sigaction-tests (Files): Likewise.
71442         * modules/signbit-tests (Files): Likewise.
71443         * modules/sleep-tests (Files): Likewise.
71444         * modules/snprintf-posix-tests (Files): Likewise.
71445         * modules/snprintf-tests (Files): Likewise.
71446         * modules/sprintf-posix-tests (Files): Likewise.
71447         * modules/stat-tests (Files): Likewise.
71448         * modules/stat-time-tests (Files): Likewise.
71449         * modules/strcasestr-tests (Files): Likewise.
71450         * modules/strchrnul-tests (Files): Likewise.
71451         * modules/strerror-tests (Files): Likewise.
71452         * modules/striconv-tests (Files): Likewise.
71453         * modules/striconveh-tests (Files): Likewise.
71454         * modules/striconveha-tests (Files): Likewise.
71455         * modules/strsignal-tests (Files): Likewise.
71456         * modules/strstr-tests (Files): Likewise.
71457         * modules/strtod-tests (Files): Likewise.
71458         * modules/strverscmp-tests (Files): Likewise.
71459         * modules/symlink-tests (Files): Likewise.
71460         * modules/symlinkat-tests (Files): Likewise.
71461         * modules/trunc-tests (Files): Likewise.
71462         * modules/truncf-tests (Files): Likewise.
71463         * modules/truncl-tests (Files): Likewise.
71464         * modules/uname-tests (Files): Likewise.
71465         * modules/unicase/cased-tests (Files): Likewise.
71466         * modules/unicase/ignorable-tests (Files): Likewise.
71467         * modules/unicase/locale-language-tests (Files): Likewise.
71468         * modules/unicase/tolower-tests (Files): Likewise.
71469         * modules/unicase/totitle-tests (Files): Likewise.
71470         * modules/unicase/toupper-tests (Files): Likewise.
71471         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71472         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71473         * modules/unicase/u8-casefold-tests (Files): Likewise.
71474         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71475         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71476         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71477         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71478         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71479         * modules/unicase/u8-tolower-tests (Files): Likewise.
71480         * modules/unicase/u8-totitle-tests (Files): Likewise.
71481         * modules/unicase/u8-toupper-tests (Files): Likewise.
71482         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71483         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71484         * modules/unicase/u16-casefold-tests (Files): Likewise.
71485         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71486         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71487         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71488         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71489         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71490         * modules/unicase/u16-tolower-tests (Files): Likewise.
71491         * modules/unicase/u16-totitle-tests (Files): Likewise.
71492         * modules/unicase/u16-toupper-tests (Files): Likewise.
71493         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71494         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71495         * modules/unicase/u32-casefold-tests (Files): Likewise.
71496         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71497         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71498         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71499         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71500         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71501         * modules/unicase/u32-tolower-tests (Files): Likewise.
71502         * modules/unicase/u32-totitle-tests (Files): Likewise.
71503         * modules/unicase/u32-toupper-tests (Files): Likewise.
71504         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71505         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71506         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71507         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71508         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71509         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71510         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71511         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71512         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71513         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71514         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71515         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71516         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71517         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71518         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71519         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71520         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71521         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71522         * modules/unictype/block-list-tests (Files): Likewise.
71523         * modules/unictype/block-of-tests (Files): Likewise.
71524         * modules/unictype/block-test-tests (Files): Likewise.
71525         * modules/unictype/category-C-tests (Files): Likewise.
71526         * modules/unictype/category-Cc-tests (Files): Likewise.
71527         * modules/unictype/category-Cf-tests (Files): Likewise.
71528         * modules/unictype/category-Cn-tests (Files): Likewise.
71529         * modules/unictype/category-Co-tests (Files): Likewise.
71530         * modules/unictype/category-Cs-tests (Files): Likewise.
71531         * modules/unictype/category-L-tests (Files): Likewise.
71532         * modules/unictype/category-Ll-tests (Files): Likewise.
71533         * modules/unictype/category-Lm-tests (Files): Likewise.
71534         * modules/unictype/category-Lo-tests (Files): Likewise.
71535         * modules/unictype/category-Lt-tests (Files): Likewise.
71536         * modules/unictype/category-Lu-tests (Files): Likewise.
71537         * modules/unictype/category-M-tests (Files): Likewise.
71538         * modules/unictype/category-Mc-tests (Files): Likewise.
71539         * modules/unictype/category-Me-tests (Files): Likewise.
71540         * modules/unictype/category-Mn-tests (Files): Likewise.
71541         * modules/unictype/category-N-tests (Files): Likewise.
71542         * modules/unictype/category-Nd-tests (Files): Likewise.
71543         * modules/unictype/category-Nl-tests (Files): Likewise.
71544         * modules/unictype/category-No-tests (Files): Likewise.
71545         * modules/unictype/category-P-tests (Files): Likewise.
71546         * modules/unictype/category-Pc-tests (Files): Likewise.
71547         * modules/unictype/category-Pd-tests (Files): Likewise.
71548         * modules/unictype/category-Pe-tests (Files): Likewise.
71549         * modules/unictype/category-Pf-tests (Files): Likewise.
71550         * modules/unictype/category-Pi-tests (Files): Likewise.
71551         * modules/unictype/category-Po-tests (Files): Likewise.
71552         * modules/unictype/category-Ps-tests (Files): Likewise.
71553         * modules/unictype/category-S-tests (Files): Likewise.
71554         * modules/unictype/category-Sc-tests (Files): Likewise.
71555         * modules/unictype/category-Sk-tests (Files): Likewise.
71556         * modules/unictype/category-Sm-tests (Files): Likewise.
71557         * modules/unictype/category-So-tests (Files): Likewise.
71558         * modules/unictype/category-Z-tests (Files): Likewise.
71559         * modules/unictype/category-Zl-tests (Files): Likewise.
71560         * modules/unictype/category-Zp-tests (Files): Likewise.
71561         * modules/unictype/category-Zs-tests (Files): Likewise.
71562         * modules/unictype/category-and-not-tests (Files): Likewise.
71563         * modules/unictype/category-and-tests (Files): Likewise.
71564         * modules/unictype/category-byname-tests (Files): Likewise.
71565         * modules/unictype/category-name-tests (Files): Likewise.
71566         * modules/unictype/category-none-tests (Files): Likewise.
71567         * modules/unictype/category-of-tests (Files): Likewise.
71568         * modules/unictype/category-or-tests (Files): Likewise.
71569         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71570         * modules/unictype/combining-class-tests (Files): Likewise.
71571         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71572         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71573         * modules/unictype/ctype-blank-tests (Files): Likewise.
71574         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71575         * modules/unictype/ctype-digit-tests (Files): Likewise.
71576         * modules/unictype/ctype-graph-tests (Files): Likewise.
71577         * modules/unictype/ctype-lower-tests (Files): Likewise.
71578         * modules/unictype/ctype-print-tests (Files): Likewise.
71579         * modules/unictype/ctype-punct-tests (Files): Likewise.
71580         * modules/unictype/ctype-space-tests (Files): Likewise.
71581         * modules/unictype/ctype-upper-tests (Files): Likewise.
71582         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71583         * modules/unictype/decimal-digit-tests (Files): Likewise.
71584         * modules/unictype/digit-tests (Files): Likewise.
71585         * modules/unictype/mirror-tests (Files): Likewise.
71586         * modules/unictype/numeric-tests (Files): Likewise.
71587         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71588         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71589         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71590         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71591         Likewise.
71592         * modules/unictype/property-bidi-block-separator-tests (Files):
71593         Likewise.
71594         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71595         Likewise.
71596         * modules/unictype/property-bidi-common-separator-tests (Files):
71597         Likewise.
71598         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71599         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71600         Likewise.
71601         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71602         Likewise.
71603         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71604         Likewise.
71605         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71606         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71607         Likewise.
71608         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71609         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71610         Likewise.
71611         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71612         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71613         * modules/unictype/property-bidi-segment-separator-tests (Files):
71614         Likewise.
71615         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71616         * modules/unictype/property-byname-tests (Files): Likewise.
71617         * modules/unictype/property-combining-tests (Files): Likewise.
71618         * modules/unictype/property-composite-tests (Files): Likewise.
71619         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71620         * modules/unictype/property-dash-tests (Files): Likewise.
71621         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71622         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71623         Likewise.
71624         * modules/unictype/property-deprecated-tests (Files): Likewise.
71625         * modules/unictype/property-diacritic-tests (Files): Likewise.
71626         * modules/unictype/property-extender-tests (Files): Likewise.
71627         * modules/unictype/property-format-control-tests (Files): Likewise.
71628         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71629         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71630         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71631         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71632         * modules/unictype/property-hyphen-tests (Files): Likewise.
71633         * modules/unictype/property-id-continue-tests (Files): Likewise.
71634         * modules/unictype/property-id-start-tests (Files): Likewise.
71635         * modules/unictype/property-ideographic-tests (Files): Likewise.
71636         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71637         * modules/unictype/property-ids-trinary-operator-tests (Files):
71638         Likewise.
71639         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71640         * modules/unictype/property-iso-control-tests (Files): Likewise.
71641         * modules/unictype/property-join-control-tests (Files): Likewise.
71642         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71643         * modules/unictype/property-line-separator-tests (Files): Likewise.
71644         * modules/unictype/property-logical-order-exception-tests (Files):
71645         Likewise.
71646         * modules/unictype/property-lowercase-tests (Files): Likewise.
71647         * modules/unictype/property-math-tests (Files): Likewise.
71648         * modules/unictype/property-non-break-tests (Files): Likewise.
71649         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71650         * modules/unictype/property-numeric-tests (Files): Likewise.
71651         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71652         * modules/unictype/property-other-default-ignorable-code-point-tests
71653         (Files): Likewise.
71654         * modules/unictype/property-other-grapheme-extend-tests (Files):
71655         Likewise.
71656         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71657         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71658         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71659         * modules/unictype/property-other-math-tests (Files): Likewise.
71660         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71661         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71662         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71663         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71664         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71665         * modules/unictype/property-private-use-tests (Files): Likewise.
71666         * modules/unictype/property-punctuation-tests (Files): Likewise.
71667         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71668         * modules/unictype/property-radical-tests (Files): Likewise.
71669         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71670         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71671         * modules/unictype/property-space-tests (Files): Likewise.
71672         * modules/unictype/property-terminal-punctuation-tests (Files):
71673         Likewise.
71674         * modules/unictype/property-test-tests (Files): Likewise.
71675         * modules/unictype/property-titlecase-tests (Files): Likewise.
71676         * modules/unictype/property-unassigned-code-value-tests (Files):
71677         Likewise.
71678         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71679         * modules/unictype/property-uppercase-tests (Files): Likewise.
71680         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71681         * modules/unictype/property-white-space-tests (Files): Likewise.
71682         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71683         * modules/unictype/property-xid-start-tests (Files): Likewise.
71684         * modules/unictype/property-zero-width-tests (Files): Likewise.
71685         * modules/unictype/scripts-tests (Files): Likewise.
71686         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71687         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71688         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71689         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71690         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71691         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71692         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71693         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71694         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71695         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71696         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71697         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71698         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71699         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71700         * modules/uninorm/composition-tests (Files): Likewise.
71701         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71702         * modules/uninorm/decomposition-tests (Files): Likewise.
71703         * modules/uninorm/filter-tests (Files): Likewise.
71704         * modules/uninorm/nfc-tests (Files): Likewise.
71705         * modules/uninorm/nfd-tests (Files): Likewise.
71706         * modules/uninorm/nfkc-tests (Files): Likewise.
71707         * modules/uninorm/nfkd-tests (Files): Likewise.
71708         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71709         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71710         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71711         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71712         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71713         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71714         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71715         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71716         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71717         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71718         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71719         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71720         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71721         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71722         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71723         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71724         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71725         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71726         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71727         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71728         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71729         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71730         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71731         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71732         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71733         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71734         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71735         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71736         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71737         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71738         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71739         * modules/uniwidth/u8-width-tests (Files): Likewise.
71740         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71741         * modules/uniwidth/u16-width-tests (Files): Likewise.
71742         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71743         * modules/uniwidth/u32-width-tests (Files): Likewise.
71744         * modules/uniwidth/width-tests (Files): Likewise.
71745         * modules/unlink-tests (Files): Likewise.
71746         * modules/unsetenv-tests (Files): Likewise.
71747         * modules/usleep-tests (Files): Likewise.
71748         * modules/utimens-tests (Files): Likewise.
71749         * modules/utimensat-tests (Files): Likewise.
71750         * modules/vasnprintf-posix-tests (Files): Likewise.
71751         * modules/vasnprintf-tests (Files): Likewise.
71752         * modules/vasprintf-posix-tests (Files): Likewise.
71753         * modules/vasprintf-tests (Files): Likewise.
71754         * modules/vdprintf-posix-tests (Files): Likewise.
71755         * modules/vfprintf-posix-tests (Files): Likewise.
71756         * modules/vprintf-posix-tests (Files): Likewise.
71757         * modules/vsnprintf-posix-tests (Files): Likewise.
71758         * modules/vsnprintf-tests (Files): Likewise.
71759         * modules/vsprintf-posix-tests (Files): Likewise.
71760         * modules/wcrtomb-tests (Files): Likewise.
71761         * modules/wcsnrtombs-tests (Files): Likewise.
71762         * modules/wcsrtombs-tests (Files): Likewise.
71763         * modules/wctype-tests (Files): Likewise.
71764         * modules/wcwidth-tests (Files): Likewise.
71765         * modules/xmemdup0-tests (Files): Likewise.
71766         * modules/xprintf-posix-tests (Files): Likewise.
71767         * modules/xvasprintf-tests (Files): Likewise.
71769 2009-12-24  Eric Blake  <ebb9@byu.net>
71771         test-nanosleep: fix typo
71772         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71773         patch.
71774         Reported by Bruno Haible.
71776 2009-12-24  Bruno Haible  <bruno@clisp.org>
71778         Reduce namespace pollution on glibc systems.
71779         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71780         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71781         systems.
71782         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71783         <getopt.h> on glibc systems.
71784         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71785         systems.
71786         * lib/fcntl.c: Include <unistd.h> here instead.
71788 2009-12-24  Bruno Haible  <bruno@clisp.org>
71790         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71792 2009-12-24  Eric Blake  <ebb9@byu.net>
71794         tests: add signature checks
71795         * tests/signature.h (SIGNATURE_CHECK): New file.
71796         * modules/atexit-tests (Files): Use it.
71797         * modules/btowc-tests (Files): Likewise.
71798         * modules/canonicalize-lgpl-tests (Files): Likewise.
71799         * modules/ceilf-tests (Files): Likewise.
71800         * modules/ceill-tests (Files): Likewise.
71801         * modules/chown-tests (Files): Likewise.
71802         * modules/dprintf-posix-tests (Files): Likewise.
71803         * modules/dup2-tests (Files): Likewise.
71804         * modules/dup3-tests (Files): Likewise.
71805         * modules/duplocale-tests (Files): Likewise.
71806         * modules/fchdir-tests (Files): Likewise.
71807         * modules/fcntl-tests (Files): Likewise.
71808         * modules/fdopendir-tests (Files): Likewise.
71809         * modules/fflush-tests (Files): Likewise.
71810         * modules/flock-tests (Files): Likewise.
71811         * modules/floorf-tests (Files): Likewise.
71812         * modules/floorl-tests (Files): Likewise.
71813         * modules/fnmatch-tests (Files): Likewise.
71814         * modules/fopen-tests (Files): Likewise.
71815         * modules/fprintf-posix-tests (Files): Likewise.
71816         * modules/freopen-tests (Files): Likewise.
71817         * modules/frexp-nolibm-tests (Files): Likewise.
71818         * modules/frexp-tests (Files): Likewise.
71819         * modules/frexpl-nolibm-tests (Files): Likewise.
71820         * modules/frexpl-tests (Files): Likewise.
71821         * modules/fseek-tests (Files): Likewise.
71822         * modules/fseeko-tests (Files): Likewise.
71823         * modules/fsync-tests (Files): Likewise.
71824         * modules/ftell-tests (Files): Likewise.
71825         * modules/ftello-tests (Files): Likewise.
71826         * modules/futimens-tests (Files): Likewise.
71827         * modules/getaddrinfo-tests (Files): Likewise.
71828         * modules/getcwd-tests (Files): Likewise.
71829         * modules/getdelim-tests (Files): Likewise.
71830         * modules/getdtablesize-tests (Files): Likewise.
71831         * modules/getgroups-tests (Files): Likewise.
71832         * modules/gethostname-tests (Files): Likewise.
71833         * modules/getline-tests (Files): Likewise.
71834         * modules/getopt-posix-tests (Files): Likewise.
71835         * modules/gettimeofday-tests (Files): Likewise.
71836         * modules/glob-tests (Files): Likewise.
71837         * modules/iconv-tests (Files): Likewise.
71838         * modules/inet_ntop-tests (Files): Likewise.
71839         * modules/inet_pton-tests (Files): Likewise.
71840         * modules/isblank-tests (Files): Likewise.
71841         * modules/lchown-tests (Files): Likewise.
71842         * modules/ldexpl-tests (Files): Likewise.
71843         * modules/link-tests (Files): Likewise.
71844         * modules/linkat-tests (Files): Likewise.
71845         * modules/lseek-tests (Files): Likewise.
71846         * modules/lstat-tests (Files): Likewise.
71847         * modules/mbrtowc-tests (Files): Likewise.
71848         * modules/mbsinit-tests (Files): Likewise.
71849         * modules/mbsnrtowcs-tests (Files): Likewise.
71850         * modules/mbsrtowcs-tests (Files): Likewise.
71851         * modules/memchr-tests (Files): Likewise.
71852         * modules/memcmp-tests (Files): Likewise.
71853         * modules/memmem-tests (Files): Likewise.
71854         * modules/memrchr-tests (Files): Likewise.
71855         * modules/mkdir-tests (Files): Likewise.
71856         * modules/mkfifo-tests (Files): Likewise.
71857         * modules/mkfifoat-tests (Files): Likewise.
71858         * modules/mknod-tests (Files): Likewise.
71859         * modules/nanosleep-tests (Files): Likewise.
71860         * modules/nl_langinfo-tests (Files): Likewise.
71861         * modules/obstack-printf-tests (Files): Likewise.
71862         * modules/open-tests (Files): Likewise.
71863         * modules/openat-tests (Files): Likewise.
71864         * modules/perror-tests (Files): Likewise.
71865         * modules/pipe2-tests (Files): Likewise.
71866         * modules/poll-tests (Files): Likewise.
71867         * modules/popen-tests (Files): Likewise.
71868         * modules/posix_spawn-tests (Files): Likewise.
71869         * modules/posix_spawnp-tests (Files): Likewise.
71870         * modules/pread-tests (Files): Likewise.
71871         * modules/printf-posix-tests (Files): Likewise.
71872         * modules/pty-tests (Files): Likewise.
71873         * modules/random_r-tests (Files): Likewise.
71874         * modules/rawmemchr-tests (Files): Likewise.
71875         * modules/readlink-tests (Files): Likewise.
71876         * modules/remove-tests (Files): Likewise.
71877         * modules/rename-tests (Files): Likewise.
71878         * modules/renameat-tests (Files): Likewise.
71879         * modules/rmdir-tests (Files): Likewise.
71880         * modules/round-tests (Files): Likewise.
71881         * modules/roundf-tests (Files): Likewise.
71882         * modules/roundl-tests (Files): Likewise.
71883         * modules/select-tests (Files): Likewise.
71884         * modules/setenv-tests (Files): Likewise.
71885         * modules/sigaction-tests (Files): Likewise.
71886         * modules/sleep-tests (Files): Likewise.
71887         * modules/snprintf-posix-tests (Files): Likewise.
71888         * modules/snprintf-tests (Files): Likewise.
71889         * modules/sprintf-posix-tests (Files): Likewise.
71890         * modules/stat-tests (Files): Likewise.
71891         * modules/strcasestr-tests (Files): Likewise.
71892         * modules/strchrnul-tests (Files): Likewise.
71893         * modules/strerror-tests (Files): Likewise.
71894         * modules/strsignal-tests (Files): Likewise.
71895         * modules/strstr-tests (Files): Likewise.
71896         * modules/strtod-tests (Files): Likewise.
71897         * modules/strverscmp-tests (Files): Likewise.
71898         * modules/symlink-tests (Files): Likewise.
71899         * modules/symlinkat-tests (Files): Likewise.
71900         * modules/times-tests (Files): Likewise.
71901         * modules/trunc-tests (Files): Likewise.
71902         * modules/truncf-tests (Files): Likewise.
71903         * modules/truncl-tests (Files): Likewise.
71904         * modules/tsearch-tests (Files): Likewise.
71905         * modules/uname-tests (Files): Likewise.
71906         * modules/unlink-tests (Files): Likewise.
71907         * modules/unsetenv-tests (Files): Likewise.
71908         * modules/usleep-tests (Files): Likewise.
71909         * modules/utimensat-tests (Files): Likewise.
71910         * modules/vasprintf-tests (Files): Likewise.
71911         * modules/vdprintf-posix-tests (Files): Likewise.
71912         * modules/vfprintf-posix-tests (Files): Likewise.
71913         * modules/vprintf-posix-tests (Files): Likewise.
71914         * modules/vsnprintf-posix-tests (Files): Likewise.
71915         * modules/vsnprintf-tests (Files): Likewise.
71916         * modules/vsprintf-posix-tests (Files): Likewise.
71917         * modules/wcrtomb-tests (Files): Likewise.
71918         * modules/wcsnrtombs-tests (Files): Likewise.
71919         * modules/wcsrtombs-tests (Files): Likewise.
71920         * modules/wcwidth-tests (Files): Likewise.
71921         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71922         * tests/test-isinf.c (isinf): Likewise.
71923         * tests/test-isnan.c (isnan): Likewise.
71924         * tests/test-signbit.c (signbit): Likewise.
71925         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71926         declaration, either as macro or with correct signature.
71927         (select): Ensure function under test is declared with correct
71928         signature in correct header.
71929         * tests/test-atexit.c (atexit): Likewise.
71930         * tests/test-btowc.c (btowc): Likewise.
71931         * tests/test-canonicalize-lgpl.c (realpath)
71932         (canonicalize_file_name): Likewise.
71933         * tests/test-ceilf1.c (ceilf): Likewise.
71934         * tests/test-ceill.c (ceill): Likewise.
71935         * tests/test-chown.c (chown): Likewise.
71936         * tests/test-dprintf-posix.c (dprintf): Likewise.
71937         * tests/test-dup2.c (dup2): Likewise.
71938         * tests/test-dup3.c (dup3): Likewise.
71939         * tests/test-duplocale.c (duplocale): Likewise.
71940         * tests/test-fchdir.c (fchdir): Likewise.
71941         * tests/test-fchownat.c (fchownat): Likewise.
71942         * tests/test-fcntl.c (fcntl): Likewise.
71943         * tests/test-fdopendir.c (fdopendir): Likewise.
71944         * tests/test-fflush.c (fflush): Likewise.
71945         * tests/test-flock.c (flock): Likewise.
71946         * tests/test-floorf1.c (floorf): Likewise.
71947         * tests/test-floorl.c (floorl): Likewise.
71948         * tests/test-fnmatch.c (fnmatch): Likewise.
71949         * tests/test-fopen.c (fopen): Likewise.
71950         * tests/test-fprintf-posix.c (fprintf): Likewise.
71951         * tests/test-freopen.c (freopen): Likewise.
71952         * tests/test-frexp.c (frexp): Likewise.
71953         * tests/test-frexpl.c (frexpl): Likewise.
71954         * tests/test-fseek.c (fseek): Likewise.
71955         * tests/test-fseeko.c (fseeko): Likewise.
71956         * tests/test-fstatat.c (fstatat): Likewise.
71957         * tests/test-fsync.c (fsync): Likewise.
71958         * tests/test-ftell.c (ftell): Likewise.
71959         * tests/test-ftello.c (ftello): Likewise.
71960         * tests/test-futimens.c (futimens): Likewise.
71961         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71962         (gai_strerror): Likewise.
71963         * tests/test-getcwd.c (getcwd): Likewise.
71964         * tests/test-getdelim.c (getdelim): Likewise.
71965         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71966         * tests/test-getgroups.c (getgroups): Likewise.
71967         * tests/test-gethostname.c (gethostname): Likewise.
71968         * tests/test-getline.c (getline): Likewise.
71969         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
71970         Likewise.
71971         * tests/test-gettimeofday.c (gettimeofday): Likewise.
71972         * tests/test-glob.c (glob, globfree): Likewise.
71973         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
71974         * tests/test-inet_ntop.c (inet_ntop): Likewise.
71975         * tests/test-inet_pton.c (inet_pton): Likewise.
71976         * tests/test-isblank.c (isblank): Likewise.
71977         * tests/test-lchown.c (lchown): Likewise.
71978         * tests/test-ldexpl.c (ldexpl): Likewise.
71979         * tests/test-link.c (link): Likewise.
71980         * tests/test-linkat.c (linkat): Likewise.
71981         * tests/test-lseek.c (lseek): Likewise.
71982         * tests/test-lstat.c (lstat): Likewise.
71983         * tests/test-mbrtowc.c (mbrtowc): Likewise.
71984         * tests/test-mbsinit.c (mbsinit): Likewise.
71985         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
71986         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
71987         * tests/test-memchr.c (memchr): Likewise.
71988         * tests/test-memcmp.c (memcmp): Likewise.
71989         * tests/test-memmem.c (memmem): Likewise.
71990         * tests/test-memrchr.c (memrchr): Likewise.
71991         * tests/test-mkdir.c (mkdir): Likewise.
71992         * tests/test-mkdirat.c (mkdirat): Likewise.
71993         * tests/test-mkfifo.c (mkfifo): Likewise.
71994         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
71995         * tests/test-mknod.c (mknod): Likewise.
71996         * tests/test-nanosleep.c (nanosleep): Likewise.
71997         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
71998         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
71999         Likewise.
72000         * tests/test-open.c (open): Likewise.
72001         * tests/test-openat.c (openat): Likewise.
72002         * tests/test-perror.c (perror): Likewise.
72003         * tests/test-pipe2.c (pipe2): Likewise.
72004         * tests/test-poll.c (poll): Likewise.
72005         * tests/test-popen.c (popen, pclose): Likewise.
72006         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72007         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72008         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72009         (posix_spawn_file_actions_destroy)
72010         (posix_spawn_file_actions_addclose)
72011         (posix_spawn_file_actions_addopen)
72012         (posix_spawn_file_actions_adddup2): Likewise.
72013         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72014         * tests/test-pread.c (pread): Likewise.
72015         * tests/test-printf-posix.c (printf): Likewise.
72016         * tests/test-pty.c (openpty, forkpty): Likewise.
72017         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72018         (random_r): Likewise.
72019         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72020         * tests/test-readlink.c (readlink): Likewise.
72021         * tests/test-remove.c (remove): Likewise.
72022         * tests/test-rename.c (rename): Likewise.
72023         * tests/test-renameat.c (renameat): Likewise.
72024         * tests/test-rmdir.c (rmdir): Likewise.
72025         * tests/test-round1.c (round): Likewise.
72026         * tests/test-roundf1.c (roundf): Likewise.
72027         * tests/test-roundl.c (roundl): Likewise.
72028         * tests/test-setenv.c (setenv): Likewise.
72029         * tests/test-sigaction.c (sigaction): Likewise.
72030         * tests/test-sleep.c (sleep): Likewise.
72031         * tests/test-snprintf.c (snprintf): Likewise.
72032         * tests/test-sprintf-posix.c (sprintf): Likewise.
72033         * tests/test-stat.c (stat): Likewise.
72034         * tests/test-stpncpy.c (stpncpy): Likewise.
72035         * tests/test-strcasestr.c (strcasestr): Likewise.
72036         * tests/test-strchrnul.c (strchrnul): Likewise.
72037         * tests/test-strerror.c (strerror): Likewise.
72038         * tests/test-strsignal.c (strsignal): Likewise.
72039         * tests/test-strstr.c (strstr): Likewise.
72040         * tests/test-strtod.c (strtod): Likewise.
72041         * tests/test-strverscmp.c (strverscmp): Likewise.
72042         * tests/test-symlink.c (symlink): Likewise.
72043         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72044         * tests/test-times.c (times): Likewise.
72045         * tests/test-trunc1.c (trunc): Likewise.
72046         * tests/test-truncf1.c (truncf): Likewise.
72047         * tests/test-truncl.c (truncl): Likewise.
72048         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72049         Likewise.
72050         * tests/test-uname.c (uname): Likewise.
72051         * tests/test-unlink.c (unlink): Likewise.
72052         * tests/test-unlinkat.c (unlinkat): Likewise.
72053         * tests/test-unsetenv.c (unsetenv): Likewise.
72054         * tests/test-usleep.c (usleep): Likewise.
72055         * tests/test-utimensat.c (utimensat): Likewise.
72056         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72057         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72058         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72059         * tests/test-vprintf-posix.c (vprintf): Likewise.
72060         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72061         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72062         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72063         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72064         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72065         * tests/test-wcwidth.c (wcwidth): Likewise.
72067         build: pull in conditional headers during GNULIB_POSIXCHECK
72068         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72069         definitions from any conditionally-included headers.
72070         * lib/stdlib.in.h (includes): Likewise.
72071         * lib/unistd.in.h (includes): Likewise.
72073 2009-12-24  Bruno Haible  <bruno@clisp.org>
72075         * tests/test-argv-iter.c: Include header file being tested immediately
72076         after config.h.
72077         * tests/test-base64.c: Likewise.
72078         * tests/test-flock.c: Likewise.
72079         * tests/test-fsync.c: Likewise.
72080         * tests/test-getdate.c: Likewise.
72081         * tests/test-getndelim2.c: Likewise.
72082         * tests/test-isfinite.c: Likewise.
72083         * tests/test-isinf.c: Likewise.
72084         * tests/test-strerror.c: Likewise.
72085         * tests/test-strsignal.c: Likewise.
72087 2009-12-23  Eric Blake  <ebb9@byu.net>
72089         unistd: work around cygwin bug
72090         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
72091         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
72092         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72094 2009-12-23  Bruno Haible  <bruno@clisp.org>
72096         localename: More tests.
72097         * tests/test-localename.c (SIZEOF): New macro.
72098         (categories): New variable.
72099         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
72100         test_locale_name_default): Add test w.r.t. thread locale.
72101         (test_locale_name_thread): New function.
72102         (main): Invoke it.
72104         localename: Make aware of thread locale.
72105         * lib/localename.h (gl_locale_name_thread): New declaration.
72106         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
72107         behaviour with respect to thread locale.
72108         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72109         <langinfo.h>, glthread/lock.h.
72110         (SIZE_BITS): New macro.
72111         (string_hash): New function.
72112         (struct hash_node): New type.
72113         (HASH_TABLE_SIZE): New macro.
72114         (struniq_hash_table, struniq_lock): New variables.
72115         (struniq): New function.
72116         (gl_locale_name_thread): New function.
72117         (gl_locale_name): Invoke it.
72118         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72119         * modules/localename (Depends-on): Add lock.
72120         Reported by Mike Gran <spk121@yahoo.com>.
72122 2009-12-23  Eric Blake  <ebb9@byu.net>
72124         va-args: new module
72125         * modules/va-args: New file.
72126         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72127         * MODULES.html.sh (Core language properties): Mention it.
72129         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72130         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72131         named alias for __attribute__((__unused__)).
72132         * lib/chown.c: Update client.
72133         * lib/fchmodat.c: Likewise.
72134         * lib/fts.c: Likewise.
72135         * lib/getdate.y: Likewise.
72136         * lib/getgroups.c: Likewise.
72137         * lib/getopt.c: Likewise.
72138         * lib/getugroups.c: Likewise.
72139         * lib/mkdir.c: Likewise.
72140         * lib/mkfifo.c: Likewise.
72141         * lib/mkfifoat.c: Likewise.
72142         * lib/mknod.c: Likewise.
72143         * lib/mknodat.c: Likewise.
72144         * lib/readlink.c: Likewise.
72145         * lib/se-context.in.h: Likewise.
72146         * lib/se-selinux.in.h: Likewise.
72147         * lib/sockets.c: Likewise.
72148         * lib/symlink.c: Likewise.
72149         * lib/symlinkat.c: Likewise.
72150         * lib/unicodeio.c: Likewise.
72151         * lib/unistr.h: Likewise.
72152         * tests/test-areadlink.c: Likewise.
72153         * tests/test-areadlinkat.c: Likewise.
72154         * tests/test-filenamecat.c: Likewise.
72155         * tests/test-fseeko.c: Likewise.
72156         * tests/test-ftello.c: Likewise.
72157         * tests/test-getdate.c: Likewise.
72158         * tests/test-getgroups.c: Likewise.
72159         * tests/test-gethostname.c: Likewise.
72160         * tests/test-quotearg.c: Likewise.
72161         * tests/test-version-etc.c: Likewise.
72162         * tests/test-xalloc-die.c: Likewise.
72163         * tests/test-xfprintf-posix.c: Likewise.
72164         * tests/test-xprintf-posix.c: Likewise.
72165         * tests/test-xvasprintf.c: Likewise.
72167         tests: avoid compiler warnings
72168         * tests/test-fcntl.c (main): Delete unused parameters.
72169         * tests/test-freopen-safer.c (main): Likewise.
72170         * tests/test-xalloc-die.c (main): Mark unused parameters.
72171         * tests/test-fseeko.c (main): Likewise.
72172         * tests/test-ftello.c (main): Likewise.
72173         * tests/test-nanosleep.c (main): Avoid declaration warning.
72174         * tests/test-sleep.c (main): Likewise.
72175         * tests/test-unsetenv.c (main): Silence warning about string
72176         literal.
72177         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72179 2009-12-23  Bruno Haible  <bruno@clisp.org>
72181         * tests/test-localename.c (test_locale_name): New function, extracted
72182         from main. Also test mixed situations.
72183         (test_locale_name_posix, test_locale_name_environ,
72184         test_locale_name_default): New functions.
72185         (main): Invoke them all.
72186         * modules/localename-tests (configure.ac): Test for newlocale.
72188 2009-12-23  Bruno Haible  <bruno@clisp.org>
72190         unistd: Ensure getcwd gets declared before being overridden.
72191         * lib/unistd.in.h: Conditionally include <io.h>.
72193 2009-12-22  Bruno Haible  <bruno@clisp.org>
72195         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72196         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72197         (gl_WCHAR_H): Invoke it.
72198         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72199         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72200         Reported by Karl Berry <karl@freefriends.org>.
72202 2009-12-22  Eric Blake  <ebb9@byu.net>
72204         math, unistd: avoid redundant includes
72205         * lib/math.in.h (isnan): No need to re-include <math.h>.
72206         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72208         getsubopt: work around cygwin bug
72209         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72210         avoid conflicting with system getsubopt.
72211         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72212         bug.
72214         getopt: synchronize from glibc
72215         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72216         parameter order.  Adjust all callers.
72217         (_getopt_internal_r, main): Adjust quoting in error messages.
72218         Drop considerations for outdated POSIX 1003.2 error message.
72219         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72220         callers.
72221         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72223         test-getopt: test stderr behavior
72224         * modules/getopt-posix-tests (Depends-on): Add dup2.
72225         * tests/test-getopt.c (ASSERT): Avoid stderr.
72226         (main): Move stderr to a temporary file.
72227         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72228         Instead, add parameter to inform caller if output occurred.
72229         (test_getopt): Adjust all existing tests to expect silence, and
72230         add new tests of leading ":".
72231         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72232         glibc shortcomings with leading "-:" or "+:" in optstring.
72233         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72234         Likewise.
72235         * doc/posix-functions/getopt.texi (getopt): Likewise.
72237         test-getopt: enhance test
72238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72239         supports optind=0.
72240         * tests/test-getopt.c (OPTIND_MIN): Move...
72241         * tests/test-getopt.h (OPTIND_MIN): ...here.
72242         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72243         Require that optind=0 works, since modern BSD supports it in
72244         addition to optreset, and since coreutils expects it.
72245         (test_getopt_long_only): New test.
72246         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72247         glibc shortcomings with 'W;', and enforcement of optind=0.
72248         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72249         Likewise.
72251 2009-12-21  Bruno Haible  <bruno@clisp.org>
72253         localename: Improvements for MacOS X and Cygwin.
72254         * lib/localename.h (gl_locale_name_environ): New declaration.
72255         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72256         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72257         (gl_locale_name_posix): Invoke it.
72258         (gl_locale_name_default): Add comments. Use Windows native API also on
72259         Cygwin.
72261 2009-12-21  Bruno Haible  <bruno@clisp.org>
72263         Update list of Win32 locale ids.
72264         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72265         (LANG_SAMI): Renamed from LANG_SAAMI.
72266         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72267         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72268         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72269         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72270         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72271         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72272         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72273         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72274         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72275         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72276         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72277         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72278         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72279         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72280         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72281         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72282         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72283         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72284         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72285         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72286         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72287         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72288         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72289         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72290         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72291         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72292         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72293         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72294         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72295         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72296         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72297         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72298         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72299         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72300         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72301         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72302         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72303         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72304         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72305         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72306         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72307         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72308         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72309         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72310         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72311         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72312         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72313         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72314         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72315         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72316         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72317         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72318         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72319         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72320         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72321         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72322         Add more languages and countries for Sami, Sorbian. Add more countries
72323         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72324         for Pashto. Change country for Syriac, Tswana.
72326 2009-12-21  Eric Blake  <ebb9@byu.net>
72328         test-utimens: avoid spurious failure
72329         * tests/test-chown.h (nap): Factor...
72330         * tests/nap.h: ...into new file.
72331         * tests/test-lchown.h (nap): Avoid duplication.
72332         * tests/test-utimens-common.h (nap): Use shared implementation,
72333         necessary on file systems with 1-second resolution.
72334         * modules/chown-tests (Files): Include new file.
72335         * modules/fdutimensat-tests (Files): Likewise.
72336         * modules/futimens-tests (Files): Likewise.
72337         * modules/lchown-tests (Files): Likewise.
72338         * modules/openat-tests (Files): Likewise.
72339         * modules/utimens-tests (Files): Likewise.
72340         * modules/utimensat-tests (Files): Likewise.
72342 2009-12-19  Eric Blake  <ebb9@byu.net>
72344         futimens, utimensat: work around Linux bug
72345         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72346         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72347         * lib/utimensat.c (rpl_utimensat): Work around it.
72348         * lib/futimens.c (rpl_futimens): Adjust comment.
72350         utimens: work around Linux ctime bug
72351         * lib/utimens.c (detect_ctime_bug): New helper function.
72352         (update_timespec): Differentiate between workaround needed for
72353         this bug vs. what is needed for systems that lack utimensat.
72354         (fdutimens, lutimens): Work around bug.
72356         utimens: check for ctime update
72357         * tests/test-utimens-common.h (check_ctime): Define.
72358         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72359         * tests/test-futimens.h (test_futimens): Likewise.
72360         * tests/test-lutimens.h (test_lutimens): Likewise.
72361         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72362         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72364 2009-12-19  Bruno Haible  <bruno@clisp.org>
72366         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72367         * tests/test-dprintf-posix2.sh: New file.
72368         * tests/test-dprintf-posix2.c: New file.
72369         * modules/dprintf-posix-tests (Files): Add them.
72370         (configure.ac): Check for getrlimit and setrlimit.
72371         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72373 2009-12-19  Bruno Haible  <bruno@clisp.org>
72375         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72376         * tests/test-fprintf-posix3.sh: New file.
72377         * tests/test-fprintf-posix3.c: New file.
72378         * modules/fprintf-posix-tests (Files): Add them.
72379         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72381 2009-12-19  Eric Blake  <ebb9@byu.net>
72383         dirfd: fix prototype
72384         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72385         * lib/dirfd.c (dirfd): Likewise.
72387         canonicalize: reduce memory usage
72388         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72389         allocation to size.
72390         Reported by Solar Designer <solar@openwall.com>.
72392 2009-12-19  Bruno Haible  <bruno@clisp.org>
72394         New module attribute 'Applicability'.
72395         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72396         * gnulib-tool: New option --extract-applicability.
72397         (func_usage): Document it.
72398         (sed_extract_prog): Recognize it.
72399         (func_get_applicability): New function.
72400         (func_import): Generalize handling of 'link-warning' module.
72401         * modules/link-warning (Applicability): New section.
72402         * modules/arg-nonnull (Applicability): New section.
72403         Repoted by Simon Josefsson <simon@josefsson.org>.
72405 2009-12-19  Bruno Haible  <bruno@clisp.org>
72407         fflush: tweak
72408         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72409         * lib/fseeko.c (rpl_fseeko): Likewise.
72411 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72413         * lib/gl_list.h: Fix typo in comment.
72415 2009-12-16  Eric Blake  <ebb9@byu.net>
72417         fcntl: use to simplify other modules
72418         * modules/cloexec (Depends-on): Add fcntl.
72419         * modules/fchdir (Depends-on): Likewise.
72420         * modules/fd-safer-flag (Depends-on): Likewise.
72421         * modules/unistd-safer (Depends-on): Likewise.
72422         * modules/dup3 (configure.ac): Set module indicator.
72423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72424         missing.
72425         * lib/fchdir.c (_gl_register_dup): Fix comment.
72426         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72427         * lib/dup-safer.c (dup_safer): Likewise.
72428         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72429         * lib/dup3.c (dup3): Likewise.
72430         * tests/test-fchdir.c (main): Enhance test.
72431         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72433         fcntl: port portions of fcntl to mingw
72434         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72435         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72436         replacement for mingw.
72437         * modules/fcntl (Description): Update.
72438         (Depends-on): Add dup2.
72439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72440         * modules/fcntl-h (Makefile.am): Substitute it.
72441         * lib/fcntl.in.h (fcntl): Update declaration.
72442         (F_DUPFD, F_GETFD): New macros, when needed.
72443         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72444         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72445         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72446         we now guarantee.
72448         fcntl: work around cygwin bug in F_DUPFD
72449         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72450         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72451         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72452         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72453         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72455         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72456         * modules/fcntl (Files): List new files.
72457         (configure.ac): Run a test.
72458         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72459         * lib/fcntl.c (rpl_fcntl): Likewise.
72460         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72461         (gl_FCNTL_H): Always replace fcntl.h.
72462         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72463         * lib/fcntl.in.h (fcntl): Declare replacement.
72464         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72465         needed, plus a witness.
72466         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72467         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72468         * tests/test-fcntl.c: New file.
72469         * modules/fcntl-tests: Likewise.
72471         binary-io: avoid potential compilation warning
72472         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72473         directives.
72475         fflush: avoid compilation error on NetBSD
72476         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72477         between off_t and fpos_t, since the latter is sometimes a struct.
72478         * lib/fseeko.c (rpl_fseeko): Likewise.
72479         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72481 2009-12-15  Eric Blake  <ebb9@byu.net>
72483         fcntl-h, stdio, sys_ioctl: fix declarations
72484         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72485         function must not take arguments.
72486         * lib/sys_ioctl.in.h (ioctl): Likewise.
72487         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72488         (open): Add a link warning.
72490 2009-12-15  Jim Meyering  <meyering@redhat.com>
72492         areadlink, areadlink-with-size: relax license to LGPLv2+
72493         * modules/areadlink (License): Relax to LGPLv2+.
72494         * modules/areadlink-with-size (License): Likewise.
72496 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72497             Bruno Haible  <bruno@clisp.org>
72499         *printf: Fix memory leak.
72500         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72501         * lib/vfprintf.c (vfprintf): Likewise.
72502         * lib/dprintf.c (dprintf): Likewise.
72503         * lib/vdprintf.c (vdprintf): Likewise.
72505 2009-12-14  Eric Blake  <ebb9@byu.net>
72507         accept4: adjust module dependencies
72508         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72510         utimens: one more try at avoiding compiler warning
72511         * lib/utimens.c (lutimens): Lower scope of result.
72513 2009-12-13  Bruno Haible  <bruno@clisp.org>
72515         Move the malloc checking from module 'list' to new module 'xlist'.
72516         * modules/xlist: New file.
72517         * lib/gl_xlist.h: New file.
72518         * lib/gl_xlist.c: New file.
72519         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72520         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72521         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72522         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72523         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72524         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72525         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72526         gl_sortedlist_nx_add): New declarations.
72527         (struct gl_list_implementation): Rename and change methods accordingly.
72528         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72529         (gl_list_nx_create): Renamed from gl_list_create.
72530         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72531         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72532         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72533         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72534         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72535         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72536         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72537         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72538         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72539         gl_list_create_empty.
72540         (gl_list_nx_create): Renamed from gl_list_create.
72541         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72542         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72543         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72544         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72545         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72546         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72547         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72548         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72549         * lib/gl_array_list.c: Don't include xalloc.h.
72550         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72551         NULL upon out-of-memory.
72552         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72553         out-of-memory.
72554         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72555         Change return type to 'int'.
72556         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72557         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72558         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72559         upon out-of-memory.
72560         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72561         upon out-of-memory.
72562         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72563         upon out-of-memory.
72564         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72565         upon out-of-memory.
72566         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72567         out-of-memory.
72568         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72569         Update.
72570         (gl_array_list_implementation): Update.
72571         * lib/gl_carray_list.c: Don't include xalloc.h.
72572         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72573         Return NULL upon out-of-memory.
72574         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72575         out-of-memory.
72576         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72577         Change return type to 'int'.
72578         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72579         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72580         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72581         upon out-of-memory.
72582         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72583         upon out-of-memory.
72584         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72585         out-of-memory.
72586         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72587         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72588         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72589         Update.
72590         (gl_carray_list_implementation): Update.
72591         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72592         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72593         gl_linked_create_empty. Return NULL upon out-of-memory.
72594         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72595         out-of-memory.
72596         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72597         Change return type to 'int'. Return -1 upon out-of-memory.
72598         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72599         out-of-memory.
72600         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72601         upon out-of-memory.
72602         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72603         upon out-of-memory.
72604         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72605         NULL upon out-of-memory.
72606         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72607         upon out-of-memory.
72608         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72609         out-of-memory.
72610         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72611         Update.
72612         * lib/gl_linked_list.c: Don't include xalloc.h.
72613         (gl_linked_list_implementation): Update.
72614         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72615         (add_to_bucket): Change return type to 'int'.
72616         (gl_linkedhash_list_implementation): Update.
72617         * lib/gl_anytree_list1.h (free_subtree): New function.
72618         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72619         gl_tree_create_empty. Return NULL upon out-of-memory.
72620         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72621         Change return type to 'int'. Return -1 upon out-of-memory.
72622         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72623         out-of-memory.
72624         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72625         (gl_tree_remove_node): New function, moved here from
72626         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72627         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72628         Update.
72629         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72630         malloc, not xmalloc. Return NULL upon out-of-memory.
72631         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72632         out-of-memory.
72633         (gl_tree_remove_node_from_tree): New function, extracted from
72634         gl_tree_remove_node.
72635         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72636         upon out-of-memory.
72637         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72638         out-of-memory.
72639         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72640         upon out-of-memory.
72641         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72642         upon out-of-memory.
72643         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72644         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72645         not xmalloc. Return NULL upon out-of-memory.
72646         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72647         out-of-memory.
72648         (gl_tree_remove_node_from_tree): New function, extracted from
72649         gl_tree_remove_node.
72650         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72651         upon out-of-memory.
72652         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72653         out-of-memory.
72654         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72655         upon out-of-memory.
72656         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72657         upon out-of-memory.
72658         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72659         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72660         gl_anytree_list1.h before gl_anyavltree_list2.h.
72661         (gl_avltree_list_implementation): Update.
72662         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72663         gl_anytree_list1.h before gl_anyavltree_list2.h.
72664         (gl_rbtree_list_implementation): Update.
72665         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72666         Change return type to 'int'. Return -1 upon out-of-memory. Use
72667         __builtin_expect.
72668         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72669         (gl_avltreehash_list_implementation): Update.
72670         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72671         (gl_rbtreehash_list_implementation): Update.
72672         * modules/array-list (Depends-on): Remove xalloc.
72673         * modules/carray-list (Depends-on): Likewise.
72674         * modules/linked-list (Depends-on): Likewise.
72675         * modules/linkedhash-list (Depends-on): Likewise.
72676         * modules/avltree-list (Depends-on): Likewise.
72677         * modules/rbtree-list (Depends-on): Likewise.
72678         * modules/avltreehash-list (Depends-on): Likewise.
72679         * modules/rbtreehash-list (Depends-on): Likewise.
72681         * modules/xsublist: New file.
72682         * lib/gl_xsublist.h: New file.
72683         * lib/gl_xsublist.c: New file.
72684         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72685         (gl_sublist_nx_create): New declaration.
72686         * lib/gl_sublist.c: Don't include xalloc.h.
72687         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72688         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72689         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72690         Change return type to 'int'. Return -1 upon out-of-memory.
72691         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72692         upon out-of-memory.
72693         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72694         NULL upon out-of-memory.
72695         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72696         upon out-of-memory.
72697         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72698         NULL upon out-of-memory.
72699         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72700         NULL upon out-of-memory.
72701         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72702         upon out-of-memory.
72703         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72704         (gl_sublist_list_implementation): Update.
72705         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72706         upon out-of-memory.
72707         * modules/sublist (Depends-on): Remove xalloc.
72709         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72710         * tests/test-carray_list.c: Likewise.
72711         * tests/test-linked_list.c: Likewise.
72712         * tests/test-linkedhash_list.c: Likewise.
72713         * tests/test-avltree_list.c: Likewise.
72714         * tests/test-rbtree_list.c: Likewise.
72715         * tests/test-avltreehash_list.c: Likewise.
72716         * tests/test-rbtreehash_list.c: Likewise.
72717         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72718         * modules/carray-list-tests (Makefile.am): Likewise.
72719         * modules/linked-list-tests (Makefile.am): Likewise.
72720         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72721         * modules/avltree-list-tests (Makefile.am): Likewise.
72722         * modules/rbtree-list-tests (Makefile.am): Likewise.
72723         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72724         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72726         * NEWS: Mention the changes.
72728         * lib/clean-temp.c: Include gl_xlist.h.
72729         * modules/clean-temp (Depends-on): Add xlist.
72731         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72732         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72734         * tests/test-array_oset.c: Include gl_xlist.h.
72735         * modules/array-oset-tests (Depends-on): Add xlist.
72737         Reported by José E. Marchesi <jemarch@gnu.org>.
72739 2009-12-13  Bruno Haible  <bruno@clisp.org>
72741         Move the malloc checking from module 'oset' to new module 'xoset'.
72742         * modules/xoset: New file.
72743         * lib/gl_xoset.h: New file.
72744         * lib/gl_xoset.c: New file.
72745         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72746         declarations.
72747         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72748         (struct gl_oset_implementation): Rename and change methods accordingly.
72749         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72750         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72751         'int'. Mark as __warn_unused_result__.
72752         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72753         gl_oset_create_empty.
72754         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72755         'int'.
72756         * lib/gl_array_oset.c: Don't include xalloc.h.
72757         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72758         malloc, not xmalloc.
72759         (grow): Change return type to 'int'. Don't call xalloc_die.
72760         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72761         to 'int'.
72762         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72763         'int'.
72764         (gl_array_oset_implementation): Update.
72765         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72766         gl_tree_create_empty.
72767         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72768         'int'.
72769         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72770         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72771         xmalloc.
72772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72773         not xmalloc.
72774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72775         xmalloc.
72776         (gl_avltree_oset_implementation): Update.
72777         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72778         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72779         xmalloc.
72780         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72781         not xmalloc.
72782         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72783         xmalloc.
72784         (gl_rbtree_oset_implementation): Update.
72785         * modules/array-oset (Depends-on): Remove xalloc.
72786         * modules/avltree-oset (Depends-on): Likewise.
72787         * modules/rbtree-oset (Depends-on): Likewise.
72788         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72789         * tests/test-avltree_oset.c: Likewise.
72790         * tests/test-rbtree_oset.c: Likewise.
72791         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72792         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72793         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72794         * NEWS: Mention the change.
72796 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72798         maint.mk: allow a project to override release-prep commands
72799         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72800         commands into a new rule.
72801         (release-prep): New rule.
72802         (release-prep-hook): New overridable variable.
72804 2009-12-13  Bruno Haible  <bruno@clisp.org>
72806         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72808 2009-12-13  Jim Meyering  <meyering@redhat.com>
72810         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72811         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72813 2009-12-12  Bruno Haible  <bruno@clisp.org>
72815         duplocale: Tweak.
72816         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72818 2009-12-12  Karl Berry  <karl@gnu.org>
72820         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72822 2009-12-12  Bruno Haible  <bruno@clisp.org>
72824         * m4/po.m4: Undo incorrect untabification.
72826 2009-12-12  Bruno Haible  <bruno@clisp.org>
72828         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72829         * modules/c-strtod (Depends-on): Add locale.
72830         * modules/c-strtold (Depends-on): Likewise.
72832 2009-12-12  Bruno Haible  <bruno@clisp.org>
72834         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72836 2009-12-11  Eric Blake  <ebb9@byu.net>
72838         setenv: relax requirement in light of POSIX ruling
72839         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72840         not NULL.
72841         * tests/test-setenv.c (main): Relax test.
72842         * tests/test-unsetenv.c (main): Likewise.
72843         * doc/posix-functions/setenv.texi (setenv): Document this.
72844         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72846 2009-12-11  Bruno Haible  <bruno@clisp.org>
72848         New module 'fd-safer-flag'.
72849         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72850         * lib/dup-safer.c (dup_safer_flag): Remove function.
72851         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72852         * lib/fd-safer.c (fd_safer_flag): Remove function.
72853         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72854         * modules/cloexec (configure.ac): Drop indicator macro.
72855         * modules/fd-safer-flag: New file.
72856         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72857         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72858         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72860 2009-12-11  Bruno Haible  <bruno@clisp.org>
72862         Tests for module 'nl_langinfo'.
72863         * modules/nl_langinfo-tests: New file.
72864         * tests/test-nl_langinfo.sh: New file.
72865         * tests/test-nl_langinfo.c: New file.
72867         New module 'nl_langinfo'.
72868         * lib/nl_langinfo.c: New file.
72869         * m4/nl_langinfo.m4: New file.
72870         * modules/nl_langinfo: New file.
72871         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72873 2009-12-11  Bruno Haible  <bruno@clisp.org>
72875         Tests for module 'langinfo'.
72876         * modules/langinfo-tests: New file.
72877         * tests/test-langinfo.c: New file.
72879         New module 'langinfo'.
72880         * lib/langinfo.in.h: New file.
72881         * m4/langinfo_h.m4: New file.
72882         * modules/langinfo: New file.
72883         * doc/posix-headers/langinfo.texi: Mention the new module.
72885 2009-12-11  Bruno Haible  <bruno@clisp.org>
72887         * lib/config.charset: Untabify.
72889 2009-12-11  Bruno Haible  <bruno@clisp.org>
72891         * modules/unistd-safer (configure.ac): Drop indicator macro.
72893 2009-12-11  Bruno Haible  <bruno@clisp.org>
72895         Move pipe2-safer code to its own file.
72896         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72897         * lib/pipe-safer.c (pipe2_safer): Remove function.
72898         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72899         (Makefile.am): Add it to lib_SOURCES.
72901 2009-12-10  Bruno Haible  <bruno@clisp.org>
72903         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72905 2009-12-10  Bruno Haible  <bruno@clisp.org>
72907         Declare which arguments expect non-NULL values, for GCC and clang.
72908         * build-aux/arg-nonnull.h: New file.
72909         * modules/arg-nonnull: New file.
72910         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72911         (inet_ntop, inet_pton): Use it.
72912         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72913         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72914         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72915         (open, openat): Use it.
72916         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72917         (fnmatch): Use it.
72918         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72919         (getopt, getopt_long, getopt_long_only): Use it.
72920         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72921         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72922         Use it.
72923         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72924         (iconv_open): Use it.
72925         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72926         (strtoimax, strtoumax): Use it.
72927         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72928         (duplocale): Use it.
72929         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72930         (frexp, frexpl): Use it.
72931         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72932         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72933         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72934         (tsearch, tfind, tdelete, twalk): Use it.
72935         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72936         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72937         sigpending): Use it.
72938         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72939         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72940         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72941         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72942         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72943         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72944         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72945         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72946         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72947         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72948         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72949         Use it.
72950         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72951         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72952         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72953         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72954         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72955         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72956         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72957         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72958         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72959         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72960         strtoull, unsetenv): Use it.
72961         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72962         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72963         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72964         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72965         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72966         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72967         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
72968         (strcasecmp, strncasecmp): Use it.
72969         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
72970         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
72971         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
72972         rpl_setsockopt): Use it.
72973         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
72974         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
72975         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
72976         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
72977         (gettimeofday): Use it.
72978         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
72979         (times): Use it.
72980         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
72981         (uname): Use it.
72982         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
72983         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
72984         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
72985         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
72986         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
72987         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
72988         unlinkat, write): Use it.
72989         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
72990         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
72991         * lib/argv-iter.h: Include arg-nonnull.h.
72992         (_ATTRIBUTE_NONNULL_): Remove macro.
72993         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
72994         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
72995         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
72996         optimization.
72997         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
72998         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
72999         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73000         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73001         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73002         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73003         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73004         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73005         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73006         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73007         * modules/dirent (Depends-on): Add arg-nonnull.
73008         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73009         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73010         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73011         * modules/fnmatch (Depends-on): Add arg-nonnull.
73012         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73013         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73014         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73015         * modules/glob (Depends-on): Add arg-nonnull.
73016         (Makefile.am): Insert arg-nonnull.h into glob.h.
73017         * modules/iconv_open (Depends-on): Add arg-nonnull.
73018         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73019         * modules/inttypes (Depends-on): Add arg-nonnull.
73020         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73021         * modules/locale (Depends-on): Add arg-nonnull.
73022         (Makefile.am): Insert arg-nonnull.h into locale.h.
73023         * modules/math (Depends-on): Add arg-nonnull.
73024         (Makefile.am): Insert arg-nonnull.h into math.h.
73025         * modules/netdb (Depends-on): Add arg-nonnull.
73026         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73027         * modules/search (Depends-on): Add arg-nonnull.
73028         (Makefile.am): Insert arg-nonnull.h into search.h.
73029         * modules/signal (Depends-on): Add arg-nonnull.
73030         (Makefile.am): Insert arg-nonnull.h into signal.h.
73031         * modules/spawn (Depends-on): Add arg-nonnull.
73032         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73033         * modules/stdio (Depends-on): Add arg-nonnull.
73034         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73035         * modules/stdlib (Depends-on): Add arg-nonnull.
73036         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73037         * modules/string (Depends-on): Add arg-nonnull.
73038         (Makefile.am): Insert arg-nonnull.h into string.h.
73039         * modules/strings (Depends-on): Add arg-nonnull.
73040         (Makefile.am): Insert arg-nonnull.h into strings.h.
73041         * modules/sys_socket (Depends-on): Add arg-nonnull.
73042         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73043         * modules/sys_stat (Depends-on): Add arg-nonnull.
73044         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73045         * modules/sys_time (Depends-on): Add arg-nonnull.
73046         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73047         * modules/sys_times (Depends-on): Add arg-nonnull.
73048         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73049         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73050         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73051         * modules/time (Depends-on): Add arg-nonnull.
73052         (Makefile.am): Insert arg-nonnull.h into time.h.
73053         * modules/unistd (Depends-on): Add arg-nonnull.
73054         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73055         * modules/wchar (Depends-on): Add arg-nonnull.
73056         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73057         * modules/argv-iter (Depends-on): Add arg-nonnull.
73058         * tests/test-canonicalize.c (null_ptr): New function.
73059         (main): Use it.
73060         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73061         (main): Use it.
73062         * tests/test-memmem.c (null_ptr): New function.
73063         (main): Use it.
73064         Reported by Jim Meyering.
73066 2009-12-10  Bruno Haible  <bruno@clisp.org>
73068         Use spaces for indentation, not tabs.
73069         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73070         * m4/*.m4: Untabify.
73071         * build-aux/*.h: Untabify.
73072         * tests/**/*.[hc]: Untabify.
73073         * README: New section "Indent with spaces, not TABs", based on
73074         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
73075         * NEWS: Mention the change.
73077 2009-12-10  Bruno Haible  <bruno@clisp.org>
73079         pty test: Fix link error.
73080         * modules/pty-tests (Makefile.am): Add the default LDADD value to
73081         test_pty_LDADD.
73083 2009-12-07  Simon Josefsson  <simon@josefsson.org>
73085         * modules/pty: New file.
73086         * modules/pty-tests: New file.
73087         * m4/pty.m4: New file.
73088         * tests/test-pty.c: New file.
73089         * doc/glibc-headers/pty.texi: Modified.
73090         * doc/glibc-functions/forkpty.texi: Modified.
73091         * doc/glibc-functions/openpty.texi: Modified.
73093 2009-12-10  Bruno Haible  <bruno@clisp.org>
73095         Avoid syntax error in C++ mode.
73096         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
73098 2009-12-10  Bruno Haible  <bruno@clisp.org>
73100         Use sed with option -e.
73101         * gnulib-tool (func_version, func_emit_copyright_notice,
73102         func_emit_initmacro_end, func_import, func_create_testdir): Pass
73103         option -e to sed.
73104         * modules/link-warning (Makefile.am): Likewise.
73106 2009-12-10  Jim Meyering  <meyering@redhat.com>
73108         mgetgroups: do not write bytes beyond end of malloc'd buffer
73109         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73110         username, we call getgroups with a one-element-shorter buffer,
73111         but still told it the length was original, max_n_groups.
73113 2009-12-09  Eric Blake  <ebb9@byu.net>
73115         cloexec: relax license
73116         * modules/cloexec (Maintainer): Add myself.
73117         (License): Use LGPL, not GPL.
73119         link-warning: optimize generation
73120         * modules/link-warning (Makefile.am): Reduce process usage.
73122 2009-12-09  Bruno Haible  <bruno@clisp.org>
73124         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73125         workaround was added on 2009-11-17.
73127 2009-12-09  Jim Meyering  <meyering@redhat.com>
73128             Bruno Haible  <bruno@clisp.org>
73130         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73131         * modules/link-warning (Makefile.am): Make the comment-removing sed
73132         command more robust in the face of bootstrap-prepended comment lines.
73134 2009-12-09  Bruno Haible  <bruno@clisp.org>
73136         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73137         most one group.
73139 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73140             Bruno Haible  <bruno@clisp.org>
73142         * build-aux/link-warning.h: Add copyright notice.
73143         * modules/link-warning (Makefile.am): Generate link-warning.h from
73144         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73145         * NEWS: Mention change in link-warning module.
73146         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73147         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73148         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73149         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73150         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73151         * modules/math (Makefile.am): Add dependency to math.h.
73152         * modules/search (Makefile.am): Add dependency to search.h.
73153         * modules/signal (Makefile.am): Add dependency to signal.h.
73154         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73155         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73156         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73157         * modules/string (Makefile.am): Add dependency to string.h.
73158         * modules/strings (Makefile.am): Add dependency to strings.h.
73159         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73160         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73161         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73162         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73163         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73164         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73165         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73166         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73167         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73169 2009-12-09  Bruno Haible  <bruno@clisp.org>
73171         fchdir: Optimize away rpl_fstat when possible.
73172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73173         REPLACE_OPEN_DIRECTORY.
73174         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73176 2009-12-09  Bruno Haible  <bruno@clisp.org>
73178         * lib/fchdir.c: Update comment.
73180 2009-12-09  Bruno Haible  <bruno@clisp.org>
73182         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73184 2009-12-08  Eric Blake  <ebb9@byu.net>
73186         fchdir: avoid memory leak on re-registration.
73187         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73189 2009-12-08  Jim Meyering  <meyering@redhat.com>
73191         init.sh: avoid Solaris 10 /bin/sh portability problem
73192         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73193         sourced script:
73194           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73195           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73196           bar
73197         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73198         and two tests used that idiom.
73199         * tests/init.sh: Update suggested usage comments.
73200         (path_prepend_): New function, to be used in place
73201         of the --src-path=DIR option.
73202         (setup_): Move PATH-prepending code into path_prepend_.
73203         * tests/test-pread.sh: Adapt to new usage.
73204         * tests/test-xalloc-die.sh: Likewise.
73206 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73208         * doc/gnulib.texi (Glibc pty.h): Add.
73209         * doc/glibc-functions/forkpty.texi: Add.
73210         * doc/glibc-functions/openpty.texi: Add.
73211         Suggested by Bruno Haible.
73213 2009-12-08  Eric Blake  <ebb9@byu.net>
73215         fchdir: fix logic bugs
73216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73217         * tests/test-fchdir.c (main): Enhance test.
73218         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73219         is in use.
73221         dup2: fix logic bugs
73222         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73223         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73224         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73225         exists.
73226         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73228 2009-12-07  Eric Blake  <ebb9@byu.net>
73230         unlink: fix m4 detection
73231         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73233         unistd-safer: add unit test
73234         * modules/unistd-safer-tests: New file.
73235         * tests/test-dup-safer.c: Likewise.
73236         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73237         * tests/test-dup2.c (setmode): Likewise.
73238         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73240         cloexec: preserve text vs. binary across dup_cloexec
73241         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73242         mode.
73243         * modules/dup2-tests (Depends-on): Add binary-io.
73244         * modules/cloexec-tests (Depends-on): Likewise.
73245         * tests/test-dup2.c (setmode, is_mode): New helpers.
73246         (main): Add tests that translation mode is preserved.
73247         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73248         Reported by Bruno Haible.
73250         mgetgroups: reduce duplicate listings
73251         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73252         resulting array.
73253         * tests/test-chown.h (test_chown): Simplify client.
73254         * tests/test-lchown.h (test_lchown): Likewise.
73256 2009-12-06  Bruno Haible  <bruno@clisp.org>
73258         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73259         value.
73261 2009-12-06  Bruno Haible  <bruno@clisp.org>
73263         * lib/progname.c: Include stdio.h, stdlib.h.
73264         (set_program_name): Reject a NULL argument.
73266 2009-12-05  Eric Blake  <ebb9@byu.net>
73268         pipe2-safer: new module
73269         * modules/pipe2-safer: New file.
73270         * lib/unistd-safer.h (pipe2_safer): New prototype.
73271         * lib/unistd--.h (pipe2): New wrapper.
73272         * lib/pipe-safer.c (pipe2_safer): New function.
73273         * modules/pipe (Depends-on): Add pipe2-safer.
73274         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73276         stdlib-safer: preserve cloexec flag for mkostemp[s]
73277         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73278         fd_safer_flag.
73280         unistd-safer: allow preservation of cloexec status via flag
73281         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73282         prototypes.
73283         * lib/dup-safer.c (dup_safer_flag): New function.
73284         * lib/fd-safer.c (fd_safer_flag): Likewise.
73285         * modules/cloexec (configure.ac): Set witness.
73287         test-dup2: enhance test
73288         * modules/dup2-tests (Depends-on): Add cloexec.
73289         * tests/test-dup2.c (main): Enhance test.
73291         cloexec: add dup_cloexec
73292         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73293         header and comments.
73294         * lib/cloexec.c (set_cloexec_flag): Add comments.
73295         (dup_cloexec): New function, with mingw implementation borrowed
73296         from...
73297         * lib/w32spawn.h (dup_noinherit): ...here.
73298         * modules/execute (Depends-on): Add cloexec.
73299         * modules/pipe (Depends-on): Likewise.
73300         * modules/cloexec (Depends-on): Add dup2.
73301         * modules/cloexec-tests (Files): New file.
73302         * tests/test-cloexec.c: Likewise.
73304         test-xalloc-die: fix test for mingw
73305         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73306         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73307         directory and .exe suffix off argv[0] output.
73309         test-fseeko: fix test for mingw
73310         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73311         than undefining fseek, so test will pass on mingw.
73313 2009-12-05  Bruno Haible  <bruno@clisp.org>
73315         * lib/progname.h (set_program_name): Clarify specification.
73316         * lib/progname.c (set_program_name): Likewise.
73317         Reported by Jim Meyering.
73319 2009-12-05  Jim Meyering  <meyering@redhat.com>
73321         maint.mk: backslash-escape parens in default regexp
73322         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73323         backslash-escape the literal parentheses.
73325         maint.mk: news-date-check: use grep -E
73326         * top/maint.mk (today): Define a Make variable, not a...
73327         (news-date-check): ...shell variable.
73328         (news-date-regexp): Use the Make variable.
73329         Use grep's -E option.  Change the failing diagnostic to mention
73330         the variable, $(news-date-regexp).
73332 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73334         maintainer-makefile: allow customization of NEWS entry format
73335         * top/maint.mk (news-date-regexp): New overridable variable.
73336         (news-date-check): Use it.
73338 2009-12-04  Eric Blake  <ebb9@byu.net>
73340         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73341         * lib/mgetgroups.h (xgetgroups): New prototype.
73342         * lib/mgetgroups.c (xgetgroups): New wrapper.
73343         (mgetgroups): Handle ENOSYS.
73344         * modules/mgetgroups (Depends-on): Add realloc.
73345         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73347         mgetgroups: avoid argument promotion issues with -1
73348         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73349         for invalid gid_t.
73350         * tests/test-chown.h (getegid, test_chown): Likewise.
73351         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73353 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73355         exclude: Fix header file problems.
73356         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73358 2009-12-01  Jim Meyering  <meyering@redhat.com>
73360         fts: fts_open: do not let an empty string cause immediate failure
73361         This is required in support of GNU rm, for which the command
73362         "rm A '' B" must process and remove both A and B, in spite of
73363         the empty string argument.
73364         * lib/fts.c (fts_open): Do not let the presence of an empty string
73365         cause fts_open to fail immediately.  Most fts-using tools must be
73366         able to process all arguments, in order, and can be expected to
73367         diagnose such arguments themselves.
73369 2009-11-30  Eric Blake  <ebb9@byu.net>
73371         utimens: fix compilation error
73372         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73373         Declare variable at right scope.
73375 2009-11-29  Jim Meyering  <meyering@redhat.com>
73377         bootstrap: handle perl-5.11's changed --version output
73378         * build-aux/bootstrap (get_version): Handle perl separately,
73379         since perl-5.11's --version output is different.
73381 2009-11-28  Jim Meyering  <meyering@redhat.com>
73383         userspec: depend on the inttostr module, too
73384         * modules/userspec (Depends-on): Add inttostr.
73386         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73387         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73388         number of MAXUID when it evaluates to (uid_t) -1.
73389         Likewise for group ID.  Reported by Matt McCutchen in
73390         <http://savannah.gnu.org/bugs/?28113>
73392         userspec: reformat to use spaces, not TABs
73393         * lib/userspec.c: Expand TABs to spaces.
73394         Add Emacs' "indent-tabs-mode: nil" hint.
73396 2009-11-27  Eric Blake  <ebb9@byu.net>
73398         getopt-gnu: flush out another BSD bug
73399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73400         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73401         flush out BSD bug.
73402         * tests/test-getopt.h (test_getopt): End lists with NULL.
73403         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73404         (test_getopt_long_posix): Enhance test.
73405         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73406         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73407         getopt-gnu.
73408         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73409         Likewise.
73411 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73413         * modules/idpriv-droptemp-tests (Notice): Fix text.
73415 2009-11-27  Jim Meyering  <meyering@redhat.com>
73417         test-xalloc-die: avoid spurious failure due to libtool argv difference
73418         In a libtool-enabled project, this test would fail due to a difference
73419         in the emitted program name, e.g.,
73420         -test-xalloc-die: memory exhausted
73421         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73422         Use program to avoid that.
73423         * modules/xalloc-die-tests (Depends-on): Add progname.
73424         * tests/test-xalloc-die.c: Include progname.h".
73425         (program_name): Remove decl.
73426         (main): Call set_program_name.
73427         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73429 2009-11-26  Richard Jones  <rjones@redhat.com>
73431         w32sock: leave win32 error in place.
73432         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73434 2009-11-26  Eric Blake  <ebb9@byu.net>
73436         init.sh: suggest to use skip_ and fail_ functions in comments
73437         * tests/init.sh: Add a sentence.
73439 2009-11-25  Bruno Haible  <bruno@clisp.org>
73441         init.sh: add documentation in comments
73442         * tests/init.sh: Add some developer and user documentation.
73444 2009-11-26  Jim Meyering  <meyering@redhat.com>
73446         init.sh: accommodate even those who specify bogus srcdir manually
73447         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73448         configure-time tests to be sanitized, so that there is no need to
73449         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73450         (with no double quotes) suffices.  However, since tests may be
73451         invoked manually, and since you may explicitly set srcdir to the
73452         name of a directory containing spaces, do quote its uses here.
73453         * tests/test-pread.sh: Likewise.
73454         Suggested by Bruno Haible.
73456         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73457         * tests/test-pread.sh: Write no data into the pipe, because
73458         test-pread actually reads none.  This avoids a diagnostic,
73459         "bash: echo: write error: Broken pipe", that arises in the unusual
73460         event something is ignoring SIGPIPE, and might be interpreted
73461         as some sort of failure.  Reported by Bruno Haible.
73463 2009-11-25  Jim Meyering  <meyering@redhat.com>
73465         test-pread: cover failure with ESPIPE and EINVAL
73466         * tests/test-pread.c (main): Test for failure, too.
73467         * tests/test-pread.sh: Invoke with stdin on a pipe.
73468         Suggested by Eric Blake.
73470         pread: improvement and fix
73471         * modules/pread (Depends-on): Depend on lseek, for portability to
73472         e.g., mingw.  Suggested by Eric Blake.
73473         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73475         unistd.in.h: correct declaration of pread
73476         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73477         Reported by Richard W.M. Jones.
73479         test-pread.sh: distribute the test script
73480         * modules/pread-tests (Files): Include test-pread.sh.
73482         test-pread.sh: clean up
73483         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73484         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73485         That is unnecessary, since it's always ".".
73486         Suggestion from Eric Blake.
73488         test-pread.sh: make executable
73489         * tests/test-pread.sh: Set executable bit.
73490         Reported by Eric Blake.
73492         correct typo in test-pread.sh
73493         * tests/test-pread.sh: Add #! line.
73495         test pread
73496         * tests/test-pread.c: New file.
73497         * tests/test-pread.sh: Likewise.
73498         * modules/pread-tests: Likewise.
73500         pread: new module
73501         * modules/pread: New file.
73502         * lib/unistd.in.h (pread): Define/declare.
73503         * lib/pread.c (pread): New file.
73504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73505         * modules/unistd (Makefile.am): Substitute witnesses.
73506         * doc/posix-functions/pread.texi (pread): Update.
73507         * MODULES.html.sh: Add pread.
73509 2009-11-25  Jim Meyering  <meyering@redhat.com>
73511         tests/init.sh: new file to be used via most *.sh tests
73512         * tests/init.sh: New file.
73514 2009-11-25  Eric Blake  <ebb9@byu.net>
73516         utimens: work around older Linux failure with symlinks
73517         * lib/utimens.c (lutimensat_works_really): New variable.
73518         (fdutimens, lutimens): Use it to manage kernels that support
73519         nanosecond times on files, but not on symlinks.
73520         Reported by Ondřej Vašík.
73522         utimes: fix configure grammar
73523         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73525 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73527         regex: Fix fastmap for multibyte character ranges.
73528         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73529         characters when a multibyte character range is included.
73531 2009-11-22  Andy Wingo  <wingo@pobox.com>
73533         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73534         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73536 2009-11-24  Bruno Haible  <bruno@clisp.org>
73538         doc: Most *_l functions exist in MacOS X 10.5.
73539         * doc/posix-functions/duplocale.texi: Update platforms list.
73540         * doc/posix-functions/freelocale.texi: Likewise.
73541         * doc/posix-functions/newlocale.texi: Likewise.
73542         * doc/posix-functions/uselocale.texi: Likewise.
73543         * doc/posix-functions/isalnum_l.texi: Likewise.
73544         * doc/posix-functions/isalpha_l.texi: Likewise.
73545         * doc/posix-functions/isblank_l.texi: Likewise.
73546         * doc/posix-functions/iscntrl_l.texi: Likewise.
73547         * doc/posix-functions/isdigit_l.texi: Likewise.
73548         * doc/posix-functions/isgraph_l.texi: Likewise.
73549         * doc/posix-functions/islower_l.texi: Likewise.
73550         * doc/posix-functions/isprint_l.texi: Likewise.
73551         * doc/posix-functions/ispunct_l.texi: Likewise.
73552         * doc/posix-functions/isspace_l.texi: Likewise.
73553         * doc/posix-functions/isupper_l.texi: Likewise.
73554         * doc/posix-functions/iswalnum_l.texi: Likewise.
73555         * doc/posix-functions/iswalpha_l.texi: Likewise.
73556         * doc/posix-functions/iswblank_l.texi: Likewise.
73557         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73558         * doc/posix-functions/iswctype_l.texi: Likewise.
73559         * doc/posix-functions/iswdigit_l.texi: Likewise.
73560         * doc/posix-functions/iswgraph_l.texi: Likewise.
73561         * doc/posix-functions/iswlower_l.texi: Likewise.
73562         * doc/posix-functions/iswprint_l.texi: Likewise.
73563         * doc/posix-functions/iswpunct_l.texi: Likewise.
73564         * doc/posix-functions/iswspace_l.texi: Likewise.
73565         * doc/posix-functions/iswupper_l.texi: Likewise.
73566         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73567         * doc/posix-functions/isxdigit_l.texi: Likewise.
73568         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73569         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73570         * doc/posix-functions/strcoll_l.texi: Likewise.
73571         * doc/posix-functions/strfmon_l.texi: Likewise.
73572         * doc/posix-functions/strftime_l.texi: Likewise.
73573         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73574         * doc/posix-functions/strxfrm_l.texi: Likewise.
73575         * doc/posix-functions/tolower_l.texi: Likewise.
73576         * doc/posix-functions/toupper_l.texi: Likewise.
73577         * doc/posix-functions/towctrans_l.texi: Likewise.
73578         * doc/posix-functions/towlower_l.texi: Likewise.
73579         * doc/posix-functions/towupper_l.texi: Likewise.
73580         * doc/posix-functions/wcscoll_l.texi: Likewise.
73581         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73582         * doc/posix-functions/wctrans_l.texi: Likewise.
73583         * doc/posix-functions/wctype_l.texi: Likewise.
73584         * doc/glibc-functions/strptime_l.texi: Likewise.
73585         * doc/glibc-functions/strtod_l.texi: Likewise.
73586         * doc/glibc-functions/strtof_l.texi: Likewise.
73587         * doc/glibc-functions/strtol_l.texi: Likewise.
73588         * doc/glibc-functions/strtold_l.texi: Likewise.
73589         * doc/glibc-functions/strtoll_l.texi: Likewise.
73590         * doc/glibc-functions/strtoul_l.texi: Likewise.
73591         * doc/glibc-functions/strtoull_l.texi: Likewise.
73592         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73593         * doc/glibc-functions/wcstod_l.texi: Likewise.
73594         * doc/glibc-functions/wcstof_l.texi: Likewise.
73595         * doc/glibc-functions/wcstol_l.texi: Likewise.
73596         * doc/glibc-functions/wcstold_l.texi: Likewise.
73597         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73598         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73599         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73601 2009-11-24  Bruno Haible  <bruno@clisp.org>
73603         duplocale: Fix logic bug.
73604         * lib/duplocale.c: Don't include <langinfo.h>.
73605         (_NL_LOCALE_NAME): Remove macro.
73606         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73607         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73609 2009-11-23  Jim Meyering  <meyering@redhat.com>
73611         test-update-copyright: don't hard-code /usr/bin/perl
73612         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73613         perl to print the current year.  Gilles Espinasse reported that
73614         the replaced use of perl was hard-coded as /usr/bin/perl.
73616 2009-11-23  Bruno Haible  <bruno@clisp.org>
73618         duplocale: Add support for glibc 2.3.x.
73619         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73621 2009-11-22  Bruno Haible  <bruno@clisp.org>
73623         vasnprintf: Tiny optimization.
73624         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73625         MacOS X.
73627 2009-11-22  Bruno Haible  <bruno@clisp.org>
73629         Tests for module 'duplocale'.
73630         * modules/duplocale-tests: New file.
73631         * tests/test-duplocale.c: New file.
73633         New module 'duplocale'.
73634         * m4/duplocale.m4: New file.
73635         * lib/locale.in.h (duplocale): New declaration.
73636         * lib/duplocale.c: New file.
73637         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73638         gl_LOCALE_H_DEFAULTS): New macros.
73639         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73640         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73641         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73642         REPLACE_DUPLOCALE.
73643         * modules/duplocale: New file.
73644         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73646 2009-11-22  Bruno Haible  <bruno@clisp.org>
73648         * modules/locale-tests (configure.ac): Test for newlocale function.
73649         * tests/test-locale.c: When the system has extended locale functions,
73650         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73652         locale: Make locale_t available when possible.
73653         * lib/locale.in.h: Include <xlocale.h> when it exists.
73654         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73655         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73656         * modules/locale (Depends-on): Add extensions.
73657         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73658         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73660 2009-11-22  Bruno Haible  <bruno@clisp.org>
73662         Add comments.
73663         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73664         invocation.
73665         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73666         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73667         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73669 2009-11-22  Bruno Haible  <bruno@clisp.org>
73671         error: account for the possibility of freopen (stdout).
73672         * lib/error.c: Include <unistd.h>.
73673         (flush_stdout): New function, extracted from error and error_at_line.
73674         Determine stdout's fd dynamically.
73675         (error, error_at_line): Invoke flush_stdout.
73676         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73677         * modules/error (Depends-on): Add unistd.
73679 2009-11-22  Bruno Haible  <bruno@clisp.org>
73681         diffseq: Add comment.
73682         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73684 2009-11-22  Jim Meyering  <meyering@redhat.com>
73686         c-stack: avoid defining an unused static function
73687         * lib/c-stack.c (find_stack_direction): Do not define this function
73688         when it will not be used.
73690         diffseq: avoid spurious gcc warnings
73691         * lib/diffseq.h (IF_LINT2): Define.
73692         (compareseq): Use it to initialize two members of "part".
73693         This avoids two used-uninitialized warnings.
73695 2009-11-21  Jim Meyering  <meyering@redhat.com>
73697         c-stack: avoid "ignoring return value of `write'" warning
73698         * lib/c-stack.c: Include "ignore-value.h".
73699         (die): Explicitly ignore each write return value.
73700         * modules/c-stack (Depends-on): Add ignore-value.
73702 2009-11-21  Bruno Haible  <bruno@clisp.org>
73704         diffseq: reduce scope of variable 'best'.
73705         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73706         variable, earlier used for two different purposes.
73708 2009-11-21  Jim Meyering  <meyering@redhat.com>
73710         diffseq: remove useless assignment to "best"
73711         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73712         assignment.  At that point "best" is already guaranteed to be zero.
73714 2009-11-20  Eric Blake  <ebb9@byu.net>
73716         build: mention ftp redirector in release announcements
73717         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73718         values that used to come from cfg.mk; mention FTP redirect URL.
73719         * build-aux/announce-gen: Mention the mirror list.
73720         Suggested by Karl Berry.
73722         nanosleep: improve port to mingw
73723         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73725         LIB_NANOSLEEP, but only when needed.
73726         * modules/select (Link): Document LIBSOCKET.
73727         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73728         enough.
73730         nanosleep: work around cygwin bug
73731         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73732         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73733         bug.
73734         (getnow): Delete, not needed.
73735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73736         LIB_CLOCK_GETTIME.
73737         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73738         clock-time, gettime.
73739         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73740         bug.
73741         * modules/nanosleep-tests: New test.
73742         * tests/test-nanosleep.c: New file.
73744         sleep: work around cygwin bug
73745         * lib/sleep.c (rpl_sleep): Work around the bug.
73746         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73747         (gl_PREREQ_SLEEP): Delete unused macro.
73748         * modules/sleep (Depends-on): Add verify.
73749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73750         * modules/unistd (Makefile.am): Substitute witness.
73751         * lib/unistd.in.h (sleep): Update prototype.
73752         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73753         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73754         * modules/sleep-tests (Depends-on): Check for alarm.
73756 2009-11-20  Jim Meyering  <meyering@redhat.com>
73758         maint.mk: improve sc_prohibit_magic_number_exit
73759         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73760         so it does not match uses like System.exit(1).
73761         Add comments showing how to correct all offenders.
73763 2009-11-19  Eric Blake  <ebb9@byu.net>
73765         xalloc-die-tests: add missing library
73766         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73768         test-xvasprintf: silence compiler warnings
73769         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73770         empty string from gcc.
73772 2009-11-19  Jim Meyering  <meyering@redhat.com>
73774         xfreopen: new module, from coreutils
73775         * modules/xfreopen: New module.
73776         * lib/xfreopen.c: New file.
73777         * lib/xfreopen.h: New file.
73778         * MODULES.html.sh (File stream based Input/Output"): Add it.
73780 2009-11-19  Eric Blake  <ebb9@byu.net>
73782         manywarnings: depend on warnings
73783         * modules/manywarnings (Depends-on): Add warnings.
73785         build: avoid compiler warnings
73786         * lib/select.c (rpl_select): Delete unused variable.
73787         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73789 2009-11-18  Eric Blake  <ebb9@byu.net>
73791         tests: avoid false negative with --with-packager
73792         * tests/test-version-etc.sh: Discard packager information.
73793         * tests/test-argp-version-etc-1.sh: Likewise.
73794         Reported by Mike Frysinger.
73796         utimens: fix regression on Solaris
73797         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73798         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73799         can only change fd timestamps via futimesat.  Instead, use an
73800         additional witness macro to avoid BSD bug.
73801         Reported by Jim Meyering.
73803 2009-11-17  Eric Blake  <ebb9@byu.net>
73805         usleep: use it to simplify tests
73806         * modules/stat-time-tests (Depends-on): Add usleep.
73807         (configure.ac): Drop usleep check.
73808         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73809         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73810         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73811         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73812         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73813         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73814         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73815         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73816         Likewise.
73817         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73818         * tests/test-lchown.h (nap): Likewise.
73819         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73820         * tests/test-stat-time.c (nap): Likewise.
73821         * tests/test-utimens-common.h (nap): Update comments.
73823         usleep: new module
73824         * modules/usleep: New file.
73825         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73826         * lib/usleep.c (usleep): Likewise.
73827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73828         * modules/unistd (Makefile.am): Substitute witnesses.
73829         * lib/unistd.in.h (usleep): Add declaration.
73830         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73831         * MODULES.html.sh (Date and time): Likewise.
73832         * modules/usleep-tests (Depends-on): New test.
73833         * tests/test-usleep.c: New file.
73835         chown: work around OpenBSD bug
73836         * lib/chown.c (rpl_chown): Work around the bug.
73837         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73838         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73839         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73840         * modules/chown (Depends-on): Add stdbool.
73841         * modules/lchown (Depends-on): Likewise.
73842         * doc/posix-functions/chown.texi (chown): Document the bug.
73843         * doc/posix-functions/lchown.texi (lchown): Likewise.
73844         * tests/test-lchown.h (test_chown): Relax test.
73846         mkstemp: avoid conflict with C++ keyword template
73847         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73848         * lib/mkostemp.c (mkostemp): Likewise.
73849         * lib/mkostemps.c (mkostemps): Likewise.
73850         * lib/mkstemp.c (mkstemp): Likewise.
73851         * lib/mkstemps.c (mkstemps): Likewise.
73853         xalloc-die-tests: optimize
73854         * tests/test-xalloc-die.sh: Reduce number of processes.
73856 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73858         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73859         patch from ludo@gnu.org (Ludovic Courtès).
73861 2009-11-17  Jim Meyering  <meyering@redhat.com>
73863         version-etc: use proper license string
73864         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73865         * modules/version-etc-fsf: Likewise.
73867 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73869         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73870         printed to stdout.  Deal with EOL differences.
73872 2009-11-17  Eric Blake  <ebb9@byu.net>
73874         unsetenv: work around Solaris bug
73875         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73876         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73877         Reported by Jim Meyering.
73879         vasnprintf: avoid compiler warnings
73880         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73881         variables.
73882         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73884 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73886         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73887         settings since xalloc-die is no longer the self test,
73888         xalloc-die.sh is.
73890 2009-11-17  Jim Meyering  <meyering@redhat.com>
73892         test-xalloc-die.sh: make the code agree with the commit log
73893         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73894         at the end, just in case you happen to have a test-xalloc-die
73895         program in some other PATH directory.
73897         test-xalloc-die.sh: fix a portability bug
73898         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73899         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73900         Otherwise, argv[0] (as often seen in diagnostics) would be too
73901         system-dependent, sometimes with, and sometimes without the leading "./".
73903         version-etc-fsf: relax license to LGPLv3+
73904         * modules/version-etc-fsf (License): Relax license.
73906 2009-11-16  Eric Blake  <ebb9@byu.net>
73908         xalloc-die-tests: avoid printing null pointer
73909         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73910         shell script.
73911         * tests/test-xalloc-die.c (program_name): Declare.
73912         * tests/test-xalloc-die.sh (tmpfiles): New file.
73914         setenv, unsetenv: work around various bugs
73915         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73916         (setenv) [HAVE_SETENV]: Work around bugs.
73917         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73918         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73919         for bugs.
73920         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73921         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73923         * modules/stdlib (Makefile.am): Update substitutions.
73924         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73925         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73926         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73927         * modules/setenv-tests: New test.
73928         * modules/unsetenv-tests: Likewise.
73929         * tests/test-setenv.c: New file.
73930         * tests/test-unsetenv.c: Likewise.
73932 2009-11-16  Jim Meyering  <meyering@redhat.com>
73934         version-etc: relax license to LGPLv3+
73935         * modules/version-etc (License): Relax license.
73937         better AC_REQUIRE expanded-before-required-warning avoidance
73938         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73939         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73940         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73941         which is no longer needed.
73943 2009-11-16  Eric Blake  <ebb9@byu.net>
73945         test-freading: clean up temporary file
73946         * tests/test-freading.c (main): Remove file on success, and use
73947         ASSERT more liberally.
73948         Reported by Jim Meyering.
73950 2009-11-16  Jim Meyering  <meyering@redhat.com>
73952         avoid new AC_REQUIRE expanded-before-required warnings
73953         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73954         merely using it.
73955         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73956         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73958 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73960         * tests/test-xalloc-die.c: New file.
73961         * modules/xalloc-die-tests: New file.
73962         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73963         XFAIL_TESTS so it can be appended by modules.
73965 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73967         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
73968         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
73970 2009-11-14  Eric Blake  <ebb9@byu.net>
73972         fnmatch: avoid compiler warning
73973         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
73974         to silence compiler warning about mismatch signedness in ?:.
73975         Reported by Robert Millan.
73977         intprops: add double-inclusion guard
73978         * lib/intprops.h: Allow idempotent includes.
73979         Suggested by Bruce Korb.
73981         openat: detect Solaris fchownat bug
73982         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
73983         penalizing glibc chownat when only lchownat is broken.
73984         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
73985         trailing slash bugs.
73986         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
73987         * modules/openat-tests (Files): Include more files.
73988         (Depends-on): Add mgetgroups, sleep, stat-time.
73989         (configure.ac): Add additional checks.
73990         (Makefile.am): Build new test.
73991         * tests/test-fchownat.c: New file.
73993         lchown: detect Solaris and FreeBSD bug
73994         * lib/lchown.c (rpl_lchown): Work around bug.
73995         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
73996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73997         * modules/unistd (Makefile.am): Populate it.
73998         * lib/unistd.in.h (lchown): Update declaration.
73999         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74000         * modules/lchown-tests: New file.
74001         * tests/test-lchown.h (test_lchown): Likewise.
74002         * tests/test-lchown.c (main): Likewise.
74004         chown: detect Solaris and FreeBSD bug
74005         * lib/chown.c (rpl_chown): Work around bug.
74006         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74007         (gl_PREREQ_CHOWN): Delete.
74008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74009         * modules/unistd (Makefile.am): Populate it.
74010         * lib/unistd.in.h (chown): Update declaration.
74011         * lib/lchown.c (chown): Update client.
74012         * modules/lchown (Depends-on): Add lstat.
74013         * doc/posix-functions/chown.texi (chown): Document the bug.
74014         * doc/posix-functions/getgroups.texi (getgroups): Document
74015         getgroups pitfall.
74016         * modules/chown-tests: New file.
74017         * tests/test-chown.h (test_chown): Likewise.
74018         * tests/test-chown.c (main): Likewise.
74020 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74022         gnulib-tool: correctly detect absence of m4 directories
74023         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74025 2009-11-14  Jim Meyering  <meyering@redhat.com>
74027         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74028         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74030 2009-11-14  John W. Eaton  <jwe@gnu.org>
74032         strftime.h: wrap function declaration in extern "C" block
74033         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74035 2009-11-13  Eric Blake  <ebb9@byu.net>
74037         getgroups: avoid compiler warning
74038         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74040         getgroups: work around FreeBSD bug
74041         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74042         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74043         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74044         * tests/test-getgroups.c (main): Fix buffer overrun.
74046         getgroups: avoid compilation failure
74047         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74048         * modules/getgroups (Depends-on): Add stdint.
74050 2009-11-13  Jim Meyering  <meyering@redhat.com>
74052         test-getgroups: avoid compilation failure
74053         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74055 2009-11-13  Eric Blake  <ebb9@byu.net>
74057         mgetgroups: new module, taken from coreutils
74058         * modules/mgetgroups: New file.
74059         * lib/mgetgroups.h: Likewise.
74060         * lib/mgetgroups.c (mgetgroups): Likewise.
74061         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74062         * MODULES.html.sh (Users and groups): Mention it.
74064         getgroups: don't expose GETGROUPS_T to user
74065         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74066         an element at a time if GETGROUPS_T is wrong size.
74067         * lib/getugroups.h (getugroups): Change signature.
74068         * lib/unistd.in.h (getgroups): Likewise.
74069         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74070         signature needs fixing.
74071         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74072         AC_TYPE_GETGROUPS.
74073         * modules/group-member (Depends-on): Add getgroups.
74074         * lib/group-member.c (group_info, get_group_info): Use gid_t.
74075         (group_member): Rely on getgroups replacement.
74076         * lib/getugroups.c (getugroups): Use gid_t.
74077         * tests/test-getgroups.c (main): Likewise.
74078         * NEWS: Mention the signature change.
74079         * doc/posix-functions/getgroups.texi (getgroups): Mention the
74080         problem with signature.
74081         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
74082         GETGROUPS_T is still useful for setgroups.
74084         getgroups, getugroups: provide stubs for mingw
74085         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
74086         * lib/getugroups.c (getugroups): Likewise.
74087         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
74088         function.  Modernize replacement scheme.
74089         (gl_PREREQ_GETGROUPS): Delete.
74090         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
74091         * modules/getgroups (configure.ac): Declare witness.
74092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74093         * modules/unistd (Depends-on): Substitute witness.
74094         * lib/unistd.in.h (getgroups): Declare replacement.
74096         getgroups: avoid calling exit
74097         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
74098         drop xalloc.
74099         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
74100         dependencies.
74101         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
74102         exiting, in the rare case of malloc failure.
74104         getgroups: fix logic error
74105         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
74106         has more than 20 groups.
74107         * modules/getgroups-tests: New test.
74108         * tests/test-getgroups.c: New file.
74110 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74112         * tests/test-base64.c: Improve.
74114 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74116         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74117         Blake <ebb9@byu.net>.
74119 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74121         * tests/test-xvasprintf.c: Add %s%s related checks.
74123 2009-11-12  Eric Blake  <ebb9@byu.net>
74125         version-etc: match standards.texi style
74126         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74127         and use <> only for URLs.
74129 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74131         fts: do not fail on a submount during traversal
74132         * lib/fts.c (fts_build): Read the stat info again after opening
74133         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74134         Original report at http://bugzilla.redhat.com/501848.
74136 2009-11-12  Jim Meyering  <meyering@redhat.com>
74138         bootstrap: sync from coreutils
74139         * build-aux/bootstrap (bootstrap_epilogue): New function.
74140         Use git_modules_config in one more place.  This make bootstrap's
74141         --gnulib-srcdir option more useful for testing.
74143         bootstrap: generalize autoheader check
74144         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74145         AC_CONFIG_HEADERS.
74147 2009-11-11  Eric Blake  <ebb9@byu.net>
74149         mkfifoat: use new modules for Solaris and BSD bugs
74150         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74151         * lib/mkfifoat.c (mknodat): Split...
74152         * lib/mknodat.c (mknodat): ...into new file.
74153         * modules/mkfifoat (Files): Ship new file.
74154         (Depends-on): Add mkfifo, mknod.
74155         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74156         (Depends-on): Add symlink.
74157         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74158         redundant with test_mkfifo.h.
74159         (do_mkfifoat, do_mknodat): New helpers.
74161         mknod: new module
74162         * modules/mknod: New file.
74163         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74164         * lib/mknod.c (mknod): Likewise.
74165         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74166         defaults.
74167         * modules/sys_stat (Makefile.am): Substitute them.
74168         * lib/sys_stat.in.h (mknod): Declare replacement.
74169         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74170         Document it.
74171         * doc/posix-functions/mknod.texi (mknod): Likewise.
74172         * modules/mknod-tests: New test.
74173         * tests/test-mknod.c: Likewise.
74175         mkfifo: new module
74176         * modules/mkfifo: New file.
74177         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74178         * lib/mkfifo.c (mkfifo): Likewise.
74179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74180         defaults.
74181         * modules/sys_stat (Makefile.am): Substitute them.
74182         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74183         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74184         Document it.
74185         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74186         * modules/mkfifo-tests: New test.
74187         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74188         from test-mkfifoat.c.
74189         * tests/test-mkfifo.c: New file.
74191         readlink: detect FreeBSD bug
74192         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74193         slash on symlink.
74194         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74195         * tests/test-readlink.h (test_readlink): Enhance test.
74197         symlink: detect FreeBSD bug
74198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74199         slash on symlink.
74200         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74201         * tests/test-symlink.h (test_symlink): Enhance test.
74203 2009-11-10  Eric Blake  <ebb9@byu.net>
74205         link: detect FreeBSD bug
74206         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74207         symlink.
74208         * doc/posix-functions/link.texi (link): Document the bug.
74209         * tests/test-link.h (test_link): Enhance test.
74210         * tests/test-linkat.c (main): Update caller.
74212         unlink, remove: detect FreeBSD bug
74213         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74214         slash on symlink.
74215         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74216         * doc/posix-functions/remove.texi (remove): Likewise.
74217         * tests/test-unlink.h (test_unlink): Enhance test.
74218         * tests/test-remove.c (main): Likewise.
74220 2009-11-09  Eric Blake  <ebb9@byu.net>
74222         rename: detect FreeBSD bug
74223         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74224         slash on symlink.
74225         * modules/renameat-tests (Depends-on): Add filenamecat.
74226         * tests/test-rename.h (test_rename): Allow one more errno.
74227         * tests/test-renameat.c (main): Likewise.
74228         * doc/posix-functions/rename.texi (rename): Document the bug.
74230         open: detect FreeBSD bug
74231         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74232         symlink.
74233         * doc/posix-functions/open.texi (open): Document the bug.
74234         * doc/posix-functions/utimes.texi (utimes): Likewise.
74235         * tests/test-open.h (test_open): Add parameters, and test symlink
74236         handling.
74237         * tests/test-open.c (main): Adjust caller.
74238         * tests/test-fcntl-safer.c (main): Likewise.
74239         * modules/open-tests (Depends-on): Add stdbool, symlink.
74240         * modules/fcntl-safer-tests (Depends-on): Likewise.
74241         * tests/test-openat.c (main): Add test-open tests.
74243         stat: detect FreeBSD bug
74244         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74245         symlink.
74246         * doc/posix-functions/stat.texi (stat): Document the bug.
74247         * tests/test-stat.h (test_stat_func): Add argument.
74248         * tests/test-stat.c (main): Adjust caller.
74249         * tests/test-fstatat.c (main): Likewise.
74250         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74251         Reported by Jim Meyering.
74253 2009-11-09  James Youngman  <jay@gnu.org>
74255         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74256         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74258 2009-11-08  Jim Meyering  <meyering@redhat.com>
74260         utimens: remove invalid futimesat call
74261         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74262         It used the file descriptor of the target file as the DIR_FD
74263         parameter and NULL as the file name.  That caused failure with
74264         errno == EFAULT on FreeBSD-8.0-rc2
74266 2009-11-07  Eric Blake  <ebb9@byu.net>
74268         fflush, freadseek: use fseeko, not fseek
74269         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74270         (clear_ungetc_buffer): Avoid potential problems on large files.
74271         * lib/freadseek.c (freadseek): Likewise.
74272         * modules/freadseek (Depends-on): Add fseeko.
74273         * modules/fseek (configure.ac): Set a witness.
74274         * tests/test-fflush.c (main): Use fseeko.
74275         * tests/test-fpurge.c (fseek): Disable link warning.
74276         * tests/test-freadable.c (fseek): Likewise.
74277         * tests/test-freading.c (fseek): Likewise.
74278         * tests/test-fseeko.c (fseek): Likewise.
74279         * tests/test-ftell.c (fseek): Likewise.
74280         * tests/test-ftello.c (fseek): Likewise.
74281         * tests/test-fwritable.c (fseek): Likewise.
74282         * tests/test-fwriting.c (fseek): Likewise.
74284 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74286         * modules/memchr (Depends-on): Drop getpagesize dependency.
74288 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74290         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74291         Reported by Ludovic Courtès.
74292         * build-aux/pmccabe2html: Improve example usage.
74293         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74295 2009-11-06  Jim Meyering  <meyering@redhat.com>
74297         do-release-commit-and-tag: New module.
74298         Automate the release-commit and tag process.
74299         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74300         * modules/do-release-commit-and-tag: New file.
74301         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74303 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74305         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74306         because test-select.c uses inet_pton.
74308 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74310         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74311         GETADDRINFO_LIB.  Bump serial number.
74312         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74313         Suggested by Eric Blake <ebb9@byu.net>.
74315 2009-11-05  Eric Blake  <ebb9@byu.net>
74317         strtod: detect darwin bug
74318         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74319         Reported by Leo Davis.
74321         freopen-safer: new module
74322         * modules/freopen-safer: New module.
74323         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74324         * lib/freopen-safer.c (freopen_safer): New file.
74325         * lib/stdio-safer.h (freopen_safer): New declaration.
74326         * lib/stdio--.h (freopen): New override.
74327         * MODULES.html.sh (File stream based Input/Output): Mention it.
74328         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74329         freopen-safer module.
74330         * doc/posix-functions/stderr.texi (stderr): Likewise.
74331         * doc/posix-functions/stdin.texi (stdin): Likewise.
74332         * doc/posix-functions/stdout.texi (stdout): Likewise.
74333         * modules/freopen-safer-tests: New test.
74334         * tests/test-reopen-safer.c: New file.
74336 2009-11-05  Jim Meyering  <meyering@redhat.com>
74338         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74339         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74341 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74343         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74345 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74347         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74349 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74351         Fix link error.
74352         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74353         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74357         * tests/test-func.c: Also test value of __func__.
74359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74361         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74362         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74364 2009-11-05  Bruno Haible  <bruno@clisp.org>
74366         Fix link error.
74367         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74368         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74369         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74371 2009-11-05  Bruno Haible  <bruno@clisp.org>
74373         Tests for module 'inet_pton'.
74374         * modules/inet_pton-tests: New file.
74375         * tests/test-inet_pton.c: New file.
74377 2009-11-05  Bruno Haible  <bruno@clisp.org>
74379         Tests for module 'inet_ntop'.
74380         * modules/inet_ntop-tests: New file.
74381         * tests/test-inet_ntop.c: New file.
74383 2009-11-04  Eric Blake  <ebb9@byu.net>
74385         stdlib-safer: wrap all mkstemp variants
74386         * modules/mkostemp (configure.ac): Set witness.
74387         * modules/mkostemps (configure.ac): Likewise.
74388         * modules/mkstemps (configure.ac): Likewise.
74389         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74390         (mkstemps_safer): Wrap more functions.
74391         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74392         wrapping.
74393         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74394         (mkstemps_safer): Implement the wrappers.
74396         mkstemps, mkostemps: new modules
74397         * modules/mkostemps: New module.
74398         * modules/mkstemps: Likewise.
74399         * lib/mkostemps.c (mkostemps): New file.
74400         * lib/mkstemps.c (mkstemps): Likewise.
74401         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74402         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74404         * modules/stdlib (Makefile.am): Substitute them.
74405         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74406         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74407         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74408         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74409         * MODULES.html.sh (File system functions): Mention them.
74411         tempname: resync from glibc
74412         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74413         same values for __GT_FILE as glibc.  Abort even when assertions
74414         are disabled.
74415         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74416         match its value otherwise.  Allow idempotent inclusion.
74417         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74418         * lib/mkostemp.c (mkostemp): Likewise.
74419         * lib/mkstemp.c (mkstemp): Likewise.
74420         * lib/tmpfile.c (tmpfile): Likewise.
74421         * NEWS: Document this.
74423         utimens: fix use of futimens on older Linux
74424         * lib/utimens.c (fdutimens): Use updated, rather than original,
74425         timespec to avoid bug in older Linux kernel.
74426         Reported by Simon Josefsson.
74428 2009-11-04  Bruno Haible  <bruno@clisp.org>
74430         Make num_processors more flexible and consistent.
74431         * lib/nproc.h (enum nproc_query): New type.
74432         (num_processors): Add a 'query' argument.
74433         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74434         (num_processors): Add a 'query' argument. Test the value of the
74435         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74436         mingw, count the number of CPUs available for the current process.
74437         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74438         Check for sched_getaffinity and sched_getaffinity_np.
74439         * modules/nproc (Depends-on): Add c-ctype, extensions.
74440         * NEWS: Mention the change.
74442 2009-11-03  Bruno Haible  <bruno@clisp.org>
74444         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74446 2009-11-03  Jim Meyering  <meyering@redhat.com>
74448         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74449         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74450         if it is defined.
74452 2009-11-02  Eric Blake  <ebb9@byu.net>
74454         mktime, timegm: share common declaration
74455         * lib/mktime-internal.h: New file.
74456         * lib/mktime.c: Use it rather than open-coding a declaration.
74457         * lib/timegm.c: Likewise.
74458         * modules/mktime (Files): Ship it.
74459         * modules/timegm (Files): Likewise.
74460         Suggested by Bruno Haible.
74462         test-update-copyright: update test to match script changes
74463         * tests/test-update-copyright.sh: Avoid hard-coding perl
74464         location.  Don't update *.bak created by earlier runs.
74466 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74467             Simon Josefsson  <simon@josefsson.org>
74468             Bruno Haible  <bruno@clisp.org>
74470         Fix link error on Solaris 8.
74471         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74472         also in libnsl. Define also INET_PTON_LIB.
74473         * modules/inet_pton (Link): New section.
74475 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74476             Bruno Haible  <bruno@clisp.org>
74478         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74479         * modules/inet_ntop (Link): New section.
74480         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74482 2009-11-02  Eric Blake  <ebb9@byu.net>
74484         maint: avoid compiler warnings in m4 macros
74485         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74486         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74488 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74490         * m4/pmccabe2html.m4: Remove file.
74491         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74492         function.  Change maintainer.
74493         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74494         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74495         Courtès).
74497 2009-10-31  Eric Blake  <ebb9@byu.net>
74499         fseeko: fix m4 regression
74500         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74501         regression from 2009-10-27.
74502         Reported by Ralf Wildenhues.
74504 2009-10-31  Jim Meyering  <meyering@redhat.com>
74506         inttostr: aesthetics and improved (compile-time) safety
74507         Define inttype_is_signed rather than inttype_is_unsigned,
74508         since the sole use is via "#if inttype_is_signed".
74509         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74510         inttype_is_unsigned.
74511         * lib/offtostr.c (inttype_is_signed): Likewise.
74512         * lib/uinttostr.c (inttype_is_signed): Likewise.
74513         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74514         * lib/inttostr.c (inttostr): Use verify to cross-check the
74515         inttype_is_signed value and the signedness of the actual type.
74516         * modules/inttostr (Depends-on): Add verify.
74518 2009-10-30  Eric Blake  <ebb9@byu.net>
74520         build: avoid compiler warnings
74521         * lib/fchmodat.c (lchmod): Mark unused variables.
74522         * lib/getopt.c (_getopt_initialize): Likewise.
74523         * lib/mktime.c (__mktime_internal): Provide prototype.
74524         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74525         older gcc that do not understand #pragma GCC diagnostic.
74526         * lib/uinttostr.c (inttype_is_unsigned): Define.
74527         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74529 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74531         stat: fix compilation on AIX
74532         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74533         only see struct stat64.
74535 2009-10-30  Eric Blake  <ebb9@byu.net>
74537         exclude: make more robust
74538         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74539         rather than masking a coding bug.
74540         Suggested by Bruno Haible.
74542 2009-10-30  Jim Meyering  <meyering@redhat.com>
74544         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74545         Rather than putting #!/usr/bin/perl on the first line,
74546         start with a variant of what's recommended by "man perlrun" that
74547         invokes the first "perl" program from your shell's search path.
74548         * build-aux/gitlog-to-changelog: Replace #!... as above.
74549         Add a "Local Variables" perl mode setting.
74550         Prompted by a patch from Ludovic Courtès.
74551         Improved by Eric Blake.
74552         * build-aux/useless-if-before-free: Likewise.
74553         * build-aux/announce-gen: Likewise.
74554         * build-aux/update-copyright: Likewise.
74556 2009-10-29  Eric Blake  <ebb9@byu.net>
74558         filenamecat-lgpl: adjust clients
74559         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74560         filenamecat.
74561         * modules/renameat (Depends-on): Likewise.
74563         filenamecat: split into filenamecat-lgpl
74564         * modules/filenamecat-lgpl: New module.
74565         * modules/filenamecat (Files): Move library-safe files into
74566         filenamecat-lgpl.
74567         (Depends-on): Add filenamecat-lgpl.
74568         (configure.ac): Declare witness.
74569         * lib/filenamecat.h (file_name_concat): Only declare when using
74570         GPL module.
74571         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74572         Move...
74573         * lib/filenamecat-lgpl.c: ...into new file.
74574         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74575         (gl_FILE_NAME_CONCAT): Use it.
74576         * MODULES.html.sh (File system functions): Mention new module.
74578         argp: avoid memory leak
74579         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74580         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74581         base_name, since the latter malloc()s and can call exit().
74582         Leak introduced 2006-07-03.
74584         dirname-lgpl: adjust clients that don't need full dirname
74585         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74586         * modules/filenamecat (Depends-on): Likewise.
74587         * modules/linkat (Depends-on): Likewise.
74588         * modules/mkancesdirs (Depends-on): Likewise.
74589         * modules/mkdir (Depends-on): Likewise.
74590         * modules/openat (Depends-on): Likewise.
74591         * modules/savewd (Depends-on): Likewise.
74592         * modules/rename (Depends-on): Likewise.
74593         (License): Relax license.
74594         * modules/mkdir-tests (Depends-on): Drop progname.
74595         (Makefile.am): Delete unneeded LDADD.
74596         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74598         dirname: split into dirname-lgpl
74599         * modules/dirname-lgpl: New module.
74600         * modules/dirname (Files): Move library-safe files into
74601         dirname-lgpl.
74602         (Depends-on): Add dirname-lgpl.
74603         (configure.ac): Declare witness.
74604         * modules/double-slash-root (License): Relax license.
74605         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74606         module.
74607         * lib/dirname.c (dir_len, mdir_name): Move...
74608         * lib/dirname-lgpl.c: ...into new file.
74609         * lib/basename.c (last_component, base_len): Move...
74610         * lib/basename-lgpl.c: ...into new file.
74611         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74612         (gl_DIRNAME): Use it.
74613         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74614         Mention new module.
74615         * modules/dirname-tests (Depends-on): Add progname.
74616         * tests/test-dirname.c (program_name): Delete.
74618         mkdir: make safe for libraries
74619         * modules/mkdir (Depends-on): Drop xalloc.
74620         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74621         exit.
74623         tests: avoid some compiler warnings
74624         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74625         literals.
74626         * tests/test-memchr.c (main): Avoid type mismatch.
74627         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74628         * tests/test-base64.c (main): Likewise.
74629         * tests/test-getdelim.c (main): Likewise.
74630         * tests/test-gethostname.c (main): Likewise.
74631         * tests/test-getline.c (main): Likewise.
74632         * tests/test-netinet_in.c (main): Likewise.
74633         * tests/test-select.c (open_server_socket, main): Likewise.
74634         * tests/test-select-stdin.c (main): Likewise.
74635         * tests/test-sockets.c (main): Likewise.
74636         * tests/test-strsignal.c (main): Likewise.
74637         * tests/test-sys_select.c (main): Likewise.
74638         * tests/test-sys_socket.c (main): Likewise.
74639         * tests/test-u64.c (main): Likewise.
74640         * tests/test-xfprintf-posix.c (main): Likewise.
74641         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74643         sockets: avoid compiler warning
74644         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74646         maint: detect usage(1) and other suspicious exits
74647         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74649 2009-10-29  Jim Meyering  <meyering@redhat.com>
74651         timespec: long-to-int truncation could make timespec_cmp malfunction
74652         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74653         a multiple of 2^32 nanoseconds as no difference.
74655 2009-10-28  Jim Meyering  <meyering@redhat.com>
74657         fprintftime: wrap macro code argument in "do {...} while(0)"
74658         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74659         cpy macro must be a statement that can be followed by a semicolon.
74660         Now that the else clause contains a comment and is hence longer
74661         than one line, I require curly braces.  That in turn requires
74662         that we wrap this code block in the standard do...while(0).
74664         fprintftime: remove stray semicolon from previous change
74665         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74667         fprintftime: avoid a warning about ignored fwrite return value
74668         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74669         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74670         that is unsafe.
74671         * modules/fprintftime (Depends-on): Add ignore-value.
74673         exclude: avoid an unwarranted warning
74674         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74676 2009-10-27  Eric Blake  <ebb9@byu.net>
74678         fseek: avoid compilation failure when fflush is replaced
74679         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74680         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74681         module is in use.
74682         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74683         module is not in use; since REPLACE_FSEEK worked otherwise.
74684         (GNULIB_FTELLO): Likewise for ftell.
74685         Reported by Ian Beckwith and others.
74687 2009-10-27  Bruno Haible  <bruno@clisp.org>
74689         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74690         Reported by Jim Meyering.
74692 2009-10-27  Jim Meyering  <jim@meyering.net>
74693             Bruno Haible  <bruno@clisp.org>
74695         Avoid warning despite dropping the return value of fwrite.
74696         * lib/unicodeio.c: Include ignore-value.h.
74697         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74698         * modules/unicodeio (Depends-on): Add ignore-value.
74700 2009-10-26  Eric Blake  <ebb9@byu.net>
74702         areadlinkat: fix fallback path
74703         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74704         pointer and zero.
74706 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74708         Use a better IO block size for modern systems
74709         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74710         * lib/md2.c: Likewise.
74711         * lib/md4.c: Likewise.
74712         * lib/md5.c: Likewise.
74713         * lib/sha1.c: Likewise.
74714         * lib/sha256.c: Likewise.
74715         * lib/sha512.c: Likewise.
74717 2009-10-22  Eric Blake  <ebb9@byu.net>
74719         tests: avoid several compiler warnings
74720         * tests/test-getcwd.c (main): Avoid buffer underflow.
74721         * tests/test-getdate.c (main): String literals are not safe with
74722         putenv, so use setenv.  Declare unused argument.
74723         * modules/getdate-tests (Depends-on): Add setenv.
74724         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74725         problems with string literals in char *.
74726         * tests/test-hash.c (main): Avoid shadowing declaration.
74727         (insert_new): Treat string literals as char const *.
74728         * tests/test-getopt.h (test_getopt): Likewise.
74729         (getopt_loop): Alter types to minimize casting elsewhere.
74730         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74731         (test_getopt_long_posix): Likewise.
74732         (do_getopt_long): Add wrapper to minimize casting.
74733         * tests/test-atexit.c (clear_temp_file): Use void.
74734         * tests/test-areadlink-with-size.c (main): Declare unused
74735         arguments.
74736         * tests/test-areadlink.c (main): Likewise.
74737         * tests/test-areadlinkat-with-size.c (main): Likewise.
74738         * tests/test-areadlinkat.c (main): Likewise.
74739         * tests/test-canonicalize-lgpl.c (main): Likewise.
74740         * tests/test-canonicalize.c (main): Likewise.
74741         * tests/test-dirent-safer.c (main): Likewise.
74742         * tests/test-dirname.c (main): Likewise.
74743         * tests/test-dup2.c (main): Likewise.
74744         * tests/test-fchdir.c (main): Likewise.
74745         * tests/test-fcntl-h.c (main): Likewise.
74746         * tests/test-fcntl-safer.c (main): Likewise.
74747         * tests/test-fdopendir.c (main): Likewise.
74748         * tests/test-fdutimensat.c (main): Likewise.
74749         * tests/test-fflush.c (main): Likewise.
74750         * tests/test-filenamecat.c (main): Likewise.
74751         * tests/test-filevercmp.c (main): Likewise.
74752         * tests/test-fopen-safer.c (main): Likewise.
74753         * tests/test-fopen.c (main): Likewise.
74754         * tests/test-fpending.c (main): Likewise.
74755         * tests/test-fpurge.c (main): Likewise.
74756         * tests/test-freading.c (main): Likewise.
74757         * tests/test-fstatat.c (main): Likewise.
74758         * tests/test-fsync.c (main): Likewise.
74759         * tests/test-futimens.c (main): Likewise.
74760         * tests/test-getndelim2.c (main): Likewise.
74761         * tests/test-gettimeofday.c (main): Likewise.
74762         * tests/test-getopt.c (main): Likewise.
74763         * tests/test-i-ring.c (main): Likewise.
74764         * tests/test-inttypes.c (main): Likewise.
74765         * tests/test-link.c (main): Likewise.
74766         * tests/test-lstat.c (main): Likewise.
74767         * tests/test-math.c (main): Likewise.
74768         * tests/test-md5.c (main): Likewise.
74769         * tests/test-memchr2.c (main): Likewise.
74770         * tests/test-memrchr.c (main): Likewise.
74771         * tests/test-mkdir.c (main): Likewise.
74772         * tests/test-mkdirat.c (main): Likewise.
74773         * tests/test-mkfifoat.c (main): Likewise.
74774         * tests/test-open.c (main): Likewise.
74775         * tests/test-openat-safer.c (main): Likewise.
74776         * tests/test-openat.c (main): Likewise.
74777         * tests/test-quotearg.c (main): Likewise.
74778         * tests/test-rawmemchr.c (main): Likewise.
74779         * tests/test-readlink.c (main): Likewise.
74780         * tests/test-remove.c (main): Likewise.
74781         * tests/test-rename.c (main): Likewise.
74782         * tests/test-renameat.c (main): Likewise.
74783         * tests/test-rmdir.c (main): Likewise.
74784         * tests/test-sha1.c (main): Likewise.
74785         * tests/test-signal.c (main): Likewise.
74786         * tests/test-sigaction.c (main): Likewise.
74787         * tests/test-stat.c (main): Likewise.
74788         * tests/test-stat-time.c (main): Likewise.
74789         * tests/test-stddef.c (main): Likewise.
74790         * tests/test-stdint.c (main): Likewise.
74791         * tests/test-stdio.c (main): Likewise.
74792         * tests/test-stdlib.c (main): Likewise.
74793         * tests/test-strchrnul.c (main): Likewise.
74794         * tests/test-strerror.c (main): Likewise.
74795         * tests/test-string.c (main): Likewise.
74796         * tests/test-strtod.c (main): Likewise.
74797         * tests/test-strverscmp.c (main): Likewise.
74798         * tests/test-symlink.c (main): Likewise.
74799         * tests/test-symlinkat.c (main): Likewise.
74800         * tests/test-sys_stat.c (main): Likewise.
74801         * tests/test-sys_time.c (main): Likewise.
74802         * tests/test-time.c (main): Likewise.
74803         * tests/test-unistd.c (main): Likewise.
74804         * tests/test-unlink.c (main): Likewise.
74805         * tests/test-unlinkat.c (main): Likewise.
74806         * tests/test-utimens.c (main): Likewise.
74807         * tests/test-utimensat.c (main): Likewise.
74808         * tests/test-version-etc.c (main): Likewise.
74809         * tests/test-wchar.c (main): Likewise.
74810         * tests/test-wctype.c (main): Likewise.
74811         * tests/test-xprintf-posix.c (main): Likewise.
74812         * tests/test-posixtm.c (main): Likewise.
74813         (STREQ): Delete unused macro.
74814         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74815         shadowed variables.
74816         * tests/test-memchr.c (main): Likewise.
74818 2009-10-21  Eric Blake  <ebb9@byu.net>
74820         areadlinkat: avoid failure on older glibc
74821         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74822         rather than mis-comparing 0 against FUNC_RESULT of char*.
74824 2009-10-21  Bruno Haible  <bruno@clisp.org>
74826         * modules/stpncpy (License): Relicense under LGPLv2+.
74827         Reported by David Lutterkort <lutter@redhat.com>.
74829 2009-10-20  Eric Blake  <ebb9@byu.net>
74831         utimensat: work around Solaris 9 bug
74832         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74833         has trailing slash bugs.
74834         * tests/test-lutimens.h (test_lutimens): Enhance test.
74835         * tests/test-utimens.h (test_utimens): Likewise.
74836         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74837         * doc/posix-functions/utimes.texi (utimes): Likewise.
74838         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74839         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74840         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74841         * doc/posix-functions/futimens.texi (futimens): Likewise.
74843         fdutimensat: new module
74844         * modules/fdutimensat: New file.
74845         * lib/fdutimensat.c (fdutimensat): Likewise.
74846         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74847         * MODULES.html.sh (File system functions): Mention module.
74848         * modules/fdutimensat-tests: New test.
74849         * tests/test-fdutimensat.c: Likewise.
74851         doc: regenerate INSTALL
74852         * doc/INSTALL: Reflect recent autoconf update.
74853         * doc/INSTALL.ISO: Likewise.
74854         * doc/INSTALL.UTF-8: Likewise.
74856 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74858         acl: warn if ACL support is not detected
74859         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74861 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74863         * lib/nproc.h: Add extern "C" block for C++.
74865 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74866             Bruno Haible  <bruno@clisp.org>
74868         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74869         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74870         * doc/posix-functions/isalpha.texi: Likewise.
74871         * doc/posix-functions/isblank.texi: Likewise.
74872         * doc/posix-functions/iscntrl.texi: Likewise.
74873         * doc/posix-functions/isdigit.texi: Likewise.
74874         * doc/posix-functions/isgraph.texi: Likewise.
74875         * doc/posix-functions/islower.texi: Likewise.
74876         * doc/posix-functions/isprint.texi: Likewise.
74877         * doc/posix-functions/ispunct.texi: Likewise.
74878         * doc/posix-functions/isspace.texi: Likewise.
74879         * doc/posix-functions/isupper.texi: Likewise.
74880         * doc/posix-functions/isxdigit.texi: Likewise.
74882 2009-10-18  Bruno Haible  <bruno@clisp.org>
74884         Tests for module 'isblank'.
74885         * modules/isblank-tests: New file.
74886         * tests/test-isblank.c: New file.
74888         New module 'isblank'.
74889         * lib/isblank.c: New file.
74890         * m4/isblank.m4: New file.
74891         * modules/isblank: New file.
74892         * doc/posix-functions/isblank.texi: Mention the new module.
74894 2009-10-18  Bruno Haible  <bruno@clisp.org>
74896         New module 'ctype'.
74897         * lib/ctype.in.h: New file.
74898         * m4/ctype.m4: New file.
74899         * modules/ctype: New file.
74900         * doc/posix-headers/ctype.texi: Mention the new module.
74902 2009-10-18  Jim Meyering  <meyering@redhat.com>
74904         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74905         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74906         right after its initialization, rather than farther down.
74907         Keeping these in close proximity makes it easier to ensure
74908         that each such variable is initialized.  E.g.,
74910             LIB_CLOCK_GETTIME=
74911             AC_SUBST([LIB_CLOCK_GETTIME])
74913         This change also increments these serial numbers.
74914         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74915         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74918 2009-10-18  Bruno Haible  <bruno@clisp.org>
74920         Don't let environment variables perturb build.
74921         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74922         (gl_PREREQ_GETHRXTIME): ... not here.
74924 2009-10-18  Bruno Haible  <bruno@clisp.org>
74926         Avoid symlink attack in localcharset module.
74927         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74928         (O_NOFOLLOW): Define fallback.
74929         (get_charset_aliases): Don't open the file if it is a symbolic link.
74930         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74931         gl_FCNTL_H.
74932         (gl_FCNTL_H): Require it.
74933         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74934         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74935         Reported by Fergal Glynn <fglynn@veracode.com>.
74937 2009-10-18  Bruno Haible  <bruno@clisp.org>
74939         Implement nproc for mingw.
74940         * lib/nproc.c: Include <windows.h>
74941         (num_processors): On native Windows platforms, try GetSystemInfo.
74943 2009-10-18  Bruno Haible  <bruno@clisp.org>
74945         Implement nproc for IRIX.
74946         * lib/nproc.c: Include <sys/sysmp.h>.
74947         (num_processors): On IRIX systems, try sysmp.
74948         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74950 2009-10-18  Bruno Haible  <bruno@clisp.org>
74952         Implement nproc for HP-UX.
74953         * lib/nproc.c: Include <sys/pstat.h>
74954         (num_processors): On HP-UX systems, try pstat_getdynamic.
74955         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74956         pstat_getdynamic.
74958 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74959             Bruno Haible  <bruno@clisp.org>
74961         Implement nproc for NetBSD, OpenBSD.
74962         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74963         (ARRAY_SIZE): New macro.
74964         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74965         * m4/nproc.m4: New file.
74966         * modules/nproc (Files): Add m4/nproc.m4.
74967         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
74968         (Makefile.am): Instead, augment lib_SOURCES.
74970 2009-10-18  Bruno Haible  <bruno@clisp.org>
74972         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
74973         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
74974         sys/param.h.
74976 2009-10-16  Eric Blake  <ebb9@byu.net>
74978         utimensat: new module
74979         * modules/utimensat: New file.
74980         * lib/utimensat.c (utimensat): Likewise.
74981         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74982         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
74983         so we can work around Linux bugs.
74984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74985         * modules/sys_stat (Makefile.am): Substitute them.
74986         * lib/sys_stat.in.h (utimensat): Declare it.
74987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74988         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74989         * modules/utimensat-tests: New test.
74990         * tests/test-utimensat.c: Likewise.
74992         utimens: let lutimens work on non-symlinks
74993         * lib/utimens.c (lutimens): Fall back to utimens rather than
74994         failing with ENOSYS, when file is not a symlink.
74995         (utimens): Reduce redirection.
74996         * tests/test-lutimens.h (test_lutimens): Update test to cover
74997         non-symlinks.
74998         * tests/test-utimens.h (test_utimens): Update test to cover
74999         symlinks.
75000         * tests/test-utimens.c (main): Update caller.
75002         utimens: cache whether utimensat syscall works
75003         * lib/utimens.c (utimensat_works_really): New cache variable.
75004         (fdutimens, lutimens): Use it to avoid failing syscall.
75006         test-stat-time, test-utimens: improve portability
75007         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75008         ext4 on alpha, and for cygwin.
75009         * tests/test-utimens-common.h: New file.
75010         (nap): Factor delays into single function.
75011         * tests/test-lutimens.h (test_lutimens): Use new header.
75012         * tests/test-futimens.h (test_futimens): Likewise.
75013         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75014         timestamps to occur from same machine, as was done previously for
75015         test_utimens.
75016         * modules/utimens-tests (Files): Ship new file.
75017         * modules/futimens-tests (Files): Likewise.
75018         Reported in part by Jim Meyering.
75020         sys_stat: sort replacement declarations
75021         * lib/sys_stat.in.h: Sort declarations.
75022         * lib/futimens.c (futimens): Fix typo.
75024 2009-10-15  Jim Meyering  <meyering@redhat.com>
75026         don't let environment settings perturb build
75027         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75028         could cause a configure-time and/or build-time malfunction.
75029         Typically, a configure-time function-in-library test is performed
75030         via code like this:
75032           LIB_VAR=
75033           AC_SUBST([LIB_VAR])
75034           prefix_saved_LIBS=$LIBS
75035             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75036                        [test "$ac_cv_search_FUNC" = "none required" ||
75037                         LIB_VAR=$ac_cv_search_FUNC])
75038           LIBS=$prefix_saved_LIBS
75040         However, in each of the files affected by this change, the LIB_VAR=
75041         initialization was omitted.  Thus, when set in the environment, its
75042         value would propagate into generated Makefiles when FUNC is not found
75043         in LIB_NAME.
75044         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75045         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75048 2009-10-14  Eric Blake  <ebb9@byu.net>
75050         fchdir: avoid infinite recursion in mingw
75051         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75052         recursing.
75054         test-stat-time: port to mingw
75055         * tests/test-stat-time.c (force_unlink): Return a value.
75056         (test_ctime) [W32]: Fix compilation error.
75057         (nap): Don't call usleep with too large an argument.  Use
75058         force_unlink.
75059         * doc/pastposix-functions/usleep.texi (usleep): Document the
75060         portability issue.
75062 2009-10-13  Jim Meyering  <meyering@redhat.com>
75064         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75065         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75066         * modules/pipe-filter-ii: Likewise.
75067         * modules/sys_socket-tests: Likewise.
75068         * modules/tsearch-tests: Likewise.
75069         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75070         (check): Depend on it.
75072 2009-10-12  Eric Blake  <ebb9@byu.net>
75074         utimens-tests: port to NFS file systems
75075         * tests/test-utimens.h (test_utimens): Refactor utimecmp
75076         comparisons to avoid spurious failures from timestamp drift
75077         between NFS machines.
75079 2009-10-12  Eric Blake  <ebb9@byu.net>
75081         stat-time-tests: minor cleanups
75082         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
75083         * tests/test-stat-time.c (nap): Separate assignment from call.
75084         Suggested by Paolo Bonzini and Bruno Haible.
75086         sys_stat: guarantee struct timespec
75087         * lib/sys_stat.in.h (includes): Always include <time.h>
75088         * modules/sys_stat (Depends-on): Add time.
75089         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
75090         mode_t permission values.
75091         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
75092         get at subsecond timestamps.
75094 2009-10-10  Eric Blake  <ebb9@byu.net>
75096         futimens: new module
75097         * modules/futimens: New file.
75098         * lib/futimens.c (futimens): Likewise.
75099         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
75100         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
75101         we can work around Linux bugs.
75102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75103         * modules/sys_stat (Makefile.am): Substitute them.
75104         * lib/sys_stat.in.h (futimens): Declare it.
75105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75106         * doc/posix-functions/futimens.texi (futimens): Likewise.
75107         * modules/futimens-tests: New test.
75108         * tests/test-futimens.c: Likewise.
75110         utimens: introduce fdutimens
75111         * lib/utimens.h (fdutimens): New prototype.
75112         * lib/utimens.c (gl_futimens): Move guts...
75113         (fdutimens): ...to new interface.
75114         * tests/test-utimens.c (do_fdutimens): Use it.
75116         utimens: add UTIME_NOW and UTIME_OMIT support
75117         * lib/utimens.c (validate_timespec, update_timespec): New helper
75118         functions.
75119         (gl_futimens, lutimens): Use them.
75120         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75121         stdbool, sys_stat.
75122         (Link): Mention resulting library dependency.
75123         * modules/utimecmp (Link): Likewise.
75124         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75125         (Makefile.am): Pick up library dependency.
75126         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75127         definition.
75128         * tests/test-sys_stat.c: Test the definitions.
75129         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75130         * NEWS: Document library dependency.
75132         utimecmp: support symlink timestamps
75133         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75134         hashing when possible.  Use pathconf when available.
75135         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75136         * modules/utimecmp (Depends-on): Add lstat.
75138         utimens: add lutimens interface
75139         * lib/utimens.c (lutimens): New function.
75140         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75141         * lib/utimens.h (lutimens): Declare new interface.
75142         * tests/test-utimens.c (main): Enhance test.
75143         * tests/test-lutimens.h (test_lutimens): New file.
75144         * modules/utimens-tests (Files): Distribute it.
75145         (Depends-on): Add symlink.
75146         (configure.ac): Check for usleep.
75148         utimens: validate futimens usage
75149         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75150         fewer syscalls on failure later on.  Avoid compiler warning on
75151         mingw.
75152         * modules/utimens (Depends-on): Add dup2.
75154         utimens: add test
75155         * modules/utimens-tests: New test.
75156         * tests/test-utimens.h: New file.
75157         * tests/test-futimens.h: Likewise.
75158         * tests/test-utimens.c: Likewise.
75160         doc: mention timestamp portability issues
75161         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75162         instead.
75163         * doc/posix-functions/utime.texi (utime): Likewise.
75164         * doc/posix-functions/utimes.texi (utimes): Likewise.
75165         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75166         instead.
75167         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75168         module.
75169         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75170         Mention weakness with symlink timestamps.
75171         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75172         to utimensat/futimens instead.
75173         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75175         test-dup2: enhance test
75176         * tests/test-dup2.c (main): Also check AT_FDCWD.
75178         test-stat-time: avoid more spurious failures
75179         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75180         xfs; and avoid race if the two timestamps cross quantization edge.
75182         relocatable: prefer 'file system' over 'filesystem'
75183         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75184         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75185         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75186         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75187         * lib/relocatable.c (compute_curr_prefix): Likewise.
75189 2009-10-10  Jim Meyering  <meyering@redhat.com>
75191         stat-time-tests: check for the usleep function
75192         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75194 2009-10-10  Bruno Haible  <bruno@clisp.org>
75196         * modules/xnanosleep: Put the Link section after the Include section.
75198 2009-10-09  Eric Blake  <ebb9@byu.net>
75200         dup2: work around FreeBSD 6.1 bug
75201         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75202         * doc/posix-functions/dup2.texi (dup2): Document it.
75203         Reported by Nelson H. F. Beebe and Jim Meyering.
75205         test-stat-time: port to buggy NFS clients
75206         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75207         (test_ctime): Also skip test if mtime and ctime are skewed.
75209         maint: prefer 'file system' over 'filesystem'
75210         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75211         * doc/posix-functions/lstat.texi (lstat): Likewise.
75212         * lib/file-has-acl.c (file_has_acl): Likewise.
75213         * lib/fwriteerror.c [TEST]: Likewise.
75214         * tests/test-areadlink.h (test_areadlink): Likewise.
75215         * tests/test-areadlinkat-with-size.c (main): Likewise.
75216         * tests/test-areadlinkat.c (main): Likewise.
75217         * tests/test-canonicalize-lgpl.c (main): Likewise.
75218         * tests/test-canonicalize.c (main): Likewise.
75219         * tests/test-fstatat.c (main): Likewise.
75220         * tests/test-linkat.c (main): Likewise.
75221         * tests/test-lstat.h (test_lstat_func): Likewise.
75222         * tests/test-mkdir.h (test_mkdir): Likewise.
75223         * tests/test-readlink.h (test_readlink): Likewise.
75224         * tests/test-remove.c (main): Likewise.
75225         * tests/test-rename.h (test_rename): Likewise.
75226         * tests/test-renameat.c (main): Likewise.
75227         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75228         * tests/test-symlink.h (test_symlink): Likewise.
75229         * tests/test-symlinkat.c (main): Likewise.
75230         * tests/test-unlink.h (test_unlink_func): Likewise.
75231         * tests/test-unlinkat.c (main): Likewise.
75233         maint: make realtime library usage explicit
75234         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75235         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75236         * modules/settime (Link): Likewise.
75237         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75239         test-stat-time: speed up execution
75240         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75241         warning on mingw.
75242         (nap): New helper function.
75243         (prepare_test): Use it to reduce sleep time.
75244         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75245         execution.
75246         * modules/stat-time-tests (configure.ac): Check for usleep.
75248 2009-10-09  Jim Meyering  <meyering@redhat.com>
75250         selinux-h: always use getfilecon wrappers
75251         * lib/getfilecon.c: New file.
75252         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75253         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75254         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75255         (fgetfilecon): Provide a stub.
75256         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75257         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75258         file unconditionally.
75259         When <selinux/selinux.h> is found, arrange to use wrappers.
75260         * modules/selinux-h (Files): Add getfilecon.c.
75261         (Makefile.am): Substitute include-next-related bits
75262         into the now-always-generated selinux/selinux.h file.
75263         * doc/glibc-functions/lgetfilecon.texi: New file.
75264         * doc/glibc-functions/fgetfilecon.texi: New file.
75265         * doc/glibc-functions/getfilecon.texi: New file.
75266         * doc/glibc-functions/getfilecon-desc.texi: New file.
75267         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75268         which to pull in the new files.
75269         * MODULES.html.sh (Misc): Add selinux-h.
75271 2009-10-08  Jim Meyering  <meyering@redhat.com>
75273         unistd: fix comment typo
75274         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75276 2009-10-08  Eric Blake  <ebb9@byu.net>
75278         areadlink: use SIZE_MAX consistently
75279         * modules/areadlink (Depends-on): Add stdint.
75280         * modules/areadlink-with-size (Depends-on): Likewise.
75281         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75282         gives NULL; drop sys/types, since unistd gives size_t; and add
75283         stdint for SIZE_MAX.
75284         (SIZE_MAX): Rely on headers.
75285         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75286         and add stdint.
75287         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75288         (SIZE_MAX): Likewise.
75289         (INITIAL_BUF_SIZE): Turn into enum.
75290         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75292 2009-10-08  Jim Meyering  <meyering@redhat.com>
75294         areadlinkat: avoid compilation failure
75295         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75296         Fix typo in comment.
75298 2009-10-07  Eric Blake  <ebb9@byu.net>
75300         areadlinkat-with-size: new module
75301         * modules/areadlinkat-with-size: New module.
75302         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75303         * lib/areadlink.h (areadlinkat): Declare it.
75304         * MODULES.html.sh (File system functions): Mention it.
75305         * modules/areadlinkat-with-size-tests: New test.
75306         * tests/test-areadlinkat-with-size.c: New file.
75308         xreadlinkat: new module
75309         * modules/xreadlinkat: New module.
75310         * lib/xreadlinkat.c (xreadlinkat): New file.
75311         * lib/xreadlink.h (xreadlinkat): Declare it.
75312         * MODULES.html.sh (File system functions): Mention it.
75314         areadlinkat: new module
75315         * lib/at-func.c (FUNC_FAIL): New define.
75316         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75317         * modules/areadlinkat: New module.
75318         * lib/linkat.c (areadlinkat): Move...
75319         * lib/areadlinkat.c (areadlinkat): ...to new file.
75320         * lib/areadlink.h (areadlinkat): Declare it.
75321         * modules/linkat (Depends-on): Add areadlinkat.
75322         * MODULES.html.sh (File system functions): Mention it.
75323         * modules/areadlinkat-tests: New test.
75324         * tests/test-areadlinkat.c: New file.
75326         areadlink, areadlink-with-size: add tests
75327         * modules/areadlink-tests: New test.
75328         * modules/areadlink-with-size-tests: Likewise.
75329         * tests/test-areadlink.h: New file.
75330         * tests/test-areadlink.c: Likewise.
75331         * tests/test-areadlink-with-size.c: Likewise.
75333         maint: minor cleanups
75334         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75335         _UNUSED_PARAMETER_ instead.
75336         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75337         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75338         * modules/linkat-tests (Files): Distribute test-link.h.
75340         openat, utimens: whitespace cleanup
75341         * lib/openat.c: Prefer space throughout, rather than mix of 8
75342         spaces vs. tabs.
75343         * lib/at-func.c: Likewise.
75344         * lib/utimens.c: Likewise.
75346         openat: avoid using wrong fd
75347         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75348         working directory chooses same fd.
75349         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75351         mkdir, mkdirat: fix cygwin 1.5.x bug
75352         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75353         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75354         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75355         bug.
75356         (gl_PREREQ_MKDIR): Delete unused macro.
75357         * modules/mkdir (Files): Track file rename.
75358         (configure.ac): Update macro name.
75359         * modules/openat (Depends-on): Add mkdir.
75360         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75362         mkdir, mkdirat: add tests
75363         * modules/mkdir-tests: New test.
75364         * tests/test-mkdir.h: New file.
75365         * tests/test-mkdir.c: Likewise.
75366         * tests/test-mkdirat.c: Likewise.
75367         * modules/openat-tests (Files): Add new files.
75368         (Makefile.am): Run new test.
75370 2009-10-06  Eric Blake  <ebb9@byu.net>
75372         doc: tweak *at function documentation
75373         * doc/posix-functions/faccessat.texi (faccessat): Mention
75374         known issue with replacement.
75375         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75376         * doc/posix-functions/linkat.texi (linkat): Likewise.
75377         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75378         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75379         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75380         * doc/posix-functions/renameat.texi (renameat): Likewise.
75381         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75383         openat: fix GNU/Hurd bug in unlinkat
75384         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75385         broken.
75386         * doc/posix-functions/unlink.texi (unlink): Document this.
75387         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75389         fdopendir: fix GNU/Hurd bug
75390         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75391         allowing non-directory fds.
75392         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75394         * modules/dirent (Makefile.am): Substitute it.
75395         * lib/dirent.in.h (fdopendir): Declare replacement.
75396         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75397         * tests/test-fdopendir.c (main): Test something other than
75398         /dev/null, since on Hurd that behaves like a directory.
75400         test-symlink: port to GNU/Hurd
75401         * tests/test-symlink.h (test_symlink): Relax expected errno.
75403         doc: tweak more cygwin information
75404         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75405         now compatible with glibc.
75406         * doc/posix-functions/getopt.texi (getopt): Likewise.
75408         getopt-gnu: add another test
75409         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75410         guarantee behavior relied on by m4.
75411         * tests/test-getopt.c (main): Use it.
75412         * modules/getopt-posix-tests (Depends-on): Add setenv.
75413         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75415         getopt: fix compilation on darwin
75416         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75417         include.
75418         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75419         Reported by Ludovic Courtès.
75421 2009-10-06  Bruno Haible  <bruno@clisp.org>
75423         * modules/size_max (Description): Discourage its use.
75424         Reported by Simon Josefsson.
75426 2009-10-06  Jim Meyering  <meyering@redhat.com>
75428         linkat: avoid compilation failure
75429         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75431 2009-10-05  Eric Blake  <ebb9@byu.net>
75433         linkat: support Linux 2.6.17
75434         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75435         linkat on Linux, but allow cache variable override.
75436         * lib/linkat.c (rpl_linkat): Define override.
75437         * modules/linkat (Depends-on): Add symlinkat.
75438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75439         * modules/unistd (Makefile.am): Substitute it.
75440         * lib/unistd.in.h (linkat): Declare replacement.
75441         Reported by Pádraig Brady.
75443         quotearg: port test to systems with C.UTF-8 locale
75444         * tests/test-quotearg.c (struct result_strings): Add another
75445         member, differentiating between C.ASCII and C.UTF-8 handling.
75446         (compare_strings): Add parameter.
75447         (main): Adjust all callers.
75449         getopt: avoid clash with FreeBSD _getopt_internal
75450         * lib/getopt.in.h (_getopt_internal): Override the name.
75451         * lib/getopt_int.h (includes): Pick up any overrides.
75452         Reported by Reuben Thomas.
75454         hash: allow C89 compilation
75455         * lib/hash.c (check_tuning): Move declaration before statement.
75456         Reported by Reuben Thomas.
75458 2009-10-05  Karl Berry  <karl@gnu.org>
75460         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75462 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75463             Bruno Haible  <bruno@clisp.org>
75465         * lib/uname.c (uname): Use a table-driven algorithm to compute
75466         Windows NT versions.
75468 2009-10-04  Bruno Haible  <bruno@clisp.org>
75470         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75471         program_invocation_short_name.
75472         * modules/progname (configure.ac): Test for presence of
75473         program_invocation_short_name.
75474         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75476 2009-10-04  Bruno Haible  <bruno@clisp.org>
75478         * lib/progname.c (set_program_name): Fix comment.
75479         Reported by Jim Meyering.
75481 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75482             Bruno Haible  <bruno@clisp.org>
75484         * lib/uname.c: Include <string.h>.
75485         (uname): Do only one call to GetVersionEx in the common case.
75487 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75488             Bruno Haible  <bruno@clisp.org>
75490         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75491         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75492         (uname): Add support for Windows CE and various non-x86 CPU types.
75494 2009-10-03  Bruno Haible  <bruno@clisp.org>
75496         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75497         invocation to tests/configure.ac.
75498         Reported by Ian Beckwith <ianb@erislabs.net>.
75500 2009-10-02  Eric Blake  <ebb9@byu.net>
75502         fchdir: avoid compiler warning
75503         * lib/fchdir.c (canonicalize_file_name)
75504         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75506         test-open: support mingw errno values
75507         * tests/test-open.h (test_open): Relax test.
75508         * tests/test-fopen.h (test_fopen): Likewise.
75509         * tests/test-openat-safer.c (main): Likewise.
75511         open: fix opening directory on mingw
75512         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75514         test-open: on GNU/Hurd, /dev/null is a directory
75515         * tests/test-fopen.h (main): Rename...
75516         (test_fopen): ...to this.  Use a guaranteed non-directory when
75517         confirming open behavior on trailing slash.
75518         * tests/test-openat-safer.c (main): Likewise.
75519         * tests/test-open.h (main): Likewise....
75520         (test_open): ...to this.
75521         * tests/test-fopen.c (main): Adjust caller.
75522         * tests/test-fopen-safer.c (main): Likewise.
75523         * tests/test-open.c (main): Likewise.
75524         * tests/test-fcntl-safer.c (main): Likewise.
75525         Reported by Samuel Thibault.
75527         rename, fchdir: don't ignore chdir failure
75528         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75529         * lib/rename.c (rpl_rename) [W32]: Likewise.
75530         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75531         an empty destination directory if source cannot be renamed,
75532         although there is still possibility for failure.
75533         * doc/posix-functions/rename.texi (rename): Document the race.
75534         Reported by Jim Meyering.
75536         maint: cleanup whitespace in recent commits
75537         * lib/rename.c (rpl_rename): Remove tabs.
75538         * tests/test-link.h (test_link): Likewise.
75539         * lib/fchdir.c (get_name): Likewise.
75540         Reported by Jim Meyering.
75542 2009-10-02  Ben Pfaff  <blp@gnu.org>
75544         relocatable-prog-wrapper: Add missing dependency on
75545         double-slash-root.
75546         * modules/relocatable-prog-wrapper: Add dependency.
75547         Reported by Ian Beckwith <ianb@erislabs.net>.
75549 2009-10-02  Eric Blake  <ebb9@byu.net>
75551         renameat: fix Solaris bugs
75552         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75553         needed fixing.
75554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75555         * modules/stdio (Makefile.am): Substitute it.
75556         * lib/stdio.in.h (renameat): Declare replacement.
75557         * lib/renameat.c (rpl_renameat): Implement fix.
75559         renameat: new module
75560         * modules/renameat: New file.
75561         * lib/renameat.c (renameat): Likewise.
75562         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75564         * modules/stdio (Makefile.am): Substitute them.
75565         * lib/stdio.in.h (renameat): Declare it.
75566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75567         * doc/posix-functions/renameat.texi (renameat): Likewise.
75568         * modules/renameat-tests: New test.
75569         * tests/test-renameat.c: Likewise.
75571         rename: fix mingw bugs
75572         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75573         directory overwrite bugs.
75575         rename: fix another cygwin 1.5 bug
75576         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75577         checks.
75578         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75579         unnecessary cygwin workarounds.  Also work around bug with moving
75580         full directory onto an empty one.
75581         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75583         rename-dest-slash: merge into rename module
75584         * modules/rename-dest-slash (Status): Mark obsolete.
75585         (Depends-on): Add rename.
75586         (Files): Let rename do it all.
75587         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75588         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75589         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75590         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75591         * lib/rename.c (rpl_rename): Update comments.
75593         rename: fix cygwin 1.5.x bugs
75594         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75595         * lib/rename.c (rpl_rename): Work around them.
75596         * modules/rename (Depends-on): Add same-inode.
75598         rename: fix Solaris 10 bug
75599         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75600         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75601         was the only bug.
75603         rename: fix Solaris 9 bug
75604         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75605         on non-directory.  Avoid calling exit.
75606         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75607         strdup.
75608         * modules/rename-tests (Depends-on): Drop lstat.
75609         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75610         (gl_PREREQ_RENAME): Delete unused macro.
75612         rename-dest-slash: fix NetBSD bug
75613         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75614         links.
75615         * modules/rename-dest-slash (Depends-on): Add same-inode.
75617         rename-tests: new test, exposes several platform bugs
75618         * modules/rename-tests: New file.
75619         * tests/test-rename.h: Likewise.
75620         * tests/test-rename.c: Likewise.
75621         * doc/posix-functions/rename.texi (rename): Improve documentation,
75622         including bugs that will eventually be fixed in gnulib.
75624 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75626         * lib/uname.c: Include <stdlib.h>
75627         (uname): Assume version info is available.
75629 2009-10-02  Jim Meyering  <meyering@redhat.com>
75631         gnu-web-doc-update: correct --help output
75632         * build-aux/gnu-web-doc-update: Make --help output relevant.
75634         gnu-web-doc-update: add standard options
75635         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75637         gnu-web-doc-update: New module.
75638         Use this script to automatically update the on-line web documentation
75639         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75640         * modules/gnu-web-doc-update: New file, from coreutils.
75641         * build-aux/gnu-web-doc-update: New script.
75643 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75645         link: LoadLibrary is not needed.
75646         * lib/link.c: Use GetModuleHandle.
75648 2009-10-01  Eric Blake  <ebb9@byu.net>
75650         getopt: bump serial number
75651         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75652         change.
75654         tests: tighten link, rmdir, and remove tests
75655         * tests/test-link.h (includes): No need to use <config.h> here.
75656         Clean up if directory hard link was created, otherwise test for
75657         trailing '.'.
75658         * tests/test-linkat.c (main): Simplify.
75659         * tests/test-remove.c (main): Enhance test for trailing '.'.
75660         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75662 2009-10-01  Jim Meyering  <meyering@redhat.com>
75664         maint.mk: requiring "make major" was annoying, for a "minor" release.
75665         What is intended is "stable", to contrast with alpha and beta,
75666         so require "make stable", not "make major".
75667         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75668         (get_tool_versions): Likewise.
75669         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75671 2009-09-30  Ben Pfaff  <blp@gnu.org>
75673         Fix broken build of replacement for Windows tmpfile().
75674         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75675         flags argument added along with the 'mkostemp' module.
75677 2009-09-28  Bruno Haible  <bruno@clisp.org>
75679         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75680         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75681         to 'remove_elt'.
75682         (gl_list_remove): Update.
75683         * lib/gl_list.c (gl_list_remove): Update.
75684         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75685         to 'remove_elt'.
75686         (gl_oset_remove): Update.
75687         * lib/gl_list.c (gl_oset_remove): Update.
75688         Reported by Eric Blake.
75690 2009-09-28  Eric Blake  <ebb9@byu.net>
75692         doc: mention yet more cygwin 1.7 status
75693         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75694         cygwin.
75695         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75696         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75698         argp: fix test failure
75699         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75700         that are not upper-case.  Pass correct range to tolower.
75702 2009-09-27  Jim Meyering  <meyering@redhat.com>
75704         test-yesno: work around sparc-dash here-document infelicity
75705         Without this change, the literal \177 byte in a here document
75706         would make dash 0.5.5.1-3 access uninitialized memory.
75707         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75708         Instead, use a marker, "@", and filter through tr to create the desired
75709         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75711 2009-09-27  Bruno Haible  <bruno@clisp.org>
75713         Disable untested support for new flavours of ACLs on AIX.
75714         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75715         progress.
75716         * lib/set-mode-acl.c (qset_acl): Likewise.
75718 2008-12-07  Bruno Haible  <bruno@clisp.org>
75720         Add support for new flavours of ACLs on AIX. (Untested.)
75721         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75722         (file_has_acl): Add support for newer AIX.
75723         * lib/set-mode-acl.c (qset_acl): Likewise.
75724         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75725         Rainer Tammer <tammer@tammer.net>.
75727 2009-09-26  Eric Blake  <ebb9@byu.net>
75729         argp: fix compilation of getopt
75730         * lib/getopt.in.h (includes): Use different guard than glibc.
75731         Reported by Sergey Poznyakoff.
75733         doc: mention more cygwin 1.7 status
75734         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75735         bug.
75736         * doc/posix-functions/execl.texi (execl): Likewise.
75737         * doc/posix-functions/execle.texi (execle): Likewise.
75738         * doc/posix-functions/execlp.texi (execlp): Likewise.
75739         * doc/posix-functions/execv.texi (execv): Likewise.
75740         * doc/posix-functions/execve.texi (execve): Likewise.
75741         * doc/posix-functions/execvp.texi (execvp): Likewise.
75742         * doc/glibc-functions/canonicalize_file_name.texi
75743         (canonicalize_file_name): Cygwin 1.7 now provides this.
75744         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75745         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75746         on AT_SYMLINK_NOFOLLOW.
75748 2009-09-24  Eric Blake  <ebb9@byu.net>
75750         test-linkat: make test more robust
75751         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75753         getopt: fix inclusion guards for cygwin
75754         * modules/getopt-posix (Depends-on): Add include-next.
75755         (Makefile.am): Substitute more items in replacement header.
75756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75757         <getopt.h>.
75758         * lib/getopt.in.h (includes): Use split inclusion guard, and
75759         prefer <getopt.h> over include <unistd.h> when one is present.
75760         (option): Also override name of 'struct option'.
75762         same-inode: revert prior change; it is not yet ready
75763         * NEWS: Undo mention of this change.
75764         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75765         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75766         * lib/cycle-check.c (cycle_check): Likewise.
75767         * lib/same.c (same_name): Likewise.
75768         * lib/at-func2.c (at_func2): Likewise.
75770 2009-09-23  Eric Blake  <ebb9@byu.net>
75772         linkat: new module
75773         * modules/linkat: New file.
75774         * lib/at-func2.c (at_func2): Likewise.
75775         * lib/linkat.c (linkat): Likewise.
75776         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75777         * lib/openat-priv.h (at_func2): Add declaration.
75778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75779         * modules/unistd (Makefile.am): Substitute them.
75780         * lib/unistd.in.h (linkat): Declare it.
75781         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75782         * doc/posix-functions/linkat.texi (linkat): Likewise.
75783         * doc/posix-functions/link.texi (link): Tweak wording.
75784         * tests/test-link.c (main): Move guts...
75785         * tests/test-link.h (test_link): ...into new file.
75786         * modules/linkat-tests: New test.
75787         * tests/test-linkat.c: Likewise.
75788         * modules/link-tests (Files): Ship new file.
75789         (Depends-on): Add stdbool.
75791         dirname: add library-safe mdir_name
75792         * lib/dirname.h (mdir_name): New prototype.
75793         * lib/dirname.c (dir_name): Move guts...
75794         (mdir_name): ...to new function that avoids xalloc_die.
75796         fchdir: another mingw fix
75797         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75798         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75799         on mingw (where it has not yet been ported), and make it optional
75800         elsewhere.
75801         (_gl_register_fd): Use it.
75803         same-inode: make SAME_INODE tri-state, to port to mingw
75804         * NEWS: Mention this change.
75805         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75806         st_ino always being 0.
75807         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75808         * lib/cycle-check.c (cycle_check): Likewise.
75809         * lib/same.c (same_name): Likewise.
75811         lstat: avoid mingw compilation error
75812         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75813         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75814         lstat ourselves.
75815         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75816         was adequate.
75817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75818         the checks for lstat.
75819         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75821         link: fix test failure on Solaris 9
75822         * lib/link.c (rpl_link): Don't assume link will catch bogus
75823         trailing slash on source.
75825         test-symlinkat: enhance test
75826         * tests/test-readlink.c (main): Move guts...
75827         * tests/test-readlink.h (test_readlink): ...into new file.
75828         * tests/test-symlink.c (main): Move guts...
75829         * tests/test-symlink.h (test_symlink): ...into new file.
75830         * tests/test-symlinkat.c (main): Use new files for further
75831         coverage.
75832         (do_symlink, do_readlink): New helper functions.
75833         * modules/symlink-tests (Files): Ship new file.
75834         (Depends-on): Add stdbool.
75835         * modules/readlink-tests (Files): Ship new file.
75836         (Depends-on): Add stdbool.
75837         * modules/symlinkat-tests (Files): Use new files.
75839 2009-09-23  Eric Blake  <ebb9@byu.net>
75841         readlink: document portability issue with symlink length
75842         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75843         systems have bogus st_size on symlinks, and mention the
75844         areadlink-with-size module.
75845         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75846         * doc/posix-functions/readlink.texi (readlink): Mention the
75847         areadlink module, and ERANGE failure.
75848         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75849         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75851         readlink: fix Solaris 9 bug with trailing slash
75852         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75853         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75854         * doc/posix-functions/readlink.texi (readlink): Document this.
75855         * modules/readlink-tests: New test.
75856         * tests/test-readlink.c: Likewise.
75858         readlink: fix cygwin 1.5.x bug with return type
75859         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75860         * lib/unistd.in.h (readlink): Use ssize_t.
75861         * lib/readlink.c (readlink): Likewise.
75862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75863         * modules/unistd (Makefile.am): Substitute it.
75864         * lib/unistd.in.h (readlink): Declare replacement.
75865         * doc/posix-functions/readlink.texi (readlink): Document this.
75867         symlink: use throughout gnulib
75868         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75869         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75870         symlink is not used.
75871         * modules/symlinkat (Depends-on): Add symlink.
75872         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75873         * modules/canonicalize-tests (Depends-on): Likewise.
75874         * modules/lstat-tests (Depends-on): Likewise.
75875         * modules/openat-tests (Depends-on): Likewise.
75876         * modules/remove-tests (Depends-on): Likewise.
75877         * modules/rmdir-tests (Depends-on): Likewise.
75878         * modules/unlink-tests (Depends-on): Likewise.
75879         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75880         * tests/test-canonicalize.c (symlink): Likewise.
75881         * tests/test-fstatat.c (symlink): Likewise.
75882         * tests/test-lstat.c (symlink): Likewise.
75883         * tests/test-remove.c (symlink): Likewise.
75884         * tests/test-rmdir.c (symlink): Likewise.
75885         * tests/test-unlink.c (symlink): Likewise.
75886         * tests/test-unlinkat.c (symlink): Likewise.
75888         symlink: new module, for Solaris 9 bug
75889         * modules/symlink: New file.
75890         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75891         * lib/symlink.c: Likewise.
75892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75893         * modules/unistd (Makefile.am): Substitute them.
75894         * lib/unistd.in.h (symlink): Declare replacement.
75895         * MODULES.html.sh (File system functions): Mention it.
75896         * doc/posix-functions/symlink.texi (symlink): Likewise.
75897         * modules/symlink-tests: New test.
75898         * tests/test-symlink.c: Likewise.
75900 2009-09-23  Bruno Haible  <bruno@clisp.org>
75902         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75903         when needed.
75904         Test case: gnulib-tool --import --with-tests atexit inttypes.
75905         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75907 2009-09-23  Bruno Haible  <bruno@clisp.org>
75909         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75910         subcommand, not in a subshell.
75912 2009-09-22  Eric Blake  <ebb9@byu.net>
75914         unistd: sort replacement declarations
75915         * lib/unistd.in.h: Sort declarations.
75917         open, openat: minor optimization
75918         * lib/open.c (open): If open succeeded, len is non-zero.
75919         * lib/openat.c (rpl_openat): Likewise.
75921         link-follow: ensure correct result
75922         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75923         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75924         distinguish between possible failures.
75926 2009-09-21  Eric Blake  <ebb9@byu.net>
75928         fts: avoid compiler warning
75929         * lib/fts.c (dirent_inode_sort_may_be_useful)
75930         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75932 2009-09-19  Bruno Haible  <bruno@clisp.org>
75934         * lib/progreloc.c (canonicalize_file_name): New declaration.
75936 2009-09-19  Eric Blake  <ebb9@byu.net>
75938         link: fix quoting
75939         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75941         openat: fix openat bugs on Solaris 9
75942         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75943         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75944         * modules/openat (Depends-on): Add open.
75945         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75946         * modules/fcntl-h (Makefile.am): Substitute it.
75947         * lib/fcntl.in.h (openat): Declare replacement.
75948         * doc/posix-functions/openat.texi (openat): Document this.
75950         openat: move fstatat and unlinkat into correct files
75951         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75952         compiled.
75953         * lib/openat.c (fstatat, unlinkat): Move...
75954         * lib/fstatat.c (fstatat): ...into correct files.
75955         * lib/unlinkat.c (unlinkat): Likewise.
75957         openat: fix unlinkat bugs on Solaris 9
75958         * lib/unlinkat.c (unlinkat): New file.
75959         * modules/openat (Depends-on): Add unlink.
75960         (Files): Distribute it.
75961         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75962         trailing slash behavior is broken.
75963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75964         * modules/unistd (Makefile.am): Substitute it.
75965         * lib/unistd.in.h (unlinkat): Declare replacement.
75966         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
75968         openat: fix fstatat bugs on Solaris 9
75969         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
75970         stat.
75971         * doc/posix-functions/fstatat.texi (fstatat): Document this.
75973         test-unlinkat: enhance test, to expose Solaris 9 bug
75974         * tests/test-unlink.c (main): Factor guts...
75975         * tests/test-unlink.h (test_rmdir_func): ...into new file.
75976         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
75977         * tests/test-rmdir.c (main): Adjust caller.
75978         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
75979         (unlinker): New helper function.
75980         (rmdirat): Enhance check.
75981         * modules/rmdir-tests (Depends-on): Add stdbool.
75982         * modules/unlink-tests (Depends-on): Likewise.
75983         (Files): Add test-unlink.h.
75984         * modules/openat-tests (Files): Likewise.
75985         (Depends-on): Add unlinkdir.
75987         test-fstatat: new test, to expose Solaris 9 bugs
75988         * tests/test-stat.c (main): Factor guts...
75989         * tests/test-stat.h (test_stat_func): ...into new file.
75990         * tests/test-lstat.c (main): Factor guts...
75991         * tests/test-lstat.h (test_lstat_func): ...into new file.
75992         * tests/test-fstatat.c: New file.
75993         * modules/stat-tests (Files): Add test-stat.h.
75994         * modules/lstat-tests (Files): Add test-lstat.h.
75995         (Depends-on): Add stdbool.
75996         * modules/openat-tests (Depends-on): Add pathmax.
75997         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
75998         (Makefile.am): Run new test.
76000         remove: new module, for mingw and Solaris 9 bugs
76001         * modules/remove: New file.
76002         * lib/remove.c: Likewise.
76003         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76005         * modules/stdio (Makefile.am): Use them.
76006         * lib/stdio.in.h (remove): Declare replacement.
76007         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76008         * doc/posix-functions/remove.texi (remove): Likewise.
76009         * modules/remove-tests: New test.
76010         * tests/test-remove.c: Likewise.
76012         unlink: new module, for Solaris 9 bug
76013         * modules/unlink: New file.
76014         * lib/unlink.c: Likewise.
76015         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76017         * modules/unistd (Makefile.am): Use them.
76018         * lib/unistd.in.h (stat): Declare replacement.
76019         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76020         * doc/posix-functions/unlink.texi (unlink): Likewise.
76021         * modules/unlink-tests: New test.
76022         * tests/test-unlink.c: Likewise.
76024         lstat: fix Solaris 9 bug
76025         * lib/lstat.c (lstat): Also check for trailing slash on
76026         non-symlink, non-directories.  Use stat module to simplify logic.
76027         * doc/posix-functions/lstat.texi (lstat): Document it.
76028         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76029         (configure.ac): Check for symlink.
76030         * tests/test-lstat.c (main): Add more tests.
76032         stat: add as dependency to other modules
76033         * modules/chown (Depends-on): Add stat.
76034         * modules/euidaccess (Depends-on): Likewise.
76035         * modules/fchdir (Depends-on): Likewise.
76036         * modules/isdir (Depends-on): Likewise.
76037         * modules/link (Depends-on): Likewise.
76038         * modules/lstat (Depends-on): Likewise.
76039         * modules/mkdir-p (Depends-on): Likewise.
76040         * modules/modechange (Depends-on): Likewise.
76041         * modules/open (Depends-on): Likewise.
76042         * modules/readlink (Depends-on): Likewise.
76043         * modules/same (Depends-on): Likewise.
76045         stat: fix Solaris 9 bug
76046         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76047         slash.
76048         * lib/stat.c (rpl_stat): Work around it.
76049         * doc/posix-functions/stat.texi (stat): Update documentation.
76051         stat: new module, for mingw bug
76052         * modules/stat: New file.
76053         * lib/stat.c: Likewise.
76054         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76055         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76056         * modules/sys_stat (Makefile.am): Use them.
76057         * lib/sys_stat.in.h (stat): Declare replacement.
76058         * lib/openat.c (fstatat): Deal with lstat and stat being function
76059         macros.
76060         * modules/openat (Depends-on): Add inline.
76061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76062         * doc/posix-functions/stat.texi (stat): Likewise.
76063         * modules/stat-tests: New test.
76064         * tests/test-stat.c: Likewise.
76066 2009-09-19  Jim Meyering  <meyering@redhat.com>
76068         syntax-check: detect unnecessary inclusion of canonicalize.h
76069         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76071 2009-09-19  Eric Blake  <ebb9@byu.net>
76073         canonicalize-lgpl: adjust clients to use correct header
76074         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76075         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
76076         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
76077         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
76078         * lib/progreloc.c (includes): Likewise.
76080 2009-09-19  Jim Meyering  <meyering@redhat.com>
76082         test-posixtm.c: correct a comment
76083         * tests/test-posixtm.c: Correct first-line comment.
76084         Spotted by Eric Blake.
76086 2009-09-16  Jim Meyering  <meyering@redhat.com>
76088         posixtm-tests: make T const-correct; add a test case
76089         * tests/test-posixtm.c (T): Declare const.
76090         Add a test for -(2^31+1).
76091         Remove useless can-succeed-only-in-2002 test.
76093         posixtm-tests: adjust the sole failing test
76094         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
76095         expected output matches what mktime now produces.  Cross-checked via
76096         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
76098         posixtm: move #ifdef'd tests into a new module
76099         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
76100         * tests/test-posixtm.c: ... this new file.
76101         * modules/posixtm-tests: New module.
76103 2009-09-19  Eric Blake  <ebb9@byu.net>
76105         openat: simplify use of at-func.c
76106         * lib/at-func.c (includes): Include prerequisites here, to
76107         simplify requirements on client files.
76108         * lib/openat-priv.h: Add double-inclusion guard.
76109         * lib/faccessat.c (includes): Simplify.
76110         * lib/fchmodat.c (includes): Likewise.
76111         * lib/fchownat.c (includes): Likewise.
76112         * lib/mkdirat.c (includes): Likewise.
76113         * lib/mkfifoat.c (includes): Likewise.
76114         * lib/symlinkat.c (includes): Likewise.
76116         openat: allow return of fd 0
76117         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76118         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76119         unistd-safer.
76120         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76121         <fcntl.h>; this module does not leak fds.
76122         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76123         must be allowed to return 0, leaving openat_safer to add the
76124         safety.
76125         (openat_permissive): Avoid writing to just-opened fd 2 if
76126         restoring the current directory fails.
76127         * lib/openat-die.c (openat_restore_fail): Add comment.
76128         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76129         (save_cwd): Guarantee safe fd, but without use of open_safer.
76130         * tests/test-openat.c: New test.
76131         * modules/openat-tests (Files, Makefile.am): Distribute and build
76132         new file.
76134         relocatable-prog-wrapper: fix build
76135         * modules/relocatable-prog-wrapper (Files): Update name of
76136         canonicalize m4 file, broken on 2009-09-17.
76137         Reported by emad hajjar <aleppos@hotmail.com>.
76139 2009-09-19  Bruno Haible  <bruno@clisp.org>
76141         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76142         * lib/safe-alloc.c: Likewise.
76143         Reported by Ian Beckwith <ianb@erislabs.net>.
76145 2009-09-18  Bruno Haible  <bruno@clisp.org>
76147         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76148         Reported by <erobles@sensacd.com.mx>.
76150 2009-09-17  Eric Blake  <ebb9@byu.net>
76152         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76153         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76154         slashes when checking if last component is missing.
76155         * tests/test-canonicalize.c (main): Test this.
76157         canonicalize, canonicalize-lgpl: honor // if distinct from /
76158         * modules/canonicalize (Files): Add double-slash-root.m4.
76159         * modules/canonicalize-lgpl (Files): Likewise.
76160         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76161         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76162         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76163         fallback definition.
76164         (canonicalize_filename_mode): Use it to protect //.
76165         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76166         (__realpath): Likewise.
76167         * tests/test-canonicalize.c (main): Test this.
76168         * tests/test-canonicalize-lgpl.c (main): Likewise.
76169         * modules/canonicalize-tests (Depends-on): Add same-inode.
76170         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76172         canonicalize-lgpl: fix glibc bug with trailing slash
76173         * m4/canonicalize-lgpl.m4: Move contents...
76174         * m4/canonicalize.m4: ...here.
76175         (gl_CANONICALIZE_LGPL): Factor realpath check...
76176         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76177         glibc 2.3.5 bug, fixed 2005-04-27.
76178         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76179         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76180         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76181         * modules/canonicalize-lgpl (Files): Manage file rename.
76182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76183         * modules/stdlib (Makefile.am): Substitute witness.
76184         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76185         is needed.
76186         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76187         replacement is required.
76188         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76189         * doc/glibc-functions/canonicalize_file_name.texi
76190         (canonicalize_file_name): Document this.
76191         * doc/posix-functions/realpath.texi (realpath): Likewise.
76193         canonicalize-lgpl: reject non-directory with trailing slash
76194         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76195         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76196         catches failures in glibc 2.3.5.
76197         * tests/test-canonicalize.c (main): Likewise.
76199         canonicalize-lgpl: use native realpath if it works
76200         * lib/canonicalize-lgpl.c (realpath): Guard with
76201         FUNC_REALPATH_WORKS.
76202         * lib/stdlib.in.h (realpath): Make declaration optional based on
76203         HAVE_REALPATH.
76204         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76205         native realpath works.
76206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76207         * modules/stdlib (Makefile.am): Substitute witness.
76209         canonicalize, canonicalize-lgpl: use <stdlib.h>
76210         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76211         (Include): Mention <stdlib.h>.
76212         (configure.ac): Mention functions we provide.
76213         * modules/canonicalize (configure.ac): Likewise.
76214         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76215         realpath if canonicalize_file_name is missing.
76216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76217         * modules/stdlib (Makefile.am): Substitute witnesses.
76218         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76219         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76220         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76221         * NEWS: Document this.
76222         * doc/glibc-functions/canonicalize_file_name.texi
76223         (canonicalize_file_name): Likewise.
76224         * doc/posix-functions/realpath.texi (realpath): Likewise.
76225         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76227         test-canonicalize: consolidate into single C program
76228         * tests/test-canonicalize.sh: Delete; move setup into...
76229         * tests/test-canonicalize.c (main): ...the program, making it
76230         easier to run in debugger.  Add some tests.
76231         * modules/canonicalize-tests (Files): Remove unused file.
76232         (Depends-on): Add progname.
76233         (configure.ac, Makefile.am): Simplify.
76235         test-canonicalize-lgpl: consolidate into single C program
76236         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76237         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76238         easier to run in debugger.  Add some tests.
76239         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76240         (configure.ac, Makefile.am): Simplify.
76242         canonicalize: avoid resolvepath
76243         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76244         unnecessary checks.
76245         * lib/canonicalize.c (includes): Simplify.
76246         (canonicalize_file_name): Drop resolvepath implementation.
76247         * modules/canonicalize (Depends-on): Drop filenamecat.
76249         canonicalize: don't lose errno
76250         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76251         over calls to free.
76253         canonicalize: simplify errno handling
76254         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76255         assignment.
76257         canonicalize, canonicalize-lgpl: update module dependencies
76258         * modules/canonicalize (Depends-on): Add extensions, lstat,
76259         pathmax, stdlib.
76260         (Files): Drop pathmax.h.
76261         (configure.ac): Adjust macro name.
76262         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76263         lstat, stdlib, sys_stat.
76264         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76265         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76266         extensions.
76267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76268         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76269         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76270         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76271         declaration, if available.
76272         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76273         we can rely on the readlink module.
76274         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76275         (includes): Use <unistd.h> unconditionally.
76277 2009-09-17  Eric Blake  <ebb9@byu.net>
76279         maint: make Include sections of modules consistent
76280         * modules/alloca: Use only header name; no need to list #include.
76281         * modules/alloca-opt: Likewise.
76282         * modules/arpa_inet: Likewise.
76283         * modules/canon-host: Likewise.
76284         * modules/configmake: Likewise.
76285         * modules/dirent: Likewise.
76286         * modules/eealloc: Likewise.
76287         * modules/environ: Likewise.
76288         * modules/fchdir: Likewise.
76289         * modules/fcntl: Likewise.
76290         * modules/fcntl-h: Likewise.
76291         * modules/gethrxtime: Likewise.
76292         * modules/gettime: Likewise.
76293         * modules/ignore-value: Likewise.
76294         * modules/inet_ntop: Likewise.
76295         * modules/inet_pton: Likewise.
76296         * modules/inttypes: Likewise.
76297         * modules/isnand-nolibm: Likewise.
76298         * modules/isnanf-nolibm: Likewise.
76299         * modules/mbchar: Likewise.
76300         * modules/mbfile: Likewise.
76301         * modules/mbiter: Likewise.
76302         * modules/mbuiter: Likewise.
76303         * modules/netdb: Likewise.
76304         * modules/netinet_in: Likewise.
76305         * modules/nproc: Likewise.
76306         * modules/pagealign_alloc: Likewise.
76307         * modules/poll: Likewise.
76308         * modules/printf-frexp: Likewise.
76309         * modules/pthread: Likewise.
76310         * modules/putenv: Likewise.
76311         * modules/random_r: Likewise.
76312         * modules/relocatable-prog: Likewise.
76313         * modules/search: Likewise.
76314         * modules/select: Likewise.
76315         * modules/selinux-h: Likewise.
76316         * modules/settime: Likewise.
76317         * modules/signal: Likewise.
76318         * modules/size_max: Likewise.
76319         * modules/socklen: Likewise.
76320         * modules/ssize_t: Likewise.
76321         * modules/stdarg: Likewise.
76322         * modules/stdbool: Likewise.
76323         * modules/stddef: Likewise.
76324         * modules/stdint: Likewise.
76325         * modules/stdio: Likewise.
76326         * modules/stdlib: Likewise.
76327         * modules/string: Likewise.
76328         * modules/strings: Likewise.
76329         * modules/sys_file: Likewise.
76330         * modules/sys_ioctl: Likewise.
76331         * modules/sys_select: Likewise.
76332         * modules/sys_socket: Likewise.
76333         * modules/sys_stat: Likewise.
76334         * modules/sys_time: Likewise.
76335         * modules/sys_times: Likewise.
76336         * modules/sys_utsname: Likewise.
76337         * modules/sys_wait: Likewise.
76338         * modules/sysexits: Likewise.
76339         * modules/time: Likewise.
76340         * modules/times: Likewise.
76341         * modules/tmpfile: Likewise.
76342         * modules/trim: Likewise.
76343         * modules/unistd: Likewise.
76344         * modules/wchar: Likewise.
76345         * modules/wctype: Likewise.
76347 2009-09-17  Bruno Haible  <bruno@clisp.org>
76349         Make getdate.y compile on QNX and NetBSD 5 / i386.
76350         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76351         TIME_T_FITS_IN_LONG_INT.
76352         * lib/getdate.y (long_time_t): New type.
76353         (relative_time): Change type of 'seconds' field to long_time_t.
76354         (get_date): Update types of local variables. Check against overflow
76355         during conversion from long_time_t to time_t.
76356         Reported by Matt Kraai <kraai@ftbfs.org>
76357         and Hasso Tepper <hasso@netbsd.org>.
76359 2009-09-17  Bruno Haible  <bruno@clisp.org>
76361         * modules/COPYING: Update copyright years.
76362         * modules/README: Likeiwse.
76363         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76364         Reported by Ian Beckwith <ianb@erislabs.net>.
76366 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76368         * users.txt: Update references for gnuit package.
76370 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76372         * m4/getdelim.m4: Fix typo in copyright line.
76374 2009-09-17  Bruno Haible  <bruno@clisp.org>
76376         * lib/atoll.c: Use the standard header with GPL copyright.
76377         * lib/argz.in.h: Likewise.
76378         * lib/glob.c: Likewise.
76379         * lib/glob-libc.h: Likewise.
76380         * lib/random_r.c: Likewise.
76381         * lib/siglist.h: Likewise.
76382         * lib/strsignal.c: Likewise.
76383         Reported by Ian Beckwith <ianb@erislabs.net>.
76385 2009-09-17  Eric Blake  <ebb9@byu.net>
76387         rmdir: ensure correct dependency order
76388         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76390 2009-09-17  Bruno Haible  <bruno@clisp.org>
76392         Disable assertion that fails on NetBSD 5 / i386.
76393         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76394         Reported by Sam Steingold <sds@gnu.org>
76395         and Hasso Tepper <hasso@netbsd.org>.
76397 2009-09-16  Eric Blake  <ebb9@byu.net>
76399         unlinkdir: port to mingw
76400         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76401         on which no one can unlink a directory.
76403         stdlib: sort witness names
76404         * modules/stdlib (Makefile.am): Sort replacements.
76405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76406         * lib/stdlib.in.h: Likewise.
76408         parse-duration-tests: avoid link failure
76409         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76410         LIBINTL.
76411         Reported by Tom G. Christensen.
76413         openat-tests: ensure unlinkat behaves like rmdir
76414         * tests/test-rmdir.c (main): Factor guts...
76415         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76416         * modules/rmdir-tests (Files): Ship new file.
76417         * modules/openat-tests: New test.
76418         * tests/test-unlinkat.c: Likewise.
76420         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76421         * modules/rmdir-errno (Status, Notice): Now obsolete.
76423         rmdir: work around cygwin 1.5.x and mingw bugs
76424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76425         * lib/rmdir.c (rmdir): Work around it.
76426         * modules/rmdir (Status, Notice): No longer obsolete.
76427         (Files): Add dos.m4.
76428         (Depends-on): Add unistd.
76429         (configure.ac): Set witnesses.
76430         (License): Relax to LGPLv2+.
76431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76432         * modules/unistd (Makefile.am): Substitute witnesses.
76433         * lib/unistd.in.h (rmdir): Declare replacement.
76434         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76435         * modules/rmdir-tests: New tests.
76436         * tests/test-rmdir.c: Likewise.
76438 2009-09-15  Eric Blake  <ebb9@byu.net>
76440         fchdir: improve use of replacement functions
76441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76442         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76443         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76444         REPLACE_CLOSEDIR.
76445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76446         * modules/sys_stat (Makefile.am): Substitute correct witness.
76447         * modules/dirent (Makefile.am): Likewise.
76448         * modules/unistd (Makefile.am): Likewise.
76449         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76450         * lib/unistd.in.h (dup): Likewise.
76451         * lib/sys_stat.in.h (fstat): Likewise.
76453         maint: ignore gnulib-tool temp files
76454         * .gitignore: Ignore files created during gnulib-tool --test.
76456 2009-09-13  Jim Meyering  <meyering@redhat.com>
76458         posixtm: don't reject a time that specify "60" as the number of seconds
76459         * lib/posixtm.c (posixtime): The code to reject invalid dates
76460         would also reject a time specified with the .60 suffix.
76461         But POSIX allows that, in order to accommodate leap seconds.
76462         So don't reject it.
76463         (main): Adjust tests accordingly.
76464         * modules/posixtm (Depends-on): Add stpcpy.
76466 2009-09-11  Jim Meyering  <meyering@redhat.com>
76468         announce-gen: include [$release_type] in emitted Subject:
76469         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76470         e.g., [stable] in the emitted Subject: line.
76472 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76474         Remove obsolete macros from several modules.
76475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76476         obsolete Autoconf macros with their modern counterparts.
76477         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76478         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76480         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76482         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76484         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76485         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76486         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76487         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76489         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76490         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76491         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76492         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76493         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76494         * m4/time_r.m4 (gl_TIME_R): Likewise.
76495         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76496         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76497         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76499         Fix copyright header in build-aux scripts.
76500         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76501         recommendation.
76502         * build-aux/ncftpput-ftp: Likewise.
76503         * build-aux/update-copyright: Likewise.
76505 2009-09-09  Eric Blake  <ebb9@byu.net>
76507         test-link: allow Linux choice of errno
76508         * tests/test-link.c (main): Relax test for alternate error.
76510         strndup: fix improper m4 caching
76511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76512         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76513         (gl_PREREQ_STRNDUP): Delete.
76514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76515         * modules/string (Makefile.am): Substitute it.
76516         * lib/string.in.h (strndup): Modernize prototype.
76518         getcwd: port to mingw
76519         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76520         different from the POSIX assumptions made throughout the getcwd
76521         module; fortunately, the mingw getcwd does not need replacement.
76522         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76523         * modules/getcwd-tests: New test.
76524         * tests/test-getcwd.c: Likewise.
76526         link: fix platform bugs
76527         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76528         * lib/link.c (link): Work around them.  Fix related mingw bug.
76529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76530         * modules/unistd (Makefile.am): Substitute it.
76531         * lib/unistd.in.h (link): Declare replacement.
76532         * doc/posix-functions/link.texi (link): Document this.
76533         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76535         test-link: consolidate into single C program, test more cases
76536         * tests/test-link.sh: Delete.
76537         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76538         at least Cygwin and Solaris.
76539         * modules/link-tests (Files): Remove unused file.
76540         (Depends-on): Add errno, sys_stat.
76541         (Makefile.am): Simplify.
76543 2009-09-08  Bruno Haible  <bruno@clisp.org>
76545         Work around towlower, towupper bug on mingw.
76546         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76547         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76548         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76549         * doc/posix-functions/towupper.texi: Likewise.
76550         Reported by Eric Blake.
76552 2009-09-08  Jim Meyering  <meyering@redhat.com>
76554         build: don't try to run autoheader if we don't use it
76555         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76556         is not used in configure.ac.
76558 2009-09-08  Eric Blake  <ebb9@byu.net>
76560         euidaccess: fix compilation error
76561         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76563         rawmemchr: relax license
76564         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76565         okay.
76566         Reported by Jim Meyering.
76568         mkfifoat: new module
76569         * modules/mkfifoat: New file.
76570         * lib/mkfifoat.c: Likewise.
76571         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76573         * modules/sys_stat (Makefile.am): Use them.
76574         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76575         * MODULES.html.sh (File system functions): Mention module.
76576         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76577         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76578         * modules/mkfifoat-tests: New test.
76579         * tests/test-mkfifoat.c: Likewise.
76581         strchrnul: relax license
76582         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76583         okay.
76584         Reported by Jim Meyering.
76586 2009-09-08  Eric Blake  <ebb9@byu.net>
76588         fstatat: fix compilation on Solaris
76589         * lib/fstatat.c (includes): Add fcntl.h.
76590         Reported by Pádraig Brady.
76592 2009-09-07  Eric Blake  <ebb9@byu.net>
76594         rename: modernize replacement
76595         * modules/rename (Depends-on): Add stdio.
76596         (configure.ac): Declare witness.
76597         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76598         stdio take care of replacement.
76599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76600         * modules/stdio (Makefile.am): Substitute them.
76601         * lib/stdio.in.h (rename): Declare replacement.
76602         * lib/rename.c (includes): Allow cross-compilation to non-windows
76603         machines.
76604         * doc/posix-functions/rename.texi (rename): Improve
76605         documentation.
76607         stdio: sort witness names
76608         * modules/stdio (Makefile.am): Sort replacements.
76609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76610         * lib/stdio.in.h: Likewise.
76612         getcwd: minor cleanups
76613         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76614         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76616         openat: provide more convenience names
76617         * modules/faccessat (configure.ac): Add C witness.
76618         * lib/unistd.in.h (readlinkat): Fix typo.
76619         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76620         convenience wrappers.
76621         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76622         wrappers in syntax checks.
76624 2009-09-06  Eric Blake  <ebb9@byu.net>
76626         doc: fix comments in recent patches
76627         * lib/faccessat.c: Mention correct function.
76628         * lib/fchmodat.c: Likewise.
76629         * lib/fchownat.c: Likewise.
76630         * lib/symlinkat.c: Likewise.
76631         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76632         constants.
76634         faccessat, symlinkat: continue cleanup of previous patch
76635         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76636         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76637         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76639         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76640         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76641         set.
76643 2009-09-06  Bruno Haible  <bruno@clisp.org>
76645         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76646         (fstatat): Declare if GNULIB_FSTATAT is set.
76647         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76648         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76649         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76650         * modules/fcntl-h (Files): Remove m4/openat.m4.
76651         * modules/sys_stat (Files): Remove m4/openat.m4.
76652         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76653         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76654         * modules/unistd (Files): Remove m4/openat.m4.
76655         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76656         GNULIB_OPENAT.
76657         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76658         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76660         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76661         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76662         gl_OPENAT_DEFAULTS.
76663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76664         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76665         Don't require gl_OPENAT_DEFAULTS.
76666         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76667         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76668         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76669         (gl_OPENAT_DEFAULTS): Remove macro.
76671 2009-09-06  Bruno Haible  <bruno@clisp.org>
76673         * modules/openat (configure.ac): Remove unneeded witness.
76675 2009-09-06  Bruno Haible  <bruno@clisp.org>
76677         Set errno to ENOSYS when a function is entirely unsupported.
76678         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76679         EOPNOTSUPP.
76680         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76681         * modules/chown (Depends-on): Remove errno.
76683 2009-09-06  Bruno Haible  <bruno@clisp.org>
76685         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76687 2009-09-06  Bruno Haible  <bruno@clisp.org>
76689         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76691 2009-09-06  Ben Pfaff  <blp@gnu.org>
76692             Bruno Haible  <bruno@clisp.org>
76694         Work around a glibc bug in strtok_r.
76695         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76696         Undefine if UNDEFINE_STRTOK_R is set.
76697         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76699         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76700         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76701         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76702         UNDEFINE_STRTOK_R.
76703         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76705 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76707         exclude: minor fix
76708         * lib/exclude.c: Include wctype.h
76710 2009-09-06  Akim Demaille  <demaille@gostai.com>
76712         bootstrap: improve error message
76713         * build-aux/bootstrap (find_tool): Upon failure, report the list
76714         of candidates.
76715         Honor the initial value of the envvar.
76717 2009-09-05  Eric Blake  <ebb9@byu.net>
76719         symlinkat: new module
76720         * modules/symlinkat: New file.
76721         * lib/symlinkat.c: Likewise.
76722         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76724         * modules/unistd (Makefile.am): Use them.
76725         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76726         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76727         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76728         * MODULES.html.sh (File system functions): Mention module.
76729         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76730         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76731         * modules/symlinkat-tests: New test.
76732         * tests/test-symlinkat.c: Likewise.
76734         test-openat-safer: add more checks
76735         * tests/test-openat-safer.c (main): Check more code paths.
76737 2009-09-05  Jim Meyering  <meyering@redhat.com>
76739         syntax-check: detect unnecessary inclusion of openat.h
76740         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76742 2009-09-05  Bruno Haible  <bruno@clisp.org>
76744         Support towlower, towupper.
76745         * doc/posix-functions/towlower.texi: Mention module wctype.
76746         * doc/posix-functions/towupper.texi: Likewise.
76747         * lib/wctype.in.h (towlower, towupper): New functions.
76748         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76749         (ASSERT): New macro.
76750         (e): New variable.
76751         (main): Test also towlower, towupper. Test WEOF argument.
76752         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76754 2009-09-05  Bruno Haible  <bruno@clisp.org>
76756         Fix conversion behaviour when the input is invalid.
76757         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76758         mark occurring in first pass of indirect conversion.
76759         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76760         input.
76761         Found by clang's static analyzer.
76763 2009-09-05  Bruno Haible  <bruno@clisp.org>
76765         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76766         where direct conversion is possible.
76768 2009-09-04  Eric Blake  <ebb9@byu.net>
76770         openat: fail with ENOENT on empty name
76771         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76772         buffer.
76774         link-follow: fix logic bug in prior patch
76775         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76776         reversed sense of yes and no in prior patch.  Avoid confusing
76777         compilation failure with desired semantics.
76779         link-follow: accommodate mingw and cross-compilation
76780         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76781         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76782         cross-compilation results to -1, to make linkat easier to
76783         implement when cross-compiling.  Trivially support mingw.
76784         * modules/link-follow (configure.ac): Call new name.
76785         * NEWS: Mention this.
76787 2009-09-03  Eric Blake  <ebb9@byu.net>
76789         faccessat: compile replacement
76790         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76791         needed.
76793         fts: fix compilation error
76794         * lib/fts.c (includes): Re-add "openat.h", for
76795         openat_needs_fchdir.
76797         faccessat: new module
76798         * modules/faccessat: New file.
76799         * lib/faccessat.c: Likewise.
76800         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76802         * modules/unistd (Makefile.am): Use it.
76803         * lib/unistd.in.h (faccessat): Declare it.
76804         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76805         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76806         * MODULES.html.sh (File system functions): Mention it.
76807         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76808         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76810         euidaccess: prefer POSIX over non-standard implementation
76811         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76812         * lib/euidaccess.c (euidaccess): Use it if available.
76814         openat: make template easier to use
76815         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76816         AT_FUNC_F2 to be undefined.
76817         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76818         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76819         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76820         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76821         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76822         Likewise.
76823         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76824         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76825         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76826         Likewise.
76828         openat: declare in POSIX headers
76829         * NEWS: Mention this.
76830         * modules/openat (configure.ac): Declare witnesses.
76831         (Depends-on): Add fcntl-h, sys_stat, unistd.
76832         (Include): Mention correct headers.
76833         * modules/fcntl-h (Depends-on): Add link-warning.
76834         (Files): Add openat.m4.
76835         (Makefile.am): Substitute witnesses.
76836         * modules/sys_stat (Files, Makefile.am): Likewise.
76837         * modules/unistd (Files, Makefile.am): Likewise.
76838         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76839         (gl_OPENAT_DEFAULTS): New macro.
76840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76843         (SYS_STAT_H): Remove unused variable.
76844         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76845         * lib/fcntl--.h (includes): Remove unneeded header.
76846         * lib/openat-safer.c (includes): Likewise.
76847         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76848         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76849         appropriate headers.
76850         (__OPENAT_PREFIX): Delete.
76851         * lib/fcntl.in.h (openat): Provide declaration.
76852         (AT_FDCWD): Fix Solaris bug.
76853         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76854         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76855         * lib/fchmodat.c (includes):  Adjust to find declaration.
76856         * lib/fchownat.c (includes): Likewise.
76857         * lib/mkdirat.c (includes): Likewise.
76858         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76859         still visible.
76861 2009-09-02  Eric Blake  <ebb9@byu.net>
76863         errno: use consistently
76864         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76865         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76866         * lib/canonicalize.c (ELOOP): Likewise.
76867         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76868         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76869         * lib/lchown.c (EOPNOTSUPP): Likewise.
76870         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76871         * lib/savewd.c (ESTALE): Likewise.
76872         * lib/settime.c (ENOSYS): Likewise.
76873         * lib/utimens.c (ENOSYS): Likewise.
76874         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76875         * lib/chdir-safer.c (ELOOP): Likewise.
76876         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76877         * modules/c-stack (Depends-on): Add errno.
76878         * modules/canonicalize (Depends-on): Likewise.
76879         * modules/chdir-safer (Depends-on): Likewise.
76880         * modules/fdopendir (Depends-on): Likewise.
76881         * modules/inet_ntop (Depends-on): Likewise.
76882         * modules/inet_pton (Depends-on): Likewise.
76883         * modules/lchown (Depends-on): Likewise.
76884         * modules/openat (Depends-on): Likewise.
76885         * modules/savewd (Depends-on): Likewise.
76886         * modules/settime (Depends-on): Likewise.
76887         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76889         fts: avoid leaking fds
76890         * modules/fts (Depends-on): Add cloexec.
76891         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76892         flag.
76894         fts: make directory fds more robust
76895         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76896         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76898         backupfile, chdir-long, fts, savedir: make safer
76899         * lib/backupfile.c (includes): Use "dirent--.h", since
76900         numbered_backup can write to stderr during readdir.
76901         * lib/savedir.c (includes): Likewise.
76902         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76903         emulation can write to stderr on failure.
76904         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76905         * lib/getcwd.c: Document why opendir_safer is unused.
76906         * lib/glob.c: Likewise.
76907         * lib/scandir.c: Likewise.
76908         * lib/openat-proc.c: Likewise, for open_safer.
76909         * modules/backupfile (Depends-on): Add dirent-safer.
76910         * modules/savedir (Depends-on): Likewise.
76911         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76912         * modules/chdir-long (Depends-on): Add openat-safer.
76914         openat-safer: new module
76915         * modules/openat-safer: New file.
76916         * lib/openat-safer.c: Likewise.
76917         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76918         * lib/fcntl-safer.h (openat_safer): Declare.
76919         * lib/fcntl--.h (openat): Override.
76920         * MODULES.html.sh (File descriptor based I/O): Mention it.
76921         * lib/openat.h: Add double-inclusion guards.
76922         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76923         "fcntl--.h", so we can implement openat.
76924         * modules/openat-safer-tests: New test.
76925         * tests/test-openat-safer.c: New file.
76927         dirent-safer: new module
76928         * modules/dirent-safer: New file.
76929         * lib/dirent--.h: Likewise.
76930         * lib/dirent-safer.h: Likewise.
76931         * lib/opendir-safer.c: Likewise.
76932         * m4/dirent-safer.m4: Likewise.
76933         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76934         * modules/dirent-safer-tests: New test.
76935         * tests/test-dirent-safer.c: New file.
76936         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76938         fdopendir: optimize on mingw
76939         * lib/unistd.in.h (_gl_directory_name): New prototype.
76940         * lib/fchdir.c (_gl_directory_name): Implement it.
76941         (fchdir): Use it to simplify implementation.
76942         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76943         fchdir, when available, to avoid calling [f]chdir().
76945         fdopendir: split into its own module
76946         * lib/openat.c (fdopendir): Move...
76947         * lib/fdopendir.c: ...into new file.
76948         * modules/fdopendir: New module.
76949         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76950         * modules/openat (Depends-on): Add fdopendir.
76951         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76952         fdopendir here.
76953         * modules/savedir (Depends-on): Only need fdopendir, not full
76954         openat.
76955         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76956         * lib/openat.h (fdopendir): Drop prototype.
76957         * lib/dirent.in.h (fdopendir): Provide prototype.
76958         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76959         * modules/dirent (Makefile.am): Substitute them.
76960         * MODULES.html.sh (File system functions): Mention it.
76961         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76962         * modules/fdopendir-tests: New file.
76963         * tests/test-fdopendir.c: Likewise.
76965         fchdir: use more consistent macro convention
76966         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76967         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
76968         REPLACE_FCHDIR, rather than relying on config.h macros.
76969         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
76970         inside a single make-time REPLACE_FCHDIR block, rather than using
76971         the config.h FCHDIR_REPLACEMENT.
76972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
76973         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
76974         Manage fstat replacement.
76975         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
76976         REPLACE_FCHDIR.
76977         * modules/sys_stat (Files): Add m4/unistd_h.m4.
76978         (Makefile.am): Substitute REPLACE_FCHDIR.
76979         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
76980         FCHDIR_REPLACEMENT.
76981         * lib/dup-safer.c (dup_safer): Likewise.
76982         * lib/dup2.c (rpl_dup2): Likewise.
76983         * lib/dup3.c (rpl_dup3): Likewise.
76984         * lib/open.c (rpl_open): Likewise.
76986         fchdir: simplify error handling, and support dup3
76987         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
76988         stdbool, malloc-posix, realloc-posix.
76989         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
76990         (ensure_dirs_slot): Return false on allocation failure.
76991         (rpl_dup2): Delete.
76992         (_gl_register_dup): New function.
76993         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
76994         (_gl_register_fd): Close fd on allocation failure.
76995         * lib/fcntl.in.h (_gl_register_fd): Update signature.
76996         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
76997         prototype.
76998         (rpl_dup2_fchdir): Delete prototype.
76999         * lib/open.c (open): Update caller.
77000         * lib/dup2.c (dup2): Track fchdir metadata.
77001         * lib/dup3.c (dup3): Likewise.
77002         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77005 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77007         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77008         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77009         don't pass arguments to AC_OUTPUT.
77011 2009-09-02  Bruno Haible  <bruno@clisp.org>
77013         * modules/mkdtemp (License): Relicense under LGPLv2+.
77014         Reported by Paolo Bonzini.
77016 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77018         Replace uses of obsolete autoconf macros in Jim's modules.
77019         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77020         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77021         can evoke a warning from autoconf when run with -Wobsolete
77022         enabled.  They were declared obsolete for good reasons (see
77023         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77024         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77025         should not continue using the deprecated macros.
77026         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77027         obsolete Autoconf macros with modern counterparts.
77028         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77029         * m4/dos.m4 (gl_AC_DOS): Likewise.
77030         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77032         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77033         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77034         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77035         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77036         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77037         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77038         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77039         Likewise.
77040         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77041         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77043         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77044         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77045         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77047 2009-09-01  Eric Blake  <ebb9@byu.net>
77049         fchdir: fix off-by-one bug in previous patch
77050         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77051         (_gl_unregister_fd): Delete useless if.
77053 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77055         maint.mk: sort the list of syntax-check rules
77056         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77057         easier to get a sense of progress when the rules are run sequentially
77058         and take a long time.
77060 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77062         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77063         * modules/netinet_in: Likewise.
77064         * modules/sys_file: Likewise.
77065         * modules/sys_ioctl: Likewise.
77066         * modules/sys_select: Likewise.
77067         * modules/sys_socket: Likewise.
77068         * modules/sys_stat: Likewise.
77069         * modules/sys_time: Likewise.
77070         * modules/sys_times: Likewise.
77071         * modules/sys_utsname: Likewise.
77072         * modules/sys_wait: Likewise.
77074 2009-09-01  Jim Meyering  <meyering@redhat.com>
77076         fts: help ensure that return values are not ignored
77077         * lib/fts_.h (__GNUC_PREREQ): Define.
77078         (__attribute_warn_unused_result__): Define.
77079         (fts_children, fts_close, fts_open, fts_read): Declare with
77080         __attribute_warn_unused_result__.
77082         fts: fts_close now fails also when closing a dir file descriptor fails
77083         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
77084         and propagate to caller, along with errno.
77086         announce-gen: correct formatting in --help output
77087         * build-aux/announce-gen (usage): Move the one-line description in
77088         --help output "up", to where it belongs, just after Usage:.
77090 2009-08-31  Eric Blake  <ebb9@byu.net>
77092         fchdir: port to mingw
77093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
77094         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
77095         opened, then use a substitute.
77096         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
77097         replacement.
77098         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
77099         (_gl_register_fd): No need to check stat if open already filters
77100         all directories.
77101         (fchdir): Fix error condition to match POSIX.
77102         * modules/fchdir (Depends-on): Add sys_stat.
77103         * doc/posix-functions/open.texi (open): Document the limitation.
77104         * modules/fchdir-tests: New file.
77105         * tests/test-fchdir.c: Likewise.
77107         canonicalize: allow cross-testing from cygwin to mingw
77108         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77109         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77110         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77111         Likewise.
77112         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77113         target does not support symlinks.
77114         * tests/test-canonicalize-lgpl.sh: Likewise.
77116         chown: avoid compilation warning on mingw
77117         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77118         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77119         mingw.
77120         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77121         * modules/chown (Depends-on): Add errno.
77123 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77125         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77126         command.
77128 2009-08-31  Jim Meyering  <meyering@redhat.com>
77130         canonicalize: remove useless initialization
77131         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77132         initialization of local, "end".
77134 2009-08-30  Bruno Haible  <bruno@clisp.org>
77136         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77137         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77138         ENOSYS.
77140 2009-08-30  Bruno Haible  <bruno@clisp.org>
77142         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77143         /usr/xpg4/bin/tr when it exists.
77144         * tests/test-pipe-filter-gi1.sh: Likewise.
77146 2009-08-30  Bruno Haible  <bruno@clisp.org>
77148         Work around deficient /usr/bin/id program on Solaris.
77149         * tests/test-file-has-acl.sh (ID): New variable.
77150         * tests/test-set-mode-acl.sh (ID): Likewise.
77151         * tests/test-copy-acl.sh (ID): Likewise.
77152         * tests/test-copy-file.sh (ID): Likewise.
77154 2009-08-30  Bruno Haible  <bruno@clisp.org>
77156         New module 'xstriconveh'.
77157         * lib/xstriconveh.h: New file.
77158         * lib/xstriconveh.c: New file.
77159         * modules/xstriconveh: New file.
77161 2009-08-30  Bruno Haible  <bruno@clisp.org>
77163         Make it easier to use mem_cd_iconveh.
77164         * lib/striconveh.h (iconveh_t): New type.
77165         (iconveh_open, iconveh_close): New declarations.
77166         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77167         with a single 'const iconveh_t *' argument.
77168         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77169         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77170         with a single 'const iconveh_t *' argument.
77171         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77172         * tests/test-striconveh.c (main): Update.
77173         * NEWS: Mention the change.
77175 2009-08-30  Bruno Haible  <bruno@clisp.org>
77177         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77178         problem.
77180 2009-08-30  Bruno Haible  <bruno@clisp.org>
77182         Work around iconv_open problem on Solaris.
77183         * lib/iconv_open-solaris.gperf: New file.
77184         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77186         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77187         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77188         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77189         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77191 2009-08-29  Jim Meyering  <meyering@redhat.com>
77193         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77194         * top/maint.mk (cvs-check): Remove target; it was just an alias
77195         to the better-named vc-diff-check.
77196         (maintainer-distcheck): Remove rule.  It was used only from
77197         the (alpha/beta/major) target, and all of its commands but one
77198         were coreutils-specific.
77199         (vc-dist): Remove rule.
77200         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77201         Run vc-diff-check, not vc-dist.
77202         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77204 2009-08-27  Bruno Haible  <bruno@clisp.org>
77206         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77207         of 0.
77209 2009-08-27  Bruno Haible  <bruno@clisp.org>
77211         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77212         compilers.
77213         * doc/func.texi: Document the SunPRO C bug.
77215 2009-08-27  Bruno Haible  <bruno@clisp.org>
77217         Fix link error on Solaris.
77218         * tests/test-parse-duration.c (xstrdup): Remove function.
77220 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77222         ignore-value: handle pointer types, too
77223         * lib/ignore-value.h (__attribute__): Remove definition.
77224         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77225         of a more concise and more-often effective "(void) i" statement.
77226         (ignore_ptr): New function to suppress warnings from functions that
77227         return pointers, and to make it explicit that one function doesn't
77228         handle all cases.
77230 2009-08-25  Bruno Haible  <bruno@clisp.org>
77232         dup2: work around a Linux bug.
77233         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77234         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77235         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77236         Reported by Simon Josefsson.
77238 2009-08-25  Jim Meyering  <meyering@redhat.com>
77240         libguestfs uses gnulib
77241         * users.txt: Add libguestfs.
77243 2009-08-24  Eric Blake  <ebb9@byu.net>
77245         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77246         * lib/pipe2.c (includes): Add binary-io.h.
77247         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77249 2009-08-24  Bruno Haible  <bruno@clisp.org>
77251         Tolerate declared but missing accept4 syscall.
77252         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77253         available.
77254         * lib/sys_socket.in.h (accept4): If the function is already present,
77255         override it.
77256         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77257         * modules/accept4 (Makefile.am): Compile accept4.c always.
77258         Reported by Paolo Bonzini and Eric Blake.
77260 2009-08-23  Bruno Haible  <bruno@clisp.org>
77262         New module 'accept4'.
77263         * lib/sys_socket.in.h (accept4): New declaration.
77264         * lib/accept4.c: New file.
77265         * m4/accept4.m4: New file.
77266         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77267         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77268         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77269         HAVE_ACCEPT4.
77270         * modules/accept4: New file.
77271         * doc/glibc-functions/accept4.texi: Mention the new module.
77273 2009-08-24  Jim Meyering  <meyering@redhat.com>
77275         progname: also set global program_invocation_name, when possible
77276         Before this change, a libtool-enabled program that calls glibc's
77277         error function would report the program name as
77278         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77279         * modules/progname (configure.ac): Check for a declaration of
77280         program_invocation_name.
77281         * lib/progname.c:  Include <errno.h>.
77282         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77283         Set program_invocation_name.
77285 2009-08-23  Bruno Haible  <bruno@clisp.org>
77287         * lib/dup3.c: Include <string.h>.
77289 2009-08-23  Bruno Haible  <bruno@clisp.org>
77291         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77292         * lib/pipe2.c (pipe2): Likewise.
77293         Suggested by Eric Blake.
77295 2009-08-23  Bruno Haible  <bruno@clisp.org>
77297         Tolerate declared but missing dup3 syscall.
77298         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77299         * lib/unistd.in.h (dup3): If the function is already present,
77300         override it.
77301         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77302         * modules/dup3 (Makefile.am): Compile dup3.c always.
77303         Reported by Paolo Bonzini.
77305 2009-08-23  Bruno Haible  <bruno@clisp.org>
77307         Tolerate declared but missing pipe2 syscall.
77308         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77309         available.
77310         * lib/unistd.in.h (pipe2): If the function is already present,
77311         override it.
77312         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77313         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77314         Reported by Paolo Bonzini.
77316 2009-08-23  Bruno Haible  <bruno@clisp.org>
77318         * lib/pipe2.c (pipe2): Move #ifs inside function.
77320 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77322         quotearg: document limitations of quote_these_too
77323         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77324         those limitations are created.
77325         * lib/quotearg.h (set_char_quoting): Document that digits and
77326         letters that are special after backslash are not permitted.
77327         (quotearg_char): Cross-reference set_char_quoting documentation.
77329 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77331         quotearg: implement custom_quoting_style
77332         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77333         right_quote fields.
77334         (set_custom_quoting): New public function.
77335         (quotearg_buffer_restyled): Add left_quote and right_quote
77336         arguments, handle them very much like locale quoting, and update
77337         all uses.
77338         (quotearg_n_custom): New public function.
77339         (quotearg_n_custom_mem): New public function.
77340         (quotearg_custom): New public function.
77341         (quotearg_custom_mem): New public function.
77342         * lib/quotearg.h: Prototype and document new public functions.
77343         (enum quoting_style): For escape_quoting_style and
77344         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77345         ignored even though they're otherwise like c_quoting_style.
77346         Add custom_quoting_style member and document with comparison to
77347         clocale_quoting_style.
77348         * tests/test-quotearg.c (custom_quotes): New array.
77349         (custom_results): New array.
77350         (main): Extend to test custom quoting.
77352 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77354         quotearg: fix right quote escaping when it's in quote_these_too
77355         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77356         quote, be sure to prepend only one backslash.
77357         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77358         (main): Test it.
77360 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77362         quotearg-tests: test escaping of embedded locale quotes
77363         * tests/test-quotearg.c (struct result_strings): Add member for
77364         new input.
77365         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77366         (inputs): Add new input.
77367         (results_g): Add expected results.
77368         (flag_results): Likewise.
77369         (locale_results): Likewise.
77370         (compare_strings): Check those.
77372 2009-08-23  Bruno Haible  <bruno@clisp.org>
77374         Tests for module 'dup3'.
77375         * modules/dup3-tests: New file.
77376         * tests/test-dup3.c: New file.
77378         New module 'dup3'.
77379         * lib/unistd.in.h (dup3): New declaration.
77380         * lib/dup3.c: New file.
77381         * m4/dup3.m4: New file.
77382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77383         HAVE_DUP3.
77384         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77385         * modules/dup3: New file.
77386         * doc/glibc-functions/dup3.texi: Mention the new module.
77388 2009-08-23  Bruno Haible  <bruno@clisp.org>
77390         Tweak the dup2 test.
77391         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77392         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77393         the test file is still empty. Fix argument order of lseek.
77395 2009-08-23  Bruno Haible  <bruno@clisp.org>
77397         Avoid test link errors when the modules getopt-gnu, gettext are used.
77398         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77401 2009-08-23  Bruno Haible  <bruno@clisp.org>
77403         Fix getdtablesize() on mingw.
77404         * lib/getdtablesize.c (getdtablesize): Implement differently.
77405         * lib/unistd.in.h (getdtablesize): Improve comment.
77407 2009-08-23  Bruno Haible  <bruno@clisp.org>
77409         New module 'mkostemp'.
77410         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77411         * lib/stdlib.in.h (mksotemp): New declaration.
77412         * lib/mkostemp.c: New file, from glibc with modifications.
77413         * lib/tempname.h (GT_FILE): Remove outdated comment.
77414         (gen_tempname): Add flags argument.
77415         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77416         (__GT_FILE): Map to 1.
77417         (small_open, large_open): Remove macros.
77418         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77419         * lib/mkstemp.c (mkstemp): Update.
77420         * lib/mkdtemp.c (mkdtemp): Likewise.
77421         * m4/mkostemp.m4: New file.
77422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77423         HAVE_MKOSTEMP.
77424         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77425         HAVE_MKOSTEMP.
77426         * modules/mkostemp: New file, based on modules/mkstemp.
77427         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77428         * NEWS: Mention the change.
77430 2009-08-23  Bruno Haible  <bruno@clisp.org>
77432         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77433         Reported by Eric Blake.
77435 2009-08-23  Bruno Haible  <bruno@clisp.org>
77437         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77438         Reported by Eric Blake.
77440 2009-08-23  Bruno Haible  <bruno@clisp.org>
77442         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77443         * modules/pipe2 (Depends-on): Likewise.
77445 2009-08-23  Eric Blake  <ebb9@byu.net>
77447         fcntl-h: add O_TTY_INIT support
77448         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77449         * tests/test-fcntl-h.c (o): Test it.
77450         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77452         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77453         * modules/fcntl: Move <fcntl.h> header replacement...
77454         * modules/fcntl-h: ...to new name, so as not to collide with
77455         like-named function.
77456         * tests/test-fcntl.c: Rename...
77457         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77458         * modules/fcntl-tests: Rename...
77459         * modules/fcntl-h-tests: ...to this.  Update test file name.
77460         * modules/chdir-long (Depends-on): Update clients.
77461         * modules/chdir-safer (Depends-on): Likewise.
77462         * modules/fcntl-safer (Depends-on): Likewise.
77463         * modules/fts (Depends-on): Likewise.
77464         * modules/mkancesdirs (Depends-on): Likewise.
77465         * modules/mkdir-p (Depends-on): Likewise.
77466         * modules/open (Depends-on): Likewise.
77467         * modules/savewd (Depends-on): Likewise.
77468         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77469         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77471 2009-08-22  Bruno Haible  <bruno@clisp.org>
77473         * modules/binary-io (License): Relicense under LGPL.
77474         * modules/pipe2 (License): Likewise.
77476 2009-08-22  Bruno Haible  <bruno@clisp.org>
77478         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77479         return value.
77480         * lib/pipe-filter-gi.c (filter_init): Likewise.
77481         Reported by Eric Blake.
77483 2009-08-22  Bruno Haible  <bruno@clisp.org>
77485         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77486         * modules/pipe (Depends-on): Add pipe2.
77488 2009-08-22  Bruno Haible  <bruno@clisp.org>
77490         Tests for module 'pipe2'.
77491         * modules/pipe2-tests: New file.
77492         * tests/test-pipe2.c: New file.
77494         New module 'pipe2'.
77495         * lib/unistd.in.h (pipe2): New declaration.
77496         * lib/pipe2.c: New file.
77497         * m4/pipe2.m4: New file.
77498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77499         HAVE_PIPE2.
77500         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77501         * modules/pipe2: New file.
77502         * doc/glibc-functions/pipe2.texi: Mention the new module.
77504 2009-08-22  Bruno Haible  <bruno@clisp.org>
77506         Reference some new glibc functions.
77507         * doc/glibc-functions/accept4.texi: New file.
77508         * doc/glibc-functions/dup3.texi: New file.
77509         * doc/glibc-functions/mkostemp.texi: New file.
77510         * doc/glibc-functions/pipe2.texi: New file.
77511         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77512         (Glibc sys/socket.h): Refer to accept4.
77513         (Glibc unistd.h): Refer to dup3, pipe2.
77514         Reported by Eric Blake.
77516 2009-08-22  Jim Meyering  <meyering@redhat.com>
77517             Bruno Haible  <bruno@clisp.org>
77519         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77520         This makes it so packages using automake-1.11's silent-rules option
77521         can print e.g., a single "GEN    configmake.h" line, rather than
77522         the 30+ statements that perform the job.  If you want to see the
77523         actual commands, you can still run "make V=1".
77524         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77525         so that make output is abbreviated when those variables are defined
77526         appropriately.
77527         * modules/argz: Likewise.
77528         * modules/arpa_inet: Likewise.
77529         * modules/byteswap: Likewise.
77530         * modules/configmake: Likewise.
77531         * modules/dirent: Likewise.
77532         * modules/errno: Likewise.
77533         * modules/fcntl: Likewise.
77534         * modules/float: Likewise.
77535         * modules/fnmatch: Likewise.
77536         * modules/getopt-posix: Likewise.
77537         * modules/glob: Likewise.
77538         * modules/iconv_open: Likewise.
77539         * modules/inttypes: Likewise.
77540         * modules/localcharset: Likewise.
77541         * modules/locale: Likewise.
77542         * modules/math: Likewise.
77543         * modules/netdb: Likewise.
77544         * modules/netinet_in: Likewise.
77545         * modules/poll: Likewise.
77546         * modules/posix_spawnp-tests: Likewise.
77547         * modules/sched: Likewise.
77548         * modules/search: Likewise.
77549         * modules/selinux-h: Likewise.
77550         * modules/signal: Likewise.
77551         * modules/spawn: Likewise.
77552         * modules/stdarg: Likewise.
77553         * modules/stdbool: Likewise.
77554         * modules/stddef: Likewise.
77555         * modules/stdint: Likewise.
77556         * modules/stdio: Likewise.
77557         * modules/stdlib: Likewise.
77558         * modules/string: Likewise.
77559         * modules/strings: Likewise.
77560         * modules/sys_file: Likewise.
77561         * modules/sys_ioctl: Likewise.
77562         * modules/sys_select: Likewise.
77563         * modules/sys_socket: Likewise.
77564         * modules/sys_stat: Likewise.
77565         * modules/sys_time: Likewise.
77566         * modules/sys_times: Likewise.
77567         * modules/sys_utsname: Likewise.
77568         * modules/sys_wait: Likewise.
77569         * modules/sysexits: Likewise.
77570         * modules/time: Likewise.
77571         * modules/unistd: Likewise.
77572         * modules/wchar: Likewise.
77573         * modules/wctype: Likewise.
77575 2009-08-22  Jim Meyering  <meyering@redhat.com>
77577         announce-gen: detect write failure
77578         * build-aux/announce-gen: Add Coda at end.
77579         Remove equivalent-but-more-verbose block at top.
77581 2009-08-19  Akim Demaille  <demaille@gostai.com>
77583         bootstrap: --help to stdout.
77584         * bootstrap (usage): Don't send --help to stderr.
77585         Use a here doc instead of a long string.
77587 2009-08-21  Eric Blake  <ebb9@byu.net>
77589         test-popen-safer: split from test-popen
77590         * tests/test-popen.c (main): Move...
77591         * tests/test-popen.h: ...into new file.
77592         * tests/test-popen-safer2.c: New file.
77593         * modules/popen-tests (Files): Add test-popen.h.
77594         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77595         Suggested by Bruno Haible.
77597         test-fcntl-safer: split from test-open
77598         * tests/test-open.c (main): Move...
77599         * tests/test-open.h: ...into new file.
77600         * tests/test-fcntl-safer.c: New file.
77601         * modules/open-tests (Files): Add test-open.h.
77602         * modules/fcntl-safer-tests: New file.
77603         Suggested by Bruno Haible.
77605         test-fopen-safer: split from test-fopen
77606         * tests/test-fopen.c (main): Move...
77607         * tests/test-fopen.h: ...into new file.
77608         * tests/test-fopen-safer.c: New file.
77609         * modules/fopen-tests (Files): Add test-fopen.h.
77610         * modules/fopen-safer-tests: New file.
77611         Suggested by Bruno Haible.
77613 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77615         popen-safer: test O_CLOEXEC at run-time.
77616         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77618 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77620         fcntl: move more flags to the header
77621         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77622         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77623         * lib/fcntl.in.h: Do both things here.
77625 2009-08-21  Jim Meyering  <meyering@redhat.com>
77627         consistently remove $@-t before redirecting to it
77628         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77629         * modules/alloca-opt: Likewise.
77630         * modules/byteswap: Likewise.
77631         * modules/fnmatch: Likewise.
77632         * modules/getopt-posix: Likewise.
77633         * modules/glob: Likewise.
77634         * modules/poll: Likewise.
77635         * modules/posix_spawnp-tests: Likewise.
77636         * modules/sys_socket: Likewise.
77637         * modules/sysexits: Likewise.
77639 2009-08-21  Eric Blake  <ebb9@byu.net>
77641         popen: simplify access to original popen
77642         * lib/popen.c (rpl_popen): No need to worry about popen being a
77643         macro.
77644         Reported by Bruno Haible.
77646 2009-08-20  Eric Blake  <ebb9@byu.net>
77648         build: avoid some compiler warnings
77649         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77650         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77651         type.
77652         (new_exclude_segment, excluded_file_pattern_p)
77653         (excluded_file_name_p): Reduce scope.
77654         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77655         old-style declaration.
77657 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77659         * tests/test-exclude1.sh: Handle Windows EOL.
77660         * tests/test-exclude2.sh: Likewise.
77661         * tests/test-exclude3.sh: Likewise.
77662         * tests/test-exclude4.sh: Likewise.
77663         * tests/test-exclude5.sh: Likewise.
77664         * tests/test-exclude6.sh: Likewise.
77665         * tests/test-exclude7.sh: Likewise.
77667 2009-08-19  Akim Demaille  <demaille@gostai.com>
77669         bootstrap: find sha1sum when named gsha1sum.
77670         * bootstrap (find_tool): New.
77671         ($SHA1SUM): New.
77672         Use it.
77674 2009-08-20  Jim Meyering  <meyering@redhat.com>
77676         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77677         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77678         expression that converts "." in a file name to "\." in the resulting
77679         regexp.  Start with a dummy statement, so that prior shell variable
77680         definitions are expanded portably.  Reported by Simon Josefsson.
77682 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77684         Fix polling for writeability of a screen buffer.
77685         * lib/poll.c: Distinguish input and screen buffers for the
77686         Win32 implementation.
77687         * lib/select.c: Likewise.
77689 2009-08-19  Eric Blake  <ebb9@byu.net>
77691         popen-safer: prevent popen from clobbering std descriptors
77692         * modules/popen-safer: New file.
77693         * lib/popen-safer.c: Likewise.
77694         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77695         * lib/stdio--.h (popen): Provide override.
77696         * lib/stdio-safer.h (popen_safer): Provide declaration.
77697         * tests/test-popen.c (includes): Partially test this.
77698         * modules/popen-safer-tests: New file, for more tests.
77699         * tests/test-popen-safer.c: Likewise.
77700         * MODULES.html.sh (file stream based Input/Output): Mention it.
77702         tests: test some of the *-safer modules
77703         * modules/fopen-safer (Depends-on): Add fopen.
77704         * modules/fcntl-safer (Depends-on): Add fcntl.
77705         * modules/stdlib-safer (Depends-on): Add stdlib.
77706         (configure.ac): Set indicator.
77707         * modules/unistd-safer (configure.ac): Likewise.
77708         * modules/tmpfile-safer (configure.ac): Likewise.
77709         (Depends-on): Add tmpfile.
77710         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77711         active.
77712         * tests/test-fopen.c (includes): Test safer versions when they are
77713         in use.
77714         * tests/test-open.c (includes): Likewise.
77716         popen: fix cygwin 1.5 bug when stdin closed
77717         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77718         * modules/popen: New file.
77719         * modules/popen-tests: Likewise.
77720         * tests/test-popen.c: Likewise.
77721         * m4/popen.m4: Likewise.
77722         * lib/popen.c: Likewise.
77723         * lib/stdio.in.h (popen): New declaration.
77724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77725         * modules/stdio (Makefile.am): Likewise.
77726         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77728 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77730         maint.mk: give full control over update-copyright exclusions
77731         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77732         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77733         (update-copyright): Don't force inclusion of top-level
77734         ChangeLog.  Don't force exclusion of all COPYING files, but make
77735         them the default exclusion instead.
77737 2009-08-16  Bruno Haible  <bruno@clisp.org>
77739         Fix test failures on Solaris 10.
77740         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77741         tests when Solaris iconv() is used.
77742         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77743         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77744         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77745         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77746         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77748 2009-08-16  Bruno Haible  <bruno@clisp.org>
77750         Fix test failures on Solaris 10.
77751         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77752         'tr' program and pass it as first argument.
77753         * tests/test-pipe-filter-gi1.sh: Likewise.
77754         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77755         program as first argument.
77756         * tests/test-pipe-filter-gi1.c (main): Likewise.
77758 2009-08-16  Eric Blake  <ebb9@byu.net>
77760         fpurge: fix previous commits
77761         * modules/fpurge (Makefile.am): Make replacement conditional,
77762         partially reverting 2007-04-29 change; missed in previous
77763         attempt.
77764         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77765         is missing.
77767 2009-08-16  Bruno Haible  <bruno@clisp.org>
77769         Clarify fpurge's effect on the file position.
77770         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77771         * tests/test-fpurge.c (main): Make a second pass for checking the file
77772         position.
77774 2009-08-16  Bruno Haible  <bruno@clisp.org>
77776         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77777         declaration of fpurge is missing.
77778         * tests/test-fpurge.c (main): Check that the file has not more contents
77779         than expected. Close the file before removing it.
77781 2009-08-15  Eric Blake  <ebb9@byu.net>
77783         fpurge: don't wrap working cygwin implementation
77784         * lib/fpurge.c (fpurge): Fix comment typo.
77785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77786         1.7 to avoid replacement.
77787         * tests/test-fpurge.c (main): Enhance test.
77789 2009-08-15  Eric Blake  <ebb9@byu.net>
77790         and Jim Meyering  <meyering@redhat.com>
77792         test-update-copyright: skip if perl is insufficient
77793         * tests/test-update-copyright.sh: Failure to run maintainer tool
77794         should not cause testsuite failure on cygwin 1.5.
77796 2009-08-14  Eric Blake  <ebb9@byu.net>
77798         doc: mention more functions added in cygwin 1.7.0
77799         * doc/posix-headers/limits.texi (limits.h): Update for recent
77800         cygwin additions.
77801         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77802         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77803         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77804         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77805         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77807 2009-08-14  Eric Blake  <ebb9@byu.net>
77809         maint.mk: simplify update-copyright rule
77810         * top/maint.mk (update-copyright-local): Delete, and document how
77811         to do it in cfg.mk instead.
77812         (update-copyright-exclude-regexp): Delete, and document how to do
77813         it in .x-update-copyright instead.
77814         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77815         exclude ChangeLog.
77817 2009-08-14  Bruno Haible  <bruno@clisp.org>
77819         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77821 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77823         maint.mk: support update-copyright-env
77824         * top/maint.mk (update-copyright-env): Define place-holder.
77825         (update-copyright): Expand $(update-copyright-env) before
77826         invoking update-copyright.
77828 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77830         update-copyright: implement forced reformatting
77831         * build-aux/update-copyright: Implement and document
77832         UPDATE_COPYRIGHT_FORCE.
77833         * tests/test-update-copyright.sh: Test it.
77835 2009-08-14  Eric Blake  <ebb9@byu.net>
77836         and Bruno Haible  <bruno@clisp.org>
77838         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77839         * tests/test-locale.c: Revert previous patch related to NULL.
77840         * tests/test-stdio.c: Likewise.
77841         * tests/test-stdlib.c: Likewise.
77842         * tests/test-string.c: Likewise.
77843         * tests/test-unistd.c: Likewise.
77844         * modules/time-tests (Depends-on): Add verify.
77845         * modules/wchar-tests (Depends-on): Likewise.
77846         * tests/test-time.c: Test for NULL compliance.
77847         * tests/test-wchar.c: Likewise.
77848         * modules/locale (Depends-on): Add stddef.
77849         * modules/stdio (Depends-on): Likewise.
77850         * modules/stdlib (Depends-on): Likewise.
77851         * modules/string (Depends-on): Likewise.
77852         * modules/time (Depends-on): Likewise.
77853         * modules/unistd (Depends-on): Likewise.
77854         * modules/wchar (Depends-on): Likewise.
77855         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77856         * lib/stdlib.in.h (includes): Likewise.
77857         * lib/string.in.h (includes): Likewise.
77858         * lib/time.in.h (includes): Likewise.
77859         * lib/unistd.in.h (includes): Likewise.
77860         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77861         replaced.
77862         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77863         * m4/stddef_h.m4: New file.
77864         * modules/stddef: Likewise.
77865         * lib/stddef.in.h: Likewise.
77866         * modules/stddef-tests: Likewise.
77867         * tests/test-stddef.c: Likewise.
77868         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77869         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77870         * doc/posix-headers/locale.texi (locale.h): Likewise.
77871         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77872         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77873         * doc/posix-headers/string.texi (string.h): Likewise.
77874         * doc/posix-headers/time.texi (time.h): Likewise.
77875         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77876         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77878 2009-08-14  Eric Blake  <ebb9@byu.net>
77880         doc: improve git diff of texinfo files
77881         * .gitattributes: Add rule for *.texi files, with hint on how to
77882         use it.
77883         Copied from m4, and based on a report by Bruno Haible.
77885 2009-08-14  Bruno Haible  <bruno@clisp.org>
77887         Disable multithread support by default on Cygwin 1.5.x for real.
77888         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77890 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77892         update-copyright: much ado about intervals
77893         * build-aux/update-copyright: Implement and document
77894         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77895         of copyright year intervals.
77896         Also, document UPDATE_COPYRIGHT_YEAR.
77897         * tests/test-update-copyright.sh: Test it.
77899         update-copyright: convert 2-digit to 4-digit years
77900         * build-aux/update-copyright: Implement and document.
77901         * tests/test-update-copyright.sh: Update.
77903 2009-08-14  Jim Meyering  <meyering@redhat.com>
77905         test-exclude: avoid coreutils "make check" failure
77906         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77907         just as in test-argmatch.c.
77909 2009-08-13  Eric Blake  <ebb9@byu.net>
77911         test-dup2: fix bad assumption
77912         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77913         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77915         test-version-etc: fix CRLF portability issue
77916         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77917         recognize \r.
77918         * tests/test-argp-version-etc-1.sh: Likewise.
77920         getopt: update client modules
77921         * modules/argp (Depends-on): Use getopt-gnu.
77922         * modules/git-merge-changelog (Depends-on): Likewise.
77923         * modules/long-options (Depends-on): Likewise.
77924         * modules/xstrtol (Depends-on): Likewise.
77926 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77928         * tests/test-version-etc.sh: Don't fail on different
77929         project/version.  Don't fail on CRLF differences.  Rewrite to use
77930         multiple -e instead of multiple sed forks, suggested by Eric Blake
77931         <ebb9@byu.net>.
77932         * tests/test-argp-version-etc-1.sh: Likewise.
77934 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77936         * tests/test-version-etc.sh: Don't fail on different
77937         project/version.
77939 2009-08-12  Bruno Haible  <bruno@clisp.org>
77941         Tests for modules 'getopt-posix', 'getopt-gnu'.
77942         * modules/getopt-posix-tests: New file.
77943         * tests/test-getopt.c: New file.
77944         * tests/test-getopt.h: New file.
77945         * tests/test-getopt_long.h: New file.
77947         New modules 'getopt-posix', 'getopt-gnu'.
77948         * modules/getopt-gnu: New file, renamed from modules/getopt.
77949         * modules/getopt-posix: New file.
77950         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77951         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77952         (gl_GETOPT): Remove macro.
77953         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77954         Disable the test against BSD systems that declare optreset. Test
77955         against mingw bug. Test against lack of support of optional arguments
77956         on many platforms.
77957         * doc/glibc-headers/getopt.texi: Update module name and list of
77958         relevant platforms.
77959         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77960         'getopt-gnu' and more portability problems.
77961         * NEWS: Mention the changes.
77963 2009-08-12  Bruno Haible  <bruno@clisp.org>
77965         Ensure that optarg etc. get declared by <unistd.h>.
77966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77967         AC_USE_SYSTEM_EXTENSIONS.
77968         * modules/getopt (Depends-on): Add 'extensions'.
77970 2009-08-12  Bruno Haible  <bruno@clisp.org>
77972         Avoid test link errors.
77973         * modules/pipe-filter-ii-tests (Makefile.am): Define
77974         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
77975         * modules/pipe-filter-gi-tests (Makefile.am): Define
77976         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
77977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77979 2009-08-12  Bruno Haible  <bruno@clisp.org>
77981         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
77982         gl_GETOPT_SUBSTITUTE before.
77983         (gl_GETOPT): Use it.
77984         * m4/argp.m4 (gl_ARGP): Update.
77985         Reported by Sergey Poznyakoff.
77987         * m4/getopt.m4: Reorder macros.
77988         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
77989         (gl_GETOPT_SUBSTITUTE): Remove macro.
77991 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77993         Minor improvement in gitlog-to-changelog
77995         * build-aux/gitlog-to-changelog: New option `--format' makes
77996         output format string configurable.
77998 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78000         Optimize exclude: use hash tables for non-wildcard patterns.
78002         * lib/exclude.c: Include hash.h and mbuiter.h
78003         (struct exclude_pattern, exclude_segment): New data types.
78004         (struct exclude): Rewrite.
78005         (fnmatch_pattern_has_wildcards): New function.
78006         (new_exclude_segment, free_exclude_segment): New functions.
78007         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78008         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78009         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78010         * modules/exclude: Depend on hash and mbuiter.
78012         * modules/exclude-tests: New file.
78013         * tests/test-exclude.c: New file.
78014         * tests/test-exclude1.sh: New file.
78015         * tests/test-exclude2.sh: New file.
78016         * tests/test-exclude3.sh: New file.
78017         * tests/test-exclude4.sh: New file.
78018         * tests/test-exclude5.sh: New file.
78019         * tests/test-exclude6.sh: New file.
78020         * tests/test-exclude7.sh: New file.
78022 2009-08-12  Bruno Haible  <bruno@clisp.org>
78024         Ensure that getopt() gets declared by <unistd.h>.
78025         * lib/unistd.in.h: Conditionally include getopt.h.
78026         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78027         Set GNULIB_UNISTD_H_GETOPT.
78028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78029         GNULIB_UNISTD_H_GETOPT.
78030         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78032 2009-08-12  Bruno Haible  <bruno@clisp.org>
78034         Clarify logic.
78035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78036         gl_replace_getopt instead of GETOPT_H.
78038 2009-08-12  Bruno Haible  <bruno@clisp.org>
78040         * m4/getopt.m4: Add comments.
78042 2009-08-12  Bruno Haible  <bruno@clisp.org>
78044         Disable multithread support by default on Cygwin 1.5.x.
78045         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78046         set gl_use_threads=no if not specified otherwise.
78048 2009-08-11  Bruno Haible  <bruno@clisp.org>
78050         Avoid compilation error on NetBSD 5.0.
78051         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78052         * tests/test-stdio.c: Likewise.
78053         * tests/test-stdlib.c: Likewise.
78054         * tests/test-string.c: Likewise.
78055         * tests/test-unistd.c: Likewise.
78056         Reported by Greg Troxel <gdt@ir.bbn.com>
78057         at <https://savannah.gnu.org/support/?106973>.
78059 2009-08-11  Bruno Haible  <bruno@clisp.org>
78061         * modules/dup2-tests (Depends-on): Remove close.
78063         Undo 2009-07-19 commit.
78064         * modules/acl-tests (Depends-on): Remove close.
78065         * modules/binary-io-tests (Depends-on): Likewise.
78066         * modules/closein-tests (Depends-on): Likewise.
78067         * modules/flock-tests (Depends-on): Likewise.
78068         * modules/fsync-tests (Depends-on): Likewise.
78069         * modules/lseek-tests (Depends-on): Likewise.
78070         * modules/pipe-tests (Depends-on): Likewise.
78071         * modules/posix_spawn-tests (Depends-on): Likewise.
78072         * modules/posix_spawnp-tests (Depends-on): Likewise.
78073         * modules/stat-time-tests (Depends-on): Likewise.
78074         * modules/yesno-tests (Depends-on): Likewise.
78076 2009-08-10  Bruno Haible  <bruno@clisp.org>
78078         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
78080 2009-08-10  Bruno Haible  <bruno@clisp.org>
78082         Fix a gcc warning.
78083         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
78085 2009-08-10  Bruno Haible  <bruno@clisp.org>
78087         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
78088         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
78089         not only the first time.
78090         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
78091         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
78092         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
78093         is 1, not only the first time.
78095 2009-08-10  Bruno Haible  <bruno@clisp.org>
78097         Make it possible to use module 'gethostname' without module 'close'.
78098         * lib/unistd.in.h (close): Evoke a link error only if
78099         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78101         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78102         * modules/unistd (Makefile.am): Substitute
78103         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78104         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
78105         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
78106         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
78107         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78108         * modules/sys_ioctl (Makefile.am): Substitute
78109         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78110         * modules/socket (configure.ac): On native Windows, set
78111         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78112         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78113         Reported by Sam Steingold <sds@gnu.org>.
78115 2009-08-10  Bruno Haible  <bruno@clisp.org>
78117         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78118         * modules/ioctl (configure.ac): Likewise.
78120 2009-08-10  Bruno Haible  <bruno@clisp.org>
78122         Avoid collision between gnulib wrapper and libintl wrapper.
78123         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78124         already defined in intl/printf.c.
78125         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78126         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78128 2009-08-09  Bruno Haible  <bruno@clisp.org>
78130         Make <sys/select.h> really self-contained, also on Solaris 10.
78131         * lib/sys_select.in.h: Include <string.h>.
78132         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78133         Solaris 10 problem.
78134         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78135         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78136         Reported by Jim Meyering.
78138 2009-08-09  Bruno Haible  <bruno@clisp.org>
78140         Avoid warnings from 'aclocal' that are due to a use of macro name
78141         AM_XGETTEXT_OPTION that is not defined in automake.
78142         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78143         automake.
78144         * modules/error (configure.ac): Likewise.
78145         * modules/propername (configure.ac): Likewise.
78146         * modules/vasprintf (configure.ac): Likewise.
78147         * modules/verror (configure.ac): Likewise.
78148         * modules/xprintf (configure.ac): Likewise.
78149         * modules/xvasprintf (configure.ac): Likewise.
78151 2009-08-08  Bruno Haible  <bruno@clisp.org>
78153         Avoid compilation error in C++ mode.
78154         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78155         Reported by Sam Steingold <sds@gnu.org>.
78157 2009-08-08  Bruno Haible  <bruno@clisp.org>
78159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78160         for the various Unix platforms.
78161         * doc/posix-headers/limits.texi: Update platforms list regarding
78162         HOST_NAME_MAX.
78163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78165 2009-08-07  Jim Meyering  <meyering@redhat.com>
78167         selinux-at: fix typo in a comment
78168         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78169         Spotted by Paolo Bonzini.
78171         selinux-at: remove redundant m4 code, add documentation
78172         * modules/selinux-at (configure.ac): Remove redundant code.
78173         LIB_SELINUX is already set via the dependent module, selinux-h.
78174         (Include): Add quotes around selinux-at.h.
78175         * lib/selinux-at.h: Add documentation.
78176         Reported by Bruno Haible in
78177         http://marc.info/?l=gnulib-bug&m=124958988300749
78179 2009-08-07  Bruno Haible  <bruno@clisp.org>
78181         Avoid link error on MacOS X 10.3 and 10.4.
78182         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78183         on non-ELF systems.
78184         * lib/argp-pv.c (argp_program_version): Likewise.
78185         Reported by Simon Josefsson.
78187 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78189         * tests/test-version-etc.sh: Use $EXEEXT.
78191 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78193         update-copyright: update documentation to point to maint.mk
78194         * build-aux/update-copyright: Here.
78196 2009-08-06  Jim Meyering  <meyering@redhat.com>
78198         maint.mk: support update-copyright-local
78199         * top/maint.mk (update-copyright-local): Define place-holder.
78200         (update-copyright): Depend on $(update-copyright-local).
78202 2009-08-06  Jim Meyering  <meyering@redhat.com>
78204         selinux-at: new module
78205         Initially written for coreutils, this module will soon be
78206         used by findutils, too.
78207         * MODULES.html.sh [Misc]: Add selinux-at.
78208         * lib/selinux-at.h: New file, from coreutils.
78209         * lib/selinux-at.c: Likewise.
78210         * modules/selinux-at: Likewise.
78211         (License): Change from LGPL to GPL, since it depends
78212         on the GPL'd openat module.
78214         doc: update README
78215         * README: Remove references to cogito.
78216         Remove cvs-repo-updating instructions from 2007.
78217         Don't imply that CVS is better if you have limited disk space.
78219 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78221         update-copyright: support C-style comments
78222         * build-aux/update-copyright: Implement and document.
78223         * tests/test-update-copyright.sh: Test.
78225 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78227         update-copyright: support omitted "(C)"
78228         * build-aux/update-copyright: Implement and document.  Also,
78229         allow variable whitespace before "(C)".
78230         * tests/test-update-copyright.sh: Test.
78232 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78234         update-copyright: don't trip on non-FSF copyright statements
78235         * build-aux/update-copyright: Fix so that the first correctly
78236         formatted FSF copyright statement is recognized no matter what
78237         appears before it.  Update documentation.
78238         * tests/test-update-copyright.sh: Test that.
78240 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78242         update-copyright: clean up code a little
78243         * build-aux/update-copyright: Append "_re" to the name of any
78244         variable holding a regular expression.
78245         Replace "old" and "new" with "stmt" in variable names.
78246         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78247         handled correctly.
78248         Format code more consistently.
78250 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78252         update-copyright-tests: improve portability
78253         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78254         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78256 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78258         update-copyright: support @copyright{} and &copy;
78259         * build-aux/update-copyright: Implement and document.
78260         * tests/test-update-copyright.sh: Test.
78262 2009-08-04  Jim Meyering  <meyering@redhat.com>
78264         update-copyright-tests: correctly test EOL=\r\n handling
78265         * tests/test-update-copyright.sh: Put \r at the end of some lines
78266         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78268         maint.mk: make update-copyright exclusion list more configurable
78269         * top/maint.mk (update-copyright): Default to excluding COPYING,
78270         but allow an override, in case someone does want to update that file.
78272         maint.mk: don't update copyright date in COPYING
78273         * top/maint.mk (update-copyright): Exclude COPYING.
78275         maint.mk: add a copyright-updating rule
78276         * top/maint.mk (update-copyright): New rule.
78277         Derived from coreutils/Makefile.am.
78279         update-copyright: rename some variables
78280         * build-aux/update-copyright: Rename a few variables for clarity.
78281         Tweak syntax.  List Joel E. Denny as coauthor.
78283 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78285         update-copyright: fix bug for 2-digit last year and add tests
78286         * build-aux/update-copyright: Fix bug.
78287         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78288         specified.
78289         * modules/update-copyright-tests: New
78290         * tests/test-update-copyright.sh: New.
78292 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78294         update-copyright: handle leading tabs in line prefix
78295         * build-aux/update-copyright: Count leading tabs as 8 spaces
78296         when computing margin.  This helps with the formatting of
78297         ChangeLogs, for example.
78298         Fix documentation a little.
78300 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78302         update-copyright: support EOL=\r\n
78303         * build-aux/update-copyright: Implement that.
78305 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78307         update-copyright: automatically format copyright statements
78308         * build-aux/update-copyright: Implement that.
78309         Also, be a little more predictable and safer by always failing
78310         when the full copyright format is not perfectly recognized as an
78311         unbroken whole.  Discussed at
78312         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78313         Rewrite documentation.
78315 2009-08-03  Bruno Haible  <bruno@clisp.org>
78317         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78319 2009-08-02  Bruno Haible  <bruno@clisp.org>
78321         Tests for module 'uname'.
78322         * modules/uname-tests: New file.
78323         * tests/test-uname.c: New file.
78325         New module 'uname'.
78326         * lib/uname.c: New file.
78327         * m4/uname.m4: New file.
78328         * modules/uname: New file.
78329         * doc/posix-functions/uname.texi: Mention the new module.
78331 2009-08-02  Bruno Haible  <bruno@clisp.org>
78333         Tests for module 'sys_utsname'.
78334         * modules/sys_utsname-tests: New file.
78335         * tests/test-sys_utsname.c: New file.
78337         New module 'sys_utsname'.
78338         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78339         * m4/sys_utsname_h.m4: New file.
78340         * modules/sys_utsname: New file.
78341         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78343 2009-08-02  Bruno Haible  <bruno@clisp.org>
78345         Implicitly initialize the sockets library.
78346         * lib/gethostname.c: Include sockets.h.
78347         (rpl_gethostname): Invoke gl_sockets_startup.
78348         * lib/socket.c: Include sockets.h.
78349         (rpl_socket): Invoke gl_sockets_startup.
78350         * modules/gethostname (Depends-on): Add sockets.
78351         * modules/socket (Depends-on): Likewise.
78352         * tests/test-poll.c: Don't include sockets.h.
78353         (main): Don't invoke gl_sockets_startup.
78354         * tests/test-select.c: Don't include sockets.h.
78355         (main): Don't invoke gl_sockets_startup.
78357 2009-08-02  Bruno Haible  <bruno@clisp.org>
78359         Allow multiple calls to gl_sockets_startup.
78360         * lib/sockets.c (initialized_sockets_version): New variable.
78361         (gl_sockets_startup): Do nothing if already called for this or a higher
78362         version.
78363         (gl_sockets_cleanup): Reset initialized_sockets_version.
78365 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78367         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78368         different project/version.
78370 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78371             Bruno Haible  <bruno@clisp.org>
78373         Tests for module 'pipe-filter-gi'.
78374         * modules/pipe-filter-gi-tests: New file.
78375         * tests/test-pipe-filter-gi1.sh: New file.
78376         * tests/test-pipe-filter-gi1.c: New file.
78377         * tests/test-pipe-filter-gi2.sh: New file.
78378         * tests/test-pipe-filter-gi2-main.c: New file.
78379         * tests/test-pipe-filter-gi2-child.c: New file.
78381         New module 'pipe-filter-gi'.
78382         * lib/pipe-filter-gi.c: New file.
78383         * modules/pipe-filter-gi: New file.
78385 2009-08-02  Bruno Haible  <bruno@clisp.org>
78386             Paolo Bonzini  <bonzini@gnu.org>
78388         Tests for module 'pipe-filter-ii'.
78389         * modules/pipe-filter-ii-tests: New file.
78390         * tests/test-pipe-filter-ii1.sh: New file.
78391         * tests/test-pipe-filter-ii1.c: New file.
78392         * tests/test-pipe-filter-ii2.sh: New file.
78393         * tests/test-pipe-filter-ii2-main.c: New file.
78394         * tests/test-pipe-filter-ii2-child.c: New file.
78396         New module 'pipe-filter-ii'.
78397         * lib/pipe-filter.h: New file.
78398         * lib/pipe-filter-ii.c: New file.
78399         * lib/pipe-filter-aux.h: New file.
78400         * modules/pipe-filter-ii: New file.
78402 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78404         * lib/gc-libgcrypt.c: Change copyright to FSF.
78405         * lib/gc-gnulib.c: Likewise.
78407 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78409         * lib/gethostname.c: Include limits.h.
78411 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78412             Bruno Haible  <bruno@clisp.org>
78414         Ensure HOST_NAME_MAX as part of the gethostname module.
78415         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78416         define also HOST_NAME_MAX.
78417         * tests/test-gethostname.c: Include <limits.h>.
78418         (main): Check also HOST_NAME_MAX.
78419         * doc/posix-headers/limits.texi: Document the mingw problem.
78421 2009-08-02  Bruno Haible  <bruno@clisp.org>
78423         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78424         Add comments.
78426 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78428         * lib/gethostname.c: Add Windows wrapper.
78429         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78430         * modules/gethostname: Depend on sys_socket & errno, for also
78431         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78432         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78434 2009-07-31  Jim Meyering  <meyering@redhat.com>
78436         getloadavg: fix symbol name in comment
78437         * lib/getloadavg.c: Correct a typo I introduced when adding
78438         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78439         Matt Kraai spotted the problem.
78441 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78443         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78444         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78445         code also if ! defined N_NAME_POINTER.
78446         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78447         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78448         but the n_name member is a 12-byte array.
78450 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78452         update-copyright: generalize comment handling
78453         * build-aux/update-copyright: Handle copyright statements
78454         within more comment styles.
78455         Document usage.
78456         Report any file with an external copyright holder or parse failure.
78458 2009-07-29  Jim Meyering  <meyering@redhat.com>
78460         mktime: correct setting of REPLACE_MKTIME
78461         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78463         update-copyright: new module
78464         * modules/update-copyright: New file.
78465         * build-aux/update-copyright: New file.
78466         * MODULES.html.sh (maint+release support): Add update-copyright.
78468 2009-07-27  Bruno Haible  <bruno@clisp.org>
78470         Fix compilation error when <ctime> is used and mktime is replaced.
78471         * lib/time.in.h (mktime): New declaration.
78472         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78473         REPLACE_MKTIME instead of defining mktime in config.h.
78474         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78475         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78476         Reported by Ross McFarland <rwmcfa1@neces.com>.
78478 2009-07-27  Bruno Haible  <bruno@clisp.org>
78480         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78481         Reported by Matt Kraai <mkraai@beckman.com>.
78483 2009-07-25  Jim Meyering  <meyering@redhat.com>
78485         maint.mk: avoid warnings about missing files
78486         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78487         diagnostic when .prev-version does not exist.
78488         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78489         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78490         nonexistent cfg.mk.
78491         Suggestions from Simon Josefsson.
78493 2009-07-25  Bruno Haible  <bruno@clisp.org>
78495         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78496         defined as macros. Needed on QNX 6.4.1.
78497         Reported by Matt Kraai <mkraai@beckman.com>.
78499 2009-07-23  Jim Meyering  <meyering@redhat.com>
78501         maint.mk: invoke "make dist" with a working value of XZ_OPT
78502         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78504 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78506         Make fseeko.c compile on QNX.
78507         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78509 2009-07-22  Peter Simons  <simons@cryp.to>
78511         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78512         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78513         * lib/md4.h: Likewise.
78514         * lib/md5.h: Likewise.
78515         * lib/sha1.h: Likewise.
78516         * lib/sha256.h: Likewise.
78517         * lib/sha512.h: Likewise.
78519         tests-sha1: don't assign literal string to 'char *' variable
78520         * tests/test-sha1.c (main): Declare locals with "const" to match
78521         attributes of the right hand side.
78523 2009-07-21  Eric Blake  <ebb9@byu.net>
78525         dup2: fix more mingw problems
78526         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78527         fd to itself.
78528         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78529         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78530         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78531         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78532         care of mingw bugs.
78534 2009-07-21  Jim Meyering  <meyering@redhat.com>
78536         vc-list-files: avoid failure when /bin/sh is dash
78537         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78538         On some Debian based systems, /bin/sh is a symlink to dash, and running
78539         this command would omit the "/" following each 'tests' prefix:
78540           dash -x build-aux/vc-list-files -C . tests
78541         That is because bash and dash work differently:
78542           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78543           bash ok
78544           dash odd
78546 2009-07-21  Eric Blake  <ebb9@byu.net>
78548         dup2-tests: test previous patch
78549         * modules/dup2-tests: New file.
78550         * tests/test-dup2.c: Likewise.
78551         * tests/test-open.c (main): Avoid unspecified behavior.
78552         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78553         test.
78555         dup2: work around mingw and cygwin 1.5 bug
78556         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78558         * modules/unistd (Makefile.am): Substitute it.
78559         * lib/unistd.in.h (dup2): Declare the replacement.
78560         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78561         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78562         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78563         * modules/execute (Depends-on): Add dup2.
78564         * modules/fseterr (Depends-on): Likewise.
78565         * modules/pipe (Depends-on): Likewise.
78566         * modules/posix_spawn-internal (Depends-on): Likewise.
78568 2009-07-21  Bruno Haible  <bruno@clisp.org>
78570         * modules/.gitattributes: New file.
78572 2009-07-20  Bruno Haible  <bruno@clisp.org>
78574         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78575         (main): Use it.
78577 2009-07-20  Eric Blake  <ebb9@byu.net>
78579         test-pipe: make a bit more robust.
78580         * tests/test-pipe.c (myerr): Allow error messages regardless of
78581         what we do to stderr.
78582         (test_pipe): Rearrange to avoid deadlock.
78583         (child_main): Try a larger read, to ensure we avoided deadlock.
78584         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78585         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78586         if misused.
78588 2009-07-19  Jim Meyering  <meyering@redhat.com>
78590         fts: avoid false-positive cycle-detection
78591         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78592         for each new command line argument.
78594 2009-07-19  Bruno Haible  <bruno@clisp.org>
78596         Fix build error on mingw with the modules sys_select and unistd.
78597         * modules/acl-tests (Depends-on): Add close.
78598         * modules/binary-io-tests (Depends-on): Likewise.
78599         * modules/closein-tests (Depends-on): Likewise.
78600         * modules/flock-tests (Depends-on): Likewise.
78601         * modules/fsync-tests (Depends-on): Likewise.
78602         * modules/lseek-tests (Depends-on): Likewise.
78603         * modules/pipe-tests (Depends-on): Likewise.
78604         * modules/posix_spawn-tests (Depends-on): Likewise.
78605         * modules/posix_spawnp-tests (Depends-on): Likewise.
78606         * modules/stat-time-tests (Depends-on): Likewise.
78607         * modules/yesno-tests (Depends-on): Likewise.
78609 2009-07-19  Bruno Haible  <bruno@clisp.org>
78611         Unify conditionals.
78612         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78613         macros, not at the compiler macros.
78614         * lib/pipe.c: Likewise.
78615         * lib/execute.c: Likewise.
78616         * lib/spawni.c: Likewise.
78618 2009-07-19  Bruno Haible  <bruno@clisp.org>
78620         Fix handling of closed stdin/stdout/stderr on mingw.
78621         * lib/w32spawn.h: Include unistd.h.
78622         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78623         file descriptor with O_NOINHERIT flag.
78624         (fd_safer_noinherit): New function, based on fd-safer.c.
78625         (dup_safer_noinherit): New function, based on dup-safer.c.
78626         (undup_safer_noinherit): New function.
78627         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78628         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78629         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78630         instead of fd_safer.
78631         * tests/test-pipe.c: Include <windows.h>.
78632         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78633         result.
78635         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78636         from main.
78637         (test_pipe): Pass an extra argument for disambiguation.
78638         (main): Invoke parent_main or child_main.
78640         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78641         consistently.
78643 2009-07-18  Eric Blake  <ebb9@byu.net>
78645         test-pipe: fix mingw build
78646         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78648 2009-07-18  Bruno Haible  <bruno@clisp.org>
78650         * modules/pipe-tests (Makefile.am): Fix typo.
78652 2009-07-18  Eric Blake  <ebb9@byu.net>
78654         error: fix mingw build
78655         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78656         Reported by Bruno Haible.
78658         error: avoid undefined use of stdout
78659         * lib/error.c (error, error_at_line): Check that fd 1 is open
78660         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78661         is handling faults and the close_stdout module wants to report the
78662         detection of closed stdout as an error.
78664 2009-07-17  Eric Blake  <ebb9@byu.net>
78666         pipe: be robust in face of closed fds
78667         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78668         should cause child to misbehave.
78669         * modules/pipe-tests: New module.
78670         * tests/test-pipe.c: New file.
78671         * tests/test-pipe.sh: New file.
78672         Reported by Akim Demaille.
78674 2009-07-14  Bruno Haible  <bruno@clisp.org>
78676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78677         Reported by anonymous kc.
78679 2009-07-07  Jim Meyering  <meyering@redhat.com>
78681         maint.mk: don't look for translatable strings in *.m4 or *.mk
78682         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78683         when searching for translatable strings.
78685 2009-07-05  Jim Meyering  <meyering@redhat.com>
78687         remove superfluous parentheses in STREQ definition
78688         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78689         * lib/getugroups.c (STREQ): Likewise.
78690         * lib/fnmatch.c (STREQ): Likewise.
78691         Spotted by Bruno Haible.
78693 2009-07-04  Jim Meyering  <meyering@redhat.com>
78695         argv-iter: new module
78696         * MODULES.html.sh: Add argv-iter.
78697         * lib/argv-iter.c, lib/argv-iter.h: New files.
78698         * modules/argv-iter: New file.
78699         * modules/argv-iter-tests: New file.
78700         * tests/test-argv-iter.c: Test it.
78702 2009-07-04  Bruno Haible  <bruno@clisp.org>
78704         Fix assertion.
78705         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78706         contains more exact copies of a given entry than file2, leave the extra
78707         copies unpaired rather than aborting.
78708         Reported by Eric Blake.
78710 2009-07-02  Bruno Haible  <bruno@clisp.org>
78712         Speedup git-merge-changelog for git cherry-pick.
78713         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78714         (entries_mapping_get): New function, extracted from compute_mapping.
78715         (entries_mapping_reverse_get): New function.
78716         (compute_mapping): Add a 'full' argument. Return the result in a
78717         'struct entries_mapping'.
78718         (main): Update. Access the mappings through entries_mapping_get.
78719         Reported by Eric Blake.
78721 2009-07-02  Bruno Haible  <bruno@clisp.org>
78723         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78724         best_i.
78726 2009-07-02  Bruno Haible  <bruno@clisp.org>
78728         Speed up approximate search for matching ChangeLog entries.
78729         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78730         argument. Call fstrcmp_bounded instead of fstrcmp.
78731         (compute_mapping, try_split_merged_entry, main): Update callers.
78733 2009-07-02  Bruno Haible  <bruno@clisp.org>
78735         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78737 2009-06-30  Bruno Haible  <bruno@clisp.org>
78739         Reduce the number of uc_is_cased calls.
78740         * lib/unicase.h (casing_suffix_context_t): Add
78741         'first_char_except_ignorable' field.
78742         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78743         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78744         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78745         Update initializer.
78746         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78747         case-ignorable characters.
78748         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78749         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78750         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78751         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78752         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78754 2009-06-30  Bruno Haible  <bruno@clisp.org>
78756         Tests for module 'unicase/ignorable'.
78757         * modules/unicase/ignorable-tests: New file.
78758         * tests/unicase/test-ignorable.c: New file, generated by
78759         gen-uni-tables.
78761         Tests for module 'unicase/cased'.
78762         * modules/unicase/cased-tests: New file.
78763         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78764         * tests/unicase/test-predicate-part1.h: New file, derived from
78765         tests/unictype/test-predicate-part1.h.
78766         * tests/unicase/test-predicate-part2.h: New file, same as
78767         tests/unictype/test-predicate-part2.h.
78769         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78770         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78771         (output_casing_properties): New function.
78772         (main): Call it.
78773         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78774         * lib/unicase/cased.c: Include unictype/bitmap.h.
78775         (uc_is_cased): Define through a bitmap lookup.
78776         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78777         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78778         (uc_is_case_ignorable): Define through a bitmap lookup.
78779         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78780         lib/unictype/bitmap.h.
78781         (Depends-on): Add inline. Clean up.
78782         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78783         lib/unictype/bitmap.h.
78784         (Depends-on): Add inline. Clean up.
78785         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78786         recognition.
78787         * tests/unicase/test-u16-tolower.c (main): Likewise.
78788         * tests/unicase/test-u32-tolower.c (main): Likewise.
78790 2009-06-30  Bruno Haible  <bruno@clisp.org>
78792         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78793         * lib/unicase/u16-casemap.c: Likewise.
78794         * lib/unicase/u32-casemap.c: Likewise.
78796 2009-06-29  Bruno Haible  <bruno@clisp.org>
78798         Define u32_casefold as a wrapper around u32_ct_casefold.
78799         * lib/unicase/u32-casefold.c: Update.
78800         * modules/unicase/u32-casefold (Depends-on): Add
78801         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78802         unicase/empty-suffix-context. Clean up.
78804         Define u16_casefold as a wrapper around u16_ct_casefold.
78805         * lib/unicase/u16-casefold.c: Update.
78806         * modules/unicase/u16-casefold (Depends-on): Add
78807         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78808         unicase/empty-suffix-context. Clean up.
78810         Define u8_casefold as a wrapper around u8_ct_casefold.
78811         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78812         * lib/unicase/u8-casefold.c: Update.
78813         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78814         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78816         Define u32_totitle as a wrapper around u32_ct_totitle.
78817         * lib/unicase/u32-totitle.c: Update.
78818         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78819         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78821         Define u16_totitle as a wrapper around u16_ct_totitle.
78822         * lib/unicase/u16-totitle.c: Update.
78823         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78824         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78826         Define u8_totitle as a wrapper around u8_ct_totitle.
78827         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78828         functions.
78829         (FUNC): Delegate to U_CT_TOTITLE.
78830         * lib/unicase/u8-totitle.c: Update.
78831         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78832         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78834         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78835         invocation.
78836         * modules/unicase/u32-tolower (Depends-on): Add
78837         unicase/empty-prefix-context, unicase/empty-suffix-context.
78839         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78840         invocation.
78841         * modules/unicase/u16-tolower (Depends-on): Add
78842         unicase/empty-prefix-context, unicase/empty-suffix-context.
78844         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78845         * modules/unicase/u8-tolower (Depends-on): Add
78846         unicase/empty-prefix-context, unicase/empty-suffix-context.
78848         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78849         invocation.
78850         * modules/unicase/u32-toupper (Depends-on): Add
78851         unicase/empty-prefix-context, unicase/empty-suffix-context.
78853         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78854         invocation.
78855         * modules/unicase/u16-toupper (Depends-on): Add
78856         unicase/empty-prefix-context, unicase/empty-suffix-context.
78858         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78859         * modules/unicase/u8-toupper (Depends-on): Add
78860         unicase/empty-prefix-context, unicase/empty-suffix-context.
78862         New module 'unicase/u32-ct-casefold'.
78863         * lib/unicase/u32-ct-casefold.c: New file.
78864         * modules/unicase/u32-ct-casefold: New file.
78866         New module 'unicase/u16-ct-casefold'.
78867         * lib/unicase/u16-ct-casefold.c: New file.
78868         * modules/unicase/u16-ct-casefold: New file.
78870         New module 'unicase/u8-ct-casefold'.
78871         * lib/unicase/u8-ct-casefold.c: New file.
78872         * lib/unicase/u-ct-casefold.h: New file, derived from
78873         lib/unicase/u-casefold.h.
78874         * modules/unicase/u8-ct-casefold: New file.
78876         New module 'unicase/u32-ct-totitle'.
78877         * lib/unicase/u32-ct-totitle.c: New file.
78878         * modules/unicase/u32-ct-totitle: New file.
78880         New module 'unicase/u16-ct-totitle'.
78881         * lib/unicase/u16-ct-totitle.c: New file.
78882         * modules/unicase/u16-ct-totitle: New file.
78884         New module 'unicase/u8-ct-totitle'.
78885         * lib/unicase/u8-ct-totitle.c: New file.
78886         * lib/unicase/u-ct-totitle.h: New file, derived from
78887         lib/unicase/u-totitle.h.
78888         * modules/unicase/u8-ct-totitle: New file.
78890         New module 'unicase/u32-ct-tolower'.
78891         * lib/unicase/u32-ct-tolower.c: New file.
78892         * modules/unicase/u32-ct-tolower: New file.
78894         New module 'unicase/u16-ct-tolower'.
78895         * lib/unicase/u16-ct-tolower.c: New file.
78896         * modules/unicase/u16-ct-tolower: New file.
78898         New module 'unicase/u8-ct-tolower'.
78899         * lib/unicase/u8-ct-tolower.c: New file.
78900         * modules/unicase/u8-ct-tolower: New file.
78902         New module 'unicase/u32-ct-toupper'.
78903         * lib/unicase/u32-ct-toupper.c: New file.
78904         * modules/unicase/u32-ct-toupper: New file.
78906         New module 'unicase/u16-ct-toupper'.
78907         * lib/unicase/u16-ct-toupper.c: New file.
78908         * modules/unicase/u16-ct-toupper: New file.
78910         New module 'unicase/u8-ct-toupper'.
78911         * lib/unicase/u8-ct-toupper.c: New file.
78912         * modules/unicase/u8-ct-toupper: New file.
78914         Add context arguments to u*_casemap functions.
78915         * lib/unicase/unicasemap.h: Include unicase.h.
78916         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78917         suffix_context arguments.
78918         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78919         functions.
78920         (FUNC): Add prefix_context and suffix_context arguments. Use
78921         uc_is_cased and uc_is_case_ignorable.
78922         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78923         * lib/unicase/u16-casemap.c: Likewise.
78924         * lib/unicase/u32-casemap.c: Likewise.
78925         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78926         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78927         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78928         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78929         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78930         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78932         New module 'unicase/u32-suffix-context'.
78933         * lib/unicase/u32-suffix-context.c: New file.
78934         * modules/unicase/u32-suffix-context: New file.
78936         New module 'unicase/u16-suffix-context'.
78937         * lib/unicase/u16-suffix-context.c: New file.
78938         * modules/unicase/u16-suffix-context: New file.
78940         New module 'unicase/u8-suffix-context'.
78941         * lib/unicase/u8-suffix-context.c: New file.
78942         * lib/unicase/u-suffix-context.h: New file.
78943         * modules/unicase/u8-suffix-context: New file.
78945         New module 'unicase/empty-suffix-context'.
78946         * lib/unicase/empty-suffix-context.c: New file.
78947         * modules/unicase/empty-suffix-context: New file.
78949         New module 'unicase/u32-prefix-context'.
78950         * lib/unicase/u32-prefix-context.c: New file.
78951         * modules/unicase/u32-prefix-context: New file.
78953         New module 'unicase/u16-prefix-context'.
78954         * lib/unicase/u16-prefix-context.c: New file.
78955         * modules/unicase/u16-prefix-context: New file.
78957         New module 'unicase/u8-prefix-context'.
78958         * lib/unicase/u8-prefix-context.c: New file.
78959         * lib/unicase/u-prefix-context.h: New file.
78960         * lib/unicase/context.h: New file.
78961         * modules/unicase/u8-prefix-context: New file.
78963         New module 'unicase/empty-prefix-context'.
78964         * lib/unicase/empty-prefix-context.c: New file.
78965         * modules/unicase/empty-prefix-context: New file.
78967         New module 'unicase/ignorable'.
78968         * lib/unicase/ignorable.c: New file.
78969         * modules/unicase/ignorable: New file.
78971         New module 'unicase/cased'.
78972         * lib/unicase/caseprop.h: New file.
78973         * lib/unicase/cased.c: New file.
78974         * modules/unicase/cased: New file.
78976         New functions for case mapping of substrings.
78977         * lib/unicase.h (casing_prefix_context_t): New type.
78978         (unicase_empty_prefix_context): New variable.
78979         (u8_casing_prefix_context, u16_casing_prefix_context,
78980         u32_casing_prefix_context, u8_casing_prefixes_context,
78981         u16_casing_prefixes_context, u32_casing_prefixes_context): New
78982         declarations.
78983         (casing_suffix_context_t): New type.
78984         (unicase_empty_suffix_context): New variable.
78985         (u8_casing_suffix_context, u16_casing_suffix_context,
78986         u32_casing_suffix_context, u8_casing_suffixes_context,
78987         u16_casing_suffixes_context, u32_casing_suffixes_context,
78988         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
78989         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
78990         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
78991         declarations.
78993 2009-06-28  Jim Meyering  <meyering@redhat.com>
78995         boostrap: indent only with spaces
78996         * build-aux/bootstrap: Indent only with spaces, never TABs.
78998         bootstrap: split long lines
78999         * build-aux/bootstrap: Keep line length < 80.
79001         bootstrap: sync from coreutils
79002         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79003         just as autoreconf does.  Verify a list of prerequisite
79004         package-name,version-number pairs if defined in bootstrap.conf.
79005         Refer to README-prereq, if prerequisites are not satisfied.
79007 2009-06-27  Eric Blake  <ebb9@byu.net>
79009         tests: add test for bogus NULL definition
79010         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79011         * tests/test-stdlib.c: Likewise.
79012         * tests/test-string.c: Likewise.
79013         * tests/test-locale.c: Likewise.
79014         * tests/test-unistd.c: Likewise.
79015         * modules/stdio-tests (Depends-on): Add verify.
79016         * modules/stdlib-tests (Depends-on): Likewise.
79017         * modules/string-tests (Depends-on): Likewise.
79018         * modules/locale-tests (Depends-on): Likewise.
79019         * modules/unistd-tests (Depends-on): Likewise.
79021 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79023         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79024         self-explaining comment.
79025         * m4/selinux-selinux-h: Update serial.
79026         (gl_LIBSELINUX): New macro, adding a warning for missing development
79027         packages to code extracted from...
79028         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79029         Add warning for missing development packages here, too.
79031 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79033         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79035 2009-06-25  Eric Blake  <ebb9@byu.net>
79037         version-etc: fix regression
79038         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79039         gcc.
79040         (version_etc): Use it, to catch bugs with trailing NULL.
79041         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79042         (version_etc_va): Fix logic bug.
79043         * modules/version-etc-tests: Add test.
79044         * tests/test-version-etc.c: New file.
79045         * tests/test-version-etc.sh: Likewise.
79047 2009-06-25  Sam Steingold  <sds@gnu.org>
79049         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79050         mbtowc declaration.
79052 2009-06-25  Eric Blake  <ebb9@byu.net>
79054         fpurge: migrate into <stdio.h>
79055         * lib/fpurge.h: Delete...
79056         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79057         * lib/fpurge.c (fpurge): Change declaring header.
79058         * modules/fpurge (Files): Drop deleted file.
79059         (Depends-on): Add stdio.
79060         (configure.ac): Set witness.
79061         * modules/stdio (Makefile.am): Support fpurge macros.
79062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79063         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79064         * lib/fflush.c: Update client.
79065         * tests/test-fpurge.c: Likewise.
79066         * NEWS: Mention the change.
79068 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79070         * lib/argp-version-etc.c (program_authors): Add const
79071         qualifier.
79072         * lib/version-etc.c: Fix typos in the comments.
79073         * modules/argp-version-etc: Depends on version-etc.
79075 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79077         argp-version-etc: new module.
79079         * lib/argp-version-etc.c: New file.
79080         * lib/argp-version-etc.h: New file.
79081         * modules/argp-version-etc: New file.
79082         * modules/argp-version-etc-tests: New file.
79083         * tests/test-argp-version-etc.c: New test.
79084         * tests/test-argp-version-etc-1.sh: New test.
79086 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79088         Provide additional interfaces and documentation for version-etc
79089         module.
79091         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
79092         interfaces.
79093         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
79094         prototypes.
79096 2009-06-24  Bruno Haible  <bruno@clisp.org>
79098         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
79099         HAVE_LIB${NAME} macro.
79100         Reported by Sam Steingold <sds@gnu.org>.
79102 2009-06-23  Simon Josefsson  <simon@josefsson.org>
79104         * modules/hash-tests (test_hash_LDADD): Link to libintl when
79105         needed.
79107 2009-06-21  Bruno Haible  <bruno@clisp.org>
79109         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79110         work.
79111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79112         together with LIB${NAME}, LTLIB${NAME}.
79113         Reported by Sam Steingold <sds@gnu.org>.
79115 2009-06-20  Jim Meyering  <meyering@redhat.com>
79117         tests: make sc_require_test_exit_idiom more generic
79118         * top/maint.mk (Exit_witness_file): New overridable variable.
79119         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79120         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79122 2009-06-19  Jim Meyering  <meyering@redhat.com>
79124         hash: reverse order of src/dst parameters in an internal interface
79125         * lib/hash.c (transfer_entries): Reverse order of parameters to
79126         put DST before SRC.  Adjust callers.
79128         tests: test-hash: avoid wholesale duplication
79129         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79130         Instead, use a loop and add a single conditional.
79132         tests: test-hash: allow seed selection via a command line argument
79133         * tests/test-hash.c (get_seed): New function.
79134         (main): Use it.
79136 2009-06-19  Eric Blake  <ebb9@byu.net>
79138         hash: avoid memory leak on allocation failure
79139         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79140         failure.  Factor repeated algorithm...
79141         (transfer_entries): ...into new helper routine.
79142         (hash_delete): React to hash_rehash return value.
79144         hash: reduce memory pressure in hash_rehash no-op case
79145         * lib/hash.c (next_prime): Avoid overflow.
79146         (hash_initialize): Factor bucket size computation...
79147         (compute_bucket_size): ...into new helper function.
79148         (hash_rehash): Use new function and open coding to reduce memory
79149         pressure, and avoid a memory leak in USE_OBSTACK code.
79150         Reported by Jim Meyering.
79152 2009-06-18  Eric Blake  <ebb9@byu.net>
79154         hash: make rotation more obvious
79155         * modules/hash (Depends-on): Add bitrotate and stdint.
79156         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79157         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79158         (SIZE_MAX): Rely on headers for definition.
79159         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79160         (raw_hasher): Use rotr_sz.
79161         Suggested by Jim Meyering.
79163         hash: fix memory leak in last patch
79164         * lib/hash.c (hash_rehash): Avoid memory leak.
79166         hash: avoid no-op rehashing
79167         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79169         hash: provide default callback functions
79170         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79171         (hash_initialize): Use them as defaults.
79172         * tests/test-hash.c (main): Test this.
79174         hash: minor optimization
79175         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79176         when possible.
79177         (hash_initialize): Document this promise.
79178         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79179         * tests/test-hash.c (hash_compare_strings): Test this.
79181 2009-06-18  Bruno Haible  <bruno@clisp.org>
79183         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79184         going to be replaced anyway.
79186 2009-06-18  Bruno Haible  <bruno@clisp.org>
79188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79189         in one place.
79190         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79191         be replaced anyway.
79193 2009-06-18  Eric Blake  <ebb9@byu.net>
79195         hash: check for resize before insertion
79196         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79197         threshold before insertion, so that a pathological hash_rehash
79198         that fills every bucket can still trigger another rehash.
79200 2009-06-18  Jim Meyering  <meyering@redhat.com>
79202         hash-tests: add a loop around the small tests
79203         * tests/test-hash.c (main): Repeat small tests with selected
79204         small initial table sizes.
79206 2009-06-17  Eric Blake  <ebb9@byu.net>
79208         hash: minor cleanups
79209         * lib/hash.h (hash_entry): Make opaque, by moving...
79210         * lib/hash.c (hash_entry): ...here.
79211         (hash_insert): Clarify restrictions on what can be inserted.
79212         (hash_get_next): Clarify when it is safe to remove an element
79213         during traversal.
79214         (check_tuning): Skip verification when tuning is known safe.
79215         (hash_initialize): Clarify restrictions on tuning.
79217 2009-06-17  Jim Meyering  <jim@meyering.net>
79218         and Eric Blake  <ebb9@byu.net>
79220         hash-tests: new module
79221         * modules/hash-tests: New file.
79222         * tests/test-hash.c: New file.
79224 2009-06-17  Eric Blake  <ebb9@byu.net>
79226         strstr-simple: document new module
79227         * MODULES.html.sh: Document new module.
79229         strstr, strcasestr: replace on platforms with broken memchr
79230         * modules/strstr: Split into...
79231         * modules/strstr-simple: ...new module that does not care about
79232         performance, but does care about glibc bug.
79233         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79234         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79235         if platform memchr is broken, per Debian bug 521737.
79236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79237         memchr.
79238         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79239         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79240         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79241         * modules/mountlist (Depends-on): Add strstr-simple.
79242         * modules/gen-uni-tables (Depends-on): Likewise.
79243         * modules/argz (Depends-on): Add strstr.
79245 2009-06-17  Bruno Haible  <bruno@clisp.org>
79247         * modules/posix_spawn-internal (Depends-on): Add errno.
79249 2009-06-17  Bruno Haible  <bruno@clisp.org>
79251         Define missing ESTALE on Interix 3.5.
79252         * lib/errno.in.h (ESTALE): Assign a value if missing.
79253         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79254         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79255         missing.
79256         * doc/posix-headers/errno.texi: Mention the Interix bug.
79257         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79259 2009-06-15  Eric Blake  <ebb9@byu.net>
79261         memchr, memchr2: add valgrind exception
79262         * lib/memchr.valgrind: New file.
79263         * lib/memchr2.valgrind: New file.
79264         * modules/memchr (Files): Distribute valgrind file.
79265         * modules/memchr2 (Files): Likewise.
79267         docs: memchr is no longer obsolete
79268         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79269         * lib/string.in.h (memchr): Simplify logic.
79271 2009-06-14  Jim Meyering  <meyering@redhat.com>
79273         link-follow: fix the "checking..." message to not mention trailing slash
79274         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79275         never considered trailing slashes.
79277 2009-06-14  Bruno Haible  <bruno@clisp.org>
79279         * m4/memchr.m4: Mention also the bug on IA-64.
79280         * doc/posix-functions/memchr.texi: Likewise.
79282 2009-06-12  Eric Blake  <ebb9@byu.net>
79284         memchr: detect broken x86_64 and alpha implementations
79285         * modules/memchr-tests (Depends-on): Move mmap detection...
79286         * modules/memchr (Depends-on): ...here.
79287         (configure.ac): Set indicator.
79288         * lib/string.in.h (memchr): Declare replacement.
79289         * modules/string (Makefile.am): Trigger replacement.
79290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79291         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79292         bugs.
79293         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79294         * modules/getpagesize (License): Relax license.
79296 2009-06-11  Bruno Haible  <bruno@clisp.org>
79298         * lib/idpriv.h: Add more references.
79300 2009-06-08  Bruno Haible  <bruno@clisp.org>
79302         Tests for module 'idpriv-droptemp'.
79303         * modules/idpriv-droptemp-tests: New file.
79304         * tests/test-idpriv-droptemp.sh: New file.
79305         * tests/test-idpriv-droptemp.su.sh: New file.
79306         * tests/test-idpriv-droptemp.c: New file.
79308         New module 'idpriv-droptemp'.
79309         * lib/idpriv-droptemp.c: New file.
79310         * modules/idpriv-droptemp: New file.
79312 2009-06-08  Bruno Haible  <bruno@clisp.org>
79314         Tests for module 'idpriv-drop'.
79315         * modules/idpriv-drop-tests: New file.
79316         * tests/test-idpriv-drop.sh: New file.
79317         * tests/test-idpriv-drop.su.sh: New file.
79318         * tests/test-idpriv-drop.c: New file.
79320         New module 'idpriv-drop'.
79321         * lib/idpriv.h: New file.
79322         * lib-idpriv-drop.c: New file.
79323         * m4/idpriv.m4: New file.
79324         * modules/idpriv-drop: New file.
79326 2009-06-08  Bruno Haible  <bruno@clisp.org>
79328         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79329         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79330         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79331         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79332         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79333         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79336 2009-06-08  Eric Blake  <ebb9@byu.net>
79338         test-strstr: use memory fence, when possible
79339         * tests/test-strstr.c (main): Use memory fence, in order to be
79340         more likely to trigger Debian bug 521737.
79341         * modules/strstr-tests (Files): Pull in additional files.
79343         memchr: no longer obsolete, for wider field testing
79344         * modules/memchr (Status, Notice): Delete, this module is no
79345         longer obsolete.
79346         * modules/vasnprintf (Depends-on): Add memchr.
79348 2009-06-07  Jim Meyering  <meyering@redhat.com>
79350         hash: declare some functions with the warn_unused_result attribute
79351         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79353 2009-06-07  Bruno Haible  <bruno@clisp.org>
79355         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79356         Reported by Eric Blake.
79358 2009-06-06  Eric Blake  <ebb9@byu.net>
79360         test-alignof: fix typo with long double
79361         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79362         compiler error.
79364 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79366         Escape non-texinfo { and }s.
79367         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79368         markup error.
79370 2009-06-04  Jim Meyering  <meyering@redhat.com>
79372         gitlog-to-changelog: don't infloop on an empty commit log
79373         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79374         Reported by Boris Petersen <transacid@centerim.org>.
79376 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79378         version-etc: extend for packagers
79379         Add three new configure options, intended for packagers:
79380           --with-packager="packager name"
79381           --with-packager-version="packager-specific version"
79382           --with-packager-bug-reports="packager bug reporting"
79383         An example with coreutils:
79384           $ ./configure \
79385             --with-packager=Gentoo \
79386             --with-packager-bug-report=http://bugs.gentoo.org/ \
79387             --with-packager-version="patchset 1.6"
79388           $ ./src/ls --version | head -n2
79389           ls (GNU coreutils) 7.1-dirty
79390           Packaged by Gentoo (patchset 1.6)
79391         Note that the bug reporting info via --help doesn't show up because
79392         coreutils uses its own custom emit_bug_reporting_address() implementation
79393         in src/system.h.  If it didn't, it'd look like:
79394           $ ./src/ls --help | tail -n4
79395           Report bugs to <bug-coreutils@gnu.org>.
79396           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79397           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79398           General help using GNU software: <http://www.gnu.org/gethelp/>.
79399         * lib/version-etc.c: Print new information, if provided.
79400         * m4/version-etc.m4: New file.
79401         * modules/version-etc (Files): Add m4/version-etc.m4.
79402         (configure.ac): Add gl_VERSION_ETC.
79404 2009-05-31  Bruno Haible  <bruno@clisp.org>
79406         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79407         and 'int64_t'.
79408         * modules/alignof-tests (Dependencies): Add stdint.
79409         Reported by Eric Blake.
79411 2009-05-31  Bruno Haible  <bruno@clisp.org>
79413         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79414         restriction due to compiler bugs.
79415         Reported by Eric Blake.
79417 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79418             Bruno Haible  <bruno@clisp.org>
79420         Fix test-alignof failure.
79421         * lib/alignof.h (alignof_slot): New macro.
79422         (alignof_type): New macro, with the same semantics as the previous
79423         'alignof'.
79424         (alignof): Alias to alignof_slot.
79425         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79426         check that the results are usable as constant expressions.
79428 2009-05-31  Bruno Haible  <bruno@clisp.org>
79430         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79431         * tests/test-memchr.c (main): Check that memchr does not read past the
79432         first occurrence of the byte.
79433         * tests/test-strstr.c (main): Update comment.
79434         Suggested by Eric Blake.
79436 2009-05-30  Bruno Haible  <bruno@clisp.org>
79438         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79439         detail how to use dumpbin.
79440         Reported by David Byron <dbyron@dbyron.com>.
79442 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79444         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79446 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79448         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79450 2009-05-28  Bruno Haible  <bruno@clisp.org>
79452         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79453         build-aux/ files.
79455 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79457         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79459 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79461         * gnulib-tool (sed_transform_main_lib_file)
79462         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79463         regexps.
79465 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79467         * tests/test-strstr.c: Add another self-test.
79468         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79469         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79471 2009-05-23  Bruno Haible  <bruno@clisp.org>
79473         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79474         change.
79476 2009-05-21  Bruno Haible  <bruno@clisp.org>
79478         Simplify use of mode_t varargs.
79479         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79480         uses 'mode_t' or 'int'.
79481         * lib/openat.c (openat): Likewise.
79482         * lib/open-safer.c (open_safer): Likewise.
79483         * m4/mode_t.m4: New file.
79484         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79485         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79487         * modules/open (Files): Add m4/mode_t.m4.
79488         * modules/openat (Files): Likewise.
79489         * modules/fcntl-safer (Files): Likewise.
79490         Suggested by Eric Blake.
79492 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79494         * doc/glibc-functions/fallocate.texi: New file.
79495         * doc/gnulib.texi: Include it.
79497 2009-05-21  Eric Blake  <ebb9@byu.net>
79498             Bruno Haible  <bruno@clisp.org>
79500         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79501         invocations.
79502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79504 2009-05-21  Eric Blake  <ebb9@byu.net>
79505             Bruno Haible  <bruno@clisp.org>
79507         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79508         include_next. Fix of 2008-11-20 commit.
79509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79510         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79511         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79512         NEXT_MATH_H.
79513         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79514         instead of NEXT_MATH_H.
79516 2009-05-21  Bruno Haible  <bruno@clisp.org>
79518         Avoid redefinition warnings for SIZE_MAX.
79519         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79520         Reported by Simon Josefsson.
79522 2009-05-21  Bruno Haible  <bruno@clisp.org>
79524         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79525         AC_CACHE_VAL.
79527 2009-05-20  Bruno Haible  <bruno@clisp.org>
79529         Make zeroptr.h work on mingw.
79530         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79531         mprotect.
79532         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79533         * modules/memchr2-tests (configure.ac): Likewise.
79534         * modules/memcmp-tests (configure.ac): Likewise.
79535         * modules/memmem-tests (configure.ac): Likewise.
79536         * modules/memrchr-tests (configure.ac): Likewise.
79537         Reported by Simon Josefsson.
79539 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79541         * tests/test-glob.c: Include string.h for strcmp prototype.
79543 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79545         * modules/getdelim (Depends-on): Add explicit stdint, although it
79546         was implicitly already pulled in via realloc-posix.
79547         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79549 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79551         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79552         G. Christensen" <tgc@jupiterrise.com>.
79553         * m4/sys_socket_h.m4: Check for sa_family_t.
79554         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79555         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79556         * tests/test-sys_socket.c: Check that sa_family_t works.
79558 2009-05-18  Eric Blake  <ebb9@byu.net>
79560         maint.mk: allow gnulib_dir in VPATH build
79561         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79563 2009-05-15  Jim Meyering  <meyering@redhat.com>
79565         maint.mk: Give gnulib_dir a default definition.
79566         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79567         Thus, most packages no longer need to specify this variable in cfg.mk
79569 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79571         rename.m4: fix typos that would make non-mingw cross-configure fail
79572         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79574 2009-05-13  Eric Blake  <ebb9@byu.net>
79576         mmap-anon: avoid out-of-order autoconf expansion
79577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79578         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79579         * modules/memchr-tests (Depends-on): Add extensions.
79580         * modules/memchr2-tests (Depends-on): Add extensions.
79581         * modules/memcmp-tests (Depends-on): Add extensions.
79582         * modules/memmem-tests (Depends-on): Add extensions.
79583         * modules/memrchr-tests (Depends-on): Add extensions.
79585 2009-05-13  Bruno Haible  <bruno@clisp.org>
79587         Make some tests ISO C 99 compliant.
79588         * tests/zerosize-ptr.h: New file.
79589         * tests/test-memchr.c: Include zerosize-ptr.h.
79590         (main): Use a zero-size object pointer instead of NULL.
79591         * tests/test-memchr2.c: Include zerosize-ptr.h.
79592         (main): Use a zero-size object pointer instead of NULL.
79593         * tests/test-memcmp.c: Include zerosize-ptr.h.
79594         (main): Use a zero-size object pointer instead of NULL.
79595         * tests/test-memmem.c: Include zerosize-ptr.h.
79596         (main): Use a zero-size object pointer instead of NULL.
79597         * tests/test-memrchr.c: Include zerosize-ptr.h.
79598         (main): Use a zero-size object pointer instead of NULL.
79599         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
79600         m4/mmap-anon.m4.
79601         (Depends-on): Add getpagesize.
79602         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79603         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
79604         m4/mmap-anon.m4.
79605         (Depends-on): Add getpagesize.
79606         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79607         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79608         m4/mmap-anon.m4.
79609         (Depends-on): Add getpagesize.
79610         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79611         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79612         m4/mmap-anon.m4.
79613         (Depends-on): Add getpagesize.
79614         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79615         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79616         m4/mmap-anon.m4.
79617         (Depends-on): Add getpagesize.
79618         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79620 2009-05-12  Bruno Haible  <bruno@clisp.org>
79622         Tests for module 'alignof'.
79623         * modules/alignof-tests: New file.
79624         * tests/test-alignof.c: New file.
79626 2009-05-12  Bruno Haible  <bruno@clisp.org>
79628         Fix alignof macro.
79629         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79630         vendor compilers that are always correct.
79632 2009-05-12  Bruno Haible  <bruno@clisp.org>
79634         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79635         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79636         not whether its fully works.
79638 2009-05-12  Bruno Haible  <bruno@clisp.org>
79640         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79642 2009-05-12  Jim Meyering  <meyering@redhat.com>
79644         * top/maint.mk: Adjust backslash alignment.
79646 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79648         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79650 2009-05-11  Eric Blake  <ebb9@byu.net>
79652         argp: avoid undefined behavior
79653         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79654         macros.
79656 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79658         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79659         user.name to prevent git commit from complaining.
79661 2009-05-10  Bruno Haible  <bruno@clisp.org>
79663         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79664         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79665         it rewrites every file name only once.
79666         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79668 2009-05-08  Bruno Haible  <bruno@clisp.org>
79670         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79671         instead of 'max'.
79673 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79675         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79676         sockaddr_storage test.
79678 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79680         * modules/sys_socket (Makefile.am): Substitute
79681         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79682         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79683         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79684         * tests/test-sys_socket.c: Check sockaddr_storage.
79686 2009-05-08  Bruno Haible  <bruno@clisp.org>
79688         New module 'alignof'.
79689         * lib/alignof.h: New file.
79690         * modules/alignof: New file.
79692 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79693             Bruno Haible  <bruno@clisp.org>
79695         Fix test-file-has-acl on FreeBSD.
79696         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79697         mask is implicitly added.
79698         * tests/test-file-has-acl.c: Include <signal.h>.
79699         (main): Terminate the test after 5 seconds.
79700         * modules/acl-tests (configure.ac): Check for alarm function.
79702 2009-05-04  Bruno Haible  <bruno@clisp.org>
79704         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79706         * modules/errno (configure.ac): Drop AC_REQUIRE.
79707         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79708         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79710 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79712         * modules/glob-tests: New module.
79713         * tests/test-glob.c: Add.
79715 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79717         * modules/fnmatch-tests: New module.
79718         * tests/test-fnmatch.c: Add.
79720 2009-05-04  Eric Blake  <ebb9@byu.net>
79722         maint: make the new no-submodule-changes rule VPATH-safe
79723         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79725 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79726             Bruno Haible  <bruno@clisp.org>
79728         acl: Fix infinite loop on FreeBSD.
79729         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79730         of return value from acl_get_entry.
79731         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79732         Likewise.
79734 2009-05-03  Bruno Haible  <bruno@clisp.org>
79736         * lib/acl-internal.h (acl_entries): Clarify return value.
79737         * lib/acl_entries.c (acl_entries): Likewise.
79739 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79741         Bug fix in acl module.
79742         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79744 2009-05-03  Bruno Haible  <bruno@clisp.org>
79746         Create gperf-generated file in the source dir, not in the build dir.
79747         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79748         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79749         * modules/unicase/locale-language (unicase/locale-languages.h):
79750         Likewise.
79751         * modules/unicase/special-casing (unicase/special-casing-table.h):
79752         Likewise.
79753         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79754         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79755         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79756         Reported by Ralf Wildenhues.
79758 2009-05-03  Bruno Haible  <bruno@clisp.org>
79760         * modules/fnmatch (Description, configure.ac): Taken from
79761         fnmatch-posix.
79762         * modules/fnmatch-posix: Turn into a symbolic reference to the
79763         'fnmatch' module, and deprecate.
79764         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79766 2009-05-03  Bruno Haible  <bruno@clisp.org>
79768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79769         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79770         Reported by Ralf Wildenhues.
79772 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79774         * m4/fnmatch.m4: Fix fnmatch re-define.
79776 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79778         priv-set: new module and tests; adapt write-any-file
79779         * lib/priv-set.c: New file.
79780         * lib/priv-set.h: New file.
79781         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79782         * lib/write-any-file.c: Simplify by using priv-set module.
79783         * m4/priv-set.m4: New file.
79784         * modules/priv-set: New file.
79785         * modules/unlinkdir: Add dependency on priv-set module.
79786         * modules/write-any-file: Likewise.
79788         Tests for module 'priv-set'.
79789         * modules/priv-set-tests: New file.
79790         * tests/test-priv-set.c: New file.
79792 2009-05-03  Jim Meyering  <meyering@redhat.com>
79793             Bruno Haible  <bruno@clisp.org>
79795         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79796         use the converted UTF-8 variant of the name instead.
79798 2009-05-03  Jim Meyering  <meyering@redhat.com>
79800         tests: tighten some getdate tests
79801         * tests/test-getdate.c (main): Tighten tests: require equality,
79802         not just greater than.  Set TZ envvar to UTC0.
79804 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79806         getdate: correctly interpret "next monday" when run on a Monday
79807         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79808         that e.g., "next tues" (when run on a tuesday) results in a date
79809         that is one week in the future, and not today's date.
79810         I.e., add a week when the wday is the same as the current one.
79811         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79812         and earlier by Martin Bernreuther and Jan Minář.
79813         * tests/test-getdate.c (main): Check that "next DAY" is always in
79814         the future and that "last DAY" is always in the past.
79816 2009-05-02  Jim Meyering  <meyering@redhat.com>
79818         build: ensure that a release build fails when a submodule is unclean
79819         * top/maint.mk (no-submodule-changes): New rule.
79820         (alpha beta major): Depend on it.
79822 2009-05-02  Bruno Haible  <bruno@clisp.org>
79824         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79825         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79826         shell variable gl_fnmatch_required to detect which variant is
79827         requested.
79828         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79829         gl_FUNC_FNMATCH_POSIX.
79830         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79831         exclude fnmatch-posix.
79833 2009-05-02  Bruno Haible  <bruno@clisp.org>
79835         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79836         * modules/mbsrtowcs (License): Change to LGPLv2+.
79837         * modules/strnlen1 (License): Likewise.
79838         Reported by Simon Josefsson.
79840 2009-05-02  Bruno Haible  <bruno@clisp.org>
79842         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79843         "cross".
79844         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79845         gnulib-tool was called with option --source-base=lib.
79847 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79849         Use automake *-local hooks without commands, for extensibility.
79850         * modules/localcharset (Makefile.am): Rename install-exec-local
79851         rule to install-exec-localcharset, and make it a prerequisite of
79852         install-exec-local.  Likewise, rename the uninstall-local rule to
79853         uninstall-localcharset, and make it a prerequisite of the former.
79855 2009-05-01  Bruno Haible  <bruno@clisp.org>
79857         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79858         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79859         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79861         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79862         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79863         m4/locale-zh.m4, m4/codeset.m4.
79865         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79866         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79867         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79868         m4/locale-zh.m4.
79870         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79871         REPLACE_WCRTOMB if mbstate_t must be replaced.
79872         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79873         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79875 2009-05-01  Bruno Haible  <bruno@clisp.org>
79877         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79878         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79879         dngettext, dcngettext, textdomain, bindtextdomain,
79880         bind_textdomain_codeset): Undefine before redefining.
79882 2009-04-30  Bruno Haible  <bruno@clisp.org>
79884         Fix bug introduced on 2009-04-25.
79885         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79886         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79887         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79888         is defined.
79889         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79890         is defined.
79891         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79892         is defined.
79893         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79895 2009-04-28  Bruno Haible  <bruno@clisp.org>
79897         Comment tweaks.
79898         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79899         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79900         * lib/unicase.h (u*_casexfrm): Likewise.
79901         Reported by Paolo Bonzini.
79903 2009-04-28  Bruno Haible  <bruno@clisp.org>
79905         Fix a compilation error.
79906         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79907         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79908         Reported by Jim Meyering.
79910 2009-04-27  Bruno Haible  <bruno@clisp.org>
79912         New module 'libunistring'.
79913         * modules/libunistring: New file.
79914         * m4/libunistring.m4: New file.
79915         * MODULES.html.sh (Unicode string functions): Add it.
79917 2009-04-27  Eric Blake  <ebb9@byu.net>
79919         maint.mk: allow package-specific header to provide <config.h>
79920         * top/maint.mk (sc_require_config_h): New variable.
79921         (sc_require_config_h, sc_require_config_h_first): Use it.
79923 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79925         * top/maint.mk (sc_avoid_if_before_free): Except
79926         useless-if-before-free script.
79928 2009-04-27  Eric Blake  <ebb9@byu.net>
79930         maintainer-makefile: depend on all required helper scripts
79931         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79932         useless-if-before-free.
79933         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79934         version, rather than assuming gnulib checkout is available.
79935         Reported by Simen Josefsson.
79937 2009-04-26  Bruno Haible  <bruno@clisp.org>
79939         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79940         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79941         "../" or "..".
79943 2009-04-26  Bruno Haible  <bruno@clisp.org>
79945         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79946         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79947         AC_LIB_HAVE_LINKFLAGS.
79949 2009-04-26  Bruno Haible  <bruno@clisp.org>
79951         Simplify calling convention of u*_conv_from_encoding.
79952         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79953         u32_conv_from_encoding): Expect a resultbuf argument and return the
79954         result directly as a pointer.
79955         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79956         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79957         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79958         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79959         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79960         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79961         Update.
79962         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79963         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79964         * lib/vasnprintf.c (VASNPRINTF): Update.
79965         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79966         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79967         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
79968         * NEWS: Mention the change.
79970 2009-04-26  Bruno Haible  <bruno@clisp.org>
79972         Simplify calling convention of u*_conv_to_encoding.
79973         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79974         u32_conv_to_encoding): Expect a resultbuf argument and return the
79975         result directly as a pointer.
79976         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79977         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
79978         freeing scaled_offsets if mem_iconveha failed.
79979         * lib/unicase/u-casexfrm.h (FUNC): Update.
79980         * lib/uninorm/u-normxfrm.h (FUNC): Update.
79981         * lib/vasnprintf.c (VASNPRINTF): Update.
79982         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
79983         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
79984         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
79985         * NEWS: Mention the change.
79987 2009-04-26  Bruno Haible  <bruno@clisp.org>
79989         Avoid test failures on AIX and OSF/1.
79990         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
79991         malloc(0).
79992         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79993         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79994         Likewise.
79995         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
79996         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
79997         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
79998         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
79999         * doc/posix-functions/malloc.texi: Document the portability problem
80000         related to malloc(0).
80002 2009-04-26  Bruno Haible  <bruno@clisp.org>
80004         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80005         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80006         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80008 2009-04-25  Bruno Haible  <bruno@clisp.org>
80010         Avoid link error when creating a namespace clean library.
80011         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80012         as macro with arguments if already defined as an alias.
80013         * lib/signbitf.c (gl_signbitf): Don't undefine.
80014         * lib/signbitd.c (gl_signbitd): Don't undefine.
80015         * lib/signbitl.c (gl_signbitl): Don't undefine.
80017 2009-04-25  Jim Meyering  <meyering@redhat.com>
80019         vc-list-files: fix another quoting bug
80020         * build-aux/vc-list-files: Avoid sed backslash expansion
80021         of pathological directory names.
80023 2009-04-25  Eric Blake  <ebb9@byu.net>
80025         vc-list-files: fix shell quoting error
80026         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80027         timestamp.
80029 2009-04-25  Jim Meyering  <meyering@redhat.com>
80031         vc-list-files: restore lost functionality with subdir argument
80032         * build-aux/vc-list-files: When given a non-"." sub-directory
80033         argument, substitute the $dir/ prefix back onto each resulting name.
80034         Otherwise, coreutils' root_tests check would fail.
80036 2009-04-24  Eric Blake  <ebb9@byu.net>
80038         vc-list-files: ignore git symlinks
80039         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80040         than ls-files, to ignore git symlinks.
80042         maint.mk: import improvements from m4
80043         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80044         (move_if_change): Delete unused macro.
80045         (news-date-check, vc-diff-check): Support VPATH builds.
80046         (announcement): Likewise.  Split --bootstrap-tools list...
80047         (boostrap-tools): ...into separate list, which can be overridden
80048         in cfg.mk.
80049         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80050         requiring dependency on useless-if-before-free module.
80051         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80052         Support VPATH builds.
80054 2009-04-24  Jim Meyering  <meyering@redhat.com>
80056         maint.mk: remove coreutils-specific rules and variables
80057         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80058         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80059         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80061         maint.mk: remove obsolete rule
80062         * top/maint.mk (rel-check): Remove rule.
80063         (WGET, WGETFLAGS): Remove now-unused variables.
80065 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80067         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80068         consistency.
80070         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80071         '$(PATH_SEPARATOR)' instead of ':'.
80073 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80075         * lib/getopt1.c (main): Use 'const' for static array.
80077 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80079         * top/maint.mk: Sync with coreutils.
80080         * NEWS: Explain incompatibilities.
80082 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80083             Bruno Haible  <bruno@clisp.org>
80085         Fix cross-compilation results.
80086         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
80087         statement, as third argument of AC_TRY_RUN.
80088         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
80089         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
80090         Likewise.
80091         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
80092         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
80093         Likewise.
80094         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
80095         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
80096         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
80098 2009-04-20  Bruno Haible  <bruno@clisp.org>
80100         Avoid test failure on mingw.
80101         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
80103 2009-04-20  Bruno Haible  <bruno@clisp.org>
80105         Avoid compilation error on mingw.
80106         * modules/localename-tests (Depends-on): Add locale.
80108 2009-04-19  Bruno Haible  <bruno@clisp.org>
80110         Support for building a shared library on Windows platforms.
80111         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80112         (main): Test the presence of UNINORM_NFC here.
80113         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80114         (main): Test the presence of UNINORM_NFD here.
80115         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80116         (main): Test the presence of UNINORM_NFKC here.
80117         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80118         (main): Test the presence of UNINORM_NFKD here.
80120 2009-04-19  Bruno Haible  <bruno@clisp.org>
80122         Avoid a compiler warning.
80123         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80124         Change type of variable 'sequence'.
80126 2009-04-19  Bruno Haible  <bruno@clisp.org>
80128         * modules/configmake (Makefile.am): When the contents of configmake.h
80129         does not change, arrange to preserve its modification time.
80131 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80133         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80134         gettext domain.
80136 2009-04-16  Jim Meyering  <meyering@redhat.com>
80138         useless-if-before-free: improve conversion code
80139         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80140         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80142 2009-04-14  Bruno Haible  <bruno@clisp.org>
80144         * modules/fcntl (Depends-on): Add extensions.
80145         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80147 2009-04-12  Ben Pfaff  <blp@gnu.org>
80149         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80150         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80152 2009-03-20  Ben Pfaff  <blp@gnu.org>
80154         Make rename replace existing destinations on Windows.
80155         * m4/rename.m4: Add test for Mingw.
80156         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80157         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80158         * doc/posix-functions/rename.texi: Document.
80160 2009-04-10  Bruno Haible  <bruno@clisp.org>
80162         New include file "iconveh.h".
80163         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80164         * lib/striconveh.h: Include it.
80165         (enum iconv_ilseq_handler): Remove definition.
80166         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80167         striconveh.h.
80168         * lib/striconveha.c: Include striconveh.h.
80169         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80170         * modules/striconveh (Files): Add lib/iconveh.h.
80171         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80172         lib/striconveh.h.
80174 2009-04-10  Bruno Haible  <bruno@clisp.org>
80176         * lib/uniconv.h: Update comment.
80178 2009-04-10  Bruno Haible  <bruno@clisp.org>
80180         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80181         always.
80182         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80183         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80184         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80185         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80186         "unistring-notinline.h", so that the function gets defined always.
80187         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80188         * lib/unistr/u8-uctomb.c: Likewise.
80189         * lib/unistr/u16-mbtouc.c: Likewise.
80190         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80191         * lib/unistr/u16-uctomb.c: Likewise.
80192         * lib/unistr/u32-mbtouc.c: Likewise.
80193         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80194         * lib/unistr/u32-uctomb.c: Likewise.
80196 2009-04-10  Bruno Haible  <bruno@clisp.org>
80198         Mark 'utime' obsolete.
80199         * modules/utime (Status, Notice): New sections.
80200         Suggested by Jim Meyering.
80202         Fix cross-compile guess for utime test.
80203         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80204         autoconf.
80205         * doc/posix-functions/utime.texi: Give more precisions.
80206         Reported by Jan <ipif@ymail.com>.
80208 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80210         filevercmp: correct today's change
80211         * lib/filevercmp.c: Also handle coreutils' test inputs.
80212         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80214         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80215         for reporting it.
80216         * lib/filevercmp.c: Special handle for "", "." and "..".
80217         * tests/test-filevercmp.c: Enlarge the set suite.
80219 2009-04-07  Jim Meyering  <meyering@redhat.com>
80221         useless-if-before-free: show how to remove braced useless free, too
80222         * build-aux/useless-if-before-free: still only in a comment, though.
80224 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80226         maint.mk: import changes to syntax-check macros from coreutils
80227         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80228         Use them in the relevant macros.
80230 2009-04-06  Bruno Haible  <bruno@clisp.org>
80232         Fix unportable use of bit-fields.
80233         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80234         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80235         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80237 2009-04-06  Bruno Haible  <bruno@clisp.org>
80239         Avoid test failures on AIX and OSF/1.
80240         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80241         that malloc(0) = NULL.
80242         * tests/unicase/test-u8-tolower.c (check): Likewise.
80243         * tests/unicase/test-u8-totitle.c (check): Likewise.
80244         * tests/unicase/test-u8-toupper.c (check): Likewise.
80245         * tests/unicase/test-u16-casefold.c (check): Likewise.
80246         * tests/unicase/test-u16-tolower.c (check): Likewise.
80247         * tests/unicase/test-u16-totitle.c (check): Likewise.
80248         * tests/unicase/test-u16-toupper.c (check): Likewise.
80249         * tests/unicase/test-u32-casefold.c (check): Likewise.
80250         * tests/unicase/test-u32-tolower.c (check): Likewise.
80251         * tests/unicase/test-u32-totitle.c (check): Likewise.
80252         * tests/unicase/test-u32-toupper.c (check): Likewise.
80253         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80254         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80255         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80256         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80257         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80258         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80259         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80260         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80261         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80262         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80263         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80264         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80266 2009-04-05  Bruno Haible  <bruno@clisp.org>
80268         Work around an autoconf limitation.
80269         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80270         comment line if it would be longer than 3 KB.
80272 2009-04-05  Bruno Haible  <bruno@clisp.org>
80274         Avoid test failure with libiconv-1.13.
80275         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80276         of the expected test results.
80278 2009-04-05  Bruno Haible  <bruno@clisp.org>
80280         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80281         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80282         that it should be installed.
80284 2009-04-05  Bruno Haible  <bruno@clisp.org>
80286         * gnulib-tool: New option --copy-file.
80287         (func_usage): Document it.
80288         (func_dest_tmpfilename): Moved out of func_import.
80289         (func_add_file, func_update_file): New functions, extracted from
80290         func_import.
80291         (func_import): Update.
80293 2009-04-05  Karl Berry  <karl@gnu.org>
80295         * README: prominently mention gnulib-tool.
80296         Rearrange sections so getting the code is near the top.
80298 2009-04-05  Bruno Haible  <bruno@clisp.org>
80300         * lib/unicase.h: Mention u*_cmp2.
80301         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80302         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80303         * lib/unicase/ulc-casecmp.c: Likewise.
80304         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80305         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80306         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80307         unistr/u8-cmp.
80308         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80309         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80310         unistr/u16-cmp.
80311         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80312         unistr/u32-cmp.
80314         * lib/uninorm.h: Mention u*_cmp2.
80315         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80316         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80317         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80318         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80319         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80320         unistr/u8-cmp.
80321         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80322         unistr/u16-cmp.
80323         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80324         unistr/u32-cmp.
80326         New module 'unistr/u32-cmp2'.
80327         * lib/unistr/u32-cmp2.c: New file.
80328         * modules/unistr/u32-cmp2: New file.
80330         New module 'unistr/u16-cmp2'.
80331         * lib/unistr/u16-cmp2.c: New file.
80332         * modules/unistr/u16-cmp2: New file.
80334         New module 'unistr/u8-cmp2'.
80335         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80336         * lib/unistr/u8-cmp2.c: New file.
80337         * lib/unistr/u-cmp2.h: New file.
80338         * modules/unistr/u8-cmp2: New file.
80340 2009-04-05  Bruno Haible  <bruno@clisp.org>
80342         * lib/unictype.h (uc_property_is_valid): New macro.
80343         * tests/unictype/test-pr_byname.c (main): Use it.
80345         * lib/unistr.h: Doc fixes.
80346         * lib/uniconv.h: Doc fixes.
80347         * lib/unictype.h: Doc fixes.
80349 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80351         Port coreutils 7.2 to Solaris 8.
80353         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80354         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80355         for Solaris 8.  This is a bit of a hack, as it means it's the
80356         caller's responsibility to add -lnsl if needed, but most likely it
80357         won't be needed since only getaddrinfo uses this and getaddrinfo
80358         isn't needed on Solaris 8.
80360         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80361         problem to Solaris 8 encountered with coreutils 7.2, which
80362         resulted in a message "fnmatch.c:292: warning: passing argument 4
80363         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80364         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80366 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80368         * m4/ld-version-script.m4: Add FIXME comment.
80370 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80372         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80373         SOVERSION variable.
80375 2009-04-02  Bruno Haible  <bruno@clisp.org>
80377         * Makefile (info, html, dvi, pdf): Combine the rules.
80378         Suggested by Jim Meyering.
80380 2009-04-01  Bruno Haible  <bruno@clisp.org>
80382         * Makefile (info, html, dvi, pdf): New targets.
80383         Reported by Reuben Thomas <rrt@sc3d.org>.
80385 2009-04-01  Bruno Haible  <bruno@clisp.org>
80387         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80388         can be put into PATH.
80389         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80391 2009-04-01  Bruno Haible  <bruno@clisp.org>
80393         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80395 2009-04-01  Bruno Haible  <bruno@clisp.org>
80397         Rename module 'visibility'.
80398         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80399         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80400         * doc/gnulib.texi: Update.
80401         * MODULES.html.sh (Misc): Update.
80402         * NEWS: Mention the change.
80404 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80406         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80407         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80408         Eric Blake <ebb9@byu.net> for review.
80409         * MODULES.html.sh: Add lib-msvc-compat.
80410         * doc/gnulib.texi: Link to new section.
80411         * m4/ld-output-def.m4: New file.
80412         * doc/ld-output-def.texi: New file.
80414 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80416         Rename ld-version-script to lib-symbol-versions.  Suggested by
80417         Bruno Haible <bruno@clisp.org>.
80418         * modules/ld-version-script: Renamed to lib-symbol-versions.
80419         * doc/ld-version-script.texi: Fix module name.
80420         * MODULES.html.sh: Add lib-symbol-versions.
80422 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80424         * modules/u64-tests: New file.
80425         * tests/test-u64.c: New file.
80427 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80429         * MODULES.html.sh: Mention u64.
80430         * modules/u64: New module.
80431         * modules/crypto/sha512: Depend on u64 module instead of providing
80432         u64.h.
80434 2009-03-27  Eric Blake  <ebb9@byu.net>
80436         test-strerror: make debugging EAI_SYSTEM easier
80437         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80438         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80439         failure was EAI_SYSTEM.
80441 2009-03-25  Bruno Haible  <bruno@clisp.org>
80443         Fix a problem with --enable-relocatable on Solaris 7.
80444         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80445         since 2008-02-24.
80447 2009-03-25  Eric Blake  <ebb9@byu.net>
80449         test-sockets: avoid gcc warning
80450         * tests/test-sockets.c (main): Silence compiler warning.
80452 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80454         New modules nproc, pthread, contributed by Glen Lenker.
80456         * MODULES.html.sh: Add pthread, nproc.
80457         * lib/nproc.c: New file.
80458         * lib/nproc.h: New file.
80459         * lib/pthread.in.h: New file.
80460         * m4/pthread.m4: New file.
80461         * modules/nproc: New file.
80462         * modules/pthread: New file.
80464 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80466         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80467         New variable.
80469 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80471         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80472         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80473         * tests/test-filevercmp.c: Add tests for backup suffixes.
80475 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80477         * modules/stdlib (Depends-on): Add stdint, needed when defining
80478         struct random_data on, for example, HP-UX 10.20.  Reported by
80479         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80481 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80483         * lib/readline.c (readline): Call fflush on stdout after printing
80484         prompt.
80486 2009-03-20  Bruno Haible  <bruno@clisp.org>
80488         Remove dependency from 'close' module to -lws2_32 on native Windows.
80489         * lib/close-hook.h: New file.
80490         * lib/close-hook.c: New file.
80491         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80492         w32sock.h.
80493         (_gl_close_fd_maybe_socket): Remove function.
80494         (rpl_close): Invoke execute_all_close_hooks instead of
80495         _gl_close_fd_maybe_socket.
80496         * lib/sockets.c: Include close-hook.h, w32sock.h.
80497         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80498         (close_sockets_hook): New variable.
80499         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80500         (gl_sockets_cleanup): Unregister it.
80501         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80502         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80503         * modules/close-hook: New file.
80504         * modules/close (Files): Remove lib/w32sock.h.
80505         (Depends-on): Add close-hook.
80506         (Link): Remove section.
80507         * modules/sockets (Files): Add lib/w32sock.h.
80508         (Depends-on): Add close-hook.
80509         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80510         invocation.
80511         * NEWS: Mention that LIB_CLOSE is gone.
80513 2009-03-23  Eric Blake  <ebb9@byu.net>
80515         signal-tests: test previous patch
80516         * tests/test-signal.c: New file.
80517         * modules/signal-tests: Likewise.
80519         signal.h: always support 'volatile sig_atomic_t'
80520         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80521         (gl_SIGNAL_H_DEFAULTS): Add a default.
80522         * modules/signal (Makefile.am): Substitute if needed.
80523         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80524         users can blindly add volatile.
80525         * doc/posix-headers/signal.texi (signal.h): Document it.
80526         Reported by Matthew Woehlke.
80528 2009-03-23  Jim Meyering  <meyering@redhat.com>
80530         pathmax: PATH_MAX: use pathconf only when available
80531         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80532         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80533         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80534         This avoids a link failure in a PSP cross-compilation environment
80535         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80537         * lib/vasnprintf.c (divide): Fix typo in comment.
80539 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80541         * gnulib-tool (func_filter_filelist): Fix comment.
80543 2009-03-20  Bruno Haible  <bruno@clisp.org>
80545         Make sockets.h self-contained.
80546         * lib/sockets.c: Include sockets.h first.
80547         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80549 2009-03-19  Eric Blake  <ebb9@byu.net>
80551         doc: mention more functions added in cygwin 1.7.0
80552         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80553         addition.
80554         * doc/posix-functions/log2f.texi: Likewise.
80556 2009-03-19  Jim Meyering  <meyering@redhat.com>
80558         fsusage: avoid syntax error due to statement-before-declaration
80559         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80560         after all declarations.  Reported by Matthew Woehlke in
80561         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80563 2009-03-18  Eric Blake  <ebb9@byu.net>
80565         build-aux/compile: sync from automake
80566         * build-aux/compile: New file, from automake.
80567         * config/srclist.txt: Mention build-aux/compile.
80569 2009-03-17  Bruno Haible  <bruno@clisp.org>
80571         * lib/git-merge-changelog.c: Fix typo in comment.
80572         Reported by Reuben Thomas <rrt@sc3d.org>.
80574 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80576         * m4/regex.m4: update and improve help for
80577         --without-included-regex.
80579 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80581         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80582         failure on missing include files.
80584 2009-03-17  Eric Blake  <ebb9@byu.net>
80586         doc: mention more functions added in cygwin 1.7.0
80587         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80588         addition.
80589         * doc/posix-functions/fwscanf.texi: Likewise.
80590         * doc/posix-functions/swprintf.texi: Likewise.
80591         * doc/posix-functions/swscanf.texi: Likewise.
80592         * doc/posix-functions/vfwprintf.texi: Likewise.
80593         * doc/posix-functions/vfwscanf.texi: Likewise.
80594         * doc/posix-functions/vswprintf.texi: Likewise.
80595         * doc/posix-functions/vswscanf.texi: Likewise.
80596         * doc/posix-functions/vwprintf.texi: Likewise.
80597         * doc/posix-functions/vwscanf.texi: Likewise.
80598         * doc/posix-functions/wcscasecmp.texi: Likewise.
80599         * doc/posix-functions/wcsdup.texi: Likewise.
80600         * doc/posix-functions/wcsftime.texi: Likewise.
80601         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80602         * doc/posix-functions/wprintf.texi: Likewise.
80603         * doc/posix-functions/wscanf.texi: Likewise.
80604         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80606 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80608         maint.mk: really add $(AM_MAKEFLAGS)
80609         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80610         was inadvertently omitted in the last commit.
80611         Spotted by Bruno Haible.
80613         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80614         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80615         $(AM_MAKEFLAGS)' rather than plain `make'.
80617         gnulib-tool: execute $MAKE not make
80618         * gnulib-tool: Default $MAKE to 'make'.
80619         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80620         than make.  Initialize $MAKE in the do-autobuild script.
80622         gnulib-tool: use $MAKE not make in generated files
80623         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80624         make, in generated files.  Initialize $MAKE in the do-autobuild
80625         script.
80627         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80629         GNUmakefile: disable parallelism only for multiple, recursive targets
80630         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80631         additions in the Makefile.
80632         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80633         by Automake.
80634         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80635         are listed on the command line and at least one of them is
80636         listed in $(ALL_RECURSIVE_TARGETS).
80638 2009-03-14  Bruno Haible  <bruno@clisp.org>
80640         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80641         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80642         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80643         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80644         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80645         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80646         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80647         unistr/u8-uctomb.
80648         * modules/unistr/u8-strchr (Depends-on): Likewise.
80649         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80650         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80651         unistr/u16-uctomb.
80652         * modules/unistr/u16-strchr (Depends-on): Likewise.
80653         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80655 2009-03-12  Bruno Haible  <bruno@clisp.org>
80657         Work around select() bug on Interix 3.5.
80658         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80659         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80660         * m4/select.m4: New file.
80661         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80662         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80663         * modules/select (Files): Add m4/select.m4.
80664         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80665         * modules/nanosleep (Depends-on): Add select.
80666         * modules/poll (Depends-on): Likewise.
80667         * doc/posix-functions/select.texi: Mention the Interix bug.
80668         Reported by Markus Duft <mduft@gentoo.org>.
80670         * lib/select.c: Renamed from lib/winsock-select.c.
80671         * modules/select (Files): Add lib/select.c, remove
80672         lib/winsock-select.c.
80673         (configure.ac): Update.
80675 2009-03-12  Jim Meyering  <meyering@redhat.com>
80677         avoid gcc warnings about unused macro definitions
80678         * lib/readtokens.c (STREQ): Remove unused definition.
80679         * lib/xmalloc.c (SIZE_MAX): Likewise.
80680         * lib/openat-die.c (N_): Likewise.
80681         * lib/mountlist.c (SIZE_MAX): Remove definition.
80682         Instead, include <stdint.h>.
80683         * lib/readutmp.c: Likewise.
80684         * modules/readutmp (Depends-on): Add stdint.
80685         * modules/mountlist (Depends-on): Add stdint.
80686         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80688 2009-03-10  Bruno Haible  <bruno@clisp.org>
80690         Tests for module 'mbmemcasecoll'.
80691         * modules/mbmemcasecoll-tests: New file.
80692         * tests/test-mbmemcasecoll1.sh: New file.
80693         * tests/test-mbmemcasecoll2.sh: New file.
80694         * tests/test-mbmemcasecoll3.sh: New file.
80695         * tests/test-mbmemcasecoll.c: New file.
80697         New module 'mbmemcasecoll'.
80698         * lib/mbmemcasecoll.h: New file.
80699         * lib/mbmemcasecoll.c: New file.
80700         * modules/mbmemcasecoll: New file.
80702         * tests/test-mbmemcasecmp.h: New file, extracted from
80703         tests/test-mbmemcasecmp.c.
80704         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80705         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80706         (main): Update.
80707         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80709 2009-03-09  Bruno Haible  <bruno@clisp.org>
80711         Tests for module 'mbmemcasecmp'.
80712         * modules/mbmemcasecmp-tests: New file.
80713         * tests/test-mbmemcasecmp1.sh: New file.
80714         * tests/test-mbmemcasecmp2.sh: New file.
80715         * tests/test-mbmemcasecmp3.sh: New file.
80716         * tests/test-mbmemcasecmp.c: New file.
80718         New module 'mbmemcasecmp'.
80719         * lib/mbmemcasecmp.h: New file.
80720         * lib/mbmemcasecmp.c: New file.
80721         * modules/mbmemcasecmp: New file.
80723 2009-03-09  Bruno Haible  <bruno@clisp.org>
80725         Tests for module 'unicase/ulc-casecoll'.
80726         * modules/unicase/ulc-casecoll-tests: New file.
80727         * tests/unicase/test-ulc-casecoll1.sh: New file.
80728         * tests/unicase/test-ulc-casecoll2.sh: New file.
80729         * tests/unicase/test-ulc-casecoll.c: New file.
80731         New module 'unicase/ulc-casecoll'.
80732         * lib/unicase.h (ulc_casecoll): New declaration.
80733         * lib/unicase/ulc-casecoll.c: New file.
80734         * modules/unicase/ulc-casecoll: New file.
80736         New module 'unicase/ulc-casexfrm'.
80737         * lib/unicase.h (ulc_casexfrm): New declaration.
80738         * lib/unicase/ulc-casexfrm.c: New file.
80739         * modules/unicase/ulc-casexfrm: New file.
80741 2009-03-09  Bruno Haible  <bruno@clisp.org>
80743         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80744         invocations.
80746         * m4/mbscasecmp.m4: Remove file.
80747         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80748         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80750         * m4/mbscasestr.m4: Remove file.
80751         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80752         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80754         * m4/mbschr.m4: Remove file.
80755         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80756         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80758         * m4/mbscspn.m4: Remove file.
80759         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80760         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80762         * m4/mbslen.m4: Remove file.
80763         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80764         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80766         * m4/mbsncasecmp.m4: Remove file.
80767         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80768         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80770         * m4/mbsnlen.m4: Remove file.
80771         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80772         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80774         * m4/mbspbrk.m4: Remove file.
80775         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80776         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80778         * m4/mbspcasecmp.m4: Remove file.
80779         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80780         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80782         * m4/mbsrchr.m4: Remove file.
80783         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80784         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80786         * m4/mbssep.m4: Remove file.
80787         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80788         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80790         * m4/mbsspn.m4: Remove file.
80791         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80792         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80794         * m4/mbsstr.m4: Remove file.
80795         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80796         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80798         * m4/mbstok_r.m4: Remove file.
80799         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80800         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80802         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80804         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80805         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80807         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80809 2009-03-08  Bruno Haible  <bruno@clisp.org>
80811         Tests for module 'unicase/ulc-casecmp'.
80812         * modules/unicase/ulc-casecmp-tests: New file.
80813         * tests/unicase/test-ulc-casecmp1.sh: New file.
80814         * tests/unicase/test-ulc-casecmp2.sh: New file.
80815         * tests/unicase/test-ulc-casecmp.c: New file.
80817         New module 'unicase/ulc-casecmp'.
80818         * lib/unicase.h (ulc_casecmp): New declaration.
80819         * lib/unicase/ulc-casecmp.c: New file.
80820         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80821         'const SRC_UNIT *'.
80822         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80823         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80824         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80825         * modules/unicase/ulc-casecmp: New file.
80827         Tests for module 'unicase/u32-is-cased'.
80828         * modules/unicase/u32-is-cased-tests: New file.
80829         * tests/unicase/test-u32-is-cased.c: New file.
80831         Tests for module 'unicase/u16-is-cased'.
80832         * modules/unicase/u16-is-cased-tests: New file.
80833         * tests/unicase/test-u16-is-cased.c: New file.
80835         Tests for module 'unicase/u8-is-cased'.
80836         * modules/unicase/u8-is-cased-tests: New file.
80837         * tests/unicase/test-u8-is-cased.c: New file.
80838         * tests/unicase/test-is-cased.h: New file.
80840         New module 'unicase/u32-is-cased'.
80841         * lib/unicase/u32-is-cased.c: New file.
80842         * modules/unicase/u32-is-cased: New file.
80844         New module 'unicase/u16-is-cased'.
80845         * lib/unicase/u16-is-cased.c: New file.
80846         * modules/unicase/u16-is-cased: New file.
80848         New module 'unicase/u8-is-cased'.
80849         * lib/unicase/u8-is-cased.c: New file.
80850         * lib/unicase/u-is-cased.h: New file.
80851         * modules/unicase/u8-is-cased: New file.
80853         Tests for module 'unicase/u32-is-casefolded'.
80854         * modules/unicase/u32-is-casefolded-tests: New file.
80855         * tests/unicase/test-u32-is-casefolded.c: New file.
80857         Tests for module 'unicase/u16-is-casefolded'.
80858         * modules/unicase/u16-is-casefolded-tests: New file.
80859         * tests/unicase/test-u16-is-casefolded.c: New file.
80861         Tests for module 'unicase/u8-is-casefolded'.
80862         * modules/unicase/u8-is-casefolded-tests: New file.
80863         * tests/unicase/test-u8-is-casefolded.c: New file.
80864         * tests/unicase/test-is-casefolded.h: New file.
80866         New module 'unicase/u32-is-casefolded'.
80867         * lib/unicase/u32-is-casefolded.c: New file.
80868         * modules/unicase/u32-is-casefolded: New file.
80870         New module 'unicase/u16-is-casefolded'.
80871         * lib/unicase/u16-is-casefolded.c: New file.
80872         * modules/unicase/u16-is-casefolded: New file.
80874         New module 'unicase/u8-is-casefolded'.
80875         * lib/unicase/u8-is-casefolded.c: New file.
80876         * modules/unicase/u8-is-casefolded: New file.
80878         Tests for module 'unicase/u32-is-titlecase'.
80879         * modules/unicase/u32-is-titlecase-tests: New file.
80880         * tests/unicase/test-u32-is-titlecase.c: New file.
80882         Tests for module 'unicase/u16-is-titlecase'.
80883         * modules/unicase/u16-is-titlecase-tests: New file.
80884         * tests/unicase/test-u16-is-titlecase.c: New file.
80886         Tests for module 'unicase/u8-is-titlecase'.
80887         * modules/unicase/u8-is-titlecase-tests: New file.
80888         * tests/unicase/test-u8-is-titlecase.c: New file.
80889         * tests/unicase/test-is-titlecase.h: New file.
80891         New module 'unicase/u32-is-titlecase'.
80892         * lib/unicase/u32-is-titlecase.c: New file.
80893         * modules/unicase/u32-is-titlecase: New file.
80895         New module 'unicase/u16-is-titlecase'.
80896         * lib/unicase/u16-is-titlecase.c: New file.
80897         * modules/unicase/u16-is-titlecase: New file.
80899         New module 'unicase/u8-is-titlecase'.
80900         * lib/unicase/u8-is-titlecase.c: New file.
80901         * modules/unicase/u8-is-titlecase: New file.
80903         Tests for module 'unicase/u32-is-lowercase'.
80904         * modules/unicase/u32-is-lowercase-tests: New file.
80905         * tests/unicase/test-u32-is-lowercase.c: New file.
80907         Tests for module 'unicase/u16-is-lowercase'.
80908         * modules/unicase/u16-is-lowercase-tests: New file.
80909         * tests/unicase/test-u16-is-lowercase.c: New file.
80911         Tests for module 'unicase/u8-is-lowercase'.
80912         * modules/unicase/u8-is-lowercase-tests: New file.
80913         * tests/unicase/test-u8-is-lowercase.c: New file.
80914         * tests/unicase/test-is-lowercase.h: New file.
80916         New module 'unicase/u32-is-lowercase'.
80917         * lib/unicase/u32-is-lowercase.c: New file.
80918         * modules/unicase/u32-is-lowercase: New file.
80920         New module 'unicase/u16-is-lowercase'.
80921         * lib/unicase/u16-is-lowercase.c: New file.
80922         * modules/unicase/u16-is-lowercase: New file.
80924         New module 'unicase/u8-is-lowercase'.
80925         * lib/unicase/u8-is-lowercase.c: New file.
80926         * modules/unicase/u8-is-lowercase: New file.
80928         Tests for module 'unicase/u32-is-uppercase'.
80929         * modules/unicase/u32-is-uppercase-tests: New file.
80930         * tests/unicase/test-u32-is-uppercase.c: New file.
80932         Tests for module 'unicase/u16-is-uppercase'.
80933         * modules/unicase/u16-is-uppercase-tests: New file.
80934         * tests/unicase/test-u16-is-uppercase.c: New file.
80936         Tests for module 'unicase/u8-is-uppercase'.
80937         * modules/unicase/u8-is-uppercase-tests: New file.
80938         * tests/unicase/test-u8-is-uppercase.c: New file.
80939         * tests/unicase/test-is-uppercase.h: New file.
80941         New module 'unicase/u32-is-uppercase'.
80942         * lib/unicase/u32-is-uppercase.c: New file.
80943         * modules/unicase/u32-is-uppercase: New file.
80945         New module 'unicase/u16-is-uppercase'.
80946         * lib/unicase/u16-is-uppercase.c: New file.
80947         * modules/unicase/u16-is-uppercase: New file.
80949         New module 'unicase/u8-is-uppercase'.
80950         * lib/unicase/u8-is-uppercase.c: New file.
80951         * modules/unicase/u8-is-uppercase: New file.
80953         New module 'unicase/u32-is-invariant'.
80954         * lib/unicase/u32-is-invariant.c: New file.
80955         * modules/unicase/u32-is-invariant: New file.
80957         New module 'unicase/u16-is-invariant'.
80958         * lib/unicase/u16-is-invariant.c: New file.
80959         * modules/unicase/u16-is-invariant: New file.
80961         New module 'unicase/u8-is-invariant'.
80962         * lib/unicase/u8-is-invariant.c: New file.
80963         * lib/unicase/invariant.h: New file.
80964         * lib/unicase/u-is-invariant.h: New file.
80965         * modules/unicase/u8-is-invariant: New file.
80967         Tests for module 'unicase/u32-casecoll'.
80968         * modules/unicase/u32-casecoll-tests: New file.
80969         * tests/unicase/test-u32-casecoll.c: New file.
80971         Tests for module 'unicase/u16-casecoll'.
80972         * modules/unicase/u16-casecoll-tests: New file.
80973         * tests/unicase/test-u16-casecoll.c: New file.
80975         Tests for module 'unicase/u8-casecoll'.
80976         * modules/unicase/u8-casecoll-tests: New file.
80977         * tests/unicase/test-u8-casecoll.c: New file.
80979         New module 'unicase/u32-casecoll'.
80980         * lib/unicase/u32-casecoll.c: New file.
80981         * modules/unicase/u32-casecoll: New file.
80983         New module 'unicase/u16-casecoll'.
80984         * lib/unicase/u16-casecoll.c: New file.
80985         * modules/unicase/u16-casecoll: New file.
80987         New module 'unicase/u8-casecoll'.
80988         * lib/unicase/u8-casecoll.c: New file.
80989         * lib/unicase/u-casecoll.h: New file.
80990         * modules/unicase/u8-casecoll: New file.
80992         New module 'unicase/u32-casexfrm'.
80993         * lib/unicase/u32-casexfrm.c: New file.
80994         * modules/unicase/u32-casexfrm: New file.
80996         New module 'unicase/u16-casexfrm'.
80997         * lib/unicase/u16-casexfrm.c: New file.
80998         * modules/unicase/u16-casexfrm: New file.
81000         New module 'unicase/u8-casexfrm'.
81001         * lib/unicase/u8-casexfrm.c: New file.
81002         * lib/unicase/u-casexfrm.h: New file.
81003         * modules/unicase/u8-casexfrm: New file.
81005         Tests for module 'unicase/u32-casecmp'.
81006         * modules/unicase/u32-casecmp-tests: New file.
81007         * tests/unicase/test-u32-casecmp.c: New file.
81009         Tests for module 'unicase/u16-casecmp'.
81010         * modules/unicase/u16-casecmp-tests: New file.
81011         * tests/unicase/test-u16-casecmp.c: New file.
81013         Tests for module 'unicase/u8-casecmp'.
81014         * modules/unicase/u8-casecmp-tests: New file.
81015         * tests/unicase/test-u8-casecmp.c: New file.
81016         * tests/unicase/test-casecmp.h: New file.
81018         New module 'unicase/u32-casecmp'.
81019         * lib/unicase/u32-casecmp.c: New file.
81020         * modules/unicase/u32-casecmp: New file.
81022         New module 'unicase/u16-casecmp'.
81023         * lib/unicase/u16-casecmp.c: New file.
81024         * modules/unicase/u16-casecmp: New file.
81026         New module 'unicase/u8-casecmp'.
81027         * lib/unicase/u8-casecmp.c: New file.
81028         * lib/unicase/u-casecmp.h: New file.
81029         * modules/unicase/u8-casecmp: New file.
81031         Tests for module 'unicase/u32-casefold'.
81032         * modules/unicase/u32-casefold-tests: New file.
81033         * tests/unicase/test-u32-casefold.c: New file.
81035         Tests for module 'unicase/u16-casefold'.
81036         * modules/unicase/u16-casefold-tests: New file.
81037         * tests/unicase/test-u16-casefold.c: New file.
81039         Tests for module 'unicase/u8-casefold'.
81040         * modules/unicase/u8-casefold-tests: New file.
81041         * tests/unicase/test-u8-casefold.c: New file.
81043         New module 'unicase/u32-casefold'.
81044         * lib/unicase/u32-casefold.c: New file.
81045         * modules/unicase/u32-casefold: New file.
81047         New module 'unicase/u16-casefold'.
81048         * lib/unicase/u16-casefold.c: New file.
81049         * modules/unicase/u16-casefold: New file.
81051         New module 'unicase/u8-casefold'.
81052         * lib/unicase/u8-casefold.c: New file.
81053         * lib/unicase/u-casefold.h: New file.
81054         * modules/unicase/u8-casefold: New file.
81056         New module 'unicase/tocasefold'.
81057         * lib/unicase/casefold.h: New file.
81058         * lib/unicase/tocasefold.c: New file.
81059         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81060         * modules/unicase/tocasefold: New file.
81062         Tests for module 'unicase/u32-totitle'.
81063         * modules/unicase/u32-totitle-tests: New file.
81064         * tests/unicase/test-u32-totitle.c: New file.
81066         Tests for module 'unicase/u16-totitle'.
81067         * modules/unicase/u16-totitle-tests: New file.
81068         * tests/unicase/test-u16-totitle.c: New file.
81070         Tests for module 'unicase/u8-totitle'.
81071         * modules/unicase/u8-totitle-tests: New file.
81072         * tests/unicase/test-u8-totitle.c: New file.
81074         New module 'unicase/u32-totitle'.
81075         * lib/unicase/u32-totitle.c: New file.
81076         * modules/unicase/u32-totitle: New file.
81078         New module 'unicase/u16-totitle'.
81079         * lib/unicase/u16-totitle.c: New file.
81080         * modules/unicase/u16-totitle: New file.
81082         New module 'unicase/u8-totitle'.
81083         * lib/unicase/u8-totitle.c: New file.
81084         * lib/unicase/u-totitle.h: New file.
81085         * modules/unicase/u8-totitle: New file.
81087         Tests for module 'unicase/u32-tolower'.
81088         * modules/unicase/u32-tolower-tests: New file.
81089         * tests/unicase/test-u32-tolower.c: New file.
81091         Tests for module 'unicase/u16-tolower'.
81092         * modules/unicase/u16-tolower-tests: New file.
81093         * tests/unicase/test-u16-tolower.c: New file.
81095         Tests for module 'unicase/u8-tolower'.
81096         * modules/unicase/u8-tolower-tests: New file.
81097         * tests/unicase/test-u8-tolower.c: New file.
81099         New module 'unicase/u32-tolower'.
81100         * lib/unicase/u32-tolower.c: New file.
81101         * modules/unicase/u32-tolower: New file.
81103         New module 'unicase/u16-tolower'.
81104         * lib/unicase/u16-tolower.c: New file.
81105         * modules/unicase/u16-tolower: New file.
81107         New module 'unicase/u8-tolower'.
81108         * lib/unicase/u8-tolower.c: New file.
81109         * modules/unicase/u8-tolower: New file.
81111         Tests for module 'unicase/u32-toupper'.
81112         * modules/unicase/u32-toupper-tests: New file.
81113         * tests/unicase/test-u32-toupper.c: New file.
81115         Tests for module 'unicase/u16-toupper'.
81116         * modules/unicase/u16-toupper-tests: New file.
81117         * tests/unicase/test-u16-toupper.c: New file.
81119         Tests for module 'unicase/u8-toupper'.
81120         * modules/unicase/u8-toupper-tests: New file.
81121         * tests/unicase/test-u8-toupper.c: New file.
81123         New module 'unicase/u32-toupper'.
81124         * lib/unicase/u32-toupper.c: New file.
81125         * modules/unicase/u32-toupper: New file.
81127         New module 'unicase/u16-toupper'.
81128         * lib/unicase/u16-toupper.c: New file.
81129         * modules/unicase/u16-toupper: New file.
81131         New module 'unicase/u8-toupper'.
81132         * lib/unicase/u8-toupper.c: New file.
81133         * modules/unicase/u8-toupper: New file.
81135         New module 'unicase/u32-casemap'.
81136         * lib/unicase/u32-casemap.c: New file.
81137         * modules/unicase/u32-casemap: New file.
81139         New module 'unicase/u16-casemap'.
81140         * lib/unicase/u16-casemap.c: New file.
81141         * modules/unicase/u16-casemap: New file.
81143         New module 'unicase/u8-casemap'.
81144         * lib/unicase/unicasemap.h: New file.
81145         * lib/unicase/u8-casemap.c: New file.
81146         * lib/unicase/u-casemap.h: New file.
81147         * modules/unicase/u8-casemap: New file.
81149         New module 'unicase/special-casing'.
81150         * lib/unicase/special-casing.h: New file.
81151         * lib/unicase/special-casing.c: New file.
81152         * lib/unicase/special-casing-table.gperf: New file, generated by
81153         gen-uni-tables.c.
81154         * modules/unicase/special-casing: New file.
81156         Tests for module 'unicase/locale-language'.
81157         * modules/unicase/locale-language-tests: New file.
81158         * tests/unicase/test-locale-language.sh: New file.
81159         * tests/unicase/test-locale-language.c: New file.
81161         New module 'unicase/locale-language'.
81162         * lib/unicase/locale-language.c: New file.
81163         * lib/unicase/locale-languages.gperf: New file.
81164         * modules/unicase/locale-language: New file.
81166         Generate more tables for case conversion and case folding.
81167         * lib/gen-uni-tables.c (SCC_*): New enum items.
81168         (struct special_casing_rule): New type.
81169         (casing_rules, num_casing_rules, allocated_casing_rules): New
81170         variables.
81171         (add_casing_rule, fill_casing_rules): New functions.
81172         (struct casefold_rule): New type.
81173         (casefolding_rules, num_casefolding_rules,
81174         allocated_casefolding_rules): New variables.
81175         (fill_casefolding_rules): New function.
81176         (unicode_casefold): New variable.
81177         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81178         sort_casing_rules, output_casing_rules): New functions.
81179         (main): Accept to more arguments: SpecialCasing.txt and
81180         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81181         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81182         Output mapping for casefolding.
81184         * lib/unicase.h: Include stdbool.h, uninorm.h.
81185         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81186         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81187         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81188         arguments.
81189         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81190         resultp arguments.
81191         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81192         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81193         resultp arguments.
81194         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81195         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81196         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81197         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81198         declarations.
81199         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81201 2009-03-08  Bruno Haible  <bruno@clisp.org>
81203         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81204         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81205         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81206         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81208 2009-03-07  Bruno Haible  <bruno@clisp.org>
81210         Adjust u*_normcmp, u*_normcoll API.
81211         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81212         u16_normcoll, u32_normcoll): Change failure conventions.
81213         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81214         errno and return -1.
81215         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81217 2009-03-07  Bruno Haible  <bruno@clisp.org>
81219         Tests for module 'uninorm/u32-normcoll'.
81220         * modules/uninorm/u32-normcoll-tests: New file.
81221         * tests/uninorm/test-u32-normcoll.c: New file.
81223         Tests for module 'uninorm/u16-normcoll'.
81224         * modules/uninorm/u16-normcoll-tests: New file.
81225         * tests/uninorm/test-u16-normcoll.c: New file.
81227         Tests for module 'uninorm/u8-normcoll'.
81228         * modules/uninorm/u8-normcoll-tests: New file.
81229         * tests/uninorm/test-u8-normcoll.c: New file.
81231 2009-03-07  Bruno Haible  <bruno@clisp.org>
81233         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81234         tests/uninorm/test-u32-normcmp.c.
81235         * tests/uninorm/test-u32-normcmp.c: Include it.
81236         (test_nonascii): New function, extracted from main. Add some more
81237         tests.
81238         (main): Invoke test_ascii and test_nonascii.
81239         * modules/uninorm/u32-normcmp-tests (Files): Add
81240         tests/uninorm/test-u32-normcmp.h.
81241         (Depends-on): Remove uninorm/u32-normcmp.
81243         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81244         tests/uninorm/test-u16-normcmp.c.
81245         * tests/uninorm/test-u16-normcmp.c: Include it.
81246         (test_nonascii): New function, extracted from main. Add some more
81247         tests.
81248         (main): Invoke test_ascii and test_nonascii.
81249         * modules/uninorm/u16-normcmp-tests (Files): Add
81250         tests/uninorm/test-u16-normcmp.h.
81251         (Depends-on): Remove uninorm/u16-normcmp.
81253         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81254         tests/uninorm/test-u8-normcmp.c.
81255         * tests/uninorm/test-u8-normcmp.c: Include it.
81256         (test_nonascii): New function, extracted from main. Add some more
81257         tests.
81258         (main): Invoke test_ascii and test_nonascii.
81259         * modules/uninorm/u8-normcmp-tests (Files): Add
81260         tests/uninorm/test-u8-normcmp.h.
81261         (Depends-on): Remove uninorm/u8-normcmp.
81263 2009-03-07  Bruno Haible  <bruno@clisp.org>
81265         New module 'uninorm/u32-normcoll'.
81266         * lib/uninorm/u32-normcoll.c: New file.
81267         * modules/uninorm/u32-normcoll: New file.
81269         New module 'uninorm/u16-normcoll'.
81270         * lib/uninorm/u16-normcoll.c: New file.
81271         * modules/uninorm/u16-normcoll: New file.
81273         New module 'uninorm/u8-normcoll'.
81274         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81275         declarations.
81276         * lib/uninorm/u8-normcoll.c: New file.
81277         * lib/uninorm/u-normcoll.h: New file.
81278         * modules/uninorm/u8-normcoll: New file.
81280         New module 'uninorm/u32-normxfrm'.
81281         * lib/uninorm/u32-normxfrm.c: New file.
81282         * modules/uninorm/u32-normxfrm: New file.
81284         New module 'uninorm/u16-normxfrm'.
81285         * lib/uninorm/u16-normxfrm.c: New file.
81286         * modules/uninorm/u16-normxfrm: New file.
81288         New module 'uninorm/u8-normxfrm'.
81289         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81290         declarations.
81291         * lib/uninorm/u8-normxfrm.c: New file.
81292         * lib/uninorm/u-normxfrm.h: New file.
81293         * modules/uninorm/u8-normxfrm: New file.
81295 2009-03-07  Bruno Haible  <bruno@clisp.org>
81297         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81298         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81299         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81301 2009-03-07  Bruno Haible  <bruno@clisp.org>
81303         New module 'memxfrm'.
81304         * lib/memxfrm.h: New file.
81305         * lib/memxfrm.c: New file.
81306         * modules/memxfrm: New file.
81308 2009-03-07  Bruno Haible  <bruno@clisp.org>
81310         New module 'memcmp2'.
81311         * lib/memcmp2.h: New file.
81312         * lib/memcmp2.c: New file.
81313         * modules/memcmp2: New file.
81315 2009-03-07  Bruno Haible  <bruno@clisp.org>
81317         Tests for module 'uninorm/decomposing-form'.
81318         * modules/uninorm/decomposing-form-tests: New file.
81319         * tests/uninorm/test-decomposing-form.c: New file.
81321         New module 'uninorm/decomposing-form'.
81322         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81323         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81324         Add 'decomposing_variant' field.
81325         * lib/uninorm/decomposing-form.c: New file.
81326         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81327         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81328         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81329         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81330         * modules/uninorm/decomposing-form: New file.
81331         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81332         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81334 2009-03-07  Bruno Haible  <bruno@clisp.org>
81336         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81337         strings.
81339 2009-03-06  Bruno Haible  <bruno@clisp.org>
81341         Tests for module 'uninorm/u32-normcmp'.
81342         * tests/uninorm/test-u32-normcmp.c: New file.
81343         * modules/uninorm/u32-normcmp-tests: New file.
81345         Tests for module 'uninorm/u16-normcmp'.
81346         * tests/uninorm/test-u16-normcmp.c: New file.
81347         * modules/uninorm/u16-normcmp-tests: New file.
81349         Tests for module 'uninorm/u8-normcmp'.
81350         * tests/uninorm/test-u8-normcmp.c: New file.
81351         * modules/uninorm/u8-normcmp-tests: New file.
81353         New module 'uninorm/u32-normcmp'.
81354         * lib/uninorm/u32-normcmp.c: New file.
81355         * modules/uninorm/u32-normcmp: New file.
81357         New module 'uninorm/u16-normcmp'.
81358         * lib/uninorm/u16-normcmp.c: New file.
81359         * modules/uninorm/u16-normcmp: New file.
81361         New module 'uninorm/u8-normcmp'.
81362         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81363         declarations.
81364         * lib/uninorm/u8-normcmp.c: New file.
81365         * lib/uninorm/u-normcmp.h: New file.
81366         * modules/uninorm/u8-normcmp: New file.
81368 2009-03-06  Bruno Haible  <bruno@clisp.org>
81370         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81371         Reported by Eric Blake.
81373 2009-03-06  Eric Blake  <ebb9@byu.net>
81374             Bruno Haible  <bruno@clisp.org>
81376         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81377         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81378         condition.
81379         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81380         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81381         condition.
81382         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81384 2009-03-06  Eric Blake  <ebb9@byu.net>
81386         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81387         to avoid compiler warnings.
81388         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81390 2009-03-05  Bruno Haible  <bruno@clisp.org>
81392         * tests/test-ftell.c (main): Disable test beyond end of file on
81393         FreeMiNT.
81394         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81396 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81398         * lib/filevercmp.c: Move hidden files up in ordering.
81399         * tests/test-filevercmp.c: Add tests for hidden files.
81401 2009-03-04  Bruno Haible  <bruno@clisp.org>
81403         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81404         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81405         AM_CFLAGS.
81406         Reported by Simon Josefsson.
81408 2009-03-03  Bruno Haible  <bruno@clisp.org>
81410         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81411         Reported by Simon Josefsson.
81413         * doc/ld-version-script.texi: Update node reference.
81415 2009-03-03  Bruno Haible  <bruno@clisp.org>
81417         * modules/visibility (License): Change to 'unlimited'.
81418         Suggested by Simon Josefsson.
81420 2009-03-03  Jim Meyering  <meyering@redhat.com>
81422         unlinkdir: cannot_unlink_dir may modify process state
81423         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81424         it's neither thread-safe nor appropriate for use in a library.
81426 2009-03-03  Eric Blake  <ebb9@byu.net>
81428         test-closein: silence test under Darwin
81429         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81430         care if it dies from EPIPE or EBADF.
81432 2009-03-03  Bruno Haible  <bruno@clisp.org>
81434         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81435         earlier.
81436         * doc/visibility.texi: Fix @node and @section.
81438 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81440         * doc/gnulib.texi: Link to sections for ld version script and
81441         visibility.
81442         * doc/visibility.texi: Add @node and @section.
81443         * modules/ld-version-script: New module.
81444         * m4/ld-version-script.m4: New file.
81445         * doc/ld-version-script.texi: New file.
81447 2009-03-02  David Lutterkort  <lutter@redhat.com>
81449         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81452 2009-03-02  Bruno Haible  <bruno@clisp.org>
81454         * doc/visibility.texi: Mention libtool's -export-symbols option.
81456 2009-03-02  Jim Meyering  <meyering@redhat.com>
81458         announce-gen: new option: --no-print-checksums
81459         * build-aux/announce-gen (usage): Describe it.
81460         (print_checksums): Print a newline here, not in the [*] footnote.
81461         (main): Honor it.
81463 2009-03-01  Bruno Haible  <bruno@clisp.org>
81465         Use socklen_t in the native Windows replacements prototypes.
81466         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81467         instead of 'int'.
81468         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81469         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81470         * modules/getsockopt (Depends-on): Add socklen.
81471         * modules/setsockopt (Depends-on): Add socklen.
81473 2009-03-01  Bruno Haible  <bruno@clisp.org>
81475         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81476         least 4.2.
81478 2009-03-01  Eric Blake  <ebb9@byu.net>
81479             Bruno Haible  <bruno@clisp.org>
81481         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81482         error messages.
81483         * lib/wait-process.c (wait_subprocess): Omit error message about
81484         deadly signal sent to the child of termsigp != NULL.
81486 2009-03-01  Eric Blake  <ebb9@byu.net>
81488         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81490 2009-03-01  Bruno Haible  <bruno@clisp.org>
81492         Avoid a gcc warning.
81493         * tests/test-sched.c (b): Make global.
81494         Reported by Eric Blake.
81496 2009-01-19  Martin Lambers  <marlam@marlam.de>
81498         Provide POSIX semantics for socket timeout options on W32.
81499         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81500         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81501         * modules/setsockopt: Depend on sys_time module for struct timeval.
81502         * modules/getsockopt: Depend on sys_time module for struct timeval.
81504 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81506         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81507         __USE_GNU, for consistency with netdb.in.h.
81508         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81510 2009-03-01  Bruno Haible  <bruno@clisp.org>
81512         More support for FreeMiNT.
81513         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81514         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81516 2009-03-01  Bruno Haible  <bruno@clisp.org>
81518         More support for FreeMiNT.
81519         * lib/fpurge.c (fpurge): Correct last commit.
81520         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81522 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81524         Fix unportable awk script in vc-list-files.
81525         * build-aux/vc-list-files: In the replacement awk script, use
81526         substr with a second argument of 1, not zero.
81527         Report by Simon Josefsson.
81529 2009-02-28  Bruno Haible  <bruno@clisp.org>
81531         More support for FreeMiNT.
81532         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81533         to FreeMiNT today.
81534         * lib/fwriting.c (fwriting): Likewise.
81535         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81537 2009-02-28  Bruno Haible  <bruno@clisp.org>
81539         * tests/test-freadseek.c (main): Disable test beyond end of file on
81540         FreeMiNT.
81541         * tests/test-ftello.c (main): Likewise.
81542         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81544 2009-02-28  Bruno Haible  <bruno@clisp.org>
81546         Add tentative support for FreeMiNT.
81547         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81548         * lib/fpurge.c (fpurge): Likewise.
81549         * lib/freadable.c (freadable): Likewise.
81550         * lib/freading.c (freading): Likewise.
81551         * lib/freadptr.c (freadptr): Likewise.
81552         * lib/freadseek.c (freadptrinc): Likewise.
81553         * lib/fseeko.c (rpl_fseeko): Likewise.
81554         * lib/fseterr.c (fseterr): Likewise.
81555         * lib/fwritable.c (fwritable): Likewise.
81556         * lib/fwriting.c (fwriting): Likewise.
81557         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81558         Hourihane.
81559         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81561 2009-02-28  Bruno Haible  <bruno@clisp.org>
81563         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81564         SIGCHLD.
81565         Reported by Jim Meyering.
81567 2009-02-28  Bruno Haible  <bruno@clisp.org>
81569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81570         Mention the results of these tests on various platforms.
81571         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81572         order.
81573         * doc/posix-functions/printf.texi: Likewise.
81574         * doc/posix-functions/snprintf.texi: Likewise.
81575         * doc/posix-functions/sprintf.texi: Likewise.
81576         * doc/posix-functions/vfprintf.texi: Likewise.
81577         * doc/posix-functions/vprintf.texi: Likewise.
81578         * doc/posix-functions/vsnprintf.texi: Likewise.
81579         * doc/posix-functions/vsprintf.texi: Likewise.
81580         * doc/glibc-functions/obstack_printf.texi: Likewise.
81581         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81583 2009-02-28  Bruno Haible  <bruno@clisp.org>
81585         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81586         Reported by Loïc Minier <lool@dooz.org>.
81588 2009-02-27  Bruno Haible  <bruno@clisp.org>
81590         * gnulib-tool (func_import): Make the sed expression used to create the
81591         sed script for updating the .gitignore file POSIX compliant.
81592         Reported by Eric Blake.
81594 2009-02-27  Bruno Haible  <bruno@clisp.org>
81596         * gnulib-tool (sed): Don't alias as "sed --posix".
81597         Reported by Eric Blake.
81599 2009-02-27  Bruno Haible  <bruno@clisp.org>
81601         Avoid test link errors.
81602         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81603         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81604         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81605         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81608 2009-02-27  Bruno Haible  <bruno@clisp.org>
81610         Avoid spurious "(cached)" in configure output.
81611         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81612         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81613         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81614         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81615         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81616         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81617         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81618         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81619         Reported by Eric Blake.
81621 2009-02-27  Eric Blake  <ebb9@byu.net>
81623         printf: fix regression in previous patch
81624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81626 2009-02-27  Bruno Haible  <bruno@clisp.org>
81628         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81629         value.
81630         * lib/stdint.in.h: Likewise.
81631         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81633 2009-02-27  Eric Blake  <ebb9@byu.net>
81635         doc: mention more functions added in cygwin 1.7.0
81636         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81637         addition.
81638         * doc/posix-functions/open_wmemstream.texi: Likewise.
81639         * doc/posix-functions/wcsnlen.texi: Likewise.
81640         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81641         * doc/posix-functions/wcstod.texi: Likewise.
81642         * doc/posix-functions/wcstof.texi: Likewise.
81643         * doc/posix-functions/wcstoimax.texi: Likewise.
81644         * doc/posix-functions/wcstok.texi: Likewise.
81645         * doc/posix-functions/wcstoumax.texi: Likewise.
81647         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81649         * doc/posix-functions/fprintf.texi: Update.
81650         * doc/posix-functions/printf.texi: Update.
81651         * doc/posix-functions/snprintf.texi: Update.
81652         * doc/posix-functions/sprintf.texi: Update.
81653         * doc/posix-functions/vfprintf.texi: Update.
81654         * doc/posix-functions/vprintf.texi: Update.
81655         * doc/posix-functions/vsnprintf.texi: Update.
81656         * doc/posix-functions/vsprintf.texi: Update.
81657         * doc/glibc-functions/obstack_printf.texi: Update.
81658         * doc/glibc-functions/obstack_vprintf.texi: Update.
81660 2009-02-26  Eric Blake  <ebb9@byu.net>
81662         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81663         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81664         compilation bug by using runtime conversion.
81665         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81666         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81667         * modules/ceill-tests (Files): Use nan.h.
81668         * modules/floorl-tests (Files): Likewise.
81669         * modules/frexpl-tests (Files): Likewise.
81670         * modules/isnanl-tests (Files): Likewise.
81671         * modules/ldexpl-tests (Files): Likewise.
81672         * modules/roundl-tests (Files): Likewise.
81673         * modules/truncl-tests (Files): Likewise.
81674         * tests/test-ceill.c (main): Use a working NaN.
81675         * tests/test-floorl.c (main): Likewise.
81676         * tests/test-frexpl.c (main): Likewise.
81677         * tests/test-isnan.c (test_long_double): Likewise.
81678         * tests/test-isnanl.h (main): Likewise.
81679         * tests/test-ldexpl.h (main): Likewise.
81680         * tests/test-roundl.h (main): Likewise.
81681         * tests/test-truncl.h (main): Likewise.
81682         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81684 2009-02-26  Eric Blake  <ebb9@byu.net>
81685             Bruno Haible  <bruno@clisp.org>
81687         Work around a *printf bug with %ls on Solaris.
81688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81689         precision is specified, sprintf stops converting the wide string
81690         argument when the number of bytes that have been produced by this
81691         conversion equals or exceeds the precision.
81692         * doc/posix-functions/fprintf.texi: Update.
81693         * doc/posix-functions/printf.texi: Update.
81694         * doc/posix-functions/snprintf.texi: Update.
81695         * doc/posix-functions/sprintf.texi: Update.
81696         * doc/posix-functions/vfprintf.texi: Update.
81697         * doc/posix-functions/vprintf.texi: Update.
81698         * doc/posix-functions/vsnprintf.texi: Update.
81699         * doc/posix-functions/vsprintf.texi: Update.
81700         * doc/glibc-functions/obstack_printf.texi: Update.
81701         * doc/glibc-functions/obstack_vprintf.texi: Update.
81703 2009-02-26  Eric Blake  <ebb9@byu.net>
81705         stdlib: favor compiler check of random.h
81706         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81707         to avoid an ObjC random.h installed by Swarm.
81709 2009-02-26  Bruno Haible  <bruno@clisp.org>
81711         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81712         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81713         Reported by Gary V. Vaughan <gary@gnu.org>.
81715 2009-02-26  Bruno Haible  <bruno@clisp.org>
81717         Fix *printf behaviour regarding the %ls directive.
81718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81719         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81720         NEED_PRINTF_DIRECTIVE_LS.
81721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81722         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81724         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81725         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81726         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81727         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81732         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81736         * doc/posix-functions/fprintf.texi: Update.
81737         * doc/posix-functions/printf.texi: Update.
81738         * doc/posix-functions/snprintf.texi: Update.
81739         * doc/posix-functions/sprintf.texi: Update.
81740         * doc/posix-functions/vfprintf.texi: Update.
81741         * doc/posix-functions/vprintf.texi: Update.
81742         * doc/posix-functions/vsnprintf.texi: Update.
81743         * doc/posix-functions/vsprintf.texi: Update.
81744         * doc/glibc-functions/obstack_printf.texi: Update.
81745         * doc/glibc-functions/obstack_vprintf.texi: Update.
81746         Reported by Eric Blake.
81748 2009-02-25  Bruno Haible  <bruno@clisp.org>
81750         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81751         with known value.
81752         Reported by Gary V. Vaughan <gary@gnu.org>.
81754 2009-02-25  Bruno Haible  <bruno@clisp.org>
81756         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81757         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81758         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81759         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81760         Reported by Gary V. Vaughan <gary@gnu.org>.
81762 2009-02-25  Bruno Haible  <bruno@clisp.org>
81764         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81765         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81766         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81767         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81768         Reported by Gary V. Vaughan <gary@gnu.org>.
81770 2009-02-25  Eric Blake  <ebb9@byu.net>
81772         tests: skip fseek/ftell tests if ungetc is broken
81773         * m4/ungetc.m4: New file.
81774         * modules/fseek-tests: Split test, so ungetc dependency is
81775         separate from rest of test.
81776         * modules/fseeko-tests: Likewise.
81777         * modules/ftell-tests: Likewise.
81778         * modules/ftello-tests: Likewise.
81779         * tests/test-fseek.c (main): Isolate ungetc dependency.
81780         * tests/test-fseeko.c (main): Likewise.
81781         * tests/test-ftell.c (main): Likewise.
81782         * tests/test-ftello.c (main): Likewise.
81783         * tests/test-fseek2.sh: New file.
81784         * tests/test-fseeko2.sh: Likewise.
81785         * tests/test-ftell2.sh: Likewise.
81786         * tests/test-ftello2.sh: Likewise.
81788 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81790         test-getaddrinfo: fix usage of skip return code 77
81791         * tests/test-gettaddrinfo.c: Return skip code 77 only
81792         for first occurrence of skip (4x77 is not 77)
81794 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81796         strtod: avoid C99 decl-after-statement
81797         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81799 2009-02-24  Eric Blake  <ebb9@byu.net>
81801         strtod: detect HP-UX 11.31 bug
81802         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81803         Reported by Gary V. Vaughan.
81805 2009-02-23  Bruno Haible  <bruno@clisp.org>
81807         Fix invalid read past end of memory block.
81808         * lib/vasnprintf.c (DCHAR_SET): Define.
81809         (local_wcslen): Define only when needed.
81810         (local_strnlen, local_wcsnlen): New functions.
81811         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81812         directives that involve a conversion ourselves.
81813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81814         wcsnlen, mbrtowc, wcrtomb.
81815         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81816         * tests/test-vasprintf-posix.c (test_function): Likewise.
81817         * tests/test-snprintf-posix.h (test_function): Likewise.
81818         * tests/test-sprintf-posix.h (test_function): Likewise.
81819         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81821 2009-02-22  Bruno Haible  <bruno@clisp.org>
81823         Implement new clarified decomposition of Hangul syllables.
81824         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81825         of type LTV, return only a pairwise decomposition.
81826         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81827         Likewise.
81828         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81829         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81830         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81832 2009-02-22  Bruno Haible  <bruno@clisp.org>
81834         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81835         zero-length results and shrink excess allocated memory.
81836         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81837         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81838         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81839         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81840         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81841         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81842         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81843         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81844         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81845         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81846         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81847         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81849 2009-02-21  Bruno Haible  <bruno@clisp.org>
81851         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81852         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81853         spaces after a period. Put a space between a macro name and its
81854         argument list. Trivial rewordings.
81855         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81856         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81857         (main): Return 0 explicitly.
81859 2009-02-21  Bruno Haible  <bruno@clisp.org>
81861         Tests for module 'uninorm/filter'.
81862         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81863         * modules/uninorm/filter-tests: New file.
81865         New module 'uninorm/filter'.
81866         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81867         uninorm_filter_flush, uninorm_filter_free): New declarations.
81868         * lib/uninorm/uninorm-filter.c: New file.
81869         * modules/uninorm/filter: New file.
81871 2009-02-21  Bruno Haible  <bruno@clisp.org>
81873         Tests for module 'uninorm/nfkc'.
81874         * tests/uninorm/test-nfkc.c: New file.
81875         * tests/uninorm/test-u8-nfkc.c: New file.
81876         * tests/uninorm/test-u16-nfkc.c: New file.
81877         * tests/uninorm/test-u32-nfkc.c: New file.
81878         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81879         * tests/uninorm/test-u32-nfkc-big.c: New file.
81880         * modules/uninorm/nfkc-tests: New file.
81882         New module 'uninorm/nfkc'.
81883         * lib/uninorm/nfkc.c: New file.
81884         * modules/uninorm/nfkc: New file.
81886         Tests for module 'uninorm/nfkd'.
81887         * tests/uninorm/test-nfkd.c: New file.
81888         * tests/uninorm/test-u8-nfkd.c: New file.
81889         * tests/uninorm/test-u16-nfkd.c: New file.
81890         * tests/uninorm/test-u32-nfkd.c: New file.
81891         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81892         * tests/uninorm/test-u32-nfkd-big.c: New file.
81893         * modules/uninorm/nfkd-tests: New file.
81895         New module 'uninorm/nfkd'.
81896         * lib/uninorm/nfkd.c: New file.
81897         * modules/uninorm/nfkd: New file.
81899         Tests for module 'uninorm/nfc'.
81900         * tests/uninorm/test-nfc.c: New file.
81901         * tests/uninorm/test-u8-nfc.c: New file.
81902         * tests/uninorm/test-u16-nfc.c: New file.
81903         * tests/uninorm/test-u32-nfc.c: New file.
81904         * tests/uninorm/test-u32-nfc-big.sh: New file.
81905         * tests/uninorm/test-u32-nfc-big.c: New file.
81906         * modules/uninorm/nfc-tests: New file.
81908         New module 'uninorm/nfc'.
81909         * lib/uninorm/nfc.c: New file.
81910         * modules/uninorm/nfc: New file.
81912         Tests for module 'uninorm/nfd'.
81913         * tests/uninorm/test-nfd.c: New file.
81914         * tests/uninorm/test-u8-nfd.c: New file.
81915         * tests/uninorm/test-u16-nfd.c: New file.
81916         * tests/uninorm/test-u32-nfd.c: New file.
81917         * tests/uninorm/test-u32-nfd-big.sh: New file.
81918         * tests/uninorm/test-u32-nfd-big.c: New file.
81919         * tests/uninorm/test-u32-normalize-big.h: New file.
81920         * tests/uninorm/test-u32-normalize-big.c: New file.
81921         * tests/uninorm/NormalizationTest.txt: New file, created from
81922         Unicode 5.1.0 NormalizationTest.txt.
81923         * modules/uninorm/nfd-tests: New file.
81925         New module 'uninorm/nfd'.
81926         * lib/uninorm/nfd.c: New file.
81927         * modules/uninorm/nfd: New file.
81929         New module 'uninorm/u32-normalize'.
81930         * lib/uninorm/u32-normalize.c: New file.
81931         * modules/uninorm/u32-normalize: New file.
81933         New module 'uninorm/u16-normalize'.
81934         * lib/uninorm/u16-normalize.c: New file.
81935         * modules/uninorm/u16-normalize: New file.
81937         New module 'uninorm/u8-normalize'.
81938         * lib/uninorm/u8-normalize.c: New file.
81939         * lib/uninorm/normalize-internal.h: New file.
81940         * lib/uninorm/u-normalize-internal.h: New file.
81941         * modules/uninorm/u8-normalize: New file.
81943         New module 'uninorm/decompose-internal'.
81944         * lib/uninorm/decompose-internal.c: New file.
81945         * modules/uninorm/decompose-internal: New file.
81947         Tests for module 'uninorm/composition'.
81948         * tests/uninorm/test-composition.c: New file.
81949         * modules/uninorm/composition-tests: New file.
81951         New module 'uninorm/composition'.
81952         * lib/uninorm/composition.c: New file.
81953         * lib/uninorm/composition-table.gperf: New file, generated by
81954         gen-uni-tables.
81955         * modules/uninorm/composition: New file.
81957         Tests for module 'uninorm/compat-decomposition'.
81958         * tests/uninorm/test-compat-decomposition.c: New file.
81959         * modules/uninorm/compat-decomposition-tests: New file.
81961         New module 'uninorm/compat-decomposition'.
81962         * lib/uninorm/decompose-internal.h: New file.
81963         * lib/uninorm/compat-decomposition.c: New file.
81964         * modules/uninorm/compat-decomposition: New file.
81966         Tests for module 'uninorm/canonical-decomposition'.
81967         * tests/uninorm/test-canonical-decomposition.c: New file.
81968         * modules/uninorm/canonical-decomposition-tests: New file.
81970         New module 'uninorm/canonical-decomposition'.
81971         * lib/uninorm/canonical-decomposition.c: New file.
81972         * modules/uninorm/canonical-decomposition: New file.
81974         Tests for module 'uninorm/decomposition'.
81975         * tests/uninorm/test-decomposition.c: New file.
81976         * modules/uninorm/decomposition-tests: New file.
81978         New module 'uninorm/decomposition'.
81979         * lib/uninorm/decomposition.c: New file.
81980         * modules/uninorm/decomposition: New file.
81982         New module 'uninorm/decomposition-table'.
81983         * lib/uninorm/decomposition-table.h: New file.
81984         * lib/uninorm/decomposition-table.c: New file.
81985         * lib/uninorm/decomposition-table1.h: New file, generated by
81986         gen-uni-tables.
81987         * lib/uninorm/decomposition-table2.h: New file, generated by
81988         gen-uni-tables.
81989         * modules/uninorm/decomposition-table: New file.
81991         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
81992         (UC_DECOMP_*): New enumeration items.
81993         (get_decomposition): New function.
81994         (struct decomp_table): New type.
81995         (output_decomposition, output_decomposition_tables): New functions.
81996         (unicode_composition_exclusions): New variable.
81997         (fill_composition_exclusions, debug_output_composition_tables): New
81998         functions.
81999         (main): Accept one more argument. Invoke fill_composition_exclusions.
82000         Output decomposition and composition tables.
82002         New module 'uninorm/base'.
82003         * lib/uninorm.h: New file.
82004         * lib/unictype.h: Update comment.
82005         * modules/uninorm/base: New file.
82007 2009-02-21  David Lutterkort  <lutter@redhat.com>
82009         Tests for module 'safe-alloc'.
82010         * tests/test-safe-alloc.c: New file.
82011         * modules/safe-alloc-tests: New file.
82013         New module 'safe-alloc'.
82014         * lib/safe-alloc.h: New file.
82015         * lib/safe-alloc.c: New file.
82016         * m4/safe-alloc.m4: New file.
82017         * modules/safe-alloc: New file.
82018         * doc/safe-alloc.texi: New file.
82019         * doc/gnulib.texi: Include it.
82020         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82021         safe-alloc.
82023 2009-02-18  Bruno Haible  <bruno@clisp.org>
82025         Fix link error on non-glibc systems.
82026         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82027         variable.
82028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82030 2009-02-18  Jim Meyering  <meyering@redhat.com>
82032         fts: avoid used-uninitialized error due to recent change
82033         * lib/fts.c (fts_read): Guard uses of the new member,
82034         parent->fts_n_dirs_remaining, since it's not relevant for
82035         the parent of a directory specified on the command-line.
82037 2009-02-17  James Youngman  <jay@gnu.org>
82038             Bruno Haible  <bruno@clisp.org>
82040         * m4/include_next.m4: Reformulate comment.
82042 2009-02-16  Jim Meyering  <meyering@redhat.com>
82044         fts: add #if guards so that the fts_lgpl module still builds
82045         * lib/fts.c: Guard just-added hash-table-using parts with
82046         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82047         Reported by Simon Josefsson.
82049 2009-02-15  Bruno Haible  <bruno@clisp.org>
82051         * modules/array-mergesort-tests: New file.
82052         * tests/test-array-mergesort.c: New file.
82054         New module 'array-mergesort'.
82055         * modules/array-mergesort: New file.
82056         * lib/array-mergesort.h: New file.
82058 2009-02-15  Bruno Haible  <bruno@clisp.org>
82060         Fix 2009-02-07 commit.
82061         * lib/gen-uni-tables.c (output_predicate, output_category,
82062         output_combclass, output_bidi_category, output_decimal_digit,
82063         output_digit, output_numeric, output_mirror, output_scripts,
82064         output_ident_category, output_simple_mapping): Fix format directives.
82065         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82067 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82069         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82070         fixes are available from IBM.
82072 2009-02-13  Jim Meyering  <meyering@redhat.com>
82074         fts: arrange not to stat non-directories in more cases
82075         This makes GNU find (when it doesn't need to stat each file)
82076         *much* more efficient at traversing reiserfs file systems.
82077         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
82078         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
82079         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
82080         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
82081         (leaf_optimization_applies): New function.
82082         (LCO_hash, LCO_compare): New helper functions.
82083         (link_count_optimize_ok): New function.
82084         (fts_stat): Initialize new member (if dir).
82085         (fts_read): Decrement parent's fts_n_dirs_remaining count if
82086         we've just stat'ed a directory.  Skip the stat call when possible.
82087         ---
82088         Note this AFS-related exchange:
82089         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
82090         and note find's pioctl call in find/fstype.c.
82091         But that is necessary only if you want to enable the
82092         optimization for AFS, and for now, I don't.
82094         fts: move a function definition "up" (no semantic change)
82095         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
82096         "up" to precede upcoming use of a related function.
82098 2009-02-11  Jim Meyering  <meyering@redhat.com>
82100         fts: correct internal computation of nlinks (optimization-related)
82101         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
82102         whether the current entry is a directory, so don't test it.
82104 2009-02-10  Bruno Haible  <bruno@clisp.org>
82106         Tests for module 'uniwbrk/ulc-wordbreaks'.
82107         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
82108         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82109         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82111         Tests for module 'uniwbrk/u32-wordbreaks'.
82112         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82113         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82115         Tests for module 'uniwbrk/u16-wordbreaks'.
82116         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82117         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82119         Tests for module 'uniwbrk/u8-wordbreaks'.
82120         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82121         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82123 2009-02-10  Bruno Haible  <bruno@clisp.org>
82125         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82126         property.
82127         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82128         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82129         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82131 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82133         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82134         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82136 2009-02-10  Bruno Haible  <bruno@clisp.org>
82138         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82139         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82140         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82141         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82142         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82143         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82145 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82147         * lib/sockets.h (gl_fd_to_handle): New function.
82149         * tests/test-sockets.c: Call gl_fd_to_handle.
82151 2009-02-09  Bruno Haible  <bruno@clisp.org>
82153         * doc/havelib.texi: Document the conventions on bi-arch systems.
82155 2009-02-08  Bruno Haible  <bruno@clisp.org>
82157         Document the AC_LIB_LINKFLAGS macro.
82158         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82159         * doc/gnulib.texi: Include it.
82161 2009-02-08  Bruno Haible  <bruno@clisp.org>
82163         Fix wrong order of sections, compared to TOC.
82164         * doc/gnulib.texi: Include relocatable-maint.texi after the
82165         "Regular expressions" node, not before.
82167 2009-02-08  Bruno Haible  <bruno@clisp.org>
82169         Tests for module 'unicase/totitle'.
82170         * modules/unicase/totitle-tests: New file.
82172         Tests for module 'unicase/tolower'.
82173         * modules/unicase/tolower-tests: New file.
82175         Tests for module 'unicase/toupper'.
82176         * modules/unicase/toupper-tests: New file.
82177         * tests/unicase/test-mapping-part1.h: New file.
82178         * tests/unicase/test-mapping-part2.h: New file.
82180         New module 'unicase/totitle'.
82181         * modules/unicase/totitle: New file.
82182         * lib/unicase/totitle.c: New file.
82184         New module 'unicase/tolower'.
82185         * modules/unicase/tolower: New file.
82186         * lib/unicase/tolower.c: New file.
82188         New module 'unicase/toupper'.
82189         * modules/unicase/toupper: New file.
82190         * lib/unicase/toupper.c: New file.
82191         * lib/unicase/simple-mapping.h: New file.
82193         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82194         (mapping_table): New structure.
82195         (output_simple_mapping): New function.
82196         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82197         * modules/gen-uni-tables (Description): Update.
82198         * lib/unicase/toupper.h: New file, automatically generated by
82199         gen-uni-tables.
82200         * lib/unicase/tolower.h: New file, automatically generated by
82201         gen-uni-tables.
82202         * lib/unicase/totitle.h: New file, automatically generated by
82203         gen-uni-tables.
82204         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82205         gen-uni-tables.
82206         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82207         gen-uni-tables.
82208         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82209         gen-uni-tables.
82211         New module 'unicase/base'.
82212         * modules/unicase/base: New file.
82213         * lib/unicase.h: New file.
82215 2009-02-08  Bruno Haible  <bruno@clisp.org>
82217         New module 'uniwbrk/ulc-wordbreaks'.
82218         * modules/uniwbrk/ulc-wordbreaks: New file.
82219         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82221         New module 'uniwbrk/u32-wordbreaks'.
82222         * modules/uniwbrk/u32-wordbreaks: New file.
82223         * lib/uniwbrk/u32-wordbreaks.c: New file.
82225         New module 'uniwbrk/u16-wordbreaks'.
82226         * modules/uniwbrk/u16-wordbreaks: New file.
82227         * lib/uniwbrk/u16-wordbreaks.c: New file.
82229         New module 'uniwbrk/u8-wordbreaks'.
82230         * modules/uniwbrk/u8-wordbreaks: New file.
82231         * lib/uniwbrk/u8-wordbreaks.c: New file.
82232         * lib/uniwbrk/u-wordbreaks.h: New file.
82234         New module 'uniwbrk/table'.
82235         * modules/uniwbrk/table: New file.
82236         * lib/uniwbrk/wbrktable.h: New file.
82237         * lib/uniwbrk/wbrktable.c: New file.
82239         New module 'uniwbrk/wordbreak-property'.
82240         * modules/uniwbrk/wordbreak-property: New file.
82241         * lib/uniwbrk/wordbreak-property.c: New file.
82243         * lib/gen-uni-tables.c (WBP_*): New enum items.
82244         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82245         (unicode_org_wbp): New variable.
82246         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82247         New functions.
82248         (wbp_table): New structure.
82249         (output_wbp, output_wbrk_tables): New functions.
82250         (main): Accept additional argument. Invoke fill_org_wbp,
82251         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82252         output_wbrk_tables.
82253         * modules/gen-uni-tables (Description): Update.
82254         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82255         gen-uni-tables.
82257         New module 'uniwbrk/base'.
82258         * modules/uniwbrk/base: New file.
82259         * lib/uniwbrk.h: New file.
82261 2009-02-08  Bruno Haible  <bruno@clisp.org>
82263         Update to Unicode 5.1.0.
82264         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82265         U+2185..U+2188.
82266         (is_property_default_ignorable_code_point): Don't include characters
82267         of category Cc or Cs and not-a-characters.
82268         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82269         U+0D79, U+109E, U+109F, U+A60C.
82270         * lib/unictype/bidi_of.h: Regenerated.
82271         * lib/unictype/blocks.h: Regenerated.
82272         * lib/unictype/categ_C.h: Regenerated.
82273         * lib/unictype/categ_Cf.h: Regenerated.
82274         * lib/unictype/categ_Cn.h: Regenerated.
82275         * lib/unictype/categ_L.h: Regenerated.
82276         * lib/unictype/categ_Ll.h: Regenerated.
82277         * lib/unictype/categ_Lm.h: Regenerated.
82278         * lib/unictype/categ_Lo.h: Regenerated.
82279         * lib/unictype/categ_Lu.h: Regenerated.
82280         * lib/unictype/categ_M.h: Regenerated.
82281         * lib/unictype/categ_Mc.h: Regenerated.
82282         * lib/unictype/categ_Me.h: Regenerated.
82283         * lib/unictype/categ_Mn.h: Regenerated.
82284         * lib/unictype/categ_N.h: Regenerated.
82285         * lib/unictype/categ_Nd.h: Regenerated.
82286         * lib/unictype/categ_Nl.h: Regenerated.
82287         * lib/unictype/categ_No.h: Regenerated.
82288         * lib/unictype/categ_P.h: Regenerated.
82289         * lib/unictype/categ_Pd.h: Regenerated.
82290         * lib/unictype/categ_Pe.h: Regenerated.
82291         * lib/unictype/categ_Pf.h: Regenerated.
82292         * lib/unictype/categ_Pi.h: Regenerated.
82293         * lib/unictype/categ_Po.h: Regenerated.
82294         * lib/unictype/categ_Ps.h: Regenerated.
82295         * lib/unictype/categ_S.h: Regenerated.
82296         * lib/unictype/categ_Sk.h: Regenerated.
82297         * lib/unictype/categ_Sm.h: Regenerated.
82298         * lib/unictype/categ_So.h: Regenerated.
82299         * lib/unictype/categ_of.h: Regenerated.
82300         * lib/unictype/combining.h: Regenerated.
82301         * lib/unictype/ctype_alnum.h: Regenerated.
82302         * lib/unictype/ctype_alpha.h: Regenerated.
82303         * lib/unictype/ctype_graph.h: Regenerated.
82304         * lib/unictype/ctype_lower.h: Regenerated.
82305         * lib/unictype/ctype_print.h: Regenerated.
82306         * lib/unictype/ctype_punct.h: Regenerated.
82307         * lib/unictype/ctype_upper.h: Regenerated.
82308         * lib/unictype/decdigit.h: Regenerated.
82309         * lib/unictype/digit.h: Regenerated.
82310         * lib/unictype/mirror.h: Regenerated.
82311         * lib/unictype/numeric.h: Regenerated.
82312         * lib/unictype/pr_alphabetic.h: Regenerated.
82313         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82314         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82315         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82316         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82317         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82318         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82319         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82320         * lib/unictype/pr_combining.h: Regenerated.
82321         * lib/unictype/pr_dash.h: Regenerated.
82322         * lib/unictype/pr_decimal_digit.h: Regenerated.
82323         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82324         * lib/unictype/pr_deprecated.h: Regenerated.
82325         * lib/unictype/pr_diacritic.h: Regenerated.
82326         * lib/unictype/pr_extender.h: Regenerated.
82327         * lib/unictype/pr_format_control.h: Regenerated.
82328         * lib/unictype/pr_grapheme_base.h: Regenerated.
82329         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82330         * lib/unictype/pr_grapheme_link.h: Regenerated.
82331         * lib/unictype/pr_id_continue.h: Regenerated.
82332         * lib/unictype/pr_id_start.h: Regenerated.
82333         * lib/unictype/pr_ideographic.h: Regenerated.
82334         * lib/unictype/pr_ignorable_control.h: Regenerated.
82335         * lib/unictype/pr_lowercase.h: Regenerated.
82336         * lib/unictype/pr_math.h: Regenerated.
82337         * lib/unictype/pr_numeric.h: Regenerated.
82338         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82339         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82340         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82341         * lib/unictype/pr_other_id_continue.h: Regenerated.
82342         * lib/unictype/pr_other_lowercase.h: Regenerated.
82343         * lib/unictype/pr_other_math.h: Regenerated.
82344         * lib/unictype/pr_punctuation.h: Regenerated.
82345         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82346         * lib/unictype/pr_soft_dotted.h: Regenerated.
82347         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82348         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82349         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82350         * lib/unictype/pr_uppercase.h: Regenerated.
82351         * lib/unictype/pr_xid_continue.h: Regenerated.
82352         * lib/unictype/pr_xid_start.h: Regenerated.
82353         * lib/unictype/pr_zero_width.h: Regenerated.
82354         * lib/unictype/scripts.h: Regenerated.
82355         * lib/unictype/scripts_byname.gperf: Regenerated.
82356         * lib/unictype/sy_java_ident.h: Regenerated.
82357         * lib/unilbrk/lbrkprop1.h: Regenerated.
82358         * lib/unilbrk/lbrkprop2.h: Regenerated.
82359         * tests/unictype/test-categ_C.c: Regenerated.
82360         * tests/unictype/test-categ_Cf.c: Regenerated.
82361         * tests/unictype/test-categ_Cn.c: Regenerated.
82362         * tests/unictype/test-categ_L.c: Regenerated.
82363         * tests/unictype/test-categ_Ll.c: Regenerated.
82364         * tests/unictype/test-categ_Lm.c: Regenerated.
82365         * tests/unictype/test-categ_Lo.c: Regenerated.
82366         * tests/unictype/test-categ_Lu.c: Regenerated.
82367         * tests/unictype/test-categ_M.c: Regenerated.
82368         * tests/unictype/test-categ_Mc.c: Regenerated.
82369         * tests/unictype/test-categ_Me.c: Regenerated.
82370         * tests/unictype/test-categ_Mn.c: Regenerated.
82371         * tests/unictype/test-categ_N.c: Regenerated.
82372         * tests/unictype/test-categ_Nd.c: Regenerated.
82373         * tests/unictype/test-categ_Nl.c: Regenerated.
82374         * tests/unictype/test-categ_No.c: Regenerated.
82375         * tests/unictype/test-categ_P.c: Regenerated.
82376         * tests/unictype/test-categ_Pd.c: Regenerated.
82377         * tests/unictype/test-categ_Pe.c: Regenerated.
82378         * tests/unictype/test-categ_Pf.c: Regenerated.
82379         * tests/unictype/test-categ_Pi.c: Regenerated.
82380         * tests/unictype/test-categ_Po.c: Regenerated.
82381         * tests/unictype/test-categ_Ps.c: Regenerated.
82382         * tests/unictype/test-categ_S.c: Regenerated.
82383         * tests/unictype/test-categ_Sk.c: Regenerated.
82384         * tests/unictype/test-categ_Sm.c: Regenerated.
82385         * tests/unictype/test-categ_So.c: Regenerated.
82386         * tests/unictype/test-ctype_alnum.c: Regenerated.
82387         * tests/unictype/test-ctype_alpha.c: Regenerated.
82388         * tests/unictype/test-ctype_graph.c: Regenerated.
82389         * tests/unictype/test-ctype_lower.c: Regenerated.
82390         * tests/unictype/test-ctype_print.c: Regenerated.
82391         * tests/unictype/test-ctype_punct.c: Regenerated.
82392         * tests/unictype/test-ctype_upper.c: Regenerated.
82393         * tests/unictype/test-decdigit.h: Regenerated.
82394         * tests/unictype/test-digit.h: Regenerated.
82395         * tests/unictype/test-numeric.h: Regenerated.
82396         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82397         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82398         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82399         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82400         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82401         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82402         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82403         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82404         * tests/unictype/test-pr_combining.c: Regenerated.
82405         * tests/unictype/test-pr_dash.c: Regenerated.
82406         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82407         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82408         * tests/unictype/test-pr_deprecated.c: Regenerated.
82409         * tests/unictype/test-pr_diacritic.c: Regenerated.
82410         * tests/unictype/test-pr_extender.c: Regenerated.
82411         * tests/unictype/test-pr_format_control.c: Regenerated.
82412         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82413         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82414         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82415         * tests/unictype/test-pr_id_continue.c: Regenerated.
82416         * tests/unictype/test-pr_id_start.c: Regenerated.
82417         * tests/unictype/test-pr_ideographic.c: Regenerated.
82418         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82419         * tests/unictype/test-pr_lowercase.c: Regenerated.
82420         * tests/unictype/test-pr_math.c: Regenerated.
82421         * tests/unictype/test-pr_numeric.c: Regenerated.
82422         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82423         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82424         Regenerated.
82425         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82426         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82427         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82428         * tests/unictype/test-pr_other_math.c: Regenerated.
82429         * tests/unictype/test-pr_punctuation.c: Regenerated.
82430         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82431         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82432         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82433         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82434         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82435         * tests/unictype/test-pr_uppercase.c: Regenerated.
82436         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82437         * tests/unictype/test-pr_xid_start.c: Regenerated.
82438         * tests/unictype/test-pr_zero_width.c: Regenerated.
82440         Update to Unicode 5.1.0.
82441         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82442         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82443         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82444         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82445         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82446         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82447         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82448         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82449         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82450         (nonspacing_table_ind): Update.
82451         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82453         Update to Unicode 5.1.0.
82454         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82455         code transform.
82456         * lib/uniname/uniname.c (unicode_character_name,
82457         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82458         * lib/uniname/uninames.h: Regenerated.
82459         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82461 2009-02-07  Bruno Haible  <bruno@clisp.org>
82463         Merge gen-ctype and gen-lbrk into a single program.
82464         * lib/gen-uni-tables.c: New file, incorporating
82465         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82466         Add directory prefixes to the names of the generated files.
82467         * lib/unictype/gen-ctype.c: Remove file.
82468         * lib/unilbrk/gen-lbrk.c: Remove file.
82469         * modules/gen-uni-tables: New file.
82470         * modules/unictype/gen-ctype: Remove file.
82471         * modules/unilbrk/gen-lbrk: Remove file.
82473 2009-02-07  Bruno Haible  <bruno@clisp.org>
82475         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82477         New module 'unistr/u32-strcoll'.
82478         * modules/unistr/u32-strcoll: New file.
82479         * lib/unistr/u32-strcoll.c: New file.
82481         New module 'unistr/u16-strcoll'.
82482         * modules/unistr/u16-strcoll: New file.
82483         * lib/unistr/u16-strcoll.c: New file.
82485         New module 'unistr/u8-strcoll'.
82486         * modules/unistr/u8-strcoll: New file.
82487         * lib/unistr/u8-strcoll.c: New file.
82488         * lib/unistr/u-strcoll.h: New file.
82490 2009-02-07  Bruno Haible  <bruno@clisp.org>
82492         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82493         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82494         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82495         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82496         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82497         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82499 2009-02-07  Bruno Haible  <bruno@clisp.org>
82501         Make 64-bit clean.
82502         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82503         output_combclass, output_bidi_category, output_decimal_digit,
82504         output_digit, output_numeric, output_mirror, output_scripts,
82505         output_ident_category): Use proper width specifier in format strings.
82507 2009-02-07  Bruno Haible  <bruno@clisp.org>
82509         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82510         failure behaviour.
82512 2009-02-07  Jim Meyering  <meyering@redhat.com>
82514         regex: avoid compilation failure with upcoming gcc-4.4
82515         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82516         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82517         "... error: integer overflow in preprocessor expression".
82519 2009-02-05  Ben Pfaff  <blp@gnu.org>
82521         Fix link errors on Windows when close module is used.
82522         * modules/close: Add $(LIB_CLOSE) to Link section.
82523         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82524         $(LIB_CLOSE) on Windows.
82526 2009-02-05  Jim Meyering  <meyering@redhat.com>
82528         still avoid unused-parameter warnings, but do it cleanly
82529         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82530         (get_fs_usage): Cast to void instead.
82531         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82532         (dev_from_mount_options, read_file_system_list): Cast to void.
82533         Prompted by Bruno Haible.
82535 2009-02-04  Jim Meyering  <meyering@redhat.com>
82537         fsusage.c: correct copyright year
82538         * lib/fsusage.c: Reflect year in which the change is pushed into
82540         avoid misc. warnings
82541         * lib/fsusage.c (UNUSED_PARAM): Define.
82542         (get_fs_usage): Mark parameter "disk" as unused.
82543         * lib/getugroups.c (getgrent): Use "void" in prototype.
82544         * lib/mountlist.c: Mark unused parameters.
82545         (read_file_system_list): Declare a local with "const".
82546         * lib/nanosleep.c (getnow): Declare static.
82547         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82549         dirfd: set errno upon failure
82550         * lib/dirfd.c: Include <errno.h>.
82551         Set errno to ENOTSUP when returning -1.
82552         * modules/dirfd (Depends-on): Add errno.
82553         Suggested by John Kodis <kodis@comcast.net>.
82555 2009-02-01  Bruno Haible  <bruno@clisp.org>
82557         Don't assume sizeof (long) >= sizeof (void *).
82558         * lib/memcmp.c: Include stdint.h.
82559         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82560         srcp2 to 'const byte *'.
82561         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82562         types to uintptr_t.
82563         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82564         * modules/memcmp (Depends-on): Add stdint.
82565         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82567 2009-01-30  Eric Blake  <ebb9@byu.net>
82569         fix more require-before-expand issues
82570         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82571         expand, AC_PROG_AWK.
82572         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82574 2009-01-28  Eric Blake  <ebb9@byu.net>
82576         version-etc: use consistent URL formatting
82577         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82578         Improve formatting.  Use fputs for string without %.
82580 2009-01-28  Jim Meyering  <meyering@redhat.com>
82582         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82583         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82584         "underquoted definition of NAME" from autoconf-2.59.
82586 2009-01-28  Bruno Haible  <bruno@clisp.org>
82588         * doc/gnulib.texi: Add "Obsolete modules" to index.
82590 2009-01-28  Jim Meyering  <meyering@redhat.com>
82592         useless-if-before-free: recognize more variants
82593         * build-aux/useless-if-before-free: Also recognize e.g.,
82594         if (NULL != p) free (p);
82596 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82598         test-getaddrinfo: skip (don't fail) this test when there's no network
82599         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82600         on the presumption that it means you lack network access.
82602 2009-01-26  Jim Meyering  <meyering@redhat.com>
82604         fflush: avoid warnings on modern systems
82605         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82606         pos and result, into scopes where they're used.
82608 2009-01-26  Eric Blake  <ebb9@byu.net>
82610         Silence warning reintroduced by recent extensions patch.
82611         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82612         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82613         autoconf.
82615         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82616         * m4/00gnulib.m4: New file.
82617         * gnulib-tool (func_get_filelist): Always use it.
82618         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82619         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82621 2009-01-25  Bruno Haible  <bruno@clisp.org>
82623         Make test-quotearg work on MacOS X and AIX.
82624         * tests/test-quotearg.sh: New file.
82625         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82626         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82627         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82628         include <libintl.h>.
82629         (fake_locale): Remove variable.
82630         (gettext, dgettext, dcgettext): Remove functions.
82631         (main): Instead of setting a fake locale, set a real locale. Call
82632         textdomain and bindtextdomain.
82633         * modules/quotearg-tests (Files): Add the new files.
82634         (Depends-on): Add gettext, setenv, unsetenv.
82635         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82636         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82637         Augment TESTS_ENVIRONMENT.
82639 2009-01-25  Bruno Haible  <bruno@clisp.org>
82641         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82642         fr_FR.ISO8859-1 locale on MacOS X.
82643         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82644         ja_JP.eucJP locale on MacOS X.
82645         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82646         zh_CN.GB18030 locale on MacOS X.
82648 2009-01-25  Bruno Haible  <bruno@clisp.org>
82650         Avoid link errors on MacOS X 10.3.
82651         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82652         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82654 2009-01-25  Bruno Haible  <bruno@clisp.org>
82656         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82657         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82658         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82659         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82660         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82661         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82662         posix_spawnattr_init, posix_spawnattr_setsigmask,
82663         posix_spawnattr_setflags, posix_spawnattr_destroy.
82665         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82666         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82667         * modules/execute (Files): Remove m4/posix_spawn.m4.
82668         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82669         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82670         posix_spawnattr_init, posix_spawnattr_setsigmask,
82671         posix_spawnattr_setflags, posix_spawnattr_destroy.
82673 2009-01-25  Bruno Haible  <bruno@clisp.org>
82675         * lib/glthread/threadlib.c: Include <stdlib.h>.
82677 2009-01-25  Bruno Haible  <bruno@clisp.org>
82679         * lib/glthread/threadlib.c (dummy): New declaration.
82681 2009-01-25  Bruno Haible  <bruno@clisp.org>
82683         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82684         multibyte characters also for the GB18030 encoding. Don't crash when
82685         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82687 2009-01-25  Bruno Haible  <bruno@clisp.org>
82689         Avoid redefining 'struct random_data' on OSF/1 5.1.
82690         * lib/stdlib.in.h: Include <random.h> if it exists.
82691         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82692         HAVE_RANDOM_H. Include <random.h> when testing whether
82693         'struct random_data' exists.
82694         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82696 2009-01-25  Bruno Haible  <bruno@clisp.org>
82698         Don't install charset.alias on MacOS X >= 10.3.
82699         * lib/localcharset.c (DARWIN7): New macro.
82700         (get_charset_aliases): Hardcode the result for Darwin7.
82701         * modules/localcharset (install-exec-local): Don't install
82702         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82704 2009-01-25  Bruno Haible  <bruno@clisp.org>
82706         Don't install charset.alias on mingw and Cygwin.
82707         * modules/localcharset (install-exec-local): Don't install
82708         charset.alias on mingw and Cygwin, if the file does not yet exist.
82709         The result for these platforms is hardcoded in localcharset.c.
82711 2009-01-25  Bruno Haible  <bruno@clisp.org>
82713         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82715         before requiring AC_USE_SYSTEM_EXTENSIONS.
82717 2009-01-25  Jim Meyering  <meyering@redhat.com>
82719         c-strtod: avoid warnings
82720         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82721         "assignment discards qualifiers from pointer target type" warnings.
82723 2009-01-24  Bruno Haible  <bruno@clisp.org>
82725         Add support for non-UTF-8 locales on MacOS X.
82726         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82727         canonical encodings. For Darwin 7 and newer, don't map traditional
82728         encodings to UTF-8.
82729         Reported by Vincent Lefevre <vincent@vinc17.org>
82730         at <http://savannah.gnu.org/bugs/?25235>.
82732 2009-01-24  Bruno Haible  <bruno@clisp.org>
82734         * doc/gnulib.texi (Obsolete modules): New section.
82735         Reported by Mike Frysinger <vapier@gentoo.org>.
82737 2009-01-24  Bruno Haible  <bruno@clisp.org>
82739         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82740         (%.dvi): New rule.
82742 2009-01-24  Bruno Haible  <bruno@clisp.org>
82744         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82745         Reported by Eric Blake.
82747 2009-01-24  Bruno Haible  <bruno@clisp.org>
82749         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82750         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82751         Reported by Gary V. Vaughan <gary@gnu.org>.
82753 2009-01-24  Bruno Haible  <bruno@clisp.org>
82755         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82757 2009-01-23  Bruno Haible  <bruno@clisp.org>
82759         Make c-strtod, c-strtold usable in libraries.
82760         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82761         (C_STRTOD): Call strdup instead of xstrdup.
82762         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82763         * modules/c-strtold (Depends-on): Likewise.
82764         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82765         * NEWS: Mention the change.
82766         Reported by Michael Gold <mgold@ncf.ca>.
82768 2009-01-23  Jim Meyering  <meyering@redhat.com>
82770         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82771         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82772         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82774 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82776         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82777         GNU CoreUtils.
82778         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82779         * modules/version-etc (Description): Update.
82781 2009-01-22  Bruno Haible  <bruno@clisp.org>
82783         Cache the C locale object.
82784         * lib/c-strtod.c (c_locale_cache): New variable.
82785         (c_locale): New function.
82786         (C_STRTOD): Use it, and don't call freelocale.
82787         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82788         Suggested by Paolo Bonzini.
82790 2009-01-21  Bruno Haible  <bruno@clisp.org>
82792         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82793         conditions other than overflow.
82795 2009-01-21  Bruno Haible  <bruno@clisp.org>
82797         * lib/c-strtod.c: Include errno.h.
82798         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82799         value from STRTOD_L and STRTOD.
82801 2009-01-21  Bruno Haible  <bruno@clisp.org>
82802         and Jim Meyering  <meyering@redhat.com>
82804         nanosleep: skip configure test (fail it) for apple universal builds
82805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82806         universal builds, assume that nanosleep does not work.
82807         * modules/nanosleep (Depends-on): Add multiarch.
82809         mktime: skip configure test (fail it) for apple universal builds
82810         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82811         universal builds, assume that mktime does not work.
82812         * modules/mktime (Depends-on): Add multiarch.
82814 2009-01-21  Eric Blake  <ebb9@byu.net>
82816         multiarch: avoid expand-before-require warning
82817         * modules/multiarch (configure.ac): Require, rather than expand,
82818         gl_MULTIARCH.
82819         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82820         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82821         enforce that all clients require it.  Partial reversion of
82822         2008-12-29 patch.
82824         error: avoid expand-before-require warning
82825         * modules/errno (configure.ac): Require, rather than expand,
82826         gl_HEADER_ERRNO_H.
82827         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82828         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82829         enforce that all clients require it.
82831         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82832         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82833         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82834         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82836 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82838         Revert:
82839         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82841         regex: do not depend on obsolete modules.
82842         * modules/regex: Remove memcmp and memmove.
82844 2009-01-20  Bruno Haible  <bruno@clisp.org>
82846         Make the 'link' module link on Windows NT 4.
82847         * lib/link.c (_WIN32_WINNT): Don't define.
82848         (CreateHardLinkFuncType): New type.
82849         (CreateHardLinkFunc, initialized): New variables.
82850         (initialize): New function.
82851         (link): Invoke CreateHardLink indirectly through the function pointer.
82853 2009-01-20  Bruno Haible  <bruno@clisp.org>
82855         Fix compilation failure on mingw.
82856         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82858 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82860         * doc/c-strtod.texi: Mention a couple of restrictions.
82862 2009-01-20  Jim Meyering  <meyering@redhat.com>
82864         gettimeofday: move more declarations out of functions
82865         * lib/gettimeofday.c: Move extern declarations of tzset and
82866         gmtime out of containing functions.  Prompted by Bruno Haible.
82868 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82870         regex: do not depend on obsolete modules.
82871         * modules/regex: Remove memcmp and memmove.
82873 2009-01-19  Bruno Haible  <bruno@clisp.org>
82875         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82876         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82877         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82878         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82879         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82881 2009-01-19  Bruno Haible  <bruno@clisp.org>
82883         * tests/test-link.c: Include <errno.h>.
82884         (main): Exit with code 77 when a hard link cannot be created due to
82885         the file system.
82886         * tests/test-link.sh: Skip test when a hard link cannot be created due
82887         to the file system.
82888         Suggested by Eric Blake.
82890 2009-01-19  Martin Lambers  <marlam@marlam.de>
82892         * modules/link-tests: New file.
82893         * tests/test-link.sh: New file.
82894         * tests/test-link.c: New file.
82896 2009-01-19  Eric Blake  <ebb9@byu.net>
82898         doc: mention another function added in cygwin 1.7.0
82899         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82900         Another new function in cygwin 1.7.
82902 2009-01-19  Bruno Haible  <bruno@clisp.org>
82904         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82905         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82906         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82907         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82908         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82909         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82910         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82911         * m4/md4.m4 (gl_MD4): Likewise.
82912         * m4/md5.m4 (gl_MD5): Likewise.
82913         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82914         * m4/sha1.m4 (gl_SHA1): Likewise.
82915         * m4/sha256.m4 (gl_SHA256): Likewise.
82916         * m4/sha512.m4 (gl_SHA512): Likewise.
82918 2009-01-19  Bruno Haible  <bruno@clisp.org>
82920         * modules/uniname/uniname-tests (Depends-on): Add progname.
82921         * tests/uniname/test-uninames.c: Include progname.h.
82922         (main): Call set_program_name.
82924         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82925         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82926         (main): Call set_program_name.
82928         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82929         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82930         (main): Call set_program_name.
82932         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82933         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82934         (main): Call set_program_name.
82936         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82937         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82938         (main): Call set_program_name.
82940         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82941         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82942         (main): Call set_program_name.
82944         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82945         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82946         (main): Call set_program_name.
82948         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82949         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82950         (main): Call set_program_name.
82952         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82953         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82954         (main): Call set_program_name.
82956 2009-01-19  Eric Blake  <ebb9@byu.net>
82958         test-unistd: test previous patch
82959         * tests/test-unistd.c: Test *_FILENO macros.
82961         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82962         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82963         Guarantee a definition.
82964         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82965         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82966         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82967         * lib/dup-safer.c (STDERR_FILENO): Likewise.
82968         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82969         Likewise.
82970         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
82971         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
82972         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82973         Likewise.
82974         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
82975         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
82976         (STDERR_FILENO): Likewise.
82977         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
82978         (STDERR_FILENO): Likewise.
82979         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
82980         (STDERR_FILENO): Likewise.
82981         Reported by Elbert Pol.
82983 2009-01-19  Eric Blake  <ebb9@byu.net>
82985         doc: mention more functions added in cygwin 1.7.0
82986         * doc/posix-functions/abort.texi (abort): Update wording related
82987         to cygwin.
82988         * doc/posix-functions/daylight.texi (daylight): Likewise.
82989         * doc/posix-functions/optarg.texi (optarg): Likewise.
82990         * doc/posix-functions/optarg.texi (opterr): Likewise.
82991         * doc/posix-functions/optarg.texi (optind): Likewise.
82992         * doc/posix-functions/optarg.texi (optopt): Likewise.
82993         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
82994         worked in 1.5.x, and was withdrawn in 1.7.
82995         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
82996         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
82997         cygwin versions.
82998         * doc/posix-functions/perror.texi (perror): Likewise.
82999         * doc/posix-functions/printf.texi (printf): Likewise.
83000         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83001         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83002         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83003         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83004         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83005         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83006         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83007         Likewise.
83008         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83009         Likewise.
83010         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83011         this function.
83012         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83013         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83014         Likewise.
83015         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83016         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83017         * doc/posix-functions/confstr.texi (confstr): Likewise.
83018         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83019         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83020         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83021         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83022         * doc/posix-functions/fputws.texi (fputws): Likewise.
83023         * doc/posix-functions/fwide.texi (fwide): Likewise.
83024         * doc/posix-functions/getwc.texi (getwc): Likewise.
83025         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83026         * doc/posix-functions/putwc.texi (putwc): Likewise.
83027         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83028         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83029         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83030         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83031         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83032         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83033         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83034         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83035         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83036         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83037         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83039 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83041         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83042         * lib/ioctl.c: Include <sys/ioctl.h>.
83044 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83046         * modules/getdate-tests (Depends-on): Add progname.
83047         * tests/test-getdate.c: Use progname module, to avoid link errors
83048         on non-glibc systems.
83050 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83052         * modules/filenamecat-tests (Depends-on): Add progname.
83053         * modules/fstrcmp-tests (Depends-on): Likewise.
83055         * tests/test-filenamecat.c: Use progname module, to avoid link
83056         errors on non-glibc systems.
83057         * tests/test-fstrcmp.c: Likewise.
83059 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83061         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83062         * lib/gettimeofday.c: Move extern declaration out of function.
83064 2009-01-18  Bruno Haible  <bruno@clisp.org>
83066         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83067         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83068         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83070 2009-01-18  Bruno Haible  <bruno@clisp.org>
83072         * lib/strftime.c (MEMPCPY): Remove unused macro.
83073         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
83075 2009-01-18  Martin Lambers  <marlam@marlam.de>
83077         New module 'link'.
83078         * lib/unistd.in.h (link): New declaration.
83079         * lib/link.c: New file.
83080         * m4/link.m4: New file.
83081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
83082         HAVE_LINK.
83083         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
83084         * modules/link: New file.
83085         * doc/posix-functions/link.texi: Mention the new module.
83087 2009-01-18  Bruno Haible  <bruno@clisp.org>
83089         * tests/test-avltree_list.c (main): Call set_program_name.
83090         * tests/test-avltree_oset.c (main): Likewise.
83091         * tests/test-obstack-printf.c: Include progname.h.
83092         (main): Call set_program_name.
83093         * tests/test-quotearg.c: Include progname.h.
83094         (main): Call set_program_name.
83095         * tests/test-xmemdup0.c: Include progname.h.
83096         (main): Call set_program_name.
83098 2009-01-18  Bruno Haible  <bruno@clisp.org>
83100         New module 'alphasort'.
83101         * lib/dirent.in.h (alphasort): New declaration.
83102         * lib/alphasort.c: New file, from glibc with modifications.
83103         * m4/alphasort.m4: New file.
83104         * modules/alphasort: New file.
83105         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
83106         HAVE_ALPHASORT.
83107         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
83108         HAVE_ALPHASORT.
83109         * doc/posix-functions/alphasort.texi: Mention the new module and the
83110         portability problems.
83112 2009-01-18  Bruno Haible  <bruno@clisp.org>
83114         New module 'scandir'.
83115         * lib/dirent.in.h (scandir): New declaration.
83116         * lib/scandir.c: New file, from glibc with modifications.
83117         * m4/scandir.m4: New file.
83118         * modules/scandir: New file.
83119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83120         HAVE_SCANDIR.
83121         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83122         HAVE_SCANDIR.
83123         * doc/posix-functions/scandir.texi: Mention the new module and the
83124         portability problems.
83126 2009-01-17  Bruno Haible  <bruno@clisp.org>
83128         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83129         Update documentation.
83130         (func_remove_suffix): Escape all dots in the suffix. Update
83131         documentation.
83132         (func_filter_filelist): Update documentation.
83133         Reported by Ralf Wildenhues.
83135 2009-01-17  Bruno Haible  <bruno@clisp.org>
83137         * modules/dprintf-posix-tests: New file.
83138         * tests/test-dprintf-posix.sh: New file.
83139         * tests/test-dprintf-posix.c: New file.
83141         New modules 'dprintf', 'dprintf-posix'.
83142         * lib/stdio.in.h (dprintf): New declaration.
83143         * lib/dprintf.c: New file.
83144         * m4/dprintf.m4: New file.
83145         * m4/dprintf-posix.m4: New file.
83146         * modules/dprintf: New file.
83147         * modules/dprintf-posix: New file.
83148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83149         HAVE_DPRINTF, REPLACE_DPRINTF.
83150         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83151         HAVE_DPRINTF, REPLACE_DPRINTF.
83152         * doc/posix-functions/dprintf.texi: Mention the new modules.
83154 2009-01-17  Bruno Haible  <bruno@clisp.org>
83156         * modules/vdprintf-posix-tests: New file.
83157         * tests/test-vdprintf-posix.sh: New file.
83158         * tests/test-vdprintf-posix.c: New file.
83160         New modules 'vdprintf', 'vdprintf-posix'.
83161         * lib/stdio.in.h (vdprintf): New declaration.
83162         * lib/vdprintf.c: New file.
83163         * m4/vdprintf.m4: New file.
83164         * m4/vdprintf-posix.m4: New file.
83165         * modules/vdprintf: New file.
83166         * modules/vdprintf-posix: New file.
83167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83168         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83169         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83170         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83171         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83173 2009-01-17  Bruno Haible  <bruno@clisp.org>
83175         Fix replacement of fopen on mingw.
83176         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83177         mingw.
83179 2009-01-17  Bruno Haible  <bruno@clisp.org>
83181         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83182         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83184 2009-01-17  Bruno Haible  <bruno@clisp.org>
83186         Avoid test-fflush2.sh failure on mingw.
83187         * tests/test-fflush2.c: Include binary-io.h.
83188         (main): Put standard input into binary mode.
83189         * modules/fflush-tests (Depends-on): Add binary-io.
83191 2009-01-17  Bruno Haible  <bruno@clisp.org>
83193         * lib/wchar.in.h: In another particular situation, include only the
83194         system's <wchar.h> file.
83195         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83196         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83197         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83199 2009-01-17  Bruno Haible  <bruno@clisp.org>
83201         Support for stripping executables in --enable-relocatable.
83202         * build-aux/install-reloc: Expect one more argument, or an environment
83203         variable RELOC_STRIP_PROG. If set, strip the destination program and
83204         its wrapper.
83205         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83206         RELOC_STRIP_PROG.
83207         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83208         to set RELOCATABLE_STRIP.
83209         * NEWS: Mention the new Makefile requirement.
83211 2009-01-17  Bruno Haible  <bruno@clisp.org>
83213         * build-aux/install-reloc: Remove debugging information left over by
83214         C compiler on MacOS X.
83216 2009-01-17  Bruno Haible  <bruno@clisp.org>
83218         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83219         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83220         _NSGetExecutablePath.
83222 2009-01-16  Jim Meyering  <meyering@redhat.com>
83224         strerror: avoid warnings about discarding "const"
83225         * lib/strerror.c (rpl_strerror): Instead of returning a const
83226         string from each and every "case", use a variable, and add a single
83227         cast after the switch.
83229 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83231         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83233 2009-01-16  Bruno Haible  <bruno@clisp.org>
83235         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83236         array initializer syntax that also works in C++ mode.
83237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83239 2009-01-16  Jim Meyering  <meyering@redhat.com>
83241         poll: suppress a warning
83242         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83243         to ignore "...unsigned expression < 0 is always false" warnings.
83245 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83247         poll: remove declarations of unused variables
83248         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83249         sockbuf and optlen.
83251 2009-01-15  Bruno Haible  <bruno@clisp.org>
83253         Make fflush-after-ungetc POSIX compliant on BSD systems.
83254         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83255         (clear_ungetc_buffer): Implement also for other systems.
83256         (rpl_fflush): On glibc systems, invoke
83257         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83258         clear_ungetc_buffer after fetching the stream's position, not before.
83260 2009-01-15  Bruno Haible  <bruno@clisp.org>
83262         Make fflush-after-ungetc POSIX compliant on glibc systems.
83263         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83264         after ungetc.
83265         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83266         (rpl_fflush): On glibc systems, simply call the system's fflush
83267         function after clearing the ungetc buffer.
83268         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83269         Instead, lseek only to the end of file, then use the system's fseeko
83270         for the rest. On glibc systems, reset the EOF indicator bit.
83272 2009-01-15  Jim Meyering  <meyering@redhat.com>
83274         openmp.m4: revert quote-adding change, for portability to older autoconf
83275         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83276         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83277         Simon Josefsson noticed the problem when using autoconf-2.61.
83279 2009-01-15  Bruno Haible  <bruno@clisp.org>
83281         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83282         * tests/test-fflush2.c (ASSERT): Always fail.
83283         (main): Add two tests for fflush() after ungetc(), taking into account
83284         the Austin Group's clarification.
83285         Suggested by Eric Blake.
83287 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83289         mktime.m4: remove K&R-style function prototypes
83290         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83291         for the Sun C++ compiler.
83293 2009-01-14  Bruno Haible  <bruno@clisp.org>
83295         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83296         while including <wchar.h>.
83297         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83298         the system's <wchar.h> file.
83299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83301 2009-01-14  Bruno Haible  <bruno@clisp.org>
83303         * m4/csharp.m4: Don't mention gettext on the serial number line.
83304         * m4/csharpexec.m4: Likewise.
83305         * m4/eaccess.m4: Likewise.
83306         * m4/javaexec.m4: Likewise.
83307         * m4/sig_atomic_t.m4: Likewise.
83308         * m4/tmpdir.m4: Likewise.
83309         * m4/intldir.m4: Bump gettext version.
83310         * m4/lib-ld.m4: Likewise.
83312 2009-01-14  Bruno Haible  <bruno@clisp.org>
83314         * lib/progname.c (set_program_name): Add more comments.
83315         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83317 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83319         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83320         were sys/stat.h does not define it.
83322 2009-01-14  Jim Meyering  <meyering@redhat.com>
83324         many *.m4 files: improve m4 quoting
83325         99% of this change was performed by running the following commands:
83326         git ls-files | grep '\.m4$' | xargs perl -pi \
83327           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83328           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83329           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83330           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83331         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83332         The remainder were to add Copyright dates, increment serial numbers,
83333         undo some changes in comments, exclude m4/intl.m4, and add quotes
83334         around the "1" in ",1" where the unusual spacing prohibited the
83335         above regexps from doing the job.  For more details, see
83336         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83337         * m4/acl.m4: Modified.
83338         * m4/afs.m4: Likewise.
83339         * m4/alloca.m4: Likewise.
83340         * m4/argp.m4: Likewise.
83341         * m4/argz.m4: Likewise.
83342         * m4/atexit.m4: Likewise.
83343         * m4/bison-i18n.m4: Likewise.
83344         * m4/bison.m4: Likewise.
83345         * m4/byteswap.m4: Likewise.
83346         * m4/c-stack.m4: Likewise.
83347         * m4/c-strtod.m4: Likewise.
83348         * m4/calloc.m4: Likewise.
83349         * m4/canonicalize-lgpl.m4: Likewise.
83350         * m4/chown.m4: Likewise.
83351         * m4/clock_time.m4: Likewise.
83352         * m4/codeset.m4: Likewise.
83353         * m4/copy-file.m4: Likewise.
83354         * m4/csharp.m4: Likewise.
83355         * m4/csharpcomp.m4: Likewise.
83356         * m4/csharpexec.m4: Likewise.
83357         * m4/d-ino.m4: Likewise.
83358         * m4/d-type.m4: Likewise.
83359         * m4/dirfd.m4: Likewise.
83360         * m4/double-slash-root.m4: Likewise.
83361         * m4/eaccess.m4: Likewise.
83362         * m4/eealloc.m4: Likewise.
83363         * m4/environ.m4: Likewise.
83364         * m4/errno_h.m4: Likewise.
83365         * m4/euidaccess.m4: Likewise.
83366         * m4/execute.m4: Likewise.
83367         * m4/fatal-signal.m4: Likewise.
83368         * m4/fchdir.m4: Likewise.
83369         * m4/fcntl_h.m4: Likewise.
83370         * m4/fileblocks.m4: Likewise.
83371         * m4/filenamecat.m4: Likewise.
83372         * m4/findprog.m4: Likewise.
83373         * m4/flexmember.m4: Likewise.
83374         * m4/fnmatch.m4: Likewise.
83375         * m4/fopen.m4: Likewise.
83376         * m4/fpending.m4: Likewise.
83377         * m4/fprintf-posix.m4: Likewise.
83378         * m4/free.m4: Likewise.
83379         * m4/frexp.m4: Likewise.
83380         * m4/frexpl.m4: Likewise.
83381         * m4/fsusage.m4: Likewise.
83382         * m4/ftruncate.m4: Likewise.
83383         * m4/gc-camellia.m4: Likewise.
83384         * m4/gc-random.m4: Likewise.
83385         * m4/gc.m4: Likewise.
83386         * m4/getaddrinfo.m4: Likewise.
83387         * m4/getcwd-abort-bug.m4: Likewise.
83388         * m4/getcwd-path-max.m4: Likewise.
83389         * m4/getdate.m4: Likewise.
83390         * m4/getdomainname.m4: Likewise.
83391         * m4/getgroups.m4: Likewise.
83392         * m4/gethostname.m4: Likewise.
83393         * m4/gethrxtime.m4: Likewise.
83394         * m4/getline.m4: Likewise.
83395         * m4/getloadavg.m4: Likewise.
83396         * m4/getndelim2.m4: Likewise.
83397         * m4/getpass.m4: Likewise.
83398         * m4/gettext.m4: Likewise.
83399         * m4/gettime.m4: Likewise.
83400         * m4/gettimeofday.m4: Likewise.
83401         * m4/gnulib-common.m4: Likewise.
83402         * m4/group-member.m4: Likewise.
83403         * m4/host-os.m4: Likewise.
83404         * m4/iconv.m4: Likewise.
83405         * m4/iconv_open.m4: Likewise.
83406         * m4/inet_ntop.m4: Likewise.
83407         * m4/inet_pton.m4: Likewise.
83408         * m4/inline.m4: Likewise.
83409         * m4/intldir.m4: Likewise.
83410         * m4/intlmacosx.m4: Likewise.
83411         * m4/intmax.m4: Likewise.
83412         * m4/intmax_t.m4: Likewise.
83413         * m4/inttypes.m4: Likewise.
83414         * m4/inttypes_h.m4: Likewise.
83415         * m4/inttypes-pri.m4: Likewise.
83416         * m4/isapipe.m4: Likewise.
83417         * m4/isnand.m4: Likewise.
83418         * m4/isnanf.m4: Likewise.
83419         * m4/isnanl.m4: Likewise.
83420         * m4/javacomp.m4: Likewise.
83421         * m4/javaexec.m4: Likewise.
83422         * m4/jm-winsz1.m4: Likewise.
83423         * m4/jm-winsz2.m4: Likewise.
83424         * m4/lchown.m4: Likewise.
83425         * m4/lcmessage.m4: Likewise.
83426         * m4/ldexpl.m4: Likewise.
83427         * m4/lib-ld.m4: Likewise.
83428         * m4/lib-link.m4: Likewise.
83429         * m4/libsigsegv.m4: Likewise.
83430         * m4/link-follow.m4: Likewise.
83431         * m4/localcharset.m4: Likewise.
83432         * m4/locale-fr.m4: Likewise.
83433         * m4/locale-ja.m4: Likewise.
83434         * m4/locale-tr.m4: Likewise.
83435         * m4/locale-zh.m4: Likewise.
83436         * m4/lock.m4: Likewise.
83437         * m4/longlong.m4: Likewise.
83438         * m4/ls-mntd-fs.m4: Likewise.
83439         * m4/lstat.m4: Likewise.
83440         * m4/malloc.m4: Likewise.
83441         * m4/mathl.m4: Likewise.
83442         * m4/mbrtowc.m4: Likewise.
83443         * m4/mbstate_t.m4: Likewise.
83444         * m4/mbswidth.m4: Likewise.
83445         * m4/memchr.m4: Likewise.
83446         * m4/memcmp.m4: Likewise.
83447         * m4/memcpy.m4: Likewise.
83448         * m4/memmem.m4: Likewise.
83449         * m4/memmove.m4: Likewise.
83450         * m4/mempcpy.m4: Likewise.
83451         * m4/memrchr.m4: Likewise.
83452         * m4/memset.m4: Likewise.
83453         * m4/minmax.m4: Likewise.
83454         * m4/mkdir-slash.m4: Likewise.
83455         * m4/mkdtemp.m4: Likewise.
83456         * m4/mktime.m4: Likewise.
83457         * m4/mmap-anon.m4: Likewise.
83458         * m4/mountlist.m4: Likewise.
83459         * m4/nanosleep.m4: Likewise.
83460         * m4/nls.m4: Likewise.
83461         * m4/nocrash.m4: Likewise.
83462         * m4/open.m4: Likewise.
83463         * m4/openat.m4: Likewise.
83464         * m4/openmp.m4: Likewise.
83465         * m4/pathmax.m4: Likewise.
83466         * m4/perl.m4: Likewise.
83467         * m4/physmem.m4: Likewise.
83468         * m4/pipe.m4: Likewise.
83469         * m4/po.m4: Likewise.
83470         * m4/poll.m4: Likewise.
83471         * m4/posixtm.m4: Likewise.
83472         * m4/posixver.m4: Likewise.
83473         * m4/printf-frexp.m4: Likewise.
83474         * m4/printf-frexpl.m4: Likewise.
83475         * m4/printf-posix.m4: Likewise.
83476         * m4/printf-posix-rpl.m4: Likewise.
83477         * m4/printf.m4: Likewise.
83478         * m4/progtest.m4: Likewise.
83479         * m4/putenv.m4: Likewise.
83480         * m4/readline.m4: Likewise.
83481         * m4/readlink.m4: Likewise.
83482         * m4/readutmp.m4: Likewise.
83483         * m4/realloc.m4: Likewise.
83484         * m4/regex.m4: Likewise.
83485         * m4/relocatable.m4: Likewise.
83486         * m4/relocatable-lib.m4: Likewise.
83487         * m4/rename-dest-slash.m4: Likewise.
83488         * m4/rename.m4: Likewise.
83489         * m4/rmdir-errno.m4: Likewise.
83490         * m4/rmdir.m4: Likewise.
83491         * m4/roundf.m4: Likewise.
83492         * m4/roundl.m4: Likewise.
83493         * m4/rpmatch.m4: Likewise.
83494         * m4/save-cwd.m4: Likewise.
83495         * m4/selinux-selinux-h.m4: Likewise.
83496         * m4/setenv.m4: Likewise.
83497         * m4/settime.m4: Likewise.
83498         * m4/sig2str.m4: Likewise.
83499         * m4/sig_atomic_t.m4: Likewise.
83500         * m4/signalblocking.m4: Likewise.
83501         * m4/signbit.m4: Likewise.
83502         * m4/sigpipe.m4: Likewise.
83503         * m4/sockets.m4: Likewise.
83504         * m4/sockpfaf.m4: Likewise.
83505         * m4/st_dm_mode.m4: Likewise.
83506         * m4/stat-time.m4: Likewise.
83507         * m4/stdbool.m4: Likewise.
83508         * m4/stdint.m4: Likewise.
83509         * m4/stdint_h.m4: Likewise.
83510         * m4/stpcpy.m4: Likewise.
83511         * m4/stpncpy.m4: Likewise.
83512         * m4/strcase.m4: Likewise.
83513         * m4/strchrnul.m4: Likewise.
83514         * m4/strcspn.m4: Likewise.
83515         * m4/strdup.m4: Likewise.
83516         * m4/strftime.m4: Likewise.
83517         * m4/strndup.m4: Likewise.
83518         * m4/strnlen.m4: Likewise.
83519         * m4/strpbrk.m4: Likewise.
83520         * m4/strptime.m4: Likewise.
83521         * m4/strsep.m4: Likewise.
83522         * m4/strtod.m4: Likewise.
83523         * m4/strtoimax.m4: Likewise.
83524         * m4/strtok_r.m4: Likewise.
83525         * m4/strtol.m4: Likewise.
83526         * m4/strtoll.m4: Likewise.
83527         * m4/strtoul.m4: Likewise.
83528         * m4/strtoull.m4: Likewise.
83529         * m4/strtoumax.m4: Likewise.
83530         * m4/strverscmp.m4: Likewise.
83531         * m4/threadlib.m4: Likewise.
83532         * m4/timegm.m4: Likewise.
83533         * m4/tm_gmtoff.m4: Likewise.
83534         * m4/tmpdir.m4: Likewise.
83535         * m4/tmpfile.m4: Likewise.
83536         * m4/tzset.m4: Likewise.
83537         * m4/uintmax_t.m4: Likewise.
83538         * m4/unlinkdir.m4: Likewise.
83539         * m4/unlocked-io.m4: Likewise.
83540         * m4/uptime.m4: Likewise.
83541         * m4/userspec.m4: Likewise.
83542         * m4/utimbuf.m4: Likewise.
83543         * m4/utime.m4: Likewise.
83544         * m4/utimes-null.m4: Likewise.
83545         * m4/utimes.m4: Likewise.
83546         * m4/vararrays.m4: Likewise.
83547         * m4/vasnprintf.m4: Likewise.
83548         * m4/vfprintf-posix.m4: Likewise.
83549         * m4/vprintf-posix.m4: Likewise.
83550         * m4/wait-process.m4: Likewise.
83551         * m4/wchar_t.m4: Likewise.
83552         * m4/wint_t.m4: Likewise.
83553         * m4/write-any-file.m4: Likewise.
83554         * m4/yield.m4: Likewise.
83556 2009-01-13  Bruno Haible  <bruno@clisp.org>
83558         Avoid test-copy-file.sh failures when ACL support insufficient.
83559         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83560         TESTS_ENVIRONMENT.
83561         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83562         Reported by Jim Meyering.
83564 2009-01-13  Bruno Haible  <bruno@clisp.org>
83566         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83567         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83568         * modules/unistdio/u8-printf-parse (Files): Likewise.
83569         * modules/unistdio/u32-printf-parse (Files): Likewise.
83570         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83572 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83574         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83575         and m4/inttypes_h.m4 too.
83577 2009-01-12  Eric Blake  <ebb9@byu.net>
83579         tests: IRIX 6.2 cc can't compile -0.0 into .data
83580         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83581         rather than at compile-time.
83582         * tests/test-floorl.c (minus_zero): Likewise.
83583         * tests/test-frexpl.c (minus_zero): Likewise.
83584         * tests/test-isnan.c (minus_zerol): Likewise.
83585         * tests/test-isnanl.h (minus_zero): Likewise.
83586         * tests/test-ldexpl.c (minus_zero): Likewise.
83587         * tests/test-roundl.c (minus_zero): Likewise.
83588         * tests/test-signbit.c (minus_zerol): Likewise.
83589         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83590         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83591         * tests/test-truncl.c (minus_zero): Likewise.
83592         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83593         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83594         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83596 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83598         regex: fix glibc bug 9697
83599         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83600         handling.
83602 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83604         regex: fix glibc bug 697
83605         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83606         being NULL also if there are no backreferences.
83608 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83610         regex: merge glibc changes
83611         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83612         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83613         re_string_skip_chars, re_string_reconstruct): Likewise.
83614         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83616 2009-01-07  Jim Meyering  <meyering@redhat.com>
83618         poll: filter through cppi
83619         * lib/poll.c: Indent cpp directives to reflect nesting.
83621 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83623         poll: don't return uninitialized
83624         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83626 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83628         avoid compile failure on AIX 6.1
83629         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83630         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83632 2009-01-04  Jim Meyering  <meyering@redhat.com>
83634         remove duplicate inclusion of <stdio.h>
83635         * tests/test-fprintf-posix.c: Likewise.
83636         * tests/test-printf-posix.c: Likewise.
83637         * tests/test-snprintf-posix.c: Likewise.
83638         * tests/test-sprintf-posix.c: Likewise.
83639         * tests/test-vasprintf-posix.c: Likewise.
83640         * tests/test-vfprintf-posix.c: Likewise.
83641         * tests/test-vprintf-posix.c: Likewise.
83642         * tests/test-vsnprintf-posix.c: Likewise.
83643         * tests/test-vsprintf-posix.c: Likewise.
83645 2009-01-03  Jim Meyering  <meyering@redhat.com>
83647         gnulib-tool: fix sed-based filtering
83648         * gnulib-tool (func_filter_filelist): Remove extra backslash
83649         in sed_fff_filter definition.
83651 2009-01-02  Jim Meyering  <meyering@redhat.com>
83653         strftime: avoid compilation failure on Solaris 2.6
83654         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83655         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83656         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83657         be available.  Reported by Tom G. Christensen.  Details in
83658         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83660 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83661             Bruno Haible  <bruno@clisp.org>
83663         Speed up gnulib-tool by doing more string processing through shell
83664         built-ins.
83665         * gnulib-tool (fast_func_append): New variable.
83666         (func_remove_prefix, func_remove_suffix): New functions.
83667         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83668         (func_filter_filelist): New function.
83669         (func_get_dependencies): Use func_remove_suffix instead of sed.
83670         (func_get_automake_snippet): Use func_filter_filelist instead of a
83671         subshell and sed invocation.
83673 2009-01-01  Bruno Haible  <bruno@clisp.org>
83675         Fix a security bug.
83676         * gnulib-tool (func_import, import, update): Don't allow the characters
83677         '"', '$', '`', '\' in macro arguments that become part of commands that
83678         are evaluated.
83680 2009-01-01  Bruno Haible  <bruno@clisp.org>
83682         * gnulib-tool (func_reset_sigpipe): Add more comments.
83684 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83686         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83687         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83688         already know the answer.
83690 2009-01-01  Jim Meyering  <meyering@redhat.com>
83692         * lib/version-etc.c (version_etc_va): Update copyright year.
83694 2008-12-30  Bruno Haible  <bruno@clisp.org>
83696         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83697         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83698         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83700 2008-12-29  Eric Blake  <ebb9@byu.net>
83702         multiarch: avoid autoconf AC_REQUIRE bug
83703         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83704         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83705         2.63 and older.
83706         Reported by Bruno Haible, and analyzed in
83707         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83709 2008-12-29  Bruno Haible  <bruno@clisp.org>
83711         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83712         files in subdirectories correctly.
83713         Reported by Ralf Wildenhues.
83715 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83717         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83718         rather than 'join FILE -', for Solaris join.
83720 2008-12-29  Bruno Haible  <bruno@clisp.org>
83722         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83723         quoting.
83724         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83725         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83726         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83727         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83728         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83729         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83730         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83731         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83732         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83733         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83734         * m4/nls.m4 (AM_NLS): Likewise.
83735         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83736         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83737         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83738         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83739         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83740         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83741         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83742         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83743         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83744         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83745         * m4/xsize.m4 (gl_XSIZE): Likewise.
83746         Suggested by Jim Meyering.
83748 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83750         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83751         * lib/parse-duration.c: use a switch instead of cascading if's.
83753 2008-12-29  Eric Blake  <ebb9@byu.net>
83755         wchar.h: supply WEOF on Irix 5.3
83756         * lib/wchar.in.h (wint_t): Also supply WEOF.
83757         * lib/wctype.in.h (wint_t): Likewise.
83758         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83759         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83760         Reported by Tom G. Christensen.
83762 2008-12-26  Bruno Haible  <bruno@clisp.org>
83764         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83765         i486, i586, i686.
83767 2008-12-26  Bruno Haible  <bruno@clisp.org>
83769         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83771 2008-12-26  Bruno Haible  <bruno@clisp.org>
83773         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83774         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83775         not __STDC_CONSTANT_MACROS.
83776         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83778 2008-12-25  Bruno Haible  <bruno@clisp.org>
83780         Add support for universal builds to vasnprintf.
83781         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83782         universal builds, guess no.
83783         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83784         * modules/vasprintf-posix (Depends-on): Likewise.
83785         * modules/fprintf-posix (Depends-on): Likewise.
83786         * modules/vfprintf-posix (Depends-on): Likewise.
83787         * modules/snprintf-posix (Depends-on): Likewise.
83788         * modules/vsnprintf-posix (Depends-on): Likewise.
83789         * modules/sprintf-posix (Depends-on): Likewise.
83790         * modules/vsprintf-posix (Depends-on): Likewise.
83791         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83792         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83794         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83795         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83796         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83799         Add support for universal builds to <inttypes.h>.
83800         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83801         _SCNu64_PREFIX): In Apple
83802         universal builds, define directly, using _LP64.
83803         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83804         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83805         * modules/inttypes (Depends-on): Add multiarch.
83806         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83808         Add support for universal builds to <stdint.h>.
83809         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83810         universal builds, define directly, using _LP64.
83811         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83812         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83813         and size_t.
83814         * modules/stdint (Depends-on): Add multiarch.
83815         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83817         New module 'multiarch'.
83818         * modules/multiarch: New file.
83819         * m4/multiarch.m4: New file.
83821 2008-12-25  Bruno Haible  <bruno@clisp.org>
83823         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83825 2008-12-25  Bruno Haible  <bruno@clisp.org>
83827         * modules/btowc (License): Relicense under LGPLv2+.
83828         * modules/mbsinit (License): Likewise.
83829         * modules/mbrtowc (License): Likewise.
83830         * modules/wcrtomb (License): Likewise.
83831         * modules/streq (License): Likewise.
83832         Reported by David Lutterkort <lutter@redhat.com>.
83834 2008-12-23  Bruno Haible  <bruno@clisp.org>
83836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83838 2008-12-23  Bruno Haible  <bruno@clisp.org>
83840         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83842         GETADDRINFO_LIB, not in LIBS.
83843         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83844         * modules/canon-host (Link): Likewise.
83845         * NEWS: Mention the change.
83846         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83847         GETADDRINFO_LIB.
83849 2008-12-22  Bruno Haible  <bruno@clisp.org>
83851         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83852         * doc/posix-functions/iswalpha_l.texi: Likewise.
83853         * doc/posix-functions/iswblank_l.texi: Likewise.
83854         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83855         * doc/posix-functions/iswctype_l.texi: Likewise.
83856         * doc/posix-functions/iswdigit_l.texi: Likewise.
83857         * doc/posix-functions/iswgraph_l.texi: Likewise.
83858         * doc/posix-functions/iswlower_l.texi: Likewise.
83859         * doc/posix-functions/iswprint_l.texi: Likewise.
83860         * doc/posix-functions/iswpunct_l.texi: Likewise.
83861         * doc/posix-functions/iswspace_l.texi: Likewise.
83862         * doc/posix-functions/iswupper_l.texi: Likewise.
83863         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83864         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83865         * doc/posix-functions/open_wmemstream.texi: Likewise.
83866         * doc/posix-functions/swscanf.texi: Likewise.
83867         * doc/posix-functions/towctrans_l.texi: Likewise.
83868         * doc/posix-functions/towlower.texi: Likewise.
83869         * doc/posix-functions/towlower_l.texi: Likewise.
83870         * doc/posix-functions/towupper.texi: Likewise.
83871         * doc/posix-functions/towupper_l.texi: Likewise.
83872         * doc/posix-functions/vfwprintf.texi: Likewise.
83873         * doc/posix-functions/vfwscanf.texi: Likewise.
83874         * doc/posix-functions/vswscanf.texi: Likewise.
83875         * doc/posix-functions/vwprintf.texi: Likewise.
83876         * doc/posix-functions/vwscanf.texi: Likewise.
83877         * doc/posix-functions/wcpcpy.texi: Likewise.
83878         * doc/posix-functions/wcpncpy.texi: Likewise.
83879         * doc/posix-functions/wcscasecmp.texi: Likewise.
83880         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83881         * doc/posix-functions/wcscoll_l.texi: Likewise.
83882         * doc/posix-functions/wcsdup.texi: Likewise.
83883         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83884         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83885         * doc/posix-functions/wcsnlen.texi: Likewise.
83886         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83887         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83888         * doc/posix-functions/wctrans_l.texi: Likewise.
83889         * doc/posix-functions/wctype_l.texi: Likewise.
83890         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83891         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83892         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83893         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83894         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83895         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83896         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83897         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83898         * doc/glibc-functions/wcschrnul.texi: Likewise.
83899         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83900         * doc/glibc-functions/wcstod_l.texi: Likewise.
83901         * doc/glibc-functions/wcstof_l.texi: Likewise.
83902         * doc/glibc-functions/wcstol_l.texi: Likewise.
83903         * doc/glibc-functions/wcstold_l.texi: Likewise.
83904         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83905         * doc/glibc-functions/wcstoq.texi: Likewise.
83906         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83907         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83908         * doc/glibc-functions/wcstouq.texi: Likewise.
83909         * doc/glibc-functions/wmempcpy.texi: Likewise.
83911 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83912             Eric Blake  <ebb9@byu.net>
83913             Paolo Bonzini  <bonzini@gnu.org>
83914             Bruno Haible  <bruno@clisp.org>
83916         Make c-stack work on Haiku.
83917         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83918         (c_stack_action): Use SA_ONSTACK flag.
83920 2008-12-22  Bruno Haible  <bruno@clisp.org>
83922         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83924 2008-12-22  Bruno Haible  <bruno@clisp.org>
83926         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83927         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83928         being overridden.
83929         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83930         New macros.
83931         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83933         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83934         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83936 2008-12-22  Bruno Haible  <bruno@clisp.org>
83938         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83939         from test code.
83941 2008-12-22  Eric Blake  <ebb9@byu.net>
83943         Avoid gcc warnings on cygwin.
83944         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83945         Avoid unused variable.
83946         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83947         Likewise.
83949 2008-12-22  Bruno Haible  <bruno@clisp.org>
83951         Remove HAVE_MBRTOWC conditionals.
83952         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83953         (mbscasecmp): Assume mbrtowc function.
83954         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83955         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83956         * lib/mbschr.c: Include mbuiter.h unconditionally.
83957         (mbschr): Assume mbrtowc function.
83958         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83959         (mbscspn): Assume mbrtowc function.
83960         * lib/mbslen.c: Include mbuiter.h unconditionally.
83961         (mbslen): Assume mbrtowc function.
83962         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83963         (mbsncasecmp): Assume mbrtowc function.
83964         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83965         (mbsnlen): Assume mbrtowc function.
83966         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83967         (mbspbrk): Assume mbrtowc function.
83968         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
83969         (mbspcasecmp): Assume mbrtowc function.
83970         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
83971         (mbsrchr): Assume mbrtowc function.
83972         * lib/mbssep.c: Include mbuiter.h unconditionally.
83973         (mbssep): Assume mbrtowc function.
83974         * lib/mbsspn.c: Include mbuiter.h unconditionally.
83975         (mbsspn): Assume mbrtowc function.
83976         * lib/mbsstr.c: Include mbuiter.h unconditionally.
83977         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
83978         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
83979         (mbstok_r): Assume mbrtowc function.
83980         * lib/propername.c: Include mbuiter.h unconditionally.
83981         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
83982         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
83983         (trim2): Assume mbrtowc function.
83984         * lib/mbswidth.c (mbsinit): Remove fallback definition.
83985         (mbsnwidth): Assume mbrtowc function.
83986         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
83987         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
83988         fallback definitions.
83989         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
83991 2008-12-22  Bruno Haible  <bruno@clisp.org>
83993         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
83995 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
83997         * modules/regex: Request emulations for the mb*/wc* functions we need.
83998         * m4/regex.m4: Don't look for those functions here.
83999         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84001 2008-12-22  Bruno Haible  <bruno@clisp.org>
84003         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84005 2008-12-21  Bruno Haible  <bruno@clisp.org>
84007         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84008         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84009         (Include): Remove conditionalization.
84010         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84011         (Include): Remove conditionalization.
84012         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84013         (Include): Remove conditionalization.
84014         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84015         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84016         * NEWS: Mention the change.
84017         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84018         via Sergey Poznyakoff <gray@gnu.org.ua>.
84020 2008-12-21  Bruno Haible  <bruno@clisp.org>
84022         * MODULES.html.sh (Extended multibyte and wide character utilities
84023         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84024         wcrtomb, wcsrtombs.
84025         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84026         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84027         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84028         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84030 2008-12-21  Bruno Haible  <bruno@clisp.org>
84032         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84034 2008-12-21  Bruno Haible  <bruno@clisp.org>
84036         * modules/wcsnrtombs-tests: New file.
84037         * tests/test-wcsnrtombs1.sh: New file.
84038         * tests/test-wcsnrtombs2.sh: New file.
84039         * tests/test-wcsnrtombs3.sh: New file.
84040         * tests/test-wcsnrtombs4.sh: New file.
84041         * tests/test-wcsnrtombs.c: New file.
84043         New module 'wcsnrtombs'.
84044         * lib/wchar.in.h (wcsnrtombs): New declaration.
84045         * lib/wcsnrtombs.c: New file.
84046         * lib/wcsrtombs-state.c: New file.
84047         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84048         (internal_state): Remove variable.
84049         * m4/wcsnrtombs.m4: New file.
84050         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84051         compilation units.
84052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84053         HAVE_WCSNRTOMBS.
84054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84055         HAVE_WCSNRTOMBS.
84056         * modules/wcsnrtombs: New file.
84057         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84058         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84060 2008-12-21  Bruno Haible  <bruno@clisp.org>
84062         * modules/wcsrtombs-tests: New file.
84063         * tests/test-wcsrtombs1.sh: New file.
84064         * tests/test-wcsrtombs2.sh: New file.
84065         * tests/test-wcsrtombs3.sh: New file.
84066         * tests/test-wcsrtombs4.sh: New file.
84067         * tests/test-wcsrtombs.c: New file.
84069         New module 'wcsrtombs'.
84070         * lib/wchar.in.h (wcsrtombs): New declaration.
84071         * lib/wcsrtombs.c: New file.
84072         * m4/wcsrtombs.m4: New file.
84073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
84074         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
84076         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
84077         * modules/wcsrtombs: New file.
84078         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
84079         bugs.
84081 2008-12-21  Bruno Haible  <bruno@clisp.org>
84083         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
84084         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
84085         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
84086         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
84087         if not correct.
84088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
84089         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
84090         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84091         m4/locale-zh.m4, m4/codeset.m4.
84092         * doc/posix-functions/wcrtomb.texi: Document the bug.
84094 2008-12-21  Bruno Haible  <bruno@clisp.org>
84096         Work around a btowc() bug on IRIX 6.5.
84097         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
84098         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
84099         REPLACE_WTOBC if not.
84100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
84101         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
84102         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
84104 2008-12-21  Bruno Haible  <bruno@clisp.org>
84106         * modules/wcrtomb-tests: New file.
84107         * tests/test-wcrtomb.sh: New file.
84108         * tests/test-wcrtomb.c: New file.
84110         New module 'wcrtomb'.
84111         * lib/wchar.in.h (wcrtomb): New declaration.
84112         * lib/wcrtomb.c: New file.
84113         * m4/wcrtomb.m4: New file.
84114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84115         HAVE_WCRTOMB.
84116         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84117         HAVE_WCRTOMB.
84118         * modules/wcrtomb: New file.
84119         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84121 2008-12-21  Bruno Haible  <bruno@clisp.org>
84123         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84124         * modules/mbsrtowcs (Files): Likewise.
84125         * modules/wctob (Files): Likewise.
84126         * modules/c-strcase-tests (Files): Likewise.
84127         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84128         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84129         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84130         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84131         * modules/vasnprintf-posix-tests (Files): Likewise.
84133 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84135         gitlog-to-changelog: pass all command-line arguments to git-log
84136         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84137         it is sometimes convenient to filter the commits in various ways.
84138         gitlog-to-changelog only allows --since to specify a start date,
84139         but git-log itself supports many other filtering mechanisms.
84140         At the moment, I want to filter by branch name.  Rather than
84141         adding a --branch option to gitlog-to-changelog, it seems more
84142         flexible to simply pass all options directly to git-log and let
84143         git do the work.  Notice that this effectively makes --since a
84144         redundant option for gitlog-to-changelog, but removing it would
84145         require current usage to change since calls would then require
84146         an additional '--'.
84148 2008-12-21  Bruno Haible  <bruno@clisp.org>
84150         * modules/mbsnrtowcs-tests: New file.
84151         * tests/test-mbsnrtowcs1.sh: New file.
84152         * tests/test-mbsnrtowcs2.sh: New file.
84153         * tests/test-mbsnrtowcs3.sh: New file.
84154         * tests/test-mbsnrtowcs4.sh: New file.
84155         * tests/test-mbsnrtowcs.c: New file.
84157         New module 'mbsnrtowcs'.
84158         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84159         * lib/mbsnrtowcs.c: New file.
84160         * lib/mbsrtowcs-state.c: New file.
84161         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84162         (internal_state): Remove variable.
84163         * m4/mbsnrtowcs.m4: New file.
84164         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84165         compilation units.
84166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84167         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84168         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84169         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84170         * modules/mbsnrtowcs: New file.
84171         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84172         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84173         portability problem.
84175 2008-12-21  Bruno Haible  <bruno@clisp.org>
84177         Work around mbsrtowcs bug.
84178         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84179         (gl_FUNC_MBSRTOWCS): Invoke it.
84180         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84181         m4/locale-zh.m4.
84182         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84184 2008-12-21  Bruno Haible  <bruno@clisp.org>
84186         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84188 2008-12-21  Bruno Haible  <bruno@clisp.org>
84190         Update doc for AIX.
84191         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84192         16-bit wchar_t type.
84193         * doc/posix-functions/btowc.texi: Likewise.
84194         * doc/posix-functions/fgetwc.texi: Likewise.
84195         * doc/posix-functions/fgetws.texi: Likewise.
84196         * doc/posix-functions/fputwc.texi: Likewise.
84197         * doc/posix-functions/fputws.texi: Likewise.
84198         * doc/posix-functions/fwide.texi: Likewise.
84199         * doc/posix-functions/fwprintf.texi: Likewise.
84200         * doc/posix-functions/fwscanf.texi: Likewise.
84201         * doc/posix-functions/getwchar.texi: Likewise.
84202         * doc/posix-functions/getwc.texi: Likewise.
84203         * doc/posix-functions/iswalnum.texi: Likewise.
84204         * doc/posix-functions/iswalpha.texi: Likewise.
84205         * doc/posix-functions/iswblank.texi: Likewise.
84206         * doc/posix-functions/iswcntrl.texi: Likewise.
84207         * doc/posix-functions/iswctype.texi: Likewise.
84208         * doc/posix-functions/iswdigit.texi: Likewise.
84209         * doc/posix-functions/iswgraph.texi: Likewise.
84210         * doc/posix-functions/iswlower.texi: Likewise.
84211         * doc/posix-functions/iswprint.texi: Likewise.
84212         * doc/posix-functions/iswpunct.texi: Likewise.
84213         * doc/posix-functions/iswspace.texi: Likewise.
84214         * doc/posix-functions/iswupper.texi: Likewise.
84215         * doc/posix-functions/iswxdigit.texi: Likewise.
84216         * doc/posix-functions/mbrtowc.texi: Likewise.
84217         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84218         * doc/posix-functions/mbstowcs.texi: Likewise.
84219         * doc/posix-functions/mbtowc.texi: Likewise.
84220         * doc/posix-functions/putwchar.texi: Likewise.
84221         * doc/posix-functions/putwc.texi: Likewise.
84222         * doc/posix-functions/swprintf.texi: Likewise.
84223         * doc/posix-functions/tolower.texi: Likewise.
84224         * doc/posix-functions/toupper.texi: Likewise.
84225         * doc/posix-functions/towctrans.texi: Likewise.
84226         * doc/posix-functions/ungetwc.texi: Likewise.
84227         * doc/posix-functions/vswprintf.texi: Likewise.
84228         * doc/posix-functions/wcrtomb.texi: Likewise.
84229         * doc/posix-functions/wcscat.texi: Likewise.
84230         * doc/posix-functions/wcschr.texi: Likewise.
84231         * doc/posix-functions/wcscmp.texi: Likewise.
84232         * doc/posix-functions/wcscoll.texi: Likewise.
84233         * doc/posix-functions/wcscpy.texi: Likewise.
84234         * doc/posix-functions/wcscspn.texi: Likewise.
84235         * doc/posix-functions/wcsftime.texi: Likewise.
84236         * doc/posix-functions/wcslen.texi: Likewise.
84237         * doc/posix-functions/wcsncat.texi: Likewise.
84238         * doc/posix-functions/wcsncmp.texi: Likewise.
84239         * doc/posix-functions/wcsncpy.texi: Likewise.
84240         * doc/posix-functions/wcspbrk.texi: Likewise.
84241         * doc/posix-functions/wcsrchr.texi: Likewise.
84242         * doc/posix-functions/wcsrtombs.texi: Likewise.
84243         * doc/posix-functions/wcsspn.texi: Likewise.
84244         * doc/posix-functions/wcsstr.texi: Likewise.
84245         * doc/posix-functions/wcstod.texi: Likewise.
84246         * doc/posix-functions/wcstof.texi: Likewise.
84247         * doc/posix-functions/wcstoimax.texi: Likewise.
84248         * doc/posix-functions/wcstok.texi: Likewise.
84249         * doc/posix-functions/wcstold.texi: Likewise.
84250         * doc/posix-functions/wcstoll.texi: Likewise.
84251         * doc/posix-functions/wcstol.texi: Likewise.
84252         * doc/posix-functions/wcstombs.texi: Likewise.
84253         * doc/posix-functions/wcstoull.texi: Likewise.
84254         * doc/posix-functions/wcstoul.texi: Likewise.
84255         * doc/posix-functions/wcstoumax.texi: Likewise.
84256         * doc/posix-functions/wcswidth.texi: Likewise.
84257         * doc/posix-functions/wcsxfrm.texi: Likewise.
84258         * doc/posix-functions/wctob.texi: Likewise.
84259         * doc/posix-functions/wctomb.texi: Likewise.
84260         * doc/posix-functions/wctrans.texi: Likewise.
84261         * doc/posix-functions/wctype.texi: Likewise.
84262         * doc/posix-functions/wcwidth.texi: Likewise.
84263         * doc/posix-functions/wmemchr.texi: Likewise.
84264         * doc/posix-functions/wmemcmp.texi: Likewise.
84265         * doc/posix-functions/wmemcpy.texi: Likewise.
84266         * doc/posix-functions/wmemmove.texi: Likewise.
84267         * doc/posix-functions/wmemset.texi: Likewise.
84268         * doc/posix-functions/wprintf.texi: Likewise.
84269         * doc/posix-functions/wscanf.texi: Likewise.
84271 2008-12-21  Bruno Haible  <bruno@clisp.org>
84273         Update doc for HP-UX 11.11.
84274         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84275         in HP-UX version 11.00, not in all versions of HP-UX 11.
84276         * doc/posix-functions/fwide.texi: Likewise.
84277         * doc/posix-functions/fwprintf.texi: Likewise.
84278         * doc/posix-functions/fwscanf.texi: Likewise.
84279         * doc/posix-functions/inet_ntop.texi: Likewise.
84280         * doc/posix-functions/inet_pton.texi: Likewise.
84281         * doc/posix-functions/mbrlen.texi: Likewise.
84282         * doc/posix-functions/mbrtowc.texi: Likewise.
84283         * doc/posix-functions/mbsinit.texi: Likewise.
84284         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84285         * doc/posix-functions/swprintf.texi: Likewise.
84286         * doc/posix-functions/swscanf.texi: Likewise.
84287         * doc/posix-functions/towctrans.texi: Likewise.
84288         * doc/posix-functions/vfwprintf.texi: Likewise.
84289         * doc/posix-functions/vswprintf.texi: Likewise.
84290         * doc/posix-functions/vwprintf.texi: Likewise.
84291         * doc/posix-functions/wcrtomb.texi: Likewise.
84292         * doc/posix-functions/wcsrtombs.texi: Likewise.
84293         * doc/posix-functions/wcsstr.texi: Likewise.
84294         * doc/posix-functions/wctob.texi: Likewise.
84295         * doc/posix-functions/wctrans.texi: Likewise.
84296         * doc/posix-functions/wmemchr.texi: Likewise.
84297         * doc/posix-functions/wmemcmp.texi: Likewise.
84298         * doc/posix-functions/wmemcpy.texi: Likewise.
84299         * doc/posix-functions/wmemmove.texi: Likewise.
84300         * doc/posix-functions/wmemset.texi: Likewise.
84301         * doc/posix-functions/wprintf.texi: Likewise.
84302         * doc/posix-functions/wscanf.texi: Likewise.
84304 2008-12-21  Bruno Haible  <bruno@clisp.org>
84306         Work around a portability problem.
84307         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84308         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84310 2008-12-20  Bruno Haible  <bruno@clisp.org>
84312         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84313         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84314         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84315         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84316         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84318         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84319         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84320         set.
84321         (GNULIB_defined_mbstate_t): New macro.
84322         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84323         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84324         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84325         reuses the system's mbrtowc function but works around the bugs.
84326         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84327         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84328         macros.
84329         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84330         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84331         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84333         REPLACE_MBSINIT if mbsinit needs to be overridden.
84334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84335         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84336         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84337         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84338         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84339         m4/locale-zh.m4.
84340         (Depends): Add mbsinit.
84341         * modules/mbsinit (Depends): Add mbrtowc.
84342         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84344 2008-12-20  Bruno Haible  <bruno@clisp.org>
84346         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84347         so that there are no conversion errors on AIX.
84348         * tests/test-mbsrtowcs.c (main): LIkewise.
84350 2008-12-20  Bruno Haible  <bruno@clisp.org>
84352         Work around wctob bug on Solaris <= 9.
84353         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84354         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84356         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84357         * modules/wctob (Files): Add m4/locale-fr.m4.
84358         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84360 2008-12-20  Bruno Haible  <bruno@clisp.org>
84362         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84363         /dev/null.
84364         * tests/test-select-in.sh: Likewise.
84365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84367 2008-12-20  Bruno Haible  <bruno@clisp.org>
84369         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84370         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84371         Cygwin 1.5.x.
84373 2008-12-20  Bruno Haible  <bruno@clisp.org>
84375         Ensure mbstate_t is defined on HP-UX 11.11.
84376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84377         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84378         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84379         AC_USE_SYSTEM_EXTENSIONS.
84380         * modules/fnmatch (Depends-on): Add extensions.
84381         * modules/mbrlen (Depends-on): Likewise.
84382         * modules/mbrtowc (Depends-on): Likewise.
84383         * modules/mbsinit (Depends-on): Likewise.
84384         * modules/mbsrtowcs (Depends-on): Likewise.
84385         * modules/mbswidth (Depends-on): Likewise.
84386         * modules/quotearg (Depends-on): Likewise.
84387         * modules/strftime (Depends-on): Likewise.
84389 2008-12-20  Bruno Haible  <bruno@clisp.org>
84391         Ensure wctob is declared on IRIX 6.5.
84392         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84393         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84394         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84396         of HAVE_WCTOB.
84397         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84398         HAVE_WCTOB.
84399         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84401 2008-12-19  Bruno Haible  <bruno@clisp.org>
84403         * modules/mbsrtowcs-tests: New file.
84404         * tests/test-mbsrtowcs1.sh: New file.
84405         * tests/test-mbsrtowcs2.sh: New file.
84406         * tests/test-mbsrtowcs3.sh: New file.
84407         * tests/test-mbsrtowcs4.sh: New file.
84408         * tests/test-mbsrtowcs.c: New file.
84410         New module 'mbsrtowcs'.
84411         * lib/wchar.in.h (mbsrtowcs): New declaration.
84412         * lib/mbsrtowcs.c: New file.
84413         * m4/mbsrtowcs.m4: New file.
84414         * modules/mbsrtowcs: New file.
84415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84416         HAVE_MBSRTOWCS.
84417         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84418         HAVE_MBSRTOWCS.
84419         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84421 2008-12-19  Bruno Haible  <bruno@clisp.org>
84423         New module 'mbrlen'.
84424         * lib/wchar.in.h (mbrlen): New declaration.
84425         * lib/mbrlen.c: New file.
84426         * m4/mbrlen.m4: New file.
84427         * modules/mbrlen: New file.
84428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84429         HAVE_MBRLEN.
84430         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84431         HAVE_MBRLEN.
84432         * doc/posix-functions/mbrlen.texi: Document the new module.
84434 2008-12-19  Bruno Haible  <bruno@clisp.org>
84436         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84437         * modules/mbrtowc (Depends-on): Add verify.
84438         Suggested by Paul Eggert.
84440 2008-12-18  Bruno Haible  <bruno@clisp.org>
84442         * modules/mbsinit-tests: New file.
84443         * tests/test-mbsinit.sh: New file.
84444         * tests/test-mbsinit.c: New file.
84446 2008-12-18  Bruno Haible  <bruno@clisp.org>
84448         * modules/mbrtowc-tests: New file.
84449         * tests/test-mbrtowc1.sh: New file.
84450         * tests/test-mbrtowc2.sh: New file.
84451         * tests/test-mbrtowc3.sh: New file.
84452         * tests/test-mbrtowc4.sh: New file.
84453         * tests/test-mbrtowc.c: New file.
84455         New module 'mbrtowc'.
84456         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84457         mbsinit and mbrtowc.
84458         (mbrtowc): New declaration.
84459         * lib/mbrtowc.c: New file.
84460         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84461         * modules/mbrtowc: New file.
84462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84463         HAVE_MBRTOWC.
84464         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84465         HAVE_MBRTOWC.
84466         * doc/posix-functions/mbrtowc.texi: Document the new module.
84468 2008-12-18  Bruno Haible  <bruno@clisp.org>
84470         New module 'wctob'.
84471         * lib/wchar.in.h (wctob): New declaration.
84472         * lib/wctob.c: New file.
84473         * m4/wctob.m4: New file.
84474         * modules/wctob: New file.
84475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84476         HAVE_WCTOB.
84477         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84478         * doc/posix-functions/wctob.texi: Document the new module.
84480 2008-12-18  Bruno Haible  <bruno@clisp.org>
84482         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84483         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84485 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84487         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84488         G. Christensen" <tgc@jupiterrise.com>.
84490         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84491         G. Christensen" <tgc@jupiterrise.com>.
84493         * lib/flock.c: Need to include string.h.  Reported by "Tom
84494         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84495         <ebb9@byu.net>.
84497 2008-12-18  Bruno Haible  <bruno@clisp.org>
84499         * m4/locale-ja.m4: New file, from GNU gettext.
84501 2008-12-17  Bruno Haible  <bruno@clisp.org>
84503         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84504         Suggested by Eric Blake.
84506 2008-12-17  Bruno Haible  <bruno@clisp.org>
84508         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84510 2008-12-17  Bruno Haible  <bruno@clisp.org>
84512         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84513         * modules/mbsinit (Depends-on): Add verify.
84514         Suggested by Paul Eggert.
84516 2008-12-17  Bruno Haible  <bruno@clisp.org>
84518         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84519         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84520         gl_FUNC_MBRTOWC.
84521         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84522         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84523         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84524         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84525         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84526         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84527         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84528         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84529         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84530         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84531         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84532         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84533         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84534         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84535         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84536         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84537         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84538         * modules/trim (configure.ac): Likewise.
84540 2008-12-17  Bruno Haible  <bruno@clisp.org>
84542         * modules/btowc-tests: New file.
84543         * tests/test-btowc1.sh: New file.
84544         * tests/test-btowc2.sh: New file.
84545         * tests/test-btowc.c: New file.
84547         New module 'btowc'.
84548         * lib/wchar.in.h (btowc): New declaration.
84549         * lib/btowc.c: New file.
84550         * m4/btowc.m4: New file.
84551         * modules/btowc: New file.
84552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84553         HAVE_BTOWC.
84554         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84555         * doc/posix-functions/btowc.texi: Document the new module.
84557 2008-12-17  Bruno Haible  <bruno@clisp.org>
84559         New module 'mbsinit'.
84560         * lib/wchar.in.h (mbsinit): New declaration.
84561         * lib/mbsinit.c: New file.
84562         * m4/mbsinit.m4: New file.
84563         * modules/mbsinit: New file.
84564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84565         HAVE_MBSINIT.
84566         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84567         HAVE_MBSINIT.
84568         * doc/posix-functions/mbsinit.texi: Document the new module.
84570 2008-12-16  Bruno Haible  <bruno@clisp.org>
84572         * lib/unistd.in.h: Add comment.
84573         * tests/test-environ.c: Don't include <stdlib.h>.
84575 2008-12-16  Bruno Haible  <bruno@clisp.org>
84577         * lib/parse-duration.h (parse_duration): Document return value
84578         convention.
84579         * lib/parse-duration.c: Include specification header first. Add
84580         comments.
84581         (_): Remove macro.
84582         (parse_year_month_day, parse_hour_minute_second): Move side effects
84583         outside of strchr call.
84584         (parse_non_iso8601): Move side effects outside of isspace call.
84585         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84586         call.
84588 2008-12-16  Bruno Haible  <bruno@clisp.org>
84590         * tests/test-parse-duration.sh: Produce no output when the test
84591         succeeds.
84593 2008-12-16  Bruno Haible  <bruno@clisp.org>
84595         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84596         expressions.
84598 2008-12-15  Bruno Haible  <bruno@clisp.org>
84600         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84601         * doc/glibc-functions/flistxattr.texi: Likewise.
84602         * doc/glibc-functions/fopencookie.texi: Likewise.
84603         * doc/glibc-functions/fremovexattr.texi: Likewise.
84604         * doc/glibc-functions/fsetxattr.texi: Likewise.
84605         * doc/glibc-functions/getxattr.texi: Likewise.
84606         * doc/glibc-functions/lgetxattr.texi: Likewise.
84607         * doc/glibc-functions/listxattr.texi: Likewise.
84608         * doc/glibc-functions/llistxattr.texi: Likewise.
84609         * doc/glibc-functions/lremovexattr.texi: Likewise.
84610         * doc/glibc-functions/lsetxattr.texi: Likewise.
84611         * doc/glibc-functions/removexattr.texi: Likewise.
84612         * doc/glibc-functions/setxattr.texi: Likewise.
84613         * doc/posix-functions/open_memstream.texi: Likewise.
84615 2008-12-15  Eric Blake  <ebb9@byu.net>
84617         Update doc for cygwin 1.7.
84618         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84619         functions.
84620         * doc/posix-functions/fchmodat.texi: Likewise.
84621         * doc/posix-functions/fchownat.texi: Likewise.
84622         * doc/posix-functions/fdopendir.texi: Likewise.
84623         * doc/posix-functions/fmemopen.texi: Likewise.
84624         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84625         * doc/posix-functions/fstatat.texi: Likewise.
84626         * doc/posix-functions/futimens.texi: Likewise.
84627         * doc/posix-functions/gai_strerror.texi: Likewise.
84628         * doc/posix-functions/getaddrinfo.texi: Likewise.
84629         * doc/posix-functions/getnameinfo.texi: Likewise.
84630         * doc/posix-functions/if_freenameindex.texi: Likewise.
84631         * doc/posix-functions/if_indextoname.texi: Likewise.
84632         * doc/posix-functions/if_nameindex.texi: Likewise.
84633         * doc/posix-functions/if_nametoindex.texi: Likewise.
84634         * doc/posix-functions/insque.texi: Likewise.
84635         * doc/posix-functions/linkat.texi: Likewise.
84636         * doc/posix-functions/llrint.texi: Likewise.
84637         * doc/posix-functions/llrintf.texi: Likewise.
84638         * doc/posix-functions/llrintl.texi: Likewise.
84639         * doc/posix-functions/lockf.texi: Likewise.
84640         * doc/posix-functions/lrintl.texi: Likewise.
84641         * doc/posix-functions/mkdirat.texi: Likewise.
84642         * doc/posix-functions/mkfifoat.texi: Likewise.
84643         * doc/posix-functions/mknodat.texi: Likewise.
84644         * doc/posix-functions/mq_close.texi: Likewise.
84645         * doc/posix-functions/mq_getattr.texi: Likewise.
84646         * doc/posix-functions/mq_notify.texi: Likewise.
84647         * doc/posix-functions/mq_open.texi: Likewise.
84648         * doc/posix-functions/mq_receive.texi: Likewise.
84649         * doc/posix-functions/mq_send.texi: Likewise.
84650         * doc/posix-functions/mq_setattr.texi: Likewise.
84651         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84652         * doc/posix-functions/mq_timedsend.texi: Likewise.
84653         * doc/posix-functions/mq_unlink.texi: Likewise.
84654         * doc/posix-functions/open_memstream.texi: Likewise.
84655         * doc/posix-functions/openat.texi: Likewise.
84656         * doc/posix-functions/posix_fadvise.texi: Likewise.
84657         * doc/posix-functions/posix_fallocate.texi: Likewise.
84658         * doc/posix-functions/posix_madvise.texi: Likewise.
84659         * doc/posix-functions/posix_memalign.texi: Likewise.
84660         * doc/posix-functions/posix_openpt.texi: Likewise.
84661         * doc/posix-functions/readlinkat.texi: Likewise.
84662         * doc/posix-functions/remque.texi: Likewise.
84663         * doc/posix-functions/renameat.texi: Likewise.
84664         * doc/posix-functions/rintl.texi: Likewise.
84665         * doc/posix-functions/sem_unlink.texi: Likewise.
84666         * doc/posix-functions/shm_open.texi: Likewise.
84667         * doc/posix-functions/shm_unlink.texi: Likewise.
84668         * doc/posix-functions/signgam.texi: Likewise.
84669         * doc/posix-functions/sigset.texi: Likewise.
84670         * doc/posix-functions/stpcpy.texi: Likewise.
84671         * doc/posix-functions/stpncpy.texi: Likewise.
84672         * doc/posix-functions/strerror.texi: Likewise.
84673         * doc/posix-functions/strtod.texi: Likewise.
84674         * doc/posix-functions/symlinkat.texi: Likewise.
84675         * doc/posix-functions/unlinkat.texi: Likewise.
84676         * doc/posix-functions/utimensat.texi: Likewise.
84677         * doc/glibc-functions/bindresvport.texi: Likewise.
84678         * doc/glibc-functions/dn_expand.texi: Likewise.
84679         * doc/glibc-functions/exp10.texi: Likewise.
84680         * doc/glibc-functions/exp10f.texi: Likewise.
84681         * doc/glibc-functions/fgetxattr.texi: Likewise.
84682         * doc/glibc-functions/flistxattr.texi: Likewise.
84683         * doc/glibc-functions/fopencookie.texi: Likewise.
84684         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84685         * doc/glibc-functions/fremovexattr.texi: Likewise.
84686         * doc/glibc-functions/fsetxattr.texi: Likewise.
84687         * doc/glibc-functions/getifaddrs.texi: Likewise.
84688         * doc/glibc-functions/getxattr.texi: Likewise.
84689         * doc/glibc-functions/lgetxattr.texi: Likewise.
84690         * doc/glibc-functions/listxattr.texi: Likewise.
84691         * doc/glibc-functions/llistxattr.texi: Likewise.
84692         * doc/glibc-functions/lremovexattr.texi: Likewise.
84693         * doc/glibc-functions/lsetxattr.texi: Likewise.
84694         * doc/glibc-functions/pow10.texi: Likewise.
84695         * doc/glibc-functions/pow10f.texi: Likewise.
84696         * doc/glibc-functions/rcmd_af.texi: Likewise.
84697         * doc/glibc-functions/removexattr.texi: Likewise.
84698         * doc/glibc-functions/res_init.texi: Likewise.
84699         * doc/glibc-functions/res_mkquery.texi: Likewise.
84700         * doc/glibc-functions/res_query.texi: Likewise.
84701         * doc/glibc-functions/res_querydomain.texi: Likewise.
84702         * doc/glibc-functions/res_send.texi: Likewise.
84703         * doc/glibc-functions/rresvport_af.texi: Likewise.
84704         * doc/glibc-functions/setxattr.texi: Likewise.
84705         * doc/glibc-functions/strcasestr.texi: Likewise.
84707 2008-12-15  Bruno Haible  <bruno@clisp.org>
84709         Fix compilation error on OSF/1 4.0.
84710         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84711         <sys/time.h>, simply delegate to the system header.
84712         Reported by Daniel Richard G. <oss@teragram.com>.
84714 2008-12-15  Bruno Haible  <bruno@clisp.org>
84716         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84717         * doc/posix-functions/fchmodat.texi: Likewise.
84718         * doc/posix-functions/fchownat.texi: Likewise.
84719         * doc/posix-functions/fdopendir.texi: Likewise.
84720         * doc/posix-functions/fstatat.texi: Likewise.
84721         * doc/posix-functions/mkdirat.texi: Likewise.
84722         * doc/posix-functions/unlinkat.texi: Likewise.
84724 2008-12-14  Bruno Haible  <bruno@clisp.org>
84726         Update doc for POSIX:2008.
84727         * doc/posix-functions/faccessat.texi: New file.
84728         * doc/posix-functions/fchmodat.texi: New file.
84729         * doc/posix-functions/fchownat.texi: New file.
84730         * doc/posix-functions/fdopendir.texi: New file.
84731         * doc/posix-functions/fstatat.texi: New file.
84732         * doc/posix-functions/futimens.texi: New file.
84733         * doc/posix-functions/linkat.texi: New file.
84734         * doc/posix-functions/mkdirat.texi: New file.
84735         * doc/posix-functions/mkfifoat.texi: New file.
84736         * doc/posix-functions/mknodat.texi: New file.
84737         * doc/posix-functions/open_wmemstream.texi: New file.
84738         * doc/posix-functions/openat.texi: New file.
84739         * doc/posix-functions/psiginfo.texi: New file.
84740         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84741         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84742         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84743         * doc/posix-functions/readlinkat.texi: New file.
84744         * doc/posix-functions/renameat.texi: New file.
84745         * doc/posix-functions/strerror_l.texi: New file.
84746         * doc/posix-functions/symlinkat.texi: New file.
84747         * doc/posix-functions/unlinkat.texi: New file.
84748         * doc/posix-functions/utimensat.texi: New file.
84749         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84751 2008-12-14  Bruno Haible  <bruno@clisp.org>
84753         Update doc for POSIX:2008.
84754         * doc/posix-functions/alphasort.texi: Renamed from
84755         doc/glibc-functions/alphasort.texi.
84756         * doc/posix-functions/dirfd.texi: Renamed from
84757         doc/glibc-functions/dirfd.texi.
84758         * doc/posix-functions/dprintf.texi: Renamed from
84759         doc/glibc-functions/dprintf.texi.
84760         * doc/posix-functions/duplocale.texi: Renamed from
84761         doc/glibc-functions/duplocale.texi.
84762         * doc/posix-functions/fexecve.texi: Renamed from
84763         doc/glibc-functions/fexecve.texi.
84764         * doc/posix-functions/fmemopen.texi: Renamed from
84765         doc/glibc-functions/fmemopen.texi.
84766         * doc/posix-functions/freelocale.texi: Renamed from
84767         doc/glibc-functions/freelocale.texi.
84768         * doc/posix-functions/getdate_err.texi: Renamed from
84769         doc/glibc-functions/getdate_err.texi.
84770         * doc/posix-functions/isalnum_l.texi: Renamed from
84771         doc/glibc-functions/isalnum_l.texi.
84772         * doc/posix-functions/isalpha_l.texi: Renamed from
84773         doc/glibc-functions/isalpha_l.texi.
84774         * doc/posix-functions/isblank_l.texi: Renamed from
84775         doc/glibc-functions/isblank_l.texi.
84776         * doc/posix-functions/iscntrl_l.texi: Renamed from
84777         doc/glibc-functions/iscntrl_l.texi.
84778         * doc/posix-functions/isdigit_l.texi: Renamed from
84779         doc/glibc-functions/isdigit_l.texi.
84780         * doc/posix-functions/isgraph_l.texi: Renamed from
84781         doc/glibc-functions/isgraph_l.texi.
84782         * doc/posix-functions/islower_l.texi: Renamed from
84783         doc/glibc-functions/islower_l.texi.
84784         * doc/posix-functions/isprint_l.texi: Renamed from
84785         doc/glibc-functions/isprint_l.texi.
84786         * doc/posix-functions/ispunct_l.texi: Renamed from
84787         doc/glibc-functions/ispunct_l.texi.
84788         * doc/posix-functions/isspace_l.texi: Renamed from
84789         doc/glibc-functions/isspace_l.texi.
84790         * doc/posix-functions/isupper_l.texi: Renamed from
84791         doc/glibc-functions/isupper_l.texi.
84792         * doc/posix-functions/iswalnum_l.texi: Renamed from
84793         doc/glibc-functions/iswalnum_l.texi.
84794         * doc/posix-functions/iswalpha_l.texi: Renamed from
84795         doc/glibc-functions/iswalpha_l.texi.
84796         * doc/posix-functions/iswblank_l.texi: Renamed from
84797         doc/glibc-functions/iswblank_l.texi.
84798         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84799         doc/glibc-functions/iswcntrl_l.texi.
84800         * doc/posix-functions/iswctype_l.texi: Renamed from
84801         doc/glibc-functions/iswctype_l.texi.
84802         * doc/posix-functions/iswdigit_l.texi: Renamed from
84803         doc/glibc-functions/iswdigit_l.texi.
84804         * doc/posix-functions/iswgraph_l.texi: Renamed from
84805         doc/glibc-functions/iswgraph_l.texi.
84806         * doc/posix-functions/iswlower_l.texi: Renamed from
84807         doc/glibc-functions/iswlower_l.texi.
84808         * doc/posix-functions/iswprint_l.texi: Renamed from
84809         doc/glibc-functions/iswprint_l.texi.
84810         * doc/posix-functions/iswpunct_l.texi: Renamed from
84811         doc/glibc-functions/iswpunct_l.texi.
84812         * doc/posix-functions/iswspace_l.texi: Renamed from
84813         doc/glibc-functions/iswspace_l.texi.
84814         * doc/posix-functions/iswupper_l.texi: Renamed from
84815         doc/glibc-functions/iswupper_l.texi.
84816         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84817         doc/glibc-functions/iswxdigit_l.texi.
84818         * doc/posix-functions/isxdigit_l.texi: Renamed from
84819         doc/glibc-functions/isxdigit_l.texi.
84820         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84821         doc/glibc-functions/mbsnrtowcs.texi.
84822         * doc/posix-functions/mkdtemp.texi: Renamed from
84823         doc/glibc-functions/mkdtemp.texi.
84824         * doc/posix-functions/newlocale.texi: Renamed from
84825         doc/glibc-functions/newlocale.texi.
84826         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84827         doc/glibc-functions/nl_langinfo_l.texi.
84828         * doc/posix-functions/open_memstream.texi: Renamed from
84829         doc/glibc-functions/open_memstream.texi.
84830         * doc/posix-functions/opterr.texi: Renamed from
84831         doc/glibc-functions/opterr.texi.
84832         * doc/posix-functions/optind.texi: Renamed from
84833         doc/glibc-functions/optind.texi.
84834         * doc/posix-functions/optopt.texi: Renamed from
84835         doc/glibc-functions/optopt.texi.
84836         * doc/posix-functions/psignal.texi: Renamed from
84837         doc/glibc-functions/psignal.texi.
84838         * doc/posix-functions/scandir.texi: Renamed from
84839         doc/glibc-functions/scandir.texi.
84840         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84841         doc/glibc-functions/sched_get_priority_min.texi.
84842         * doc/posix-functions/signgam.texi: Renamed from
84843         doc/glibc-functions/signgam.texi.
84844         * doc/posix-functions/stpcpy.texi: Renamed from
84845         doc/glibc-functions/stpcpy.texi.
84846         * doc/posix-functions/stpncpy.texi: Renamed from
84847         doc/glibc-functions/stpncpy.texi.
84848         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84849         doc/glibc-functions/strcasecmp_l.texi.
84850         * doc/posix-functions/strcoll_l.texi: Renamed from
84851         doc/glibc-functions/strcoll_l.texi.
84852         * doc/posix-functions/strfmon_l.texi: Renamed from
84853         doc/glibc-functions/strfmon_l.texi.
84854         * doc/posix-functions/strftime_l.texi: Renamed from
84855         doc/glibc-functions/strftime_l.texi.
84856         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84857         doc/glibc-functions/strncasecmp_l.texi.
84858         * doc/posix-functions/strndup.texi: Renamed from
84859         doc/glibc-functions/strndup.texi.
84860         * doc/posix-functions/strnlen.texi: Renamed from
84861         doc/glibc-functions/strnlen.texi.
84862         * doc/posix-functions/strsignal.texi: Renamed from
84863         doc/glibc-functions/strsignal.texi.
84864         * doc/posix-functions/strxfrm_l.texi: Renamed from
84865         doc/glibc-functions/strxfrm_l.texi.
84866         * doc/posix-functions/timer_gettime.texi: Renamed from
84867         doc/glibc-functions/timer_gettime.texi.
84868         * doc/posix-functions/tolower_l.texi: Renamed from
84869         doc/glibc-functions/tolower_l.texi.
84870         * doc/posix-functions/toupper_l.texi: Renamed from
84871         doc/glibc-functions/toupper_l.texi.
84872         * doc/posix-functions/towctrans_l.texi: Renamed from
84873         doc/glibc-functions/towctrans_l.texi.
84874         * doc/posix-functions/towlower_l.texi: Renamed from
84875         doc/glibc-functions/towlower_l.texi.
84876         * doc/posix-functions/towupper_l.texi: Renamed from
84877         doc/glibc-functions/towupper_l.texi.
84878         * doc/posix-functions/uselocale.texi: Renamed from
84879         doc/glibc-functions/uselocale.texi.
84880         * doc/posix-functions/vdprintf.texi: Renamed from
84881         doc/glibc-functions/vdprintf.texi.
84882         * doc/posix-functions/wcpcpy.texi:
84883         Renamed from doc/glibc-functions/wcpcpy.texi.
84884         * doc/posix-functions/wcpncpy.texi: Renamed from
84885         doc/glibc-functions/wcpncpy.texi.
84886         * doc/posix-functions/wcscasecmp.texi: Renamed from
84887         doc/glibc-functions/wcscasecmp.texi.
84888         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84889         doc/glibc-functions/wcscasecmp_l.texi.
84890         * doc/posix-functions/wcscoll_l.texi: Renamed from
84891         doc/glibc-functions/wcscoll_l.texi.
84892         * doc/posix-functions/wcsdup.texi: Renamed from
84893         doc/glibc-functions/wcsdup.texi.
84894         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84895         doc/glibc-functions/wcsncasecmp.texi.
84896         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84897         doc/glibc-functions/wcsncasecmp_l.texi.
84898         * doc/posix-functions/wcsnlen.texi: Renamed from
84899         doc/glibc-functions/wcsnlen.texi.
84900         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84901         doc/glibc-functions/wcsnrtombs.texi.
84902         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84903         doc/glibc-functions/wcsxfrm_l.texi.
84904         * doc/posix-functions/wctrans_l.texi: Renamed from
84905         doc/glibc-functions/wctrans_l.texi.
84906         * doc/posix-functions/wctype_l.texi: Renamed from
84907         doc/glibc-functions/wctype_l.texi.
84908         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84909         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84910         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84911         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84912         these subsections.
84913         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84914         Remove sections.
84916 2008-12-14  Bruno Haible  <bruno@clisp.org>
84918         Update doc for POSIX:2008.
84919         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84921 2008-12-14  Bruno Haible  <bruno@clisp.org>
84923         Update doc for POSIX:2008.
84924         * doc/pastposix-functions/bcmp.texi: Renamed from
84925         doc/posix-functions/bcmp.texi.
84926         * doc/pastposix-functions/bcopy.texi: Renamed from
84927         doc/posix-functions/bcopy.texi.
84928         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84929         doc/posix-functions/bsd_signal.texi.
84930         * doc/pastposix-functions/bzero.texi: Renamed from
84931         doc/posix-functions/bzero.texi.
84932         * doc/pastposix-functions/ecvt.texi: Renamed from
84933         doc/posix-functions/ecvt.texi.
84934         * doc/pastposix-functions/fcvt.texi: Renamed from
84935         doc/posix-functions/fcvt.texi.
84936         * doc/pastposix-functions/ftime.texi: Renamed from
84937         doc/posix-functions/ftime.texi.
84938         * doc/pastposix-functions/gcvt.texi: Renamed from
84939         doc/posix-functions/gcvt.texi.
84940         * doc/pastposix-functions/getcontext.texi: Renamed from
84941         doc/posix-functions/getcontext.texi.
84942         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84943         doc/posix-functions/gethostbyaddr.texi.
84944         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84945         doc/posix-functions/gethostbyname.texi.
84946         * doc/pastposix-functions/getwd.texi: Renamed from
84947         doc/posix-functions/getwd.texi.
84948         * doc/pastposix-functions/h_errno.texi: Renamed from
84949         doc/posix-functions/h_errno.texi.
84950         * doc/pastposix-functions/index.texi: Renamed from
84951         doc/posix-functions/index.texi.
84952         * doc/pastposix-functions/makecontext.texi: Renamed from
84953         doc/posix-functions/makecontext.texi.
84954         * doc/pastposix-functions/mktemp.texi: Renamed from
84955         doc/posix-functions/mktemp.texi.
84956         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84957         doc/posix-functions/pthread_attr_getstackaddr.texi.
84958         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84959         doc/posix-functions/pthread_attr_setstackaddr.texi.
84960         * doc/pastposix-functions/rindex.texi: Renamed from
84961         doc/posix-functions/rindex.texi.
84962         * doc/pastposix-functions/scalb.texi: Renamed from
84963         doc/posix-functions/scalb.texi.
84964         * doc/pastposix-functions/setcontext.texi: Renamed from
84965         doc/posix-functions/setcontext.texi.
84966         * doc/pastposix-functions/swapcontext.texi: Renamed from
84967         doc/posix-functions/swapcontext.texi.
84968         * doc/pastposix-functions/ualarm.texi: Renamed from
84969         doc/posix-functions/ualarm.texi.
84970         * doc/pastposix-functions/usleep.texi: Renamed from
84971         doc/posix-functions/usleep.texi.
84972         * doc/pastposix-functions/vfork.texi: Renamed from
84973         doc/posix-functions/vfork.texi.
84974         * doc/pastposix-functions/wcswcs.texi: Renamed from
84975         doc/posix-functions/wcswcs.texi.
84976         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
84977         (Function Substitutes): Update.
84979 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84981         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
84982         m4/strerror.m4.
84984 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84985             Bruno Haible  <bruno@clisp.org>
84987         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
84989 2008-12-13  Bruno Haible  <bruno@clisp.org>
84991         * modules/strtoull (Depends-on): Remove unistd.
84993 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84995         * modules/strtoull (Depends-on): Add stdlib.
84997 2008-12-11  Simon Josefsson  <simon@josefsson.org>
84999         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85001 2008-12-10  Jim Meyering  <meyering@redhat.com>
85003         gl_ASSERT: don't say assertions are disabled when they're not
85004         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85005         "checking whether to enable assertions... no", when they are in
85006         fact enabled.  This is solely a bug in the output of configure.
85007         In spite of saying "no", NDEBUG was not defined in that case.
85008         Also, as noted by Eric Blake, leave assertions enabled upon
85009         --enable-assert=INVALID.
85011 2008-12-10  Bruno Haible  <bruno@clisp.org>
85013         Change MODULES.html to refer to POSIX:2008 where possible.
85014         * MODULES.html.sh (POSIX2008_URL): New variable.
85015         (posix_headers): Remove sys/timeb, ucontext.
85016         (posix2001_headers): New variable.
85017         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85018         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85019         index, makecontext, mktemp, pthread_attr_getstackaddr,
85020         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85021         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85022         (posix2001_functions): New variable.
85023         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85024         otherwise.
85026 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85028         add missing include to parse-duration.c
85029         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85030         * modules/parse-duration (Depends-on): Add xalloc.
85032         fix sed script reading maint.mk
85033         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85034         (syntax-check-rules): Use it.
85036 2008-12-09  Bruno Haible  <bruno@clisp.org>
85038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85039         MacOS X 10.4/PowerPC.
85040         Reported by Simon Josefsson.
85042 2008-12-08  Jim Meyering  <meyering@redhat.com>
85044         work around mingw's lack of some S_IF definitions
85045         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85046         Reported by Simon Josefsson.
85048 2008-12-08  Bruno Haible  <bruno@clisp.org>
85050         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85051         applied to variables. Needed on MacOS X 10.4/PowerPC.
85052         Reported by Simon Josefsson.
85054 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85055         and Eric Blake  <ebb9@byu.net>
85057         assert: honor --enable-assert
85058         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85059         order to honor --enable-assert, rather than treating it as a
85060         synonym for --disable-assert.
85062 2008-12-08  Jim Meyering  <meyering@redhat.com>
85064         * lib/posixtm.c: Remove now-useless declaration of mktime.
85066         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85068 2008-12-07  Bruno Haible  <bruno@clisp.org>
85070         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85071         test_once): Mark functions as static.
85072         * tests/test-tls.c (test_tls): Likewise.
85074 2008-12-07  Bruno Haible  <bruno@clisp.org>
85076         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
85077         iconv_register_autodetect.
85079 2008-12-07  Jim Meyering  <meyering@redhat.com>
85081         posixtm.c: avoid a warning
85082         * lib/posixtm.c (posixtime): Don't initialize tm0.
85083         It's no longer needed to placate gcc4's -Wuninitialized,
85084         and the attempt to placate would elicit a new warning.
85086         unicodeio.c: mark unused parameters
85087         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85088         (fallback_failure_callback): Likewise.
85090 2008-12-07  Bruno Haible  <bruno@clisp.org>
85092         * gnulib-tool (func_create_testdir): When building the tests
85093         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
85094         Reported by Simon Josefsson.
85096 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85098         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
85100 2008-12-06  Bruno Haible  <bruno@clisp.org>
85102         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
85103         Suggested by Eric Blake.
85105 2008-12-06  Bruno Haible  <bruno@clisp.org>
85107         Fix a c-stack test failure on MacOS X.
85108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85109         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85110         handler for SIGBUS as well.
85111         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85112         install a signal handler for SIGBUS as well.
85113         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85115 2008-12-06  Bruno Haible  <bruno@clisp.org>
85117         Advocacy documentation.
85118         * doc/gnulib-intro.texi (Benefits): New section.
85119         * doc/gnulib.texi: Update.
85121 2008-12-06  Bruno Haible  <bruno@clisp.org>
85123         Document the 'manywarnings' module.
85124         * doc/manywarnings.texi: New file.
85125         * doc/gnulib.texi: Include it.
85127 2008-12-05  Eric Blake  <ebb9@byu.net>
85129         tests: silence some gcc warnings
85130         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85131         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85132         type mismatches.
85134 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85135             Bruno Haible  <bruno@clisp.org>
85137         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85139 2008-11-29  Jim Meyering  <meyering@redhat.com>
85141         unicodeio.c: mark unused parameters
85142         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85143         (fallback_failure_callback): Likewise.
85145         fts: fix a thinko
85146         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85147         (set_stat_type): Return S_IF*-valued "type" directly.
85148         Prompted by James Youngman's spotting a related bug.
85149         Confirmed by further testing through find.
85151         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85152         * lib/fts.c (D_TYPE): Define.
85153         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85154         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85155         (s_ifmt_shift_bits): New function.
85156         (set_stat_type): New function.
85157         (fts_build): When not calling fts_stat, call set_stat_type
85158         to propagate dirent.d_type info to fts_read caller.
85159         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85160         fts_statp->st_mode type information may be valid.
85162 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85164         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85165         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85166         <sds@gnu.org>.
85168 2008-11-20  Bruno Haible  <bruno@clisp.org>
85170         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85171         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85172         INCLUDE_NEXT.
85173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85174         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85175         * modules/math (Makefile.am): Substitute
85176         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85177         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85179 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85180             Bruno Haible  <bruno@clisp.org>
85182         * lib/stdint.in.h: Define all type macros so that their expansion is
85183         a single typedef'ed token. Fixes a compilation failure in Boost which
85184         does "using ::int8_t;".
85186 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85188         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85189         gl_MANYWARN_ALL_GCC.
85190         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85191         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85192         * modules/manywarnings: New file.
85193         * MODULES.html.sh: Mention manywarnings module.
85195 2008-11-18  Bruno Haible  <bruno@clisp.org>
85197         * doc/gnulib-tool.texi (Unit tests): New section.
85199 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85201         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85202         paths like 'lib/po/foo.po'.
85204 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85206         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85207         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85209 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85211         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85212         parameter works.
85214 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85216         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85218 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85220         * modules/parse-duration-tests: New file.
85221         * tests/test-parse-duration.sh: New file.
85222         * tests/test-parse-duration.c: New file.
85224         New module 'parse-duration'.
85225         * lib/parse-duration.h: New file.
85226         * lib/parse-duration.c: New file.
85227         * modules/parse-duration: New file.
85229 2008-11-17  Bruno Haible  <bruno@clisp.org>
85231         * tests/test-select-out.sh: Comment out the first pipe test.
85232         Reported by Simon Josefsson.
85234 2008-11-17  Bruno Haible  <bruno@clisp.org>
85236         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85238         gl_HOSTENT.
85240 2008-11-17  Bruno Haible  <bruno@clisp.org>
85242         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85243         -lnetwork and -lnet. Needed for Haiku and BeOS.
85245 2008-11-16  Bruno Haible  <bruno@clisp.org>
85247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85249 2008-11-16  Bruno Haible  <bruno@clisp.org>
85251         Avoid test failure on Haiku.
85252         * tests/test-fsync.c: Include <errno.h>.
85253         (main): Don't require that fsync (0) fails.
85255 2008-11-15  Bruno Haible  <bruno@clisp.org>
85257         New module 'hostent'.
85258         * modules/hostent: New file.
85259         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85261 2008-11-15  Bruno Haible  <bruno@clisp.org>
85263         New module 'servent'.
85264         * modules/servent: New file.
85265         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85267 2008-11-15  Bruno Haible  <bruno@clisp.org>
85269         Avoid generating same test program with two different rules.
85270         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85271         test-frexp to test-frexp-nolibm.
85272         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85273         test-frexpl to test-frexpl-nolibm.
85275 2008-11-15  Bruno Haible  <bruno@clisp.org>
85277         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85278         $(FREXPL_LIBM).
85280 2008-11-15  Bruno Haible  <bruno@clisp.org>
85282         * lib/netdb.in.h: Activate the definitions also when the system's
85283         <netdb.h> has 'struct addrinfo'.
85284         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85285         EAI_OVERFLOW or AI_NUMERICSERV.
85286         * doc/posix-headers/netdb.texi: Document the problem.
85288 2008-11-15  Bruno Haible  <bruno@clisp.org>
85290         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85292         Make the 'sched' module work on platforms where <sched.h> exists but
85293         is incomplete (such as Haiku).
85294         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85295         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85296         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85297         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85298         HAVE_STRUCT_SCHED_PARAM.
85299         * modules/sched (Depends-on): Add include_next.
85300         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85301         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85302         * doc/posix-headers/sched.texi: Document the issue.
85304 2008-11-13  Jim Meyering  <meyering@redhat.com>
85306         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85307         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85308         test would fail due to the difference in the Report bugs to ...
85309         line.  The expected address is empty, "<>", while the actual
85310         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85312 2008-11-12  Bruno Haible  <bruno@clisp.org>
85314         lstat: don't compile lstat.c on systems lacking lstat
85315         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85316         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85317         Reported by Daniel P. Berrange via Jim Meyering.
85319 2008-11-12  Jim Meyering  <meyering@redhat.com>
85321         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85323 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85325         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85326         instead.
85328 2008-11-12  Bruno Haible  <bruno@clisp.org>
85330         * lib/unicodeio.c: Include unistr.h.
85331         (utf8_wctomb): Remove function.
85332         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85334 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85336         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85337         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85338         <bruno@clisp.org>.
85339         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85341 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85343         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85344         * doc/gnulib.texi: Add section for warnings.
85346 2008-11-11  Bruno Haible  <bruno@clisp.org>
85348         * lib/sockets.h: Add a comment.
85350 2008-11-11  Karl Berry  <karl@gnu.org>
85352         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85354 2008-11-11  Eric Blake  <ebb9@byu.net>
85356         fdl.texi: avoid git symlinks
85357         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85359 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85361         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85363 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85365         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85366         (gl_WARN_ADD): Substitute $2 if literal.
85368 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85370         * m4/warning.m4: Remove.
85372 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85374         * m4/warnings.m4: Almost complete rewrite. :-)
85376 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85378         * modules/warnings: New module.
85379         * m4/warnings.m4: New file.
85380         * MODULES.html.sh: Mention warnings module.
85381         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85382         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85384 2008-11-10  Eric Blake  <ebb9@byu.net>
85386         fdl.texi: make a symlink to the latest version
85387         * doc/standards.texi: Revert today's earlier change.
85388         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85389         * doc/fdl.texi: ...and replace this with a symlink to the newer
85390         fdl-1.3.texi.
85392 2008-11-10  Bruno Haible  <bruno@clisp.org>
85394         * tests/test-select-fd.c (main): Accept the result file name as fourth
85395         argument.
85396         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85397         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85399 2008-11-10  Bruno Haible  <bruno@clisp.org>
85401         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85402         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85403         as autoconf-substituted macros.
85404         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85406         gl_NETDB_H_DEFAULTS. Set these variables.
85407         * modules/netdb (Makefile.am): Substitute these variables.
85409 2008-11-10  Eric Blake  <ebb9@byu.net>
85411         standards.texi: include correct file for FDL 1.3
85412         * doc/standards.texi (GNU Free Documentation License): Change
85413         include file to pull in FDL 1.3, not 1.2.
85415         fdl.texi: revert accidental change to license
85416         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85418 2008-11-10  Bruno Haible  <bruno@clisp.org>
85420         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85421         cross-compiling guesses also when the native compile gives no result.
85423 2008-11-10  Bruno Haible  <bruno@clisp.org>
85425         * lib/spawni.c (__spawni): Force variable into the stack.
85427 2008-11-10  Bruno Haible  <bruno@clisp.org>
85429         Add support for Haiku.
85430         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85431         glibc and BeOS, but also on Haiku.
85432         * lib/fpurge.c (fpurge): Likewise.
85433         * lib/freadable.c (freadable): Likewise.
85434         * lib/freadahead.c (freadahead): Likewise.
85435         * lib/freading.c (freading): Likewise.
85436         * lib/freadptr.c (freadptr): Likewise.
85437         * lib/freadseek.c (freadptrinc): Likewise.
85438         * lib/fseeko.c (rpl_fseeko): Likewise.
85439         * lib/fseterr.c (fseterr): Likewise.
85440         * lib/fwritable.c (fwritable): Likewise.
85441         * lib/fwriting.c (fwriting): Likewise.
85442         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85444 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85446         * lib/config.charset: Treat Haiku like BeOS.
85448 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85450         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85451         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85453 2008-11-08  Bruno Haible  <bruno@clisp.org>
85455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85456         AC_CACHE_CHECK.
85458 2008-11-08  Bruno Haible  <bruno@clisp.org>
85460         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85462 2008-11-08  Bruno Haible  <bruno@clisp.org>
85464         * tests/test-select-fd.c: New file.
85465         * tests/test-select-in.sh: New file.
85466         * tests/test-select-out.sh: New file.
85467         * tests/test-select-stdin.c: New file.
85468         * modules/select-tests (Files): Add the new files.
85469         (Depends-on): Add gettimeofday.
85470         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85471         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85472         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85474 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85475             Bruno Haible  <bruno@clisp.org>
85477         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85479 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85481         * build-aux/pmccabe2html: Added support for C++ source files.
85483 2008-11-05  Ben Pfaff  <blp@gnu.org>
85485         Fix lib/close.c build on Windows.
85486         * modules/close (Files): Add lib/w32sock.h.
85488 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85490         Accept Bison's NEWS format.
85491         * build-aux/announce-gen (print_news_deltas): Tweak
85492         $re_prefix.
85494 2008-11-04  Bruno Haible  <bruno@clisp.org>
85496         * modules/random_r (Maintainer): Add glibc.
85498 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85500         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85501         by karl@freefriends.org (Karl Berry).
85502         * doc/alloca.texi: Likewise.
85503         * doc/c-ctype.texi: Likewise.
85504         * doc/c-strcase.texi: Likewise.
85505         * doc/c-strcaseeq.texi: Likewise.
85506         * doc/c-strcasestr.texi: Likewise.
85507         * doc/c-strstr.texi: Likewise.
85508         * doc/c-strtod.texi: Likewise.
85509         * doc/c-strtold.texi: Likewise.
85510         * doc/ctime.texi: Likewise.
85511         * doc/error.texi: Likewise.
85512         * doc/fdl.texi: Likewise.
85513         * doc/gcd.texi: Likewise.
85514         * doc/getdate.texi: Likewise.
85515         * doc/gnulib-intro.texi: Likewise.
85516         * doc/gnulib-tool.texi: Likewise.
85517         * doc/gnulib.texi: Likewise.
85518         * doc/inet_ntoa.texi: Likewise.
85519         * doc/maintain.texi: Likewise.
85520         * doc/make-stds.texi: Likewise.
85521         * doc/quote.texi: Likewise.
85522         * doc/regexprops-generic.texi: Likewise.
85523         * doc/standards.texi: Likewise.
85524         * doc/verify.texi: Likewise.
85525         * doc/visibility.texi: Likewise.
85526         * doc/gnulib.texi (GNU Free Documentation License): Include
85527         fdl-1.3.texi instead of fdl.texi.
85529 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85531         * doc/fdl-1.3.texi: New file, from
85532         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85533         * modules/fdl-1.3: Add.
85534         * MODULES.html.sh: Add fdl-1.3.
85536 2008-11-03  Bruno Haible  <bruno@clisp.org>
85538         Make determination of absolute name of header file work with AIX xlc.
85539         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85540         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85541         preprocessing.
85542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85543         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85545 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85547         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85548         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85549         <ludo@gnu.org>.
85551 2008-11-02  Bruno Haible  <bruno@clisp.org>
85553         Mark 'strpbrk' obsolete.
85554         * modules/strpbrk (Status, Notice): New sections.
85555         * modules/strtok_r (Depends-on): Add strpbrk.
85557 2008-11-02  Bruno Haible  <bruno@clisp.org>
85559         Mark 'strdup' obsolete.
85560         * modules/strdup (Status, Notice): New sections.
85561         * modules/findprog (Depends-on): Add strdup.
85562         * modules/getaddrinfo (Depends-on): Likewise.
85563         * modules/localename (Depends-on): Likewise.
85564         * modules/relocatable-lib (Depends-on): Likewise.
85565         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85566         * modules/relocatable-prog (Depends-on): Likewise.
85567         * modules/trim (Depends-on): Likewise.
85568         * modules/unictype/gen-ctype (Depends-on): Likewise.
85569         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85571 2008-11-02  Bruno Haible  <bruno@clisp.org>
85573         Mark 'strcspn' obsolete.
85574         * modules/strcspn (Status, Notice): New sections.
85576 2008-11-02  Bruno Haible  <bruno@clisp.org>
85578         Mark 'rmdir' obsolete.
85579         * modules/rmdir (Status, Notice): New sections.
85580         * modules/clean-temp (Depends-on): Add rmdir.
85581         * modules/openat (Depends-on): Likewise.
85583 2008-11-02  Bruno Haible  <bruno@clisp.org>
85585         Mark 'raise' obsolete.
85586         * modules/raise (Status, Notice): New sections.
85587         (Include): Specify <signal.h>.
85588         * modules/stdio (Depends-on): Add raise.
85589         * modules/write (Depends-on): Likewise.
85591 2008-11-02  Bruno Haible  <bruno@clisp.org>
85593         Mark 'memset' obsolete.
85594         * modules/memset (Status, Notice): New sections.
85596 2008-11-02  Bruno Haible  <bruno@clisp.org>
85598         Mark 'memmove' obsolete.
85599         * modules/memmove (Status, Notice): New sections.
85600         * modules/argp (Depends-on): Add memmove.
85601         * modules/argz (Depends-on): Likewise.
85602         * modules/canonicalize (Depends-on): Likewise.
85603         * modules/canonicalize-lgpl (Depends-on): Likewise.
85604         * modules/fts (Depends-on): Likewise.
85605         * modules/getcwd (Depends-on): Likewise.
85606         * modules/human (Depends-on): Likewise.
85607         * modules/regex (Depends-on): Likewise.
85608         * modules/striconveh (Depends-on): Likewise.
85609         * modules/trim (Depends-on): Likewise.
85610         * modules/unistr/u8-move (Depends-on): Likewise.
85611         * modules/unistr/u16-move (Depends-on): Likewise.
85612         * modules/unistr/u32-move (Depends-on): Likewise.
85614 2008-11-02  Bruno Haible  <bruno@clisp.org>
85616         Mark 'memcpy' obsolete.
85617         * modules/memcpy (Status, Notice): New sections.
85619 2008-11-02  Bruno Haible  <bruno@clisp.org>
85621         Mark 'memcmp' obsolete.
85622         * modules/memcmp (Status, Notice): New sections.
85623         * modules/argmatch (Depends-on): Add memchr.
85624         * modules/backupfile (Depends-on): Likewise.
85625         * modules/c-strcasestr (Depends-on): Likewise.
85626         * modules/crypto/des (Depends-on): Likewise.
85627         * modules/csharpcomp (Depends-on): Likewise.
85628         * modules/fnmatch (Depends-on): Likewise.
85629         * modules/git-merge-changelog (Depends-on): Likewise.
85630         * modules/isnand (Depends-on): Likewise.
85631         * modules/isnand-nolibm (Depends-on): Likewise.
85632         * modules/isnanf (Depends-on): Likewise.
85633         * modules/isnanf-nolibm (Depends-on): Likewise.
85634         * modules/isnanl (Depends-on): Likewise.
85635         * modules/isnanl-nolibm (Depends-on): Likewise.
85636         * modules/mbchar (Depends-on): Likewise.
85637         * modules/memcoll (Depends-on): Likewise.
85638         * modules/quotearg (Depends-on): Likewise.
85639         * modules/regex (Depends-on): Likewise.
85640         * modules/relocatable-prog (Depends-on): Likewise.
85641         * modules/same (Depends-on): Likewise.
85642         * modules/signbit (Depends-on): Likewise.
85643         * modules/strcasestr-simple (Depends-on): Likewise.
85644         * modules/unictype/gen-ctype (Depends-on): Likewise.
85645         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85646         * modules/uniname/uniname (Depends-on): Likewise.
85647         * modules/unistr/u8-cmp (Depends-on): Likewise.
85649 2008-11-02  Bruno Haible  <bruno@clisp.org>
85651         Mark 'memchr' obsolete.
85652         * modules/memchr (Status, Notice): New sections.
85653         * modules/argp (Depends-on): Add memchr.
85654         * modules/base64 (Depends-on): Likewise.
85655         * modules/c-strcasestr (Depends-on): Likewise.
85656         * modules/chdir-long (Depends-on): Likewise.
85657         * modules/fnmatch (Depends-on): Likewise.
85658         * modules/getsubopt (Depends-on): Likewise.
85659         * modules/git-merge-changelog (Depends-on): Likewise.
85660         * modules/glob (Depends-on): Likewise.
85661         * modules/strcasestr-simple (Depends-on): Likewise.
85662         * modules/strnlen (Depends-on): Likewise.
85664 2008-11-02  Bruno Haible  <bruno@clisp.org>
85666         Mark 'atexit' obsolete.
85667         * modules/atexit (Status, Notice): New sections.
85668         * modules/chdir-long (Depends-on): Add atexit.
85669         * modules/wait-process (Depends-on): Likewise.
85671 2008-11-02  Bruno Haible  <bruno@clisp.org>
85673         * gnulib-tool: New option --with-obsolete.
85674         (func_usage): Document it.
85675         (func_modules_transitive_closure): Drop obsolete dependencies if
85676         incobsolete is not true.
85677         (func_import): Read and save the incobsolete variable to the cache.
85679 2008-11-02  Bruno Haible  <bruno@clisp.org>
85681         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85682         * gnulib-tool: New option --extract-status.
85683         (func_usage): Document it.
85684         (sed_extract_prog): Recognize it.
85685         (func_get_status): New function.
85687 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85689         * modules/sockets (License): Change from LGPL to LGPLv2+.
85691 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85693         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85695 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85697         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85698         Mention times and sys_times.
85699         * modules/sys_times, modules/sys_times-tests: New modules.
85700         * modules/times, modules/times-tests: Likewise
85701         * m4/sys_times_h.m4: New file.
85702         * lib/sys_times.in.h: Likewise
85703         * lib/times.c: Likewise.
85704         * tests/test-sys_times.c: Likewise.
85705         * tests/test-times.c: Likewise.
85706         * doc/posix-headers/sys_times.texi: Update.
85707         * doc/posix-functions/times.texi: Update.
85709 2008-10-28  Jim Meyering  <meyering@redhat.com>
85711         * modules/tempname (Depends-on): Add lstat.
85713         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85715 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85717         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85718         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85719         using idiom used elsewhere in gnulib.
85721 2008-10-27  Jim Meyering  <meyering@redhat.com>
85723         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85725 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85727         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85728         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85729         programs.
85730         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85732 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85734         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85736 2008-10-27  Bruno Haible  <bruno@clisp.org>
85738         * tests/test-lstat.c: Include <stdio.h>.
85740 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85742         * modules/lstat-tests: New module.
85743         * tests/test-lstat.c: New file.
85745 2008-10-26  Jim Meyering  <meyering@redhat.com>
85747         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85749 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85750             Bruno Haible  <bruno@clisp.org>
85752         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85753         * modules/configmake (Include): Add a note that the include must come
85754         after all system headers.
85755         * lib/javaversion.c: Include configmake.h after all other includes.
85757 2008-10-26  Bruno Haible  <bruno@clisp.org>
85759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85760         HAVE_STRUCT_RANDOM_DATA to 1.
85761         (gl_STDLIB_H): Simplify.
85763 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85765         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85766         substitute HAVE_STRUCT_RANDOM_DATA.
85767         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85768         random_data.
85769         * modules/stdlib (Makefile.am): Substitute
85770         HAVE_STRUCT_RANDOM_DATA.
85772 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85774         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85775         * doc/gnulib-intro.texi (Copyright): Likewise.
85777 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85779         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85780         findings.
85782 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85783             Bruno Haible  <bruno@clisp.org>
85785         * lib/unistd.in.h: Include <winsock2.h>.
85786         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85787         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85788         Provide dummy declarations.
85789         (gethostname): Override.
85790         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85792         gl_PREREQ_SYS_H_WINSOCK2.
85793         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85794         * doc/posix-functions/gethostname.texi: More details.
85796 2008-10-25  Bruno Haible  <bruno@clisp.org>
85798         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85799         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85800         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85802         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85803         here ...
85804         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85806         gl_UNISTD_H_DEFAULTS.
85808 2008-10-25  Eric Blake  <ebb9@byu.net>
85810         signbit: avoid spurious compiler failure
85811         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85812         declarations inside function.
85814 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85815             Bruno Haible  <bruno@clisp.org>
85817         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85818         * modules/random_r (Depends-on): Add stdint.
85820 2008-10-24  Bruno Haible  <bruno@clisp.org>
85822         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85823         Eggert.
85824         * modules/strerror (License): Likewise.
85826 2008-10-24  Jim Meyering  <meyering@redhat.com>
85828         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85829         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85831 2008-10-24  Eric Blake  <ebb9@byu.net>
85833         getgroups: fix compilation when getgroups is available
85834         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85835         but with <config.h> override of getgroups disabled.
85837 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85839         * doc/gnulib.texi (Header files): Add note about C++ problems.
85840         Explained by Bruno Haible <bruno@clisp.org>.
85842 2008-10-23  Bruno Haible  <bruno@clisp.org>
85844         Define a dummy SA_NODEFER macro on Interix.
85845         * lib/signal.in.h (SA_NODEFER): Define fallback.
85846         Reported by Aleksey Cheusov <cheusov@tut.by> via
85847         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85849 2008-10-23  Bruno Haible  <bruno@clisp.org>
85851         * modules/freadahead (License): Change to LGPLv2+.
85852         Suggested by Simon Josefsson.
85854 2008-10-23  Jim Meyering  <meyering@redhat.com>
85856         random_r: new module
85857         * modules/random_r: New file.
85858         * m4/random_r.m4: New file.
85859         * lib/random_r.c: New file, from glibc.
85860         * modules/random_r-tests: New file.
85861         * tests/test-random_r.c: New file.
85862         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85863          Declare.
85864         (RAND_MAX): Define.
85865         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85866         * modules/stdlib: Substitute them, too.
85867         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85868         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85869         * doc/glibc-functions/random_r.texi: Likewise.
85870         * doc/glibc-functions/setstate_r.texi: Likewise.
85871         * doc/glibc-functions/srandom_r.texi: Likewise.
85872         * config/srclist.txt: Mention it.
85874 2008-10-23  David Lutterkort  <lutter@redhat.com>
85876         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85877         link requirement
85879 2008-10-23  Jim Meyering  <meyering@redhat.com>
85881         selinux-h: mark parameters of stub functions as intentionally unused
85882         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85883         * lib/se-context.in.h: Likewise.
85885 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85887         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85889 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85891         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85893 2008-10-22  Eric Blake  <ebb9@byu.net>
85895         glthread/thread: avoid compiler warning
85896         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85897         Add unreachable abort to silence compiler.
85899 2008-10-22  Eric Blake  <ebb9@byu.net>
85901         netdb: also supply struct addrinfo for cygwin 1.5.x
85902         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85903         older cygwin.
85904         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85905         cygwin.
85906         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85908 2008-10-22  Bruno Haible  <bruno@clisp.org>
85910         * users.txt: Update entry about pspp.
85912 2008-10-21  Bruno Haible  <bruno@clisp.org>
85914         Simplification.
85915         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85916         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85918         Simplification.
85919         * lib/ioctl.c (ioctl): Don't undefine.
85920         * lib/socket.c (socket): Don't undefine.
85922         Remove unused module indicator macros.
85923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85924         GNULIB_$1 as a C macro.
85926         * doc/posix-functions/close.texi: Undo last change.
85927         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85928         Windows platforms.
85930 2008-10-21  Bruno Haible  <bruno@clisp.org>
85932         Add gethostname() declaration to <unistd.h>.
85933         * lib/unistd.in.h (gethostname): New declaration.
85934         * lib/gethostname.c: Include <unistd.h>.
85935         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85936         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85938         and HAVE_GETHOSTNAME.
85939         * modules/gethostname (Depends-on): Add unistd.
85940         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85941         (Include): Specify <unistd.h>.
85942         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85943         HAVE_GETHOSTNAME.
85944         * tests/test-gethostname.c: Include <unistd.h> first.
85946 2008-10-21  Bruno Haible  <bruno@clisp.org>
85948         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85949         * modules/select-tests (Depends-on): Likewise.
85950         Reported by Simon Josefsson.
85952 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85954         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85955         * lib/accept.c: New file, based on winsock.c.
85956         * lib/bind.c: New file, based on winsock.c.
85957         * lib/connect.c: New file, based on winsock.c.
85958         * lib/getpeername.c: New file, based on winsock.c.
85959         * lib/getsockname.c: New file, based on winsock.c.
85960         * lib/getsockopt.c: New file, based on winsock.c.
85961         * lib/ioctl.c: New file, based on winsock.c.
85962         * lib/listen.c: New file, based on winsock.c.
85963         * lib/recv.c: New file, based on winsock.c.
85964         * lib/recvfrom.c: New file, based on winsock.c.
85965         * lib/send.c: New file, based on winsock.c.
85966         * lib/sendto.c: New file, based on winsock.c.
85967         * lib/setsockopt.c: New file, based on winsock.c.
85968         * lib/shutdown.c: New file, based on winsock.c.
85969         * lib/socket.c: New file, based on winsock.c.
85970         * lib/w32sock.h: New file, based on winsock.c.
85971         * lib/winsock.c: Remove file.
85972         * modules/accept: Likewise.
85973         * modules/bind: Likewise.
85974         * modules/connect: Likewise.
85975         * modules/getpeername: Likewise.
85976         * modules/getsockname: Likewise.
85977         * modules/getsockopt: Likewise.
85978         * modules/ioctl: Likewise.
85979         * modules/listen: Likewise.
85980         * modules/recv: Likewise.
85981         * modules/recvfrom: Likewise.
85982         * modules/send: Likewise.
85983         * modules/sendto: Likewise.
85984         * modules/setsockopt: Likewise.
85985         * modules/shutdown: Likewise.
85986         * modules/socket: Use socket.c instead of winsock.c.
85987         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
85988         * doc/posix-functions/accept.texi: Doc fix.
85989         * doc/posix-functions/bind.texi: Doc fix.
85990         * doc/posix-functions/close.texi: Doc fix.
85991         * doc/posix-functions/connect.texi: Doc fix.
85992         * doc/posix-functions/getpeername.texi: Doc fix.
85993         * doc/posix-functions/getsockname.texi: Doc fix.
85994         * doc/posix-functions/getsockopt.texi: Doc fix.
85995         * doc/posix-functions/ioctl.texi: Doc fix.
85996         * doc/posix-functions/listen.texi: Doc fix.
85997         * doc/posix-functions/recv.texi: Doc fix.
85998         * doc/posix-functions/recvfrom.texi: Doc fix.
85999         * doc/posix-functions/send.texi: Doc fix.
86000         * doc/posix-functions/sendto.texi: Doc fix.
86001         * doc/posix-functions/setsockopt.texi: Doc fix.
86002         * doc/posix-functions/shutdown.texi: Doc fix.
86003         * doc/posix-functions/socket.texi: Doc fix.
86005 2008-10-20  Bruno Haible  <bruno@clisp.org>
86007         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86008         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86009         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86010         as an alias for SIGABRT.
86011         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86012         (sigaction): Map it to SIGABRT.
86013         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86015 2008-10-20  Bruno Haible  <bruno@clisp.org>
86017         * lib/fts.c: Don't include lstat.h.
86018         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86020         Move the lstat() declaration to <sys/stat.h>.
86021         * lib/lstat.h: Remove file.
86022         * lib/sys_stat.in.h: Add special invocation convention.
86023         (lstat): New declaration.
86024         * lib/lstat.c (orig_lstat): New function.
86025         (rpl_lstat): Use orig_lstat instead of lstat.
86026         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86027         AC_C_INLINE. Set REPLACE_LSTAT.
86028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86029         and REPLACE_LSTAT.
86030         * modules/lstat (Files): Remove lib/lstat.h.
86031         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86032         (Include): Specify <sys/stat.h> instead of lstat.h.
86033         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86034         REPLACE_LSTAT.
86035         * NEWS: Mention the change.
86037 2008-10-20  Bruno Haible  <bruno@clisp.org>
86039         * modules/posix_spawn-tests: New file.
86040         * tests/test-posix_spawn3.c: New file.
86042 2008-10-20  Bruno Haible  <bruno@clisp.org>
86044         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86045         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86046         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86047         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86048         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86050 2008-10-20  Bruno Haible  <bruno@clisp.org>
86052         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86053         of posix_spawn on AIX 5.3.
86055 2008-10-20  Bruno Haible  <bruno@clisp.org>
86057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86059 2008-10-20  Bruno Haible  <bruno@clisp.org>
86061         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86062         of AC_LANG_PROGRAM.
86064 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86066         * lib/netdb.in.h: Don't define GNU specific constants until they
86067         are supported or needed.  Reported by Bruno Haible
86068         <bruno@clisp.org>.
86070 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86072         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
86074 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86076         * lib/getaddrinfo.h: Remove file.
86077         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
86078         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
86079         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
86080         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
86081         * modules/netdb: Substitute GNULIB_GETADDRINFO.
86082         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
86083         * tests/test-getaddrinfo.c: Likewise.
86084         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
86085         * NEWS: Mention change.
86087 2008-10-19  Bruno Haible  <bruno@clisp.org>
86089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
86091 2008-10-19  Bruno Haible  <bruno@clisp.org>
86093         * lib/wait-process.c: Include simply <sys/wait.h>.
86094         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
86095         WIFSTOPPED): Remove fallback definitions.
86096         * modules/wait-process (Depends-on): Add sys_wait.
86098         New module 'sys_wait'.
86099         * modules/sys_wait: New file.
86100         * lib/sys_wait.in.h: New file, partially copied from
86101         lib/wait-process.c.
86102         * m4/sys_wait_h.m4: New file.
86103         * doc/posix-headers/sys_wait.texi: Mention the new module.
86105 2008-10-19  Bruno Haible  <bruno@clisp.org>
86107         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86109 2008-10-19  Bruno Haible  <bruno@clisp.org>
86111         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86112         * lib/wait-process.c (WAIT_T): Remove type.
86113         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86114         (wait_subprocess): Update.
86116 2008-10-19  Bruno Haible  <bruno@clisp.org>
86118         New module 'atoll'.
86119         * modules/atoll: New file.
86120         * lib/stdlib.in.h (atoll): New declaration.
86121         * lib/atoll.c: New file, from glibc with modifications.
86122         * m4/atoll.m4: New file.
86123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86124         HAVE_ATOLL.
86125         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86126         * doc/posix-functions/atoll.texi: Mention the new module.
86128 2008-10-19  Bruno Haible  <bruno@clisp.org>
86130         Add strtoull() declaration to <stdlib.h>.
86131         * lib/stdlib.in.h (strtoull): New declaration.
86132         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86133         Set HAVE_STRTOULL.
86134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86135         HAVE_STRTOULL.
86136         * modules/strtoull (Depends-on): Add stdlib.
86137         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86138         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86139         HAVE_STRTOULL.
86141 2008-10-19  Bruno Haible  <bruno@clisp.org>
86143         Add strtoll() declaration to <stdlib.h>.
86144         * lib/stdlib.in.h (strtoll): New declaration.
86145         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86146         Set HAVE_STRTOLL.
86147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86148         HAVE_STRTOLL.
86149         * modules/strtoll (Depends-on): Add stdlib.
86150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86151         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86153 2008-10-19  Bruno Haible  <bruno@clisp.org>
86155         * modules/bcopy (Depends-on): Add strings.
86156         (Include): Specify <strings.h>.
86158 2008-10-19  Bruno Haible  <bruno@clisp.org>
86160         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86162 2008-10-19  Bruno Haible  <bruno@clisp.org>
86164         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86165         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86166         mingw.
86168 2008-10-19  Bruno Haible  <bruno@clisp.org>
86170         * lib/atanl.c: Don't include isnanl.h.
86171         * lib/cosl.c: Likewise.
86172         * lib/ldexpl.c: Likewise.
86173         * lib/logl.c: Likewise.
86174         * lib/sinl.c: Likewise.
86175         * lib/sqrtl.c: Likewise.
86176         * lib/tanl.c: Likewise.
86178         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86179         * lib/isnanf.h: Remove file.
86180         * lib/isnand.h: Remove file.
86181         * lib/isnanl.h: Remove file.
86182         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86183         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86184         macros.
86185         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86186         HAVE_ISNANF, don't define it as a C macro.
86187         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86188         HAVE_ISNAND, don't define it as a C macro.
86189         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86190         HAVE_ISNANL, don't define it as a C macro.
86191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86192         HAVE_ISNAN[FDL].
86193         * modules/isnanf (Files): Remove lib/isnanf.h.
86194         (Depends-on): Add math.
86195         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86196         (Include): Specify <math.h> instead of isnanf.h.
86197         * modules/isnand (Files): Remove lib/isnand.h.
86198         (Depends-on): Add math.
86199         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86200         (Include): Specify <math.h> instead of isnand.h.
86201         * modules/isnanl (Files): Remove lib/isnanl.h.
86202         (Depends-on): Add math.
86203         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86204         (Include): Specify <math.h> instead of isnanl.h.
86205         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86206         HAVE_ISNAN[FDL].
86207         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86208         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86209         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86210         * NEWS: Mention the change.
86212 2008-10-18  Bruno Haible  <bruno@clisp.org>
86214         Add getusershell(), setusershell(), endusershell() declarations to
86215         <unistd.h>.
86216         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86217         declarations.
86218         * lib/getusershell.c: Include unistd.h.
86219         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86220         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86221         HAVE_GETUSERSHELL.
86222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86223         and HAVE_GETUSERSHELL.
86224         * modules/getusershell (Depends-on): Add unistd, extensions.
86225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86226         (Include): Specify <unistd.h>.
86227         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86228         HAVE_GETUSERSHELL.
86230 2008-10-18  Bruno Haible  <bruno@clisp.org>
86232         Add a getloadavg() declaration to <stdlib.h>.
86233         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86234         getloadavg declaration.
86235         (getloadavg): New declaration.
86236         * lib/getloadavg.c: Include <stdlib.h> first.
86237         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86238         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86239         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86241         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86242         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86243         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86244         (Include): Specify <stdlib.h>.
86245         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86246         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86248 2008-10-18  Bruno Haible  <bruno@clisp.org>
86250         * lib/dirchownmod.c: Don't include lchmod.h.
86252         Move the lchmod() declaration to <sys/stat.h>.
86253         * lib/lchmod.h: Remove file.
86254         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86255         (lchmod): New declaration, moved here from lib/lchown.h.
86256         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86257         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86259         and HAVE_LCHMOD.
86260         * modules/lchmod (Files): Remove lib/lchmod.h.
86261         (Depends-on): Add sys_stat, extensions.
86262         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86263         (Include): Specify <sys/stat.h> instead of lchmod.h.
86264         * modules/sys_stat (Depends-on): Add link-warning.
86265         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86266         definition of GL_LINK_WARNING.
86267         * NEWS: Mention the change.
86269 2008-10-18  Bruno Haible  <bruno@clisp.org>
86271         * lib/fchdir.c: Don't include dirfd.h.
86272         * lib/fts.c: Likewise.
86273         * lib/getcwd.c: Likewise.
86274         * lib/glob.c: Likewise.
86276         Move the dirfd() declaration to <dirent.h>.
86277         * lib/dirfd.h: Remove file.
86278         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86279         (dirfd): New declaration.
86280         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86281         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86282         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86283         HAVE_DECL_DIRFD.
86284         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86285         HAVE_DECL_DIRFD.
86286         * modules/dirfd (Files): Remove lib/dirfd.h.
86287         (Depends-on): Add dirent, extensions.
86288         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86289         (Include): Specify <dirent.h> instead of dirfd.h.
86290         * modules/dirent (Depends-on): Add link-warning.
86291         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86292         definition of GL_LINK_WARNING.
86293         * NEWS: Mention the change.
86295 2008-10-18  Bruno Haible  <bruno@clisp.org>
86297         Move the euidaccess() declaration to <unistd.h>.
86298         * lib/euidaccess.h: Remove file.
86299         * lib/unistd.in.h (euidaccess): New declaration.
86300         * lib/euidaccess.c: Don't include euidaccess.h.
86301         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86302         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86304         and HAVE_EUIDACCESS.
86305         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86306         (Depends-on): Add unistd.
86307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86308         (Include): Specify <unistd.h> instead of euidaccess.h.
86309         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86310         HAVE_EUIDACCESS.
86311         * NEWS: Mention the change.
86313 2008-10-18  Bruno Haible  <bruno@clisp.org>
86315         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86317         Move the getdomainname() declaration to <unistd.h>.
86318         * lib/getdomainname.h: Remove file.
86319         * lib/unistd.in.h (getdomainname): New declaration.
86320         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86321         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86322         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86323         HAVE_GETDOMAINNAME.
86324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86325         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86326         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86327         (Depends-on): Add unistd, extensions.
86328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86329         (Includes): Specify <unistd.h> instead of getdomainname.h.
86330         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86331         HAVE_GETDOMAINNAME.
86332         * NEWS: Mention the change.
86334 2008-10-18  Bruno Haible  <bruno@clisp.org>
86336         * modules/dirent: New file.
86337         * m4/dirent_h.m4: New file.
86338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86339         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86340         * modules/fchdir (Files): Remove lib/dirent.in.h.
86341         (Depends-on): Add dirent.
86342         (Makefile.am): Move rules to modules/dirent.
86343         * doc/posix-headers/dirent.texi: Mention the new module.
86345 2008-10-18  Bruno Haible  <bruno@clisp.org>
86347         Avoid -Wunused-parameter warnings in public gnulib header files.
86348         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86349         macro.
86350         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86352 2008-10-18  Bruno Haible  <bruno@clisp.org>
86354         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86355         * doc/glibc-functions/error.texi: Mention the module 'error'.
86356         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86357         * doc/glibc-functions/getdomainname.texi: Mention the module
86358         'getdomainname'.
86359         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86360         * doc/glibc-functions/getpagesize.texi: Mention the module
86361         'getpagesize'.
86362         * doc/glibc-functions/getusershell.texi: Mention the module
86363         'getusershell'.
86364         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86365         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86366         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86367         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86368         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86369         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86370         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86371         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86372         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86373         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86374         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86375         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86376         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86377         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86379 2008-10-17  Bruno Haible  <bruno@clisp.org>
86381         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86382         HP-UX and IRIX, use -0.0L.
86383         * tests/test-ceill.c (minus_zero): Likewise.
86384         * tests/test-floorl.c (minus_zero): Likewise.
86385         * tests/test-frexpl.c (minus_zero): Likewise.
86386         * tests/test-isnan.c (minus_zerol): Likewise.
86387         * tests/test-isnanl.h (minus_zero): Likewise.
86388         * tests/test-ldexpl.c (minus_zero): Likewise.
86389         * tests/test-roundl.c (minus_zero): Likewise.
86390         * tests/test-signbit.c (minus_zerol): Likewise.
86391         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86392         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86393         * tests/test-truncl.c (minus_zero): Likewise.
86394         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86395         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86396         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86397         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86399 2008-10-17  Bruno Haible  <bruno@clisp.org>
86401         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86402         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86403         that it gets activated only for gcc >= 3.0.
86404         * lib/dirent.in.h: Likewise.
86405         * lib/errno.in.h: Likewise.
86406         * lib/fcntl.in.h: Likewise.
86407         * lib/float.in.h: Likewise.
86408         * lib/iconv.in.h: Likewise.
86409         * lib/inttypes.in.h: Likewise.
86410         * lib/locale.in.h: Likewise.
86411         * lib/math.in.h: Likewise.
86412         * lib/netdb.in.h: Likewise.
86413         * lib/netinet_in.in.h: Likewise.
86414         * lib/search.in.h: Likewise.
86415         * lib/signal.in.h: Likewise.
86416         * lib/spawn.in.h: Likewise.
86417         * lib/stdarg.in.h: Likewise.
86418         * lib/stdint.in.h: Likewise.
86419         * lib/stdio.in.h: Likewise.
86420         * lib/stdlib.in.h: Likewise.
86421         * lib/string.in.h: Likewise.
86422         * lib/strings.in.h: Likewise.
86423         * lib/sys_file.in.h: Likewise.
86424         * lib/sys_ioctl.in.h: Likewise.
86425         * lib/sys_select.in.h: Likewise.
86426         * lib/sys_socket.in.h: Likewise.
86427         * lib/sys_stat.in.h: Likewise.
86428         * lib/sys_time.in.h: Likewise.
86429         * lib/sysexits.in.h: Likewise.
86430         * lib/time.in.h: Likewise.
86431         * lib/unistd.in.h: Likewise.
86432         * lib/wchar.in.h: Likewise.
86433         * lib/wctype.in.h: Likewise.
86434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86436 2008-10-17  Jim Meyering  <meyering@redhat.com>
86438         ignore-value: don't depend on inline module
86439         * modules/ignore-value (Depends-on): Remove 'inline'.
86440         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86441         Suggestion from Bruno Haible.
86443 2008-10-17  Bruno Haible  <bruno@clisp.org>
86445         New implementation of condition variables for Win32.
86446         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86447         (gl_linked_waitqueue_t): New type.
86448         (gl_cond_t): Use it.
86449         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86450         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86451         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86452         (glthread_cond_init_func, glthread_cond_wait_func,
86453         glthread_cond_timedwait_func, glthread_cond_signal_func,
86454         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86455         Reimplemented on the basis of gl_linked_waitqueue_t.
86456         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86457         gl_waitqueue_t.
86458         (gl_rwlock_t): Update.
86459         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86461 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86463         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86464         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86466 2008-10-17  Jim Meyering  <meyering@redhat.com>
86468         ignore-value: new module
86469         * modules/ignore-value: New file.
86470         * lib/ignore-value.h: New file.
86471         * MODULES.html.sh (Compiler warning management): New section,
86472         just for this module.  More to come.
86474 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86476         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86477         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86478         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86480 2008-10-16  Jim Meyering  <meyering@redhat.com>
86482         openat-die.c: avoid 'no previous prototype' warning
86483         * lib/openat-die.c: Include "openat.h".
86484         Reported by Reuben Thomas <rrt@sc3d.org>.
86486 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86488         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86489         * lib/netdb.in.h: Fix typo.
86490         Reported by Bruno Haible  <bruno@clisp.org>
86492         * lib/netdb.in.h: Include sys/socket.h for platforms without
86493         netdb.h, to get structures like hostent on MinGW.
86494         * modules/netdb (Depends-on): Add sys_socket.
86496 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86498         * modules/netdb, modules/netdb-tests: New file.
86499         * m4/netdb_h.m4: New file.
86500         * lib/netdb.in.h: Add, currently just an empty file pending
86501         definitions.
86502         * tests/test-netdb.c: New file.
86503         * doc/posix-headers/netdb.texi: Mention that we replace it if
86504         needed.
86505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86506         netdb.
86508 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86510         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86511         with code.
86513 2008-10-13  Bruno Haible  <bruno@clisp.org>
86515         * lib/glthread/cond.c (glthread_cond_wait_func,
86516         glthread_cond_timedwait_func): Add a comment.
86518 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86520         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86521         * tests/test-select.c: Likewise,
86523 2008-10-13  Bruno Haible  <bruno@clisp.org>
86525         * lib/glthread/cond.c (glthread_cond_wait_func,
86526         glthread_cond_timedwait_func): Fix variable name.
86527         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86529 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86531         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86533         struct sockaddr.sa_len.
86534         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86536 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86538         * build-aux/pmccabe2html: Add css and css_url parameters.
86540 2008-10-12  Bruno Haible  <bruno@clisp.org>
86542         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86543         calling aclx_get.
86544         Reported by Rainer Tammer <tammer@tammer.net>.
86546 2008-10-12  Bruno Haible  <bruno@clisp.org>
86548         Use msvcrt aware primitives for creation/termination of Win32 threads.
86549         * lib/glthread/thread.c: Include <process.h>.
86550         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86551         (wrapper_func): Update signature.
86552         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86554 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86555             Bruno Haible  <bruno@clisp.org>
86557         Provide a Win32 implementation of the 'cond' module.
86558         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86559         * lib/glthread/cond.c (glthread_cond_init_func,
86560         glthread_cond_wait_func, glthread_cond_timedwait_func,
86561         glthread_cond_signal_func, glthread_cond_broadcast_func,
86562         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86563         * modules/cond (Dependencies): Add gettimeofday.
86565 2008-10-11  Bruno Haible  <bruno@clisp.org>
86567         Make sleep work on older versions of mingw.
86568         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86569         only whether it exists.
86570         * doc/posix-functions/sleep.texi: Mention the problem with older
86571         versions of mingw.
86573 2008-10-11  Bruno Haible  <bruno@clisp.org>
86575         New module 'shutdown'.
86576         * modules/shutdown: New file.
86577         * lib/sys_socket.in.h (shutdown): New declaration.
86578         * lib/winsock.c (shutdown): New function.
86579         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86580         GNULIB_SHUTDOWN.
86581         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86582         * doc/posix-functions/shutdown.texi: Document the new module.
86584 2008-10-11  Jim Meyering  <meyering@redhat.com>
86586         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86588 2008-10-11  Bruno Haible  <bruno@clisp.org>
86590         New module 'fclose'.
86591         * modules/fclose: New file.
86592         * lib/stdio.in.h (fclose): New declaration.
86593         * lib/fclose.c: New file.
86594         * m4/fclose.m4: New file.
86595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86596         REPLACE_FCLOSE.
86597         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86598         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86599         REPLACE_FCLOSE.
86600         * modules/close (Depends-on): fclose.
86601         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86603 2008-10-11  Bruno Haible  <bruno@clisp.org>
86605         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86606         set errno and don't call _close.
86608 2008-10-10  Bruno Haible  <bruno@clisp.org>
86610         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86611         ACL, not afterwards. Fixes test failure on Cygwin.
86613 2008-10-09  Ben Pfaff  <blp@gnu.org>
86615         * build-aux/announce-gen: Fix gnulib version related part of usage
86616         message.  Die with a useful error message if no tarballs are
86617         found.
86619 2008-10-10  Jim Meyering  <meyering@redhat.com>
86621         bootstrap: use git's --depth=N option only if it's supported
86622         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86623         recognize the --depth option.  Reported by Pádraig Brady.
86625 2008-10-09  Bruno Haible  <bruno@clisp.org>
86627         New module 'ioctl'.
86628         * modules/ioctl: New file.
86629         * lib/sys_socket.in.h (ioctl): Remove declaration.
86630         * lib/winsock.c: Include <sys/ioctl.h>.
86631         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86632         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86633         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86634         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86635         * doc/posix-functions/ioctl.texi: Mention the new module.
86637 2008-10-09  Bruno Haible  <bruno@clisp.org>
86639         New module 'sys_ioctl'.
86640         * lib/sys_ioctl.in.h: New file.
86641         * m4/sys_ioctl_h.m4: New file.
86642         * modules/sys_ioctl: New file.
86643         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86645 2008-10-09  Bruno Haible  <bruno@clisp.org>
86647         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86648         * lib/winsock.c: Include <stdarg.h>.
86649         (rpl_ioctl): Change to second argument 'int' and then varargs.
86651 2008-10-09  Bruno Haible  <bruno@clisp.org>
86653         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86654         when the sys_socket module is present and the system has <winsock2.h>.
86656 2008-10-09  Bruno Haible  <bruno@clisp.org>
86658         * doc/posix-functions/close.texi: Mention module 'close' instead of
86659         module 'sys_socket'.
86661 2008-10-09  Bruno Haible  <bruno@clisp.org>
86663         * doc/glibc-headers/sys_ioctl.texi: New file.
86664         * doc/gnulib.texi: Include it.
86666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86667             Bruno Haible  <bruno@clisp.org>
86669         Combine the two replacements of 'close'.
86670         * lib/sys_socket.in.h (close): Define to a reminder to include
86671         <unistd.h>.
86672         (_gl_close_fd_maybe_socket): New declaration.
86673         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86674         * lib/winsock.c (close): Remove undefinition.
86675         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86676         needed for the gnulib module 'close'.
86677         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86678         define to an error symbol or to a warning, if suitable.
86679         * lib/close.c: Include <sys/socket.h>.
86680         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86681         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86682         UNISTD_H_HAVE_WINSOCK2_H.
86683         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86685         UNISTD_H_HAVE_WINSOCK2_H.
86686         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86687         (configure.ac): Set a module indicator.
86688         (Makefile.am): Substitute GNULIB_CLOSE.
86689         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86690         * modules/poll-tests (Depends-on): Add close.
86691         * modules/select-tests (Depends-on): Likewise.
86693 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86694             Bruno Haible  <bruno@clisp.org>
86696         New module 'close'.
86697         * modules/close: New file.
86698         * lib/unistd.in.h (close): Move declaration out of the
86699         FCHDIR_REPLACEMENT scope.
86700         (_gl_unregister_fd): New declaration.
86701         * lib/close.c: New file.
86702         * lib/fchdir.c (rpl_close): Remove function.
86703         * m4/close.m4: New file.
86704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86705         close.
86706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86707         REPLACE_CLOSE.
86708         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86709         REPLACE_CLOSE.
86710         * modules/fchdir (Depends-on): Add close.
86712 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86713             Bruno Haible  <bruno@clisp.org>
86715         * lib/fcntl.in.h (open): Simplify conditionals.
86716         (_gl_register_fd): New declaration.
86717         * lib/fchdir.c (rpl_open): Remove function.
86718         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86719         also.
86720         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86722         open.
86724 2008-10-09  Jim Meyering  <meyering@redhat.com>
86726         GNUmakefile: use the more name-space-friendly "_version"
86727         * top/GNUmakefile (_dummy): Update.
86728         (_version): Rename from "version".
86730 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86731             Bruno Haible  <bruno@clisp.org>
86733         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86734         rpl_close.
86735         (_gl_register_fd): New function, extracted from rpl_open.
86736         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86737         (rpl_open, rpl_opendir): Use _gl_register_fd.
86739 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86741         Fix organization of 'open' replacement.
86742         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86743         (gl_FUNC_OPEN): Use it.
86744         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86746 2008-10-08  Bruno Haible  <bruno@clisp.org>
86748         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86750 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86752         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86753         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86754         listen).
86756 2008-10-08  Eric Blake  <ebb9@byu.net>
86758         GNUmakefile: add 'make version' target
86759         * top/GNUmakefile (_curr-ver): Split version update rules...
86760         (version): ...into a target.
86762 2008-10-07  Bruno Haible  <bruno@clisp.org>
86764         Use a more portable replacement expression for -0.0L.
86765         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86766         instead of -0.0L. Fix m4 quotation.
86768         * tests/test-signbit.c: Include <float.h>.
86769         (minus_zero): New variable.
86770         (test_signbitl): Use minus_zero instead of -zero.
86771         * modules/signbit-tests (Depends-on): Add float.
86773         * tests/test-ceill.c: Include <float.h>.
86774         (zero): Remove variable.
86775         (minus_zero): New variable.
86776         (main): Use minus_zero instead of -zero.
86777         * modules/ceill-tests (Depends-on): Add float.
86779         * tests/test-floorl.c: Include <float.h>.
86780         (zero): Remove variable.
86781         (minus_zero): New variable.
86782         (main): Use minus_zero instead of -zero.
86783         * modules/floorl-tests (Depends-on): Add float.
86785         * tests/test-roundl.c: Include <float.h>.
86786         (zero): Remove variable.
86787         (minus_zero): New variable.
86788         (main): Use minus_zero instead of -zero.
86789         * modules/roundl-tests (Depends-on): Add float.
86791         * tests/test-truncl.c: Include <float.h>.
86792         (zero): Remove variable.
86793         (minus_zero): New variable.
86794         (main): Use minus_zero instead of -zero.
86795         * modules/truncl-tests (Depends-on): Add float.
86797         * tests/test-frexpl.c (zero): Remove variable.
86798         (minus_zero): New variable.
86799         (main): Use minus_zero instead of -zero.
86800         * modules/frexpl-tests (Depends-on): Add float.
86802         * tests/test-isnan.c (zerol): Remove variable.
86803         (minus_zerol): New variable.
86804         (test_long_double): Use minus_zerol instead of -zerol.
86805         * modules/isnan-tests (Depends-on): Add float.
86807         * tests/test-isnanl.h (zero): Remove variable.
86808         (minus_zero): New variable.
86809         (main): Use minus_zero instead of -zero.
86810         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86811         * modules/isnanl-tests (Depends-on): Add float.
86813         * tests/test-ldexpl.c (zero): Remove variable.
86814         (minus_zero): New variable.
86815         (main): Use minus_zero instead of -zero.
86816         * modules/ldexpl-tests (Depends-on): Add float.
86818         * tests/test-snprintf-posix.h (zerol): Remove variable.
86819         (minus_zerol): New variable.
86820         (test_function): Use minus_zerol instead of -zerol.
86821         * modules/snprintf-posix-tests (Depends-on): Add float.
86822         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86824         * tests/test-sprintf-posix.h (zerol): Remove variable.
86825         (minus_zerol): New variable.
86826         (test_function): Use minus_zerol instead of -zerol.
86827         * modules/sprintf-posix-tests (Depends-on): Add float.
86828         * modules/vsprintf-posix-tests (Depends-on): Add float.
86830         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86831         (minus_zerol): New variable.
86832         (test_function): Use minus_zerol instead of -zerol.
86833         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86835         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86836         (minus_zerol): New variable.
86837         (test_function): Use minus_zerol instead of -zerol.
86838         * modules/vasprintf-posix-tests (Depends-on): Add float.
86840 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86842         * MODULES.html.sh (Support for building documentation): Mention
86843         pmccabe2html.  Sort entries.
86845         Add pmccabe2html module, from gnupdf.
86846         * build-aux/pmccabe.css: New file.
86847         * build-aux/pmccabe2html: New file.
86848         * m4/pmccabe2html.m4: New file.
86849         * modules/pmccabe2html: New file.
86851 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86853         flock: new module
86854         * MODULES.html.sh: Add to list of modules.
86855         * lib/flock.c: flock implementation for Windows and Unix systems
86856         which have fcntl.
86857         * doc/glibc-functions/flock.texi: Update documentation.
86858         * lib/sys_file.in.h: <sys/file.h> header file.
86859         * m4/flock.m4: M4 macros.
86860         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86861         * modules/flock: flock module.
86862         * modules/flock-tests: flock tests module.
86863         * modules/sys_file: sys/file.h module.
86864         * tests/test-flock.c: test suite for flock.
86866 2008-10-06  Jim Meyering  <meyering@redhat.com>
86868         bootstrap: check for LT_INIT more portably still ;-)
86869         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86870         Spotted by Bruno Haible.
86872 2008-10-06  Eric Blake  <ebb9@byu.net>
86874         test-signbit: avoid tripping Irix cc bug on -0.0L
86875         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86876         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86877         entire testsuite consistent and avoids an Irix 6.2 bug.
86879 2008-10-05  Bruno Haible  <bruno@clisp.org>
86880             Jim Meyering  <jim@meyering.net>
86882         Add an option for ignoring EPIPE during close_stdout.
86883         * lib/closeout.h: Include <stdbool.h>.
86884         (close_stdout_set_ignore_EPIPE): New declaration.
86885         * lib/closeout.c: Include <stdbool.h>.
86886         (ignore_EPIPE): New variable.
86887         (close_stdout_set_ignore_EPIPE): New function.
86888         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86889         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86890         failure.
86891         * modules/closeout (Depends-on): Add stdbool.
86893 2008-10-05  Bruno Haible  <bruno@clisp.org>
86895         * modules/accept: New file.
86896         * modules/bind: New file.
86897         * modules/connect: New file.
86898         * modules/getpeername: New file.
86899         * modules/getsockname: New file.
86900         * modules/getsockopt: New file.
86901         * modules/listen: New file.
86902         * modules/recv: New file.
86903         * modules/recvfrom: New file.
86904         * modules/send: New file.
86905         * modules/sendto: New file.
86906         * modules/setsockopt: New file.
86907         * modules/socket: New file.
86908         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86909         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86910         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86911         the particular module is requested. Add a link warning when the
86912         particular module is not requested.
86913         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86914         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86915         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86916         the particular module is requested.
86917         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86918         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86919         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86920         * modules/sys_socket (Depends-on): Add link-warning.
86921         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86922         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86923         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86924         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86925         GL_LINK_WARNING.
86926         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86927         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86928         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86929         * doc/posix-functions/getpeername.texi: Mention the new module
86930         'getpeername'.
86931         * doc/posix-functions/getsockname.texi: Mention the new module
86932         'getsockname'.
86933         * doc/posix-functions/getsockopt.texi: Mention the new module
86934         'getsockopt'.
86935         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86936         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86937         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86938         * doc/posix-functions/send.texi: Mention the new module 'send'.
86939         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86940         * doc/posix-functions/setsockopt.texi: Mention the new module
86941         'setsockopt'.
86942         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86943         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86944         listen, connect, accept.
86945         * modules/select-tests (Depends-on): Likewise.
86947 2008-10-05  Bruno Haible  <bruno@clisp.org>
86949         * lib/winsock.c (strerror): Remove unused #undef.
86950         (rpl_close): Remove unused local variable.
86952         * modules/sys_socket (Depends-on); Add errno.
86954 2008-10-05  Bruno Haible  <bruno@clisp.org>
86956         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86957         (select): Add a link warning when the 'select' module is not used.
86958         * modules/sys_select (Depends-on): Add link-warning.
86959         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86960         Suggested by Paolo Bonzini.
86962 2008-10-05  Jim Meyering  <meyering@redhat.com>
86964         bootstrap: check for LT_INIT more portably
86965         * build-aux/bootstrap: Avoid using grep -E, since it's not
86966         portable enough.  Suggestion from Bruno Haible.
86968 2008-10-05  Bruno Haible  <bruno@clisp.org>
86970         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
86971         as being fixed by gnulib.
86973 2008-10-05  Bruno Haible  <bruno@clisp.org>
86975         * modules/select-tests: New file, mostly copied from
86976         modules/sys_select-tests.
86977         * tests/test-select.c: New file, mostly copied from
86978         tests/test-sys_select.c.
86979         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
86980         * modules/sys_select-tests (Depends-on): Remove all dependencies.
86981         (Makefile.am): Remove test_sys_select_LDADD.
86983         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
86984         to an undefined symbol, for an error message.
86985         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
86986         (gl_SYS_SELECT_H_DEFAULTS): New macro.
86987         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
86988         winsock-select.c here.
86989         * modules/sys_select (Files): Remove lib/winsock-select.c.
86990         (Depends-on): Remove alloca.
86991         (Makefile.am): Substitute GNULIB_SELECT.
86992         * modules/select: New file.
86993         * doc/posix-functions/select.texi: Update.
86995 2008-10-05  Bruno Haible  <bruno@clisp.org>
86997         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
86998         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
86999         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87000         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87001         getdtablesize.
87002         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87003         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87005 2008-10-05  Bruno Haible  <bruno@clisp.org>
87007         * modules/getdtablesize-tests: New file.
87008         * tests/test-getdtablesize.c: New file.
87010         New module 'getdtablesize'.
87011         * lib/unistd.in.h (getdtablesize): New declaration.
87012         * lib/getdtablesize.c: New file.
87013         * m4/getdtablesize.m4: New file.
87014         * modules/getdtablesize: New file.
87015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87016         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87017         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87018         HAVE_GETDTABLESIZE.
87019         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87021 2008-10-05  Bruno Haible  <bruno@clisp.org>
87023         * modules/sched (Makefile.am): Fix typo.
87024         Reported by Simon Josefsson.
87026 2008-10-05  Jim Meyering  <meyering@redhat.com>
87028         bootstrap: check for LT_INIT, too
87029         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87030         are deprecated.  Suggestion from Ralf Wildenhues.
87032 2008-10-05  Bruno Haible  <bruno@clisp.org>
87034         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87035         overriding them by ours.
87036         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87038 2008-10-05  Jim Meyering  <meyering@redhat.com>
87040         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87041         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87042         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87044 2008-10-04  Bruno Haible  <bruno@clisp.org>
87046         * modules/dup2 (License): Change to LGPLv2+.
87047         * modules/sleep (License): Likewise.
87048         * modules/perror (License): Likewise.
87049         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87050         Blake.
87051         * modules/signal (License): Likewise.
87052         * modules/sigprocmask (License): Likewise.
87053         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87054         Meyering.
87056 2008-10-04  Bruno Haible  <bruno@clisp.org>
87058         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87059         Reported by Rainer Tammer <tammer@tammer.net>.
87061 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87062             Bruno Haible  <bruno@clisp.org>
87064         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87065         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87066         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87068 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87070         filevercmp: new module
87071         * lib/filevercmp.h: New function filevercmp comparing version strings.
87072         * lib/filevercmp.c: Implementation of filevercmp function.
87073         * modules/filevercmp: Module metadata.
87074         * tests/test-filevercmp.c: Unit test for new module.
87075         * modules/filevercmp-tests: Unit test metadata.
87076         * MODULES.html.sh: Add filevercmp module.
87078 2008-10-03  Bruno Haible  <bruno@clisp.org>
87080         * lib/c-ctype.h: Add comment.
87081         Reported by Jim Meyering.
87083 2008-10-02  Bruno Haible  <bruno@clisp.org>
87085         * modules/posix_spawn-internal (Depends-on): Add 'open'.
87087 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87089         * build-aux/bootstrap: Allow renaming bootstrap, and change the
87090         name of bootstrap.conf accordingly.
87092 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87094         * build-aux/bootstrap: Install git-merge-changelog configuration
87095         items into .gitconfig if needed.
87097 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
87099         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
87100         git repository, and initialize/update it accordingly.
87102 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
87104         * modules/fsync-tests: New file.
87105         * tests/test-fsync.c: New file.
87107         New module 'fsync'.
87108         * lib/fsync.c: New file.
87109         * m4/fsync.m4: New file.
87110         * modules/fsync: New file.
87111         * lib/unistd.in.h (fsync): New declaration.
87112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87113         GNULIB_FSYNC and HAVE_FSYNC.
87114         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87115         * MODULES.html.sh (posix_functions): Add fsync.
87116         * doc/posix-functions/fsync.texi: Mention the new module.
87118 2008-10-02  Jim Meyering  <meyering@redhat.com>
87120         fts.c: sync with similar code from coreutils' remove.c
87121         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87122         Guard also with "#if defined __linux__", since for now at least,
87123         this code is Linux-kernel-specific.
87125 2008-10-02  Jim Meyering  <meyering@redhat.com>
87127         fts: bug fixes
87128         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87129         Include <sys/vfs.h>, not <sys/statfs.h>.
87131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87132         Include <sys/vfs.h>, not <sys/statfs.h>.
87134 2008-10-01  Bruno Haible  <bruno@clisp.org>
87136         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87138         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87139         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87140         * doc/posix-functions/posix_spawnp.texi: Likewise.
87141         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87142         whether posix_spawn actually works.
87143         * m4/pipe.m4 (gl_PIPE): Likewise.
87144         * modules/execute (Files): Add m4/posix_spawn.m4.
87145         * modules/pipe (Files): Add m4/posix_spawn.m4.
87146         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87148 2008-10-01  Jim Meyering  <meyering@redhat.com>
87150         remove trailing spaces
87151         * NEWS: Likewise.
87152         * lib/poll.c (poll): Likewise.
87153         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87154         * lib/winsock.c (rpl_close): Likewise.
87155         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87156         * modules/yield: Likewise.
87157         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87158         * tests/test-sys_select.c (connect_to_socket): Likewise.
87160         fts.c: adjust a new interface to be more generally useful
87161         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87162         (fts_build): Adjust caller.
87164 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87166         * modules/cond-tests: New file.
87167         * tests/test-cond.c: New file.
87169 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87170             Bruno Haible  <bruno@clisp.org>
87172         * modules/cond (Dependencies): Add errno, time.
87173         * lib/glthread/cond.h: Include <time.h>.
87174         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87175         across platforms.
87177 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87178             Bruno Haible  <bruno@clisp.org>
87180         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87182 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87183             Bruno Haible  <bruno@clisp.org>
87185         * modules/tls-tests (Depends-on): Add thread, yield.
87186         (configure.ac): Remove all checks.
87187         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87188         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87189         gl_thread_self): Remove definitions. Include glthread/thread.h and
87190         glthread/yield.h instead.
87191         (test_tls): Pass an additional NULL argument to gl_thread_join.
87193 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87194             Bruno Haible  <bruno@clisp.org>
87196         * modules/lock-tests (Depends-on): Add thread, yield.
87197         (configure.ac): Remove all checks.
87198         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87199         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87200         gl_thread_self): Remove definitions. Include glthread/thread.h and
87201         glthread/yield.h instead.
87202         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87203         additional NULL argument to gl_thread_join.
87205 2008-09-30  Bruno Haible  <bruno@clisp.org>
87207         Fix the Win32 implementation of the 'thread' module.
87208         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87209         pointer type.
87210         (gl_thread_self): Invoke gl_thread_self_func.
87211         (gl_thread_self_func): New declaration.
87212         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87213         (do_init_self_key, init_self_key): New functions.
87214         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87215         Remove some fields.
87216         (running_threads, running_lock): Remove variables.
87217         (get_current_thread_handle): New function.
87218         (gl_thread_self_func, wrapper_func, glthread_create_func,
87219         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87220         simplified.
87222 2008-09-30  Bruno Haible  <bruno@clisp.org>
87224         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87225         files.
87227 2008-09-30  Jim Meyering  <meyering@redhat.com>
87229         fts.m4: correct the test for statfs.f_type
87230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87231         when checking for statfs.f_type.
87233 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87235         tests: avoid some compiler warnings
87236         * tests/test-memchr.c (main): Pass NULL indirectly.
87237         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87239 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87241         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87242         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87243         exactly specified dayshifts.
87244         (dayshift): New rule.
87245         (rel): Add dayshift.
87246         (relative_time_table) [tomorrow, yesterday, today, now]:
87247         Use tDAY_SHIFT in place of tDAY_UNIT.
87248         * tests/test-getdate.c: Add tests for now-disallowed countable
87249         dayshifts, e.g., "4 yesterday ago".
87251 2008-09-29  Bruno Haible  <bruno@clisp.org>
87253         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87254         * tests/test-posix_spawn1.in.sh: Renamed from
87255         tests/test-posix_spawn.in.sh.
87256         * tests/test-posix_spawn2.c: New file.
87257         * tests/test-posix_spawn2.in.sh: New file.
87258         * modules/posix_spawnp-tests (Files): Update.
87259         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87261 2008-09-29  Bruno Haible  <bruno@clisp.org>
87263         Propagate effects of putenv/setenv/unsetenv to child processes.
87264         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87265         * lib/pipe.c (create_pipe): Likewise.
87267 2008-09-29  Bruno Haible  <bruno@clisp.org>
87269         Enable use of shell scripts as executables in mingw.
87270         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87271         run the program as a shell script.
87272         * lib/pipe.c (create_pipe): Likewise.
87273         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87274         resulting array.
87276 2008-09-29  Eric Blake  <ebb9@byu.net>
87278         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87280 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87282         * doc/posix-functions/accept.texi: Update mingw problems.
87283         * doc/posix-functions/bind.texi: Update mingw problems.
87284         * doc/posix-functions/close.texi: Update mingw problems.
87285         * doc/posix-functions/connect.texi: Update mingw problems.
87286         * doc/posix-functions/getpeername.texi: Update mingw problems.
87287         * doc/posix-functions/getsockname.texi: Update mingw problems.
87288         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87289         * doc/posix-functions/ioctl.texi: Update mingw problems.
87290         * doc/posix-functions/listen.texi: Update mingw problems.
87291         * doc/posix-functions/recv.texi: Update mingw problems.
87292         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87293         * doc/posix-functions/select.texi: Update mingw problems.
87294         * doc/posix-functions/send.texi: Update mingw problems.
87295         * doc/posix-functions/sendto.texi: Update mingw problems.
87296         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87297         * doc/posix-functions/socket.texi: Update mingw problems.
87299 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87300             Bruno Haible  <bruno@clisp.org>
87302         * lib/sys_select.in.h: Include sys/time.h.
87303         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87304         * modules/sys_select: Depend on sys_time.
87305         * tests/test-sys_select.c: Test that sys/select.h defines struct
87306         timeval fully.
87308 2008-09-29  Bruno Haible  <bruno@clisp.org>
87310         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87311         * lib/sys_select.in.h: Likewise.
87313 2008-09-29  Bruno Haible  <bruno@clisp.org>
87315         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87317 2008-09-29  Bruno Haible  <bruno@clisp.org>
87319         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87320         Set LIBSOCKET instead of augmenting LIBS.
87321         * modules/sockets (Link): New section.
87322         * modules/sockets-tests (test_sockets_LDADD): New variable.
87323         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87324         * modules/poll-tests (test_poll_LDADD): New variable.
87325         * NEWS: Document the change.
87327 2008-09-29  Bruno Haible  <bruno@clisp.org>
87329         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87330         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87331         ARPA_INET_H directly.
87332         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87334 2008-09-28  Bruno Haible  <bruno@clisp.org>
87336         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87337         from gl_HEADER_SYS_SOCKET.
87338         (gl_HEADER_SYS_SOCKET): Invoke it.
87339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87341 2008-09-28  Bruno Haible  <bruno@clisp.org>
87343         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87344         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87345         Needed on OSF/1 4.0.
87347 2008-09-28  Bruno Haible  <bruno@clisp.org>
87349         Override open more carefully.
87350         * lib/open.c (orig_open): New function.
87351         (rpl_open): Use orig_open instead of open.
87352         * lib/fcntl.in.h: Add special invocation convention.
87353         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87354         (gl_FUNC_OPEN): Invoke it.
87356         Override freopen more carefully.
87357         * lib/freopen.c (orig_freopen): New function.
87358         (rpl_freopen): Use orig_freopen instead of freopen.
87359         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87360         (gl_FUNC_FREOPEN): Invoke it.
87362         Override fopen more carefully.
87363         * lib/fopen.c (orig_fopen): New function.
87364         (rpl_fopen): Use orig_fopen instead of fopen.
87365         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87366         (gl_FUNC_FOPEN): Invoke it.
87367         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87369 2008-09-28  Bruno Haible  <bruno@clisp.org>
87371         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87372         SIGPIPE.
87374 2008-09-28  Bruno Haible  <bruno@clisp.org>
87376         * tests/test-sigaction.c (handler, main): Disable the check whether
87377         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87378         glibc systems with LinuxThreads.
87380 2008-09-28  Bruno Haible  <bruno@clisp.org>
87382         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87384         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87385         with AIX xlc.
87386         * lib/fcntl.in.h (open): Likewise.
87387         Reported by Rainer Tammer <tammer@tammer.net>.
87389 2008-09-28  Bruno Haible  <bruno@clisp.org>
87391         * modules/posix_spawnp-tests: New file.
87392         * tests/test-posix_spawn.c: New file.
87393         * tests/test-posix_spawn.in.sh: New file.
87395         New module 'posix_spawnp'.
87396         * modules/posix_spawnp: New file.
87397         * lib/spawnp.c: New file, from GNU libc with modifications.
87398         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87400         New module 'posix_spawn'.
87401         * modules/posix_spawn: New file.
87402         * lib/spawn.c: New file, from GNU libc with modifications.
87403         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87405         New module 'posix_spawnattr_destroy'.
87406         * modules/posix_spawnattr_destroy: New file.
87407         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87408         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87409         module.
87411         New module 'posix_spawnattr_setsigmask'.
87412         * modules/posix_spawnattr_setsigmask: New file.
87413         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87414         modifications.
87415         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87416         new module.
87418         New module 'posix_spawnattr_getsigmask'.
87419         * modules/posix_spawnattr_getsigmask: New file.
87420         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87421         modifications.
87422         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87423         new module.
87425         New module 'posix_spawnattr_setsigdefault'.
87426         * modules/posix_spawnattr_setsigdefault: New file.
87427         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87428         modifications.
87429         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87430         new module.
87432         New module 'posix_spawnattr_getsigdefault'.
87433         * modules/posix_spawnattr_getsigdefault: New file.
87434         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87435         modifications.
87436         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87437         new module.
87439         New module 'posix_spawnattr_setschedpolicy'.
87440         * modules/posix_spawnattr_setschedpolicy: New file.
87441         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87442         modifications.
87443         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87444         new module.
87446         New module 'posix_spawnattr_getschedpolicy'.
87447         * modules/posix_spawnattr_getschedpolicy: New file.
87448         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87449         modifications.
87450         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87451         new module.
87453         New module 'posix_spawnattr_setschedparam'.
87454         * modules/posix_spawnattr_setschedparam: New file.
87455         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87456         modifications.
87457         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87458         new module.
87460         New module 'posix_spawnattr_getschedparam'.
87461         * modules/posix_spawnattr_getschedparam: New file.
87462         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87463         modifications.
87464         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87465         new module.
87467         New module 'posix_spawnattr_setpgroup'.
87468         * modules/posix_spawnattr_setpgroup: New file.
87469         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87470         modifications.
87471         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87472         module.
87474         New module 'posix_spawnattr_getpgroup'.
87475         * modules/posix_spawnattr_getpgroup: New file.
87476         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87477         modifications.
87478         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87479         module.
87481         New module 'posix_spawnattr_setflags'.
87482         * modules/posix_spawnattr_setflags: New file.
87483         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87484         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87485         module.
87487         New module 'posix_spawnattr_getflags'.
87488         * modules/posix_spawnattr_getflags: New file.
87489         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87490         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87491         module.
87493         New module 'posix_spawnattr_init'.
87494         * modules/posix_spawnattr_init: New file.
87495         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87496         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87497         module.
87499         New module 'posix_spawn_file_actions_destroy'.
87500         * modules/posix_spawn_file_actions_destroy: New file.
87501         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87502         modifications.
87503         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87504         the new module.
87506         New module 'posix_spawn_file_actions_addopen'.
87507         * modules/posix_spawn_file_actions_addopen: New file.
87508         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87509         modifications.
87510         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87511         the new module.
87513         New module 'posix_spawn_file_actions_adddup2'.
87514         * modules/posix_spawn_file_actions_adddup2: New file.
87515         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87516         modifications.
87517         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87518         the new module.
87520         New module 'posix_spawn_file_actions_addclose'.
87521         * modules/posix_spawn_file_actions_addclose: New file.
87522         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87523         modifications.
87524         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87525         the new module.
87527         New module 'posix_spawn_file_actions_init'.
87528         * modules/posix_spawn_file_actions_init: New file.
87529         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87530         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87531         new module.
87533         New module 'posix_spawn-internal'.
87534         * modules/posix_spawn-internal: New file.
87535         * lib/spawn_int.h: New file, from GNU libc with modifications.
87536         * lib/spawni.c: New file, from GNU libc with modifications.
87537         * m4/posix_spawn.m4: New file.
87539         New module 'spawn'.
87540         * modules/spawn: New file.
87541         * lib/spawn.in.h: New file, from GNU libc with modifications.
87542         * m4/spawn_h.m4: New file.
87543         * doc/posix-headers/spawn.texi: Mention the new module.
87545 2008-09-28  Bruno Haible  <bruno@clisp.org>
87547         * modules/sched-tests: New file.
87548         * tests/test-sched.c: New file.
87550         New module 'sched'.
87551         * modules/sched: New file.
87552         * lib/sched.in.h: New file.
87553         * m4/sched_h.m4: New file.
87554         * doc/posix-headers/sched.texi: Mention the new module.
87556 2008-09-27  Eric Blake  <ebb9@byu.net>
87558         Fix previous patch, and tweak references to $0.
87559         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87560         (func_version, func_gnulib_dir): Don't call this program
87561         gnulib-tool.
87562         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87563         with using $0 in function.
87564         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87565         (func_fatal_error): Reuse the name the user invoked us with.
87567 2008-09-27  Bruno Haible  <bruno@clisp.org>
87569         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87570         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87571         (gl_ICONV_H): Not here.
87572         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87573         instead of assigning ICONV_H directly.
87575         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87577         WCHAR_H directly.
87579 2008-09-27  Bruno Haible  <bruno@clisp.org>
87581         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87582         * modules/arpa_inet (Depends-on): Add link-warning.
87583         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87584         * modules/unistd (Makefile.am): Likewise.
87586 2008-09-26  Bruno Haible  <bruno@clisp.org>
87588         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87589         variables.
87590         (func_version): Essentially copied from gnulib-tool.
87591         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87592         func_readlink): Copied from gnulib-tool.
87594 2008-09-26  Bruno Haible  <bruno@clisp.org>
87596         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87597         invoking git-version-gen.
87599 2008-09-26  Bruno Haible  <bruno@clisp.org>
87601         * posix-modules: Update to directory names changed on 2008-01-19.
87602         Remove commas in output before splitting into words. No more need to
87603         avoid 'ftruncate' since 2007-02-19.
87605 2008-09-26  Bruno Haible  <bruno@clisp.org>
87607         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87609 2008-09-26  Bruno Haible  <bruno@clisp.org>
87611         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87612         * modules/fwriteerror (Depends-on): Add errno.
87614 2008-09-26  Bruno Haible  <bruno@clisp.org>
87616         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87617         * tests/test-vc-list-files-cvs.sh: Likewise.
87619 2008-09-26  Bruno Haible  <bruno@clisp.org>
87621         * doc/posix-headers/sys_resource.texi: Reorder items.
87623 2008-09-26  Jim Meyering  <meyering@redhat.com>
87625         fts: tweak inode comparison function
87626         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87627         inode numbers, as documented.
87629         fts: sort dirent entries on inode number before traversing
87630         This avoids a quadratic, seek-related performance penalty when
87631         operating on a directory containing many entries (measurable at 10k;
87632         3.5 hours at 2 million entries with a cold cache) on certain types
87633         of file systems, including ext3 and ext4, but not tmpfs.
87634         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87635         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87636         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87637         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87638         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87639         (fts_build): Set the stat.st_ino member from D_INO.
87640         If it is likely to be useful, sort dirent entries on inode number.
87642         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87643         and the struct statfs.f_type member.
87644         * modules/fts (Depends-on): Add d-ino.
87646 2008-09-26  Bruno Haible  <bruno@clisp.org>
87648         * modules/sigpipe-die (Depends-on): Add sigpipe.
87650         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87651         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87652         and GNULIB_STDIO_H_SIGPIPE are set.
87653         * lib/stdio-write.c: New file.
87654         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87655         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87656         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87657         REPLACE_STDIO_WRITE_FUNCS.
87658         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87659         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87660         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87661         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87662         * modules/stdio (Files): Add lib/stdio-write.c.
87663         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87664         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87665         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87666         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87667         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87668         REPLACE_FPRINTF_POSIX.
87669         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87670         REPLACE_PRINTF_POSIX.
87671         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87672         REPLACE_VFPRINTF_POSIX.
87673         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87674         REPLACE_VPRINTF_POSIX.
87675         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87676         SIGPIPE issue.
87677         * doc/posix-functions/fputc.texi: Likewise.
87678         * doc/posix-functions/fputs.texi: Likewise.
87679         * doc/posix-functions/fwrite.texi: Likewise.
87680         * doc/posix-functions/printf.texi: Likewise.
87681         * doc/posix-functions/putc.texi: Likewise.
87682         * doc/posix-functions/putchar.texi: Likewise.
87683         * doc/posix-functions/puts.texi: Likewise.
87684         * doc/posix-functions/vfprintf.texi: Likewise.
87685         * doc/posix-functions/vprintf.texi: Likewise.
87687         * modules/safe-write (Depends-on): Add write.
87689         * modules/sigpipe-tests: New file.
87690         * tests/test-sigpipe.c: New file.
87691         * tests/test-sigpipe.sh: New file.
87693         * modules/write: New file.
87694         * lib/unistd.in.h: Include <sys/types.h>.
87695         (write): New declaration.
87696         * lib/write.c: New file.
87697         * m4/write.m4: New file.
87698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87699         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87700         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87701         GNULIB_WRITE, REPLACE_WRITE.
87702         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87703         and the SIGPIPE issue.
87705         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87706         (raise): New declaration.
87707         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87708         (ext_signal): New function.
87709         (rpl_raise): New function.
87710         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87711         GNULIB_SIGNAL_H_SIGPIPE.
87712         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87713         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87715         * modules/sigpipe: New file.
87716         * m4/sigpipe.m4: New file.
87718 2008-09-25  Derek Price  <derek@ximbiot.com>
87719             Bruno Haible  <bruno@clisp.org>
87721         * gnulib-tool (func_import): Report all license incompatibilities, not
87722         just the first one.
87724 2008-09-25  Bruno Haible  <bruno@clisp.org>
87726         * gnulib-tool (func_import): When computing the edits, consider not
87727         only the Makefile.ams that exist but also those that will be generated.
87729 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87731         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87732         fixes gnulib-tool --test warning about duplicate dependency.
87734 2008-09-25  Bruno Haible  <bruno@clisp.org>
87736         * gnulib-tool: Don't ask the user to perform edits in the generated
87737         Makefile.ams.
87738         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87739         apply to the Makefile.am being generated.
87740         (func_emit_tests_Makefile_am): Execute edits that apply to the
87741         Makefile.am being generated.
87742         (func_import): Setup list of Makefile.am edits before emitting the
87743         Makefile.ams, not at the end.
87744         (func_create_testdir): Update.
87745         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87747 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87749         * gnulib-tool (func_import): Store the --tests-base option in the
87750         comment in gnulib-cache.m4.
87752 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87754         * NEWS: Document increased portability that sys_select now provides.
87756         * lib/sys_select.in.h: Install select wrapper.
87757         * lib/sys_socket.in.h: Use more descriptive name when there is no
87758         select wrapper.
87759         * lib/winsock-select.c: New.
87760         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87761         Require gl_HEADER_SYS_SOCKET.
87762         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87763         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87764         * tests/test-sys_select.c: Add functional tests.
87766 2008-09-24  Eric Blake  <ebb9@byu.net>
87768         open, fopen: close fd leak in last patch
87769         * lib/open.c (rpl_open): Close fd before returning error.
87770         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87771         * doc/posix-functions/open.texi (open): Document that Irix also
87772         has the bug.
87773         * doc/posix-functions/fopen.texi (fopen): Likewise.
87774         Reported by Paolo Bonzini.
87776 2008-09-24  Bruno Haible  <bruno@clisp.org>
87778         Ensure that a filename ending in a slash cannot be used to access a
87779         non-directory.
87780         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87781         to check whether it's really a directory.
87782         * lib/fopen.c: Include fcntl.h, unistd.h.
87783         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87784         and fdopen().
87785         * modules/fopen (Depends-on): Add unistd.
87786         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87787         * tests/test-fopen.c (main): Likewise.
87788         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87789         * doc/posix-functions/fopen.texi: Likewise.
87790         Reported by Eric Blake.
87792 2008-09-23  Eric Blake  <ebb9@byu.net>
87794         c-stack: avoid compiler optimizations when provoking overflow
87795         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87796         recursion harder to optimize, to ensure a stack overflow occurs.
87797         * tests/test-c-stack.c (recurse): Likewise.
87798         Borrowed from libsigsegv.
87800         c-stack: work around Irix sigaltstack bug
87801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87802         whether sigaltstack uses wrong end of stack_t (copied in part from
87803         libsigsegv).
87804         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87805         Irix bug, without requiring an over-allocation.
87806         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87807         bug.
87809         fopen: document mingw bug on directories
87810         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87811         not allowing a stream visiting a directory, even though reading
87812         from such a stream is not portable.
87814 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87816         * lib/poll.c: Rewrite.
87817         * modules/poll: Depend on alloca.
87819 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87821         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87822         instead define prototypes for a full set of wrappers.  Ensure
87823         that Cygwin does not use the compatibility code, which is only
87824         for MinGW.
87825         * lib/winsock.c: New.
87826         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87827         * modules/sys_socket: Add lib/winsock.c.
87829         * modules/poll-tests: Add errno and perror.
87830         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87832 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87834         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87836 2008-09-23  Bruno Haible  <bruno@clisp.org>
87838         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87839         * doc/glibc-functions/*: Likewise.
87841 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87843         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87844         success.
87846 2008-09-22  Eric Blake  <ebb9@byu.net>
87847             Bruno Haible  <bruno@clisp.org>
87849         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87850         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87851         supply %A but mishandle pseudo-NaN.
87852         Reported by Simon Josefsson.
87854 2008-09-21  Bruno Haible  <bruno@clisp.org>
87856         * tests/test-lock.c (main): Tweak skip message.
87857         * tests/test-tls.c (main): Likewise.
87859 2008-09-21  Bruno Haible  <bruno@clisp.org>
87861         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87862         whether 'struct sigaction' has sa_sigaction here...
87863         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87864         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87866 2008-09-21  Bruno Haible  <bruno@clisp.org>
87868         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87869         section.
87870         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87871         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87872         the new section.
87873         (Support for obsolete systems lacking POSIX:2001): New section.
87874         (String handling <string.h>): Move strdup to the new section.
87875         Suggested by Simon Josefsson and Paolo Bonzini.
87877 2008-09-21  Bruno Haible  <bruno@clisp.org>
87879         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87880         exponents in %e and %g results on 'long double'. Needed for mingw's
87881         improved *printf functions.
87882         * tests/test-vasprintf-posix.c (test_function): Likewise.
87883         * tests/test-snprintf-posix.h (test_function): Likewise.
87884         * tests/test-sprintf-posix.h (test_function): Likewise.
87885         Reported by Eric Blake.
87887 2008-09-21  Bruno Haible  <bruno@clisp.org>
87889         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87890         * tests/test-sprintf-posix.h (test_function): Likewise.
87892 2008-09-21  Bruno Haible  <bruno@clisp.org>
87894         * modules/getpass (Depends-on): Add strdup-posix.
87896         New module 'strdup-posix'.
87897         * modules/strdup-posix: New file.
87898         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87899         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87901         REPLACE_STRDUP.
87902         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87903         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87905         strdup-posix.
87907         * modules/strdup (Depends-on): Remove malloc-posix.
87909 2008-09-20  Bruno Haible  <bruno@clisp.org>
87911         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87912         Wildenhues.
87914 2008-09-20  Bruno Haible  <bruno@clisp.org>
87916         Ensure that wint_t gets defined on IRIX 5.3.
87917         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87918         * lib/wctype.in.h (wint_t): Likewise.
87919         (__wctype_wint_t): Remove type.
87920         (isw*): Use wint_t instead of __wctype_wint_t.
87921         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87922         * modules/wchar (Files): Add m4/wint_t.m4.
87923         (Makefile.am): Substitute HAVE_WINT_T.
87924         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87925         * tests/test-wctype.c: Check that wint_t is defined.
87926         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87927         * doc/posix-headers/wctype.texi: Likewise.
87928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87930 2008-09-18  Bruno Haible  <bruno@clisp.org>
87932         * gnulib-tool (func_exit): Update comment.
87934 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87936         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87937         assumes strdup exists and does not depend on strdup to return
87938         ENOMEM on out of memory conditions.
87940 2008-09-18  Bruno Haible  <bruno@clisp.org>
87942         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87943         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87944         digits for the exponent.
87946 2008-09-18  Jim Meyering  <meyering@redhat.com>
87947             Bruno Haible  <bruno@clisp.org>
87949         * lib/vasnprintf.c (decimal_point_char): Define also if
87950         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87952 2008-09-16  Bruno Haible  <bruno@clisp.org>
87953         and Eric Blake  <ebb9@byu.net>
87955         vasnprintf: support Irix 5.3
87956         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87957         that mishandle long double infinity.
87958         Reported by Tom G. Christensen.
87960 2008-09-16  Bruno Haible  <bruno@clisp.org>
87962         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87963         Solaris 9.
87964         * doc/glibc-functions/alphasort.texi: Likewise.
87965         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87967 2008-09-16  Jim Meyering  <meyering@redhat.com>
87969         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
87970         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
87971         a umask modification leak out of a subshell.  Otherwise, the
87972         opensolaris /bin/sh would be accepted and thus cause unwarranted
87973         failures in the coreutils test suite.
87975 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
87977         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
87978         to succeed.
87980 2008-09-16  Jim Meyering  <meyering@redhat.com>
87982         avoid spurious test failure when library is built without ACL support
87983         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
87984         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
87985         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
87986         * tests/test-copy-acl.sh: Likewise.
87988 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87990         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
87991         based on character occurrence counts.
87993 2008-09-15  Eric Blake  <ebb9@byu.net>
87995         tests: avoid some compiler warnings
87996         * tests/test-memchr.c (main): Pass NULL indirectly.
87997         * tests/test-closein.c (main): Avoid unused variable.
87999 2008-09-15  Bruno Haible  <bruno@clisp.org>
88001         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88002         are missing on OpenBSD 4.0 individually.
88003         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88005 2008-09-15  Bruno Haible  <bruno@clisp.org>
88007         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88008         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88009         * doc/posix-functions/perror.texi: Likewise.
88010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88011         is missing.
88012         Reported by Eric Blake.
88014         * lib/errno.in.h: Use replacement values >= 2000.
88015         Reported by Eric Blake.
88017 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88019         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88020         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88021         limit.
88022         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88023         compareseq was aborted.
88025 2008-09-14  Bruno Haible  <bruno@clisp.org>
88027         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88028         yvec_edit_count.
88029         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88030         (fstrcmp_bounded): Simplify result computation accordingly.
88032 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88034         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88035         (fstrcmp): Define in terms of fstrcmp_bounded.
88036         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88037         lower_bound argument.
88038         Return quickly if the result is certainly < lower_bound.
88039         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88041 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88043         * lib/diffseq.h (EARLY_ABORT): New macro.
88044         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88045         evaluates to true.
88047 2008-09-14  Bruno Haible  <bruno@clisp.org>
88049         * modules/perror-tests: New file.
88050         * tests/test-perror.sh: New file.
88051         * tests/test-perror.c: New file.
88053         New module 'perror'.
88054         * lib/stdio.in.h (perror): New declaration.
88055         * lib/perror.c: New file.
88056         * m4/perror.m4: New file.
88057         * modules/perror: New file.
88058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88059         * doc/posix-functions/perror.texi: Mention the perror module.
88060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88061         REPLACE_PERROR.
88062         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88063         REPLACE_PERROR.
88065 2008-09-14  Bruno Haible  <bruno@clisp.org>
88067         * modules/stdio (Makefile.am): Reorder to match the order in
88068         lib/stdio.in.h.
88069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88071 2008-09-13  Bruno Haible  <bruno@clisp.org>
88073         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
88075 2008-09-13  Bruno Haible  <bruno@clisp.org>
88077         Extend strerror to cover the added errno values.
88078         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
88079         (rpl_strerror): Provide error messages for the added errno values and
88080         for the WSA* values.
88081         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
88082         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
88083         strerror.
88084         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
88085         * modules/strerror (Depends-on): Add errno.
88086         * doc/posix-functions/strerror.texi: Document the change.
88087         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
88088         and EOVERFLOW.
88090 2008-09-13  Bruno Haible  <bruno@clisp.org>
88092         * modules/EOVERFLOW: Remove file.
88093         * m4/eoverflow.m4: Remove file.
88094         * modules/EOVERFLOW-tests: Remove file.
88095         * tests/test-EOVERFLOW.c: Remove file.
88096         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
88097         * modules/ftell (Depends-on): Likewise.
88098         * modules/getdelim (Depends-on): Likewise.
88099         * modules/getugroups (Depends-on): Likewise.
88100         * modules/poll (Depends-on): Likewise.
88101         * modules/snprintf (Depends-on): Likewise.
88102         * modules/sprintf-posix (Depends-on): Likewise.
88103         * modules/vasnprintf (Depends-on): Likewise.
88104         * modules/vasprintf (Depends-on): Likewise.
88105         * modules/vfprintf-posix (Depends-on): Likewise.
88106         * modules/vsnprintf (Depends-on): Likewise.
88107         * modules/vsprintf-posix (Depends-on): Likewise.
88108         * modules/xvasprintf (Depends-on): Likewise.
88109         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88110         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88111         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88112         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88114         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88115         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88116         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88117         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88118         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88119         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88120         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88121         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88122         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88123         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88124         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88125         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88126         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88127         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88128         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88130         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88131         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88132         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88133         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88134         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88135         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88136         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88137         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88138         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88139         * MODULES.html.sh: Remove EOVERFLOW.
88140         * NEWS: Mention the change.
88142 2008-09-13  Bruno Haible  <bruno@clisp.org>
88144         * modules/errno-tests: New file.
88145         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88147         * lib/errno.in.h: New file.
88148         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88149         * modules/errno: New file.
88150         * doc/posix-headers/errno.texi: Update documentation.
88151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88153 2008-09-13  Bruno Haible  <bruno@clisp.org>
88155         * tests/test-poll.c: Use #if for native Windows, rather than testing
88156         __MSVCRT__.
88158 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88159             Bruno Haible  <bruno@clisp.org>
88161         * lib/glob.c: Don't include <pwd.h> on native Windows.
88162         (WINDOWS32): New macro.
88163         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88165 2008-09-13  Bruno Haible  <bruno@clisp.org>
88167         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88168         (ETIMEDOUT): Remove macro.
88169         (glthread_cond_timedwait_multithreaded): New declaration.
88170         (glthread_cond_timedwait): Use it.
88171         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88172         (glthread_cond_timedwait_multithreaded): New function.
88174 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88176         * modules/poll-tests: Do not check for io.h.
88177         * tests/test-poll.c: Check for __MSVCRT__ instead.
88179 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88181         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88182         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88183         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88185 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88187         * modules/poll-tests: New.
88188         * tests/test-poll.c: New.
88190 2008-09-12  Eric Blake  <ebb9@byu.net>
88192         frexp: test for NetBSD failure on -0.0
88193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88194         not all, bugs from NetBSD 3.0 have been fixed.
88195         * doc/posix-functions/frexp.texi (frexp): Document bug.
88196         Reported by Thomas Klausner.
88198         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88199         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88200         literal -0.0.
88201         Reported by Jonathan C. Patschke <jp@centtech.com>.
88203 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88205         * lib/glthread/cond.h: Use dummy implementation also if
88206         USE_WIN32_THREADS.
88208 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88210         * modules/fnmatch-posix (License): Change to LGPLv2+.
88211         * modules/fnmatch-gnu (License): Likewise.
88213 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88215         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88217 2008-09-11  Jim Meyering  <meyering@redhat.com>
88219         * users.txt: Add gtk-vnc.
88221 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88223         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88224         rotate amounts.
88226         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88227         required for 16-bit and 8-bit rotates.
88228         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88229         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88230         UINT8_MAX instead of hard-coded constants.
88231         Suggested by Paul Eggert.
88233 2008-09-07  Bruno Haible  <bruno@clisp.org>
88235         * tests/test-striconveh.c (main): Check behaviour when converting from
88236         UTF-7.
88238         Make striconveh work better with stateful encodings.
88239         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88240         that iconv does not increment the inptr when returning -1/EINVAL.
88242 2008-09-07  Bruno Haible  <bruno@clisp.org>
88244         * build-aux/config.rpath: Update according to libtool-2.2.6.
88245         * build-aux/config.libpath: Likewise.
88247 2008-09-06  Bruno Haible  <bruno@clisp.org>
88249         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88250         * lib/freadptr.c (freadptr): Likewise.
88251         * lib/freadseek.c (freadptrinc): Likewise.
88252         Reported by Simon Josefsson.
88254 2008-09-06  Bruno Haible  <bruno@clisp.org>
88256         * modules/freadptr (License): Change to LGPLv2+.
88257         * modules/freadseek (License): Likewise.
88258         Suggested by Eric Blake.
88260         * modules/memchr2 (License): Change to LGPLv2+.
88261         Approved by Eric Blake.
88263 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88264             Bruno Haible  <bruno@clisp.org>
88266         Make gnulib-tool work with native 'sed' on AIX.
88267         * gnulib-tool (sed_noop): New variable.
88268         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88269         func_add_or_update, func_create_testdir): Use it to initialize sed
88270         script variables.
88271         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88273 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88274             Bruno Haible  <bruno@clisp.org>
88276         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88277         also works after #include directives.
88279 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88281         getdate.y: reject an out-of-range timezone value
88282         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88283         the range [-24...+24].  When specified with only one or two digits,
88284         * tests/test-getdate.c: Tests for the fix.
88285         * doc/getdate.texi: Document this change.
88287 2008-09-03  Bruno Haible  <bruno@clisp.org>
88289         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88291 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88293         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88294         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88295         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88296         Blake <ebb9@byu.net>.
88298         * tests/test-bitrotate.c: Add more test vectors.
88300 2008-09-02  Eric Blake  <ebb9@byu.net>
88302         vasnprintf-posix: handle large precision via %.*d
88303         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88304         when handling it ourselves.
88305         * tests/test-vasnprintf-posix.c (test_function): Add test.
88306         * tests/test-snprintf-posix.h (test_function): Likewise.
88307         * tests/test-sprintf-posix.h (test_function): Likewise.
88308         * tests/test-vasprintf-posix.c (test_function): Likewise.
88309         Reported by Alain Guibert.
88311 2008-09-01  Eric Blake  <ebb9@byu.net>
88313         c-stack: make configure-time check more robust
88314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88315         successful sigaction call.
88316         Reported by Tom G. Christensen.
88318 2008-09-01  Bruno Haible  <bruno@clisp.org>
88320         New module 'findprog-lgpl'.
88321         * modules/findprog-lgpl: New file.
88322         * lib/findprog-lgpl.c: New file.
88323         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88324         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88325         to decide whether to use strdup or xstrdup, concatenated_filename or
88326         xconcatenated_filename.
88328 2008-09-01  Bruno Haible  <bruno@clisp.org>
88330         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88331         'xconcat-filename' (GPL).
88332         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88333         (License): Change to LGPLv2+.
88334         * modules/xconcat-filename: New file.
88335         * lib/concat-filename.h (concatenated_filename): Change specification.
88336         (xconcatenated_filename): New declaration.
88337         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88338         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88339         memory situations.
88340         * lib/xconcat-filename.c: New file.
88341         * NEWS: Mention the change.
88342         * lib/findprog.c: Include concat-filename.h, not filename.h.
88343         (find_in_path): Use xconcatenated_filename instead of
88344         concatenated_filename.
88345         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88346         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88347         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88348         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88349         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88350         instead of concatenated_filename.
88351         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88352         (execute_java_class): Use xconcatenated_filename instead of
88353         concatenated_filename.
88354         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88355         * modules/javacomp (Depends-on): Likewise.
88356         * modules/javaexec (Depends-on): Likewise.
88358 2008-09-01  Bruno Haible  <bruno@clisp.org>
88360         Split module 'filename' into 'filename' and 'concat-filename'.
88361         * modules/filename: Keep only lib/filename.h.
88362         (License): Change to LGPLv2+.
88363         * modules/concat-filename: New file, extracted from modules/filename.
88364         * lib/filename.h (concatenated_filename): Remove declaration.
88365         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88366         * lib/concat-filename.c: Include concat-filename.h.
88367         * NEWS: Mention the change.
88369 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88371         * lib/bitrotate.h (rotl8, rotr8): Add.
88373         * modules/bitrotate (configure.ac): Need
88374         AC_REQUIRE([AC_C_INLINE]).
88375         (Description): Mention stdint.h.  Reported by Bruno Haible
88376         <bruno@clisp.org>.
88378         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88379         Paolo Bonzini <bonzini@gnu.org>.
88381 2008-08-31  Bruno Haible  <bruno@clisp.org>
88383         Assume Solaris specific bi-arch conventions on Solaris systems.
88384         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88385         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88387         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88388         like acl_libdirstem.
88389         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88390         acl_libdirstem.
88391         * NEWS: Mention the change.
88392         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88394 2008-08-31  Jim Meyering  <meyering@redhat.com>
88396         * lib/strftime.h: Add comments describing the two added arguments.
88398         remove duplicate #include directives
88399         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88400         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88402 2008-08-31  Bruno Haible  <bruno@clisp.org>
88404         New module 'sigpipe-die'.
88405         * modules/sigpipe-die: New file.
88406         * lib/sigpipe-die.h: New file.
88407         * lib/sigpipe-die.c: New file.
88408         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88410 2008-08-31  Bruno Haible  <bruno@clisp.org>
88412         Don't override previously installed signal handlers.
88413         * lib/fatal-signal.c (saved_sigactions): New variable.
88414         (uninstall_handlers): Reset the signal to the saved handler, not
88415         to SIG_DFL (except when ignored).
88416         (install_handlers): Save the previous handlers.
88418 2008-08-30  Bruno Haible  <bruno@clisp.org>
88420         * gnulib-tool (func_reset_sigpipe): New function.
88421         (func_get_automake_snippet, func_modules_transitive_closure,
88422         func_import): Invoke it before a join command that reads from stdin,
88423         to avoid "echo: write error: Broken pipe" error messages on stderr.
88424         Reported by Sam Steingold <sds@gnu.org>.
88426 2008-08-30  Bruno Haible  <bruno@clisp.org>
88428         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88429         Code copied from m4/open.m4.
88430         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88431         access and the filename ends in a slash. Code copied from lib/open.c.
88432         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88433         * tests/test-fopen.c (main): Check against bug with trailing slash.
88435 2008-08-29  Bruno Haible  <bruno@clisp.org>
88437         Avoid some "gcc -pedantic" warnings.
88438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88439         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88440         * lib/dirent.in.h: Likewise.
88441         * lib/fcntl.in.h: Likewise.
88442         * lib/float.in.h: Likewise.
88443         * lib/iconv.in.h: Likewise.
88444         * lib/inttypes.in.h: Likewise.
88445         * lib/locale.in.h: Likewise.
88446         * lib/math.in.h: Likewise.
88447         * lib/netinet_in.in.h: Likewise.
88448         * lib/search.in.h: Likewise.
88449         * lib/signal.in.h: Likewise.
88450         * lib/stdarg.in.h: Likewise.
88451         * lib/stdint.in.h: Likewise.
88452         * lib/stdio.in.h: Likewise.
88453         * lib/stdlib.in.h: Likewise.
88454         * lib/string.in.h: Likewise.
88455         * lib/strings.in.h: Likewise.
88456         * lib/sys_select.in.h: Likewise.
88457         * lib/sys_socket.in.h: Likewise.
88458         * lib/sys_stat.in.h: Likewise.
88459         * lib/sys_time.in.h: Likewise.
88460         * lib/sysexits.in.h: Likewise.
88461         * lib/time.in.h: Likewise.
88462         * lib/unistd.in.h: Likewise.
88463         * lib/wchar.in.h: Likewise.
88464         * lib/wctype.in.h: Likewise.
88465         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88466         * modules/fchdir (Makefile.am): Likewise.
88467         * modules/fcntl (Makefile.am): Likewise.
88468         * modules/float (Makefile.am): Likewise.
88469         * modules/iconv_open (Makefile.am): Likewise.
88470         * modules/inttypes (Makefile.am): Likewise.
88471         * modules/locale (Makefile.am): Likewise.
88472         * modules/math (Makefile.am): Likewise.
88473         * modules/netinet_in (Makefile.am): Likewise.
88474         * modules/search (Makefile.am): Likewise.
88475         * modules/signal (Makefile.am): Likewise.
88476         * modules/stdarg (Makefile.am): Likewise.
88477         * modules/stdint (Makefile.am): Likewise.
88478         * modules/stdio (Makefile.am): Likewise.
88479         * modules/stdlib (Makefile.am): Likewise.
88480         * modules/string (Makefile.am): Likewise.
88481         * modules/strings (Makefile.am): Likewise.
88482         * modules/sys_select (Makefile.am): Likewise.
88483         * modules/sys_socket (Makefile.am): Likewise.
88484         * modules/sys_stat (Makefile.am): Likewise.
88485         * modules/sys_time (Makefile.am): Likewise.
88486         * modules/sysexits (Makefile.am): Likewise.
88487         * modules/time (Makefile.am): Likewise.
88488         * modules/unistd (Makefile.am): Likewise.
88489         * modules/wchar (Makefile.am): Likewise.
88490         * modules/wctype (Makefile.am): Likewise.
88491         Reported by Reuben Thomas <rrt@sc3d.org>.
88493 2008-08-29  Bruno Haible  <bruno@clisp.org>
88495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88496         any more.
88498 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88500         * MODULES.html.sh (Misc): Add bitrotate.
88502         * modules/bitrotate: New file.
88504         * lib/bitrotate.h: New file.
88506         * modules/bitrotate-tests: New file.
88508         * tests/test-bitrotate.c: New file.
88510         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88511         on the bitrotate module.
88513         * lib/arctwo.c: Use new bitrotate module.
88515 2008-08-29  Jim Meyering  <meyering@redhat.com>
88517         bootstrap: merge changes from coreutils
88518         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88519         of copied files.  Remove a kludge, now that this is fixed.
88520         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88521         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88522         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88524 2008-08-29  Bruno Haible  <bruno@clisp.org>
88526         * MODULES.html.sh: Remove --cvs-urls option.
88528 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88530         maint.mk: adjust to file name change
88531         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88533 2008-08-28  Jim Meyering  <meyering@redhat.com>
88535         * modules/getndelim2 (License): Relicense to LGPLv2+.
88536         Approved by Richard Stallman for the version of 1995, and by
88537         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88539 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88541         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88542         dummy if one is not available.  Do not touch them if
88543         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88544         (getc_maybe_unlocked): New.
88545         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88547 2008-08-26  Eric Blake  <ebb9@byu.net>
88549         doc/INSTALL: resync from autoconf
88550         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88551         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88552         moving...
88553         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88554         * INSTALL: Regenerate.
88555         * INSTALL.ISO: New file.
88556         * INSTALL.UTF-8: Likewise.
88558 2008-08-26  Jim Meyering  <meyering@redhat.com>
88560         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88561         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88562         these definitions conditional, so that they may be overridden, too.
88564 2008-08-26  Bruno Haible  <bruno@clisp.org>
88566         Generate INSTALL file variants with prettier quotes.
88567         * doc/Makefile (INSTALL_PRELUDE): New macro.
88568         (INSTALL): Use it.
88569         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88571 2008-08-26  Bruno Haible  <bruno@clisp.org>
88573         Run makeinfo in an English locale.
88574         * doc/Makefile (MAKEINFO): New variable.
88576 2008-08-26  Bruno Haible  <bruno@clisp.org>
88578         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88579         Suggested by Eric Blake.
88581 2008-08-25  Bruno Haible  <bruno@clisp.org>
88583         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88585 2008-08-25  Eric Blake  <ebb9@byu.net>
88587         c-stack: test that stack overflow can be caught
88588         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88589         that platform allows handling stack overflow; at least OS/2 EMX
88590         has sigaltstack, but crashes before transferring control to
88591         handler on stack overflow.
88592         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88593         check for HAVE_STACK_OVERFLOW_HANDLING.
88594         Reported by Elbert Pol.
88596 2008-08-25  Bruno Haible  <bruno@clisp.org>
88598         * doc/posix-functions/strftime.texi: Fix description of strftime
88599         module.
88601 2008-08-24  Bruno Haible  <bruno@clisp.org>
88603         * tests/uniwidth/test-uc_width2.c: New file.
88604         * tests/uniwidth/test-uc_width2.sh: New file.
88605         * modules/uniwidth/width-tests (Files): Add the new files.
88606         (TESTS): Add uniwidth/test-uc_width2.sh.
88607         (TESTS_ENVIRONMENT): New variable.
88608         (check_PROGRAMS): Add test-uc_width2.
88609         (test_uc_width2_SOURCES): New variable.
88611         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88612         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88613         not 0x00AB.
88614         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88616 2008-08-22  Eric Blake  <ebb9@byu.net>
88618         test-lock, test-tls: mention why a test is skipped
88619         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88620         skipped.
88621         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88623         count-one-bits: relax license
88624         * modules/count-one-bits (License): Relicense to LGPLv2+.
88625         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88627 2008-08-22  Andreas Schwab  <schwab@suse.de>
88629         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88630         Remove spurious space in assignment.
88632 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88634         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88635         Paul Eggert <eggert@CS.UCLA.EDU>.
88637 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88639         * modules/gettext: Add m4/threadlib.m4.
88641 2008-08-19  Eric Blake  <ebb9@byu.net>
88643         test-c-stack: fix compilation failure on FreeBSD 5.0
88644         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88645         headers before <sys/resource.h>.
88646         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88647         the bug.
88648         Reported by Nelson H. F. Beebe.
88650         strverscmp: migrate from "strverscmp.h" to <string.h>
88651         * modules/string (Makefile.am): Add new hooks.
88652         * modules/strverscmp (Files): Remove strverscmp.h.
88653         (Depends-on): Add string.
88654         (configure.ac): Add indicator.
88655         (Include): Mention new header.
88656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88657         defaults.
88658         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88659         results.
88660         * lib/strverscmp.h: Delete.
88661         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88662         * tests/test-strverscmp.c (includes): Adjust client.
88663         * lib/check-version.c (includes): Likewise.
88664         * NEWS: Document the change.
88666         strverscmp: add unit test
88667         * modules/strverscmp-tests: New file.
88668         * tests/test-strverscmp.c: Likewise.
88670 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88672         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88673         regarding Windows crypto stuff, from Mono.
88675 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88677         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88678         if present, for intel RND.  Return error on failures.
88680 2008-08-18  Ben Pfaff  <blp@gnu.org>
88682         gitlog-to-changelog: give better diagnostic for failed pipe-open
88683         * build-aux/gitlog-to-changelog: Improve error message: suggest
88684         that the version of Git may be too old.
88686 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88688         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88689         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88691 2008-08-18  Bruno Haible  <bruno@clisp.org>
88693         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88694         pthread_in_use().
88696 2008-08-18  Bruno Haible  <bruno@clisp.org>
88698         * lib/glthread/threadlib.c: Include <pthread.h>.
88700 2008-08-18  Bruno Haible  <bruno@clisp.org>
88702         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88703         glthread_recursive_lock_* macros.
88704         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88705         Fix syntax error.
88707 2008-08-18  Bruno Haible  <bruno@clisp.org>
88709         * lib/glthread/thread.c: Avoid forcing a context switch right after
88710         thread creation.
88712 2008-08-17  Bruno Haible  <bruno@clisp.org>
88714         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88715         * lib/glthread/thread.h: Provide Win32 specific implementation.
88716         * modules/thread (Files): Add lib/glthread/thread.c.
88717         (Depends-on): Add lock.
88718         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88720 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88722         New module 'yield'.
88723         * modules/yield: New file.
88724         * lib/glthread/yield.h: New file.
88725         * m4/yield.m4: New file.
88726         * MODULES.html.sh (Multithreading): Add yield.
88728 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88730         New module 'thread'.
88731         * modules/thread: New file.
88732         * lib/glthread/thread.h: New file.
88733         * m4/thread.m4: New file.
88734         * MODULES.html.sh (Multithreading): Add thread.
88736 2008-08-17  Bruno Haible  <bruno@clisp.org>
88738         * lib/glthread/lock.h: Include <stdlib.h> always.
88739         * lib/glthread/tls.h: Likewise.
88740         * lib/glthread/cond.h: Likewise.
88742 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88744         New module 'cond'.
88745         * modules/cond: New file.
88746         * lib/glthread/cond.h: New file.
88747         * lib/glthread/cond.c: New file.
88748         * m4/cond.m4: New file.
88749         * MODULES.html.sh (Multithreading): Add cond.
88751 2008-08-16  Eric Blake  <ebb9@byu.net>
88753         c-stack: fix regression on Irix 5.3 from 2008-06-21
88754         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88755         sa_sigaction...
88756         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88757         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88758         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88759         * modules/signal (Makefile.am): Use the value.
88760         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88761         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88762         * doc/posix-headers/signal.texi (signal.h): Document this
88763         portability issue.
88764         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88765         Reported by Tom G. Christensen.
88767 2008-08-17  Bruno Haible  <bruno@clisp.org>
88769         New module 'threadlib'.
88770         * modules/threadlib: New file.
88771         * lib/glthread/threadlib.c: New file, extracted from
88772         lib/glthread/lock.c.
88773         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88774         functions.
88775         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88776         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88777         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88778         macros.
88779         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88780         (gl_DISABLE_THREADS): Remove macro.
88781         * modules/lock (Files): Remove build-aux/config.rpath.
88782         (Depends-on): Remove havelib. Add threadlib.
88783         (configure.ac-early): Remove section.
88784         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88785         * modules/tls (Depends-on): Remove lock. Add threadlib.
88786         (Link): New section, copied from threadlib.
88787         * MODULES.html.sh (Multithreading): Add threadlib.
88789 2008-08-14  Bruno Haible  <bruno@clisp.org>
88791         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88792         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88793         glthread_rwlock_unlock, glthread_rwlock_destroy,
88794         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88795         glthread_recursive_lock_destroy): Define as macros always.
88796         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88797         glthread_lock_lock.
88798         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88799         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88800         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88801         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88802         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88803         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88804         (glthread_recursive_lock_lock_func): Renamed from
88805         glthread_recursive_lock_lock.
88806         (glthread_recursive_lock_unlock_func): Renamed from
88807         glthread_recursive_lock_unlock.
88808         (glthread_recursive_lock_destroy_func): Renamed from
88809         glthread_recursive_lock_destroy.
88811 2008-08-14  Bruno Haible  <bruno@clisp.org>
88813         * lib/glthread/lock.h: Renamed from lib/lock.h.
88814         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88815         * lib/glthread/tls.h: Renamed from lib/tls.h.
88816         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88817         * lib/fstrcmp.c: Update includes.
88818         * lib/strsignal.c: Update includes.
88819         * modules/lock (Files, Makefile.am): Update.
88820         (Include): Change to "glthread/lock.h".
88821         * modules/tls (Files, Makefile.am): Update.
88822         (Include): Change to "glthread/tls.h".
88823         * tests/test-lock.c: Update includes.
88824         * tests/test-tls.c: Update includes.
88825         * NEWS: Mention the renamed header files.
88827 2008-08-11  Jim Meyering  <meyering@redhat.com>
88829         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88831 2008-08-11  Eric Blake  <ebb9@byu.net>
88833         test-c-stack: avoid C99-ism
88834         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88835         before statement.
88836         Reported by Alain Guibert.
88838 2008-08-10  Jim Meyering  <meyering@redhat.com>
88840         ensure that return value of uinttostr et al are not ignored
88841         * lib/inttostr.h (__GNUC_PREREQ): Define.
88842         (__attribute_warn_unused_result__): Define.
88843         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88845 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88847         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88848         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88850 2008-08-07  Jim Meyering  <meyering@redhat.com>
88852         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88854         * modules/mkstemp (License): Relicense under LGPLv2+.
88855         * modules/tempname (License): Likewise.
88857 2008-08-06  Bruno Haible  <bruno@clisp.org>
88859         * lib/poll.c (poll): Further micro-optimization.
88861 2008-08-06  Jim Meyering  <meyering@redhat.com>
88863         inet_pton.c: use locale-independent tolower
88864         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88865         (inet_pton6): Use c_tolower rather than tolower.
88866         * modules/inet_pton (Depends-on): Add c-ctype.
88868 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88870         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88871         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88873 2008-08-06  Jim Meyering  <meyering@redhat.com>
88875         * modules/inet_pton (License): Relicense under LGPLv2+.
88877 2008-08-03  Bruno Haible  <bruno@clisp.org>
88879         Additional non-aborting API for lock and tls.
88880         * lib/lock.h: Include <errno.h>.
88881         (glthread_lock_init): New macro/function.
88882         (gl_lock_init): Define as wrapper around glthread_lock_init.
88883         (glthread_lock_lock): New macro/function.
88884         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88885         (glthread_lock_unlock): New macro/function.
88886         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88887         (glthread_lock_destroy): New macro/function.
88888         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88889         (glthread_rwlock_init): New macro/function.
88890         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88891         (glthread_rwlock_rdlock): New macro/function.
88892         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88893         (glthread_rwlock_wrlock): New macro/function.
88894         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88895         (glthread_rwlock_unlock): New macro/function.
88896         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88897         (glthread_rwlock_destroy): New macro/function.
88898         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88899         (glthread_recursive_lock_init): New macro/function.
88900         (gl_recursive_lock_init): Define as wrapper around
88901         glthread_recursive_lock_init.
88902         (glthread_recursive_lock_lock): New macro/function.
88903         (gl_recursive_lock_lock): Define as wrapper around
88904         glthread_recursive_lock_lock.
88905         (glthread_recursive_lock_unlock): New macro/function.
88906         (gl_recursive_lock_unlock): Define as wrapper around
88907         glthread_recursive_lock_unlock.
88908         (glthread_recursive_lock_destroy): New macro/function.
88909         (gl_recursive_lock_destroy): Define as wrapper around
88910         glthread_recursive_lock_destroy.
88911         (glthread_once): New macro/function.
88912         (gl_once): Define as wrapper around glthread_once.
88913         Update function declarations.
88914         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88915         glthread_rwlock_init. Return error code.
88916         (glthread_rwlock_rdlock_multithreaded): Renamed from
88917         glthread_rwlock_rdlock. Return error code.
88918         (glthread_rwlock_wrlock_multithreaded): Renamed from
88919         glthread_rwlock_wrlock. Return error code.
88920         (glthread_rwlock_unlock_multithreaded): Renamed from
88921         glthread_rwlock_unlock. Return error code.
88922         (glthread_rwlock_destroy_multithreaded): Renamed from
88923         glthread_rwlock_destroy. Return error code.
88924         (glthread_recursive_lock_init_multithreaded): Renamed from
88925         glthread_recursive_lock_init. Return error code.
88926         (glthread_recursive_lock_lock_multithreaded): Renamed from
88927         glthread_recursive_lock_lock. Return error code.
88928         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88929         glthread_recursive_lock_unlock. Return error code.
88930         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88931         glthread_recursive_lock_destroy. Return error code.
88932         (glthread_once_call): Make static.
88933         (glthread_once_multithreaded): Renamed from glthread_once.
88934         * lib/tls.h: Include <errno.h>.
88935         (glthread_tls_key_init): New macro/function.
88936         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88937         (glthread_tls_set): New macro/function.
88938         (gl_tls_set): Define as wrapper around glthread_tls_set.
88939         (glthread_tls_key_destroy): New macro/function.
88940         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88941         Update function declarations.
88942         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88943         glthread_tls_get.
88944         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88946 2008-08-04  Eric Blake  <ebb9@byu.net>
88948         gnumakefile: use space, not TAB, outside of targets
88949         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88951 2008-08-02  Jim Meyering  <meyering@redhat.com>
88953         getdate.y: avoid locale-dependent date parsing failure
88954         In Turkish locales, getdate would fail to recognize keywords
88955         containing a lowercase "i".  The solution is not to rely on
88956         locale-sensitive case-conversion.
88957         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88958         (lookup_word): Use c_toupper in place of toupper.
88959         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88960         Reported by Vefa Bicakci <bicave@superonline.com> in
88961         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88962         * modules/getdate (Depends-on): Add c-ctype.
88964 2008-08-02  Bruno Haible  <bruno@clisp.org>
88966         * gnulib-tool (func_import): When updating or creating a .gitignore
88967         file, prepend each added line with a slash, and ignore leading slashes
88968         from the existing lines.
88969         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88971 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88973         Portability fix for GNU make 3.79.1.
88974         * top/GNUmakefile: Avoid 'else COND', which older GNU make
88975         versions do not understand.
88977 2008-08-01  Bruno Haible  <bruno@clisp.org>
88979         Work around bug of HP-UX 10.20 cc with -0.0 literal.
88980         * tests/test-isnanf.h (zero): New variable.
88981         (main): Avoid literal -0.0f.
88982         * tests/test-isnand.h (zero): New variable.
88983         (main): Avoid literal -0.0.
88984         * tests/test-isnanl.h (zero): New variable.
88985         (main): Avoid literal -0.0L.
88986         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
88987         (test_float, test_double, test_long_double): Avoid literals -0.0f,
88988         -0.0, -0.0L.
88989         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
88990         (test_signbitd): Avoid literal -0.0.
88991         (test_signbitl): Avoid literal -0.0L.
88992         * tests/test-ceilf1.c (zero): New variable.
88993         (main): Avoid literal -0.0f.
88994         * tests/test-ceill.c (zero): New variable.
88995         (main): Avoid literal -0.0L.
88996         * tests/test-floorf1.c (zero): New variable.
88997         (main): Avoid literal -0.0f.
88998         * tests/test-floorl.c (zero): New variable.
88999         (main): Avoid literal -0.0L.
89000         * tests/test-roundf1.c (zero): New variable.
89001         (main): Avoid literal -0.0f.
89002         * tests/test-round1.c (zero): New variable.
89003         (main): Avoid literal -0.0.
89004         * tests/test-roundl.c (zero): New variable.
89005         (main): Avoid literal -0.0L.
89006         * tests/test-truncf1.c (zero): New variable.
89007         (main): Avoid literal -0.0f.
89008         * tests/test-trunc1.c (zero): New variable.
89009         (main): Avoid literal -0.0.
89010         * tests/test-truncl.c (zero): New variable.
89011         (main): Avoid literal -0.0L.
89012         * tests/test-frexp.c (zero): New variable.
89013         (main): Avoid literal -0.0.
89014         * tests/test-frexpl.c (zero): New variable.
89015         (main): Avoid literal -0.0L.
89016         * tests/test-ldexpl.c (zero): New variable.
89017         (main): Avoid literal -0.0L.
89018         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89019         (zerod, zerol): New variables.
89020         (test_function): Avoid literals -0.0, -0.0L.
89021         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89022         (zerod, zerol): New variables.
89023         (test_function): Avoid literals -0.0, -0.0L.
89024         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89025         (zerod, zerol): New variables.
89026         (test_function): Avoid literals -0.0, -0.0L.
89027         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89028         (zerod, zerol): New variables.
89029         (test_function): Avoid literals -0.0, -0.0L.
89030         * tests/test-strtod.c (zero): New variable.
89031         (main): Avoid literal -0.0.
89032         Reported by Jonathan C. Patschke <jp@centtech.com>.
89034 2008-07-31  Jim Meyering  <meyering@redhat.com>
89036         sha256.h: correct definition of SHA224_DIGEST_SIZE
89037         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89038         Reported by Paulie Pena IV <paulie4@gmail.com>.
89039         Define as 224 / 8, rather than as a literal.
89040         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89041         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89042         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89044 2008-07-31  Bruno Haible  <bruno@clisp.org>
89046         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89047         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89048         Reported by Jonathan Patschke <jp@centtech.com>.
89050 2008-07-31  Bruno Haible  <bruno@clisp.org>
89052         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89053         Reported by Paolo Bonzini <bonzini@gnu.org>.
89055 2008-07-30  Eric Blake  <ebb9@byu.net>
89057         test-strtod: allow compilation without -lm
89058         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89059         Reported by Dennis Clarke <blastwave@gmail.com>.
89061 2008-07-28  Jim Meyering  <meyering@redhat.com>
89063         bootstrap: work also when there are no .po files in po/
89064         * build-aux/bootstrap (update_po_files): Complete the change
89065         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89067 2008-07-27  Jim Meyering  <meyering@redhat.com>
89069         * users.txt: Add zile.
89071 2008-07-26  Ben Pfaff  <blp@gnu.org>
89073         Add missing dependencies on new m4/exponent[fdl].m4 files.
89074         * modules/isnanf-nolibm: Add m4/exponentf.m4.
89075         * modules/isnand-nolibm: Add m4/exponentd.m4.
89076         * modules/isnanl-nolibm: Add m4/exponentl.m4.
89077         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
89078         m4/isnan[fdl].m4, because the macros actually used moved.
89079         Reported by Jim Meyering.
89081 2008-07-14  Ben Pfaff  <blp@gnu.org>
89083         Add isinf module.
89084         * lib/isinf.c: New file.
89085         * lib/math.in.h: Define isinf macro if we have decided to replace
89086         it.
89087         * m4/isinf.m4: New file.
89088         * m4/math_h.m4: Initialize and substitute variables for isinf
89089         module.
89090         * modules/isinf: New file.
89091         * modules/isinf-tests: New file.
89092         * modules/math: Add substitutions for new module.
89093         * tests/test-isinf.c: New file.
89094         * doc/posix-functions/isinf.texi: Mention new module.
89095         * MODULES.html.sh: Mention new module.
89097 2008-07-14  Ben Pfaff  <blp@gnu.org>
89099         Factor out some macros for use by additional modules.
89100         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
89101         exponentf.m4.
89102         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
89103         exponentd.m4.
89104         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
89105         file exponentl.m4.
89106         * m4/exponentf.m4: New file.
89107         * m4/exponentd.m4: New file.
89108         * m4/exponentl.m4: New file.
89109         * modules/isnanf: Use new file m4/exponentf.m4.
89110         * modules/isnand: Use new file m4/exponentd.m4.
89111         * modules/isnanl: Use new file m4/exponentl.m4.
89113 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89115         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89116         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89117         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89118         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89120         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89121         readlink on platforms without PATH_MAX.
89123 2008-07-21  Eric Blake  <ebb9@byu.net>
89125         Warn, not fail, on stale version.
89126         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89128         Don't allow installation with stale devel version number.
89129         * top/GNUmakefile (_is-install-target): New macro.
89130         (_curr-ver): Forbid installation with stale version number.
89132 2008-07-20  Bruno Haible  <bruno@clisp.org>
89134         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89135         TESTS_ENVIRONMENT.
89136         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89138 2008-07-20  Bruno Haible  <bruno@clisp.org>
89140         * lib/c-stack.h (c_stack_action): Add documentation.
89141         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89143 2008-07-20  Bruno Haible  <bruno@clisp.org>
89145         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89146         * modules/readlink (License): Likewise.
89148 2008-07-17  Eric Blake  <ebb9@byu.net>
89150         * modules/c-stack (Link): Fix typo.
89152         Make c-stack use libsigsegv, when available.
89153         * modules/c-stack (Depends-on): Add libsigsegv.
89154         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89155         needed.
89156         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89157         (segv_handler, overflow_handler, c_stack_action)
89158         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89159         implementation when libsigsegv is available, but only when using
89160         the library is necessary.
89161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89162         comment, explaining why XSI check fails on Linux.
89163         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89164         * tests/test-c-stack2.sh: Tweak skip message.
89165         * NEWS: Document new link-time requirements.
89167 2008-07-16  Eric Blake  <ebb9@byu.net>
89169         c-stack: Expose false positives when not using libsigsegv.
89170         * modules/c-stack-tests (Files): Expand test.
89171         * tests/test-c-stack.c (main): Add means to conditionally trigger
89172         non-overflow SIGSEGV.
89173         * tests/test-c-stack2.sh: New file.
89175 2008-07-14  Bruno Haible  <bruno@clisp.org>
89177         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89178         Reported by Eric Blake.
89180 2008-07-14  Sam Steingold  <sds@gnu.org>
89181             Bruno Haible  <bruno@clisp.org>
89183         New module libsigsegv.
89184         * modules/libsigsegv: New file.
89185         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89186         modifications.
89187         * MODULES.html.sh (Signal handling): New section.
89189 2008-07-14  Bruno Haible  <bruno@clisp.org>
89191         * modules/unictype/ctype-* (Description): Add the word "function".
89192         Improves the resulting doc in MODULES.html.
89194 2008-07-12  Ben Pfaff  <blp@gnu.org>
89196         Add longlong module.
89197         * modules/longlong: New file.
89199 2008-07-12  Bruno Haible  <bruno@clisp.org>
89201         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89202         to empty.
89204 2008-07-10  Ben Pfaff  <blp@gnu.org>
89206         Add isnan module.
89207         * doc/posix-functions/isnan.texi: Mention new module.
89208         * lib/math.in.h: Define isnan macro if we have decided to replace
89209         it.
89210         * m4/isnan.m4: New file.
89211         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89212         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89213         also.
89214         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89215         redundancy.
89216         * m4/math_h.m4: Initialize and substitute variables for isnan
89217         module.
89218         * modules/isnan: New file.
89219         * modules/isnan-tests: New file.
89220         * modules/math: Add substitutions for new module.
89221         * tests/test-isnan.c: New file.
89222         * MODULES.html.sh: Mention new module.
89224 2008-07-10  Ben Pfaff  <blp@gnu.org>
89226         Add isnanf module.
89227         * lib/isnanf.m4: New file.
89228         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89229         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89230         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89231         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89232         * modules/isnanf: New file.
89233         * modules/isnanf-tests: New file.
89234         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89235         files.
89236         * tests/test-isnanf-nolibm.c: factored most of its contents into
89237         new file tests/test-isnanf.h.
89238         * tests/test-isnanf.h: New file.
89239         * tests/test-isnanf.c: New file.
89240         * MODULES.html.sh: Mention new module.
89241         * doc/glibc-functions/isnanf.texi: Mention new module.
89243 2008-07-10  Ben Pfaff  <blp@gnu.org>
89245         Add isnand module.
89246         * lib/isnand.h: New file.
89247         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89248         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89249         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89250         functionality also.
89251         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89252         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89253         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89254         * modules/isnand: New file.
89255         * modules/isnand-tests: New file.
89256         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89257         files.
89258         * tests/test-isnand-nolibm.c: factored most of its contents into
89259         new file tests/test-isnand.h.
89260         * tests/test-isnand.h: New file.
89261         * tests/test-isnand.c: New file.
89262         * MODULES.html.sh: Mention new module.
89264 2008-07-10  Ben Pfaff  <blp@gnu.org>
89266         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89267         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89268         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89269         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89270         * modules/isnanf-nolibm: Update references to renamed files.
89271         * modules/isnand-nolibm: Likewise.
89272         * modules/isnanf-nolibm-tests: Likewise.
89273         * modules/isnand-nolibm-tests: Likewise.
89274         * lib/frexp.c: Likewise.
89275         * lib/isfinite.c: Likewise.
89276         * lib/signbitd.c: Likewise.
89277         * lib/signbitf.c: Likewise.
89278         * lib/vasnprintf.c: Likewise.
89279         * tests/test-ceilf1.c: Likewise.
89280         * tests/test-ceilf2.c: Likewise.
89281         * tests/test-floorf1.c: Likewise.
89282         * tests/test-floorf2.c: Likewise.
89283         * tests/test-frexp.c: Likewise.
89284         * tests/test-round1.c: Likewise.
89285         * tests/test-round2.c: Likewise.
89286         * tests/test-roundf1.c: Likewise.
89287         * tests/test-strtod.c: Likewise.
89288         * tests/test-trunc1.c: Likewise.
89289         * tests/test-trunc2.c: Likewise.
89290         * tests/test-truncf1.c: Likewise.
89291         * tests/test-truncf2.c: Likewise.
89292         * NEWS: Mention the renamed header files.
89294 2008-07-11  Jim Meyering  <meyering@redhat.com>
89296         vc-list-files: make the last-resort awk code more portable
89297         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89298         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89299         does not support it.
89301 2008-07-10  Eric Blake  <ebb9@byu.net>
89303         Work with tar's bootstrap.
89304         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89305         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89306         an m4 comment.
89308 2008-07-09  Jim Meyering  <meyering@redhat.com>
89310         posix-shell.m4: fix typo that made this test malfunction
89311         * m4/posix-shell.m4: Remove capitalization in variable name.
89313 2008-07-08  Bruno Haible  <bruno@clisp.org>
89315         * m4/onceonly.m4: Update comments.
89316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89318 2008-07-04  Jim Meyering  <meyering@redhat.com>
89320         * users.txt: Add vc-dwim.
89321         (bison, coreutils): Use the gitweb URL.
89323 2008-07-03  Jim Meyering  <meyering@redhat.com>
89325         * users.txt: Add libffcall.  From Sam Steingold.
89327 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89329         getdate.y: do not ignore TZ with relative day, month or year offset
89330         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89331         relative-date-handling, since otherwise, the latter would clobber the
89332         sole output (an updated Start value) of the tz-handling block.
89333         * tests/test-getdate.c: Tests for the fix
89335 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89337         Recognize 'foo_LIBRARIES += libgnu.a'.
89338         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89339         makefile snippet has already specified an installation location,
89340         also using '+='.
89342 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89344         getdate.y: factor out common actions
89345         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89346         Use them in place of open-coded actions.
89348 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89350         Add self-test for getdate module.
89351         * modules/getdate-tests: New file.
89352         * tests/test-getdate.c: New file.
89354 2008-06-29  Bruno Haible  <bruno@clisp.org>
89356         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89357         .gitignore.
89358         Reported by Sylvain Beucler <beuc@beuc.net>.
89360 2008-06-29  Bruno Haible  <bruno@clisp.org>
89362         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89363         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89365 2008-06-29  Bruno Haible  <bruno@clisp.org>
89367         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89368         EXTRA_DIST.
89369         Reported by Sylvain Beucler <beuc@beuc.net>.
89371 2008-06-26  Jim Meyering  <meyering@redhat.com>
89373         make several modules depend on the "open" module
89374         This provides slightly increased consistency when opening-for-write
89375         the name of a non-directory spelled with a trailing slash.
89376         * modules/chdir-safer: Likewise.
89377         * modules/chown: Likewise.
89378         * modules/clean-temp: Likewise.
89379         * modules/copy-file: Likewise.
89380         * modules/fchdir: Likewise.
89381         * modules/fcntl-safer: Likewise.
89382         * modules/pipe: Likewise.
89383         * modules/utime: Likewise.
89384         Prompted by Eric Blake and Bruno Haible.
89386 2008-06-24  Andreas Schwab  <schwab@suse.de>
89388         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89389         literals can be used as initializers for global variables.
89391 2008-06-23  Eric Blake  <ebb9@byu.net>
89393         Make gnulib-cache.m4 easier to diff.
89394         * gnulib-tool (func_import): Allow newlines when reading cached
89395         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89397 2008-06-23  Bruno Haible  <bruno@clisp.org>
89399         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89400         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89401         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89402         m4/signalblocking.m4.
89403         (gl_PREREQ_SIGACTION): Don't invoke it.
89404         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89405         gl_PREREQ_SIG_HANDLER_H.
89406         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89407         Don't check for sigaction here.
89409 2008-06-23  Bruno Haible  <bruno@clisp.org>
89411         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89412         (install_handlers): Don't set the SA_RESETHAND flag.
89414 2008-06-23  Bruno Haible  <bruno@clisp.org>
89416         * m4/sigaction.m4: Comment fixes.
89417         * lib/signal.in.h: Likewise.
89419 2008-06-23  Eric Blake  <ebb9@byu.net>
89421         Fix typo.
89422         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89424         Avoid SA_ namespace.
89425         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89426         Reported by Ralf Wildenhues.
89428         Avoid test failure due to SA_RESTORER.
89429         * tests/test-sigaction.c (SA_MASK): New macro.
89430         (main): Avoid failing due to extension flags being set.
89431         Reported by Jim Meyering.
89433         Revert use of sig-handler.h in sigprocmask.c.
89434         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89435         it requires the existence of struct sigaction.
89436         * lib/sigprocmask.c (handler_t): Restore typedef.
89437         (rpl_signal, old_handlers): Use local type.
89439 2008-06-22  Bruno Haible  <bruno@clisp.org>
89441         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89442         conditionally.
89443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89445 2008-06-22  Bruno Haible  <bruno@clisp.org>
89447         * doc/posix-functions/siginterrupt.texi: Move note.
89449         * lib/signal.in.h (SA_RESTART): New macro.
89450         * lib/sigaction.c: Update comment.
89452         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89454         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89455         (gl_PREREQ_SIGPROCMASK): Invoke it.
89456         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89458         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89460         * lib/sigprocmask.c: Update a comment.
89462 2008-06-21  Eric Blake  <ebb9@byu.net>
89464         Use sigaction module rather than signal().
89465         * modules/c-stack (Depends-on): Add sigaction.
89466         * modules/fatal-signal (Depends-on): Likewise.
89467         * modules/nanosleep (Depends-on): Likewise.
89468         * modules/sigprocmask (Files): Add sig-handler.h.
89469         * modules/sigaction (Files): Likewise.
89470         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89471         Eggert.
89472         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89473         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89474         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89475         (init_fatal_signals): Likewise.
89476         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89477         (siginterrupt): Delete fallback.
89478         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89479         instead.
89480         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89481         siginterrupt.
89483         New module sigaction, for mingw.
89484         * modules/sigaction: New module...
89485         * modules/sigaction-tests: ...and its test.
89486         * m4/sigaction.m4: New file.
89487         * lib/sigaction.c: Likewise.
89488         * tests/test-sigaction.c: Likewise.
89489         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89490         * modules/signal (Makefile.am): Likewise.
89491         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89492         needed.
89493         * doc/posix-headers/signal.texi (signal.h): Mention provided
89494         types.
89495         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89496         that sigaction is preferable.
89497         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89498         module.
89499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89500         sigaction.
89502         Improve robustness of sigprocmask by overriding signal.
89503         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89504         is in use.
89505         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89506         (SIGKILL, SIGSTOP): Provide fallbacks.
89507         (rpl_signal): Implement.
89508         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89509         signal can be called inside handlers.
89511         Fix nanosleep module on mingw.
89512         * modules/nanosleep (Depends-on): Add sys_select.
89513         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89515         Fix licensing of sigprocmask.
89516         * modules/raise (License): Relicense as LGPL.
89518 2008-06-21  Bruno Haible  <bruno@clisp.org>
89520         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89521         result if it contains question marks.
89522         Reported by Michael Geng <linux@michaelgeng.de>.
89524 2008-06-19  Bruno Haible  <bruno@clisp.org>
89526         Fix CVS-ism.
89527         * doc/gnulib.texi: Include updated-stamp.texi.
89528         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89529         (updated-stamp.texi): New rule.
89530         (gnulib.info): Depend on it.
89531         * doc/.gitignore: Add updated-stamp.texi.
89532         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89534 2008-06-19  Bruno Haible  <bruno@clisp.org>
89536         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89537         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89539 2008-06-19  Eric Blake  <ebb9@byu.net>
89541         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89542         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89543         Reported by Stepan Kasal.
89545 2008-06-18  Bruno Haible  <bruno@clisp.org>
89547         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89548         Reported by Eric Blake.
89550 2008-06-18  Eric Blake  <ebb9@byu.net>
89552         Work around cygwin 1.5.25 strsignal bug.
89553         * tests/test-strsignal.c: Allow for const char *.
89554         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89556 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89558         * users.txt: Update URL to article and add author/date
89559         information.
89561 2008-06-17  Bruno Haible  <bruno@clisp.org>
89563         New macro gl_DISABLE_THREADS.
89564         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89565         if the user did not pass --enable-threads or --disable-threads option.
89566         (gl_DISABLE_THREADS): New macro.
89567         Reported by Eric Blake <ebb9@byu.net>.
89569 2008-06-17  Bruno Haible  <bruno@clisp.org>
89571         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89572         when the macro ignores it.
89573         Based on a patch by Eric Blake <ebb9@byu.net>.
89575 2008-06-17  Bruno Haible  <bruno@clisp.org>
89577         * modules/tls (License): Change to LGPLv2+.
89578         Reported by Eric Blake.
89580 2008-06-17  Eric Blake  <ebb9@byu.net>
89582         Simplify c-stack prerequisites.
89583         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89585         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89586         check.
89587         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89588         <sys/resource.h>.
89590         Move c-stack test into testsuite.
89591         * modules/c-stack-tests: New file.
89592         * lib/c-stack.c [DEBUG]: Move test program...
89593         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89594         fail test if sigaltstack is lacking.
89595         * tests/test-c-stack.sh: New driver file.
89597 2008-06-16  Eric Blake  <ebb9@byu.net>
89599         Use raise module consistently.
89600         * modules/fatal-signal (Depends-on): Add raise.
89601         * modules/sigprocmask (Depends-on): Likewise.
89602         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89603         * lib/sigprocmask.c (sigprocmask): Likewise.
89604         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89605         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89607         Fix compliance bug in sigpending.
89608         * lib/sigprocmask.c (sigpending): Return pending array via
89609         parameter, not return value.
89611 2008-06-14  Eric Blake  <ebb9@byu.net>
89613         Improve obstack-printf test code.
89614         * tests/test-obstack-printf.c (test_function): Fix comment, and
89615         simplify usage of obstack_* in macros.  Add a test for coverage.
89616         Reported by Bruno Haible.
89618 2008-06-14  Bruno Haible  <bruno@clisp.org>
89620         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89621         array size as a constant, not as a const variable.
89622         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89623         AC_USE_SYSTEM_EXTENSIONS.
89624         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89625         Test whether the obstack_printf function actually exists.
89626         * modules/obstack-printf (Depends-on): Add extensions.
89627         (Include): Remove obstack.h.
89628         * modules/obstack-printf-posix (Depends-on): Add extensions.
89629         (Include): Remove obstack.h.
89631 2008-06-13  Eric Blake  <ebb9@byu.net>
89633         Add obstack-printf and obstack-printf-posix modules.
89634         * modules/obstack-printf: New file.
89635         * modules/obstack-printf-posix: Likewise.
89636         * MODULES.html.sh (Misc): Mention them.
89637         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89638         Likewise.
89639         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89640         Likewise.
89641         * modules/stdio (Makefile.am): Accomodate new modules.
89642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89643         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89644         Declare.
89645         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89646         functions.
89647         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89648         (gl_REPLACE_OBSTACK_PRINTF): New macros
89649         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89650         * tests/test-obstack-printf.c: New file.
89651         * modules/obstack-printf-tests: Likewise.
89652         * modules/obstack-printf-posix-tests: Likewise.
89654 2008-06-11  Bruno Haible  <bruno@clisp.org>
89656         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89657         * lib/open.c: Include errno.h.
89658         (open): Fail when attempting to write to a file that has a trailing
89659         slash.
89660         * tests/test-open.c (main): Test against trailing slash bug.
89661         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89663 2008-06-10  Bruno Haible  <bruno@clisp.org>
89665         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89666         for $? to work inside the trap command, with various /bin/sh-s.
89667         * tests/test-vc-list-files-cvs.sh: Likewise.
89669 2008-06-10  Bruno Haible  <bruno@clisp.org>
89671         * lib/acl-internal.h: Don't include gettext.h here.
89672         * lib/set-mode-acl.c: Include gettext.h here.
89673         * lib/copy-acl.c: Likewise.
89675 2008-06-10  Bruno Haible  <bruno@clisp.org>
89677         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89678         * lib/wait-process.c (wait_subprocess): Likewise.
89679         * lib/execute.h (execute): Add termsigp argument.
89680         * lib/execute.c (execute): Likewise.
89681         * lib/csharpcomp.c (compile_csharp_using_pnet,
89682         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89683         * lib/csharpexec.c (execute_csharp_using_pnet,
89684         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89685         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89686         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89687         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89688         is_jikes_present): Update.
89689         * lib/javaexec.c (execute_java_class): Update.
89690         * lib/javaversion.c (execute_and_read_line): Update.
89691         * NEWS: Document the changes.
89692         Reported by Eric Blake.
89694 2008-06-10  Eric Blake  <ebb9@byu.net>
89696         Add missing include.
89697         * tests/test-strstr.c (includes): Add <signal.h>.
89698         * tests/test-strcasestr.c (includes): Likewise.
89699         * tests/test-memmem.c (includes): Likewise.
89701 2008-06-10  Bruno Haible  <bruno@clisp.org>
89703         * lib/wait-process.c (wait_subprocess): Add an assertion.
89705 2008-06-10  Bruno Haible  <bruno@clisp.org>
89707         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89709 2008-06-10  Bruno Haible  <bruno@clisp.org>
89711         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89712         using alarm().
89713         * tests/test-strcasestr.c (main): Likewise.
89714         * tests/test-strstr.c (main): Likewise.
89716 2008-06-09  Bruno Haible  <bruno@clisp.org>
89718         Work around the Solaris 10 ACE ACLs ABI change.
89719         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89720         declare if ACL_NO_TRIVIAL is present.
89721         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89722         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89723         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89724         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89725         define if ACL_NO_TRIVIAL is present.
89726         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89727         and use the current ABI.
89728         (file_has_acl): Use same #if condition as elsewhere.
89729         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89730         in use, and use the current ABI.
89731         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89732         Reported by Jim Meyering.
89734 2008-06-09  Eric Blake  <ebb9@byu.net>
89736         Work around environments that (stupidly) ignore SIGALRM.
89737         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89738         before using alarm().
89739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89740         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89741         Reported by Ian Beckwith <ianb@erislabs.net>.
89743         Produce autobuild blurb earlier in log.
89744         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89746 2008-06-09  Jim Meyering  <meyering@redhat.com>
89747         and Ondřej Vašík  <ovasik@redhat.com>
89749         utimens.c: correct kernel bug work-around
89750         Ondřej Vašík found that the invalid return value of 280 indicates
89751         failure, not success, and the kernel bug we're trying to work
89752         around affects not just the utimensat call, but also the fallback
89753         futimens call.
89754         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89755         not success.
89756         [HAVE_FUTIMENS]: Use the same work-around, here.
89758 2008-06-09  Jim Meyering  <meyering@redhat.com>
89760         add more guards around definition of ACE_-related code
89761         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89762         ALLOW and ACE_OWNER are also defined.
89764 2008-06-08  Bruno Haible  <bruno@clisp.org>
89766         * lib/acl-internal.h: Add me as co-author.
89767         * lib/file-has-acl.c: Likewise.
89768         * lib/set-mode-acl.c: Likewise.
89769         * lib/copy-acl.c: Likewise.
89771 2008-06-08  Bruno Haible  <bruno@clisp.org>
89773         Add support for AIX ACLs.
89774         * lib/acl-internal.h (acl_nontrivial): New declaration.
89775         * lib/file-has-acl.c (acl_nontrivial): New function.
89776         (file_has_acl): Add implementation using AIX 4 ACL API.
89777         * lib/set-mode-acl.c (qset_acl): Likewise.
89778         * lib/copy-acl.c (qcopy_acl): Likewise.
89780 2008-06-08  Bruno Haible  <bruno@clisp.org>
89782         Add support for HP-UX ACLs.
89783         * lib/acl-internal.h (acl_nontrivial): New declaration.
89784         * lib/file-has-acl.c (acl_nontrivial): New function.
89785         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89786         * lib/set-mode-acl.c (qset_acl): Likewise.
89787         * lib/copy-acl.c (qcopy_acl): Likewise.
89789 2008-06-08  Bruno Haible  <bruno@clisp.org>
89791         Add support for Cygwin ACLs.
89792         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89793         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89794         the chmod_or_fchmod call.
89795         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89797 2008-06-08  Bruno Haible  <bruno@clisp.org>
89799         Fix bug with setuid modes in Solaris 10+ code.
89800         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89801         succeeded, when the mode contains some special bits.
89803 2008-06-08  Bruno Haible  <bruno@clisp.org>
89805         Add support for Solaris 7..10 ACLs.
89806         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89807         declarations.
89808         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89809         functions.
89810         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89811         * lib/set-mode-acl.c (qset_acl): Likewise.
89812         * lib/copy-acl.c (qcopy_acl): Likewise.
89814 2008-06-08  Bruno Haible  <bruno@clisp.org>
89816         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89817         declaration.
89818         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89819         (acl_access_nontrivial): Remove MacOS X case.
89820         (file_has_acl): Use acl_extended_nontrivial.
89821         * lib/copy-acl.c (qcopy_acl): Likewise.
89823 2008-06-08  Bruno Haible  <bruno@clisp.org>
89825         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89827 2008-06-08  Jim Meyering  <meyering@redhat.com>
89829         * modules/acl (Maintainer): Add Bruno Haible.
89831 2008-06-07  Bruno Haible  <bruno@clisp.org>
89833         Improve support for Tru64 ACLs.
89834         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89835         ACL on OSF/1.
89837 2008-06-07  Bruno Haible  <bruno@clisp.org>
89839         Add support for MacOS X ACLs.
89840         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89841         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89842         * lib/set-mode-acl.c (qset_acl): Likewise.
89843         * lib/copy-acl.c (qcopy_acl): Likewise.
89845 2008-06-07  Bruno Haible  <bruno@clisp.org>
89847         Fix memory leak introduced on 2008-05-22.
89848         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89849         use.
89851 2008-06-07  Bruno Haible  <bruno@clisp.org>
89853         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89854         to construct an empty ACL.
89856 2008-06-07  Bruno Haible  <bruno@clisp.org>
89858         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89859         precisely.
89860         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89862 2008-06-07  Bruno Haible  <bruno@clisp.org>
89864         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89865         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89867 2008-06-07  Bruno Haible  <bruno@clisp.org>
89869         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89870         regardless of POSIX.
89871         * doc/posix-functions/_longjmp.texi: Likewise.
89872         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89873         SystemV platform in this case.
89875 2008-06-06  Eric Blake  <ebb9@byu.net>
89877         Document abort() bugs.
89878         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89880         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89881         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89882         sigsetjmp.
89883         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89884         siglongjmp, but only as a macro.
89885         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89886         is obsolete.
89887         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89889         Tweak documentation to cover cygwin argz bugs.
89890         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89891         argz bug fix; no code change needed since no cygwin releases
89892         occurred between the last fix and the bug being tested.
89893         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89894         module and recently fixed cygwin bugs.
89895         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89896         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89897         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89898         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89899         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89900         Likewise.
89901         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89902         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89903         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89904         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89905         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89906         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89907         Likewise.
89909         Avoid gcc warning on cygwin.
89910         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89911         !ACL_NO_TRIVIAL]: Avoid unused variable.
89913 2008-06-05  Eric Blake  <ebb9@byu.net>
89915         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89916         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89917         git-version-gen fails to come up with a version.
89918         Reported by Simon Josefsson.
89920 2008-06-05  Jim Meyering  <meyering@redhat.com>
89921             Paul Eggert  <eggert@cs.ucla.edu>
89923         utimens.c: work around a probable Linux kernel bug
89924         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89925         appears to be a kernel bug that causes utimensat to return 280
89926         instead of 0, indicating success.
89928 2008-06-04  Bruno Haible  <bruno@clisp.org>
89930         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89931         2008-06-01 commit.
89933 2008-06-04  Bruno Haible  <bruno@clisp.org>
89935         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89936         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89937         (file_has_acl): Use it. Save errno afterwards.
89938         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89940 2008-06-03  Bruno Haible  <bruno@clisp.org>
89942         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89943         draft code. Simplify #ifs.
89944         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89945         Put Solaris code after POSIX-draft code. Fix comments regarding
89946         Solaris 10, HP-UX. Mention Cygwin.
89947         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89949 2008-06-03  Eric Blake  <ebb9@byu.net>
89951         Provide fallback for older kernels.
89952         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89953         Provide runtime fallback if kernel lacks support.
89954         Reported by Mike Frysinger.
89956 2008-06-02  Bruno Haible  <bruno@clisp.org>
89958         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89959         it exists.
89961 2008-06-02  Bruno Haible  <bruno@clisp.org>
89963         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89964         * lib/copy-acl.c (qcopy_acl): Update comment.
89966 2008-06-02  Bruno Haible  <bruno@clisp.org>
89968         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
89969         like ACL APIs.
89971 2008-06-02  Bruno Haible  <bruno@clisp.org>
89973         * tests/test-file-has-acl.sh: Use different code for Cygwin.
89974         * tests/test-set-mode-acl.sh: Likewise.
89975         * tests/test-copy-acl.sh: Likewise.
89976         * tests/test-copy-file.sh: Likewise.
89978 2008-06-02  Bruno Haible  <bruno@clisp.org>
89980         * tests/test-file-has-acl.sh: Remove unused code.
89982 2008-06-01  Bruno Haible  <bruno@clisp.org>
89984         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
89985         (copy_acl): Just a wrapper around qcopy_acl that emits the error
89986         messages.
89987         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
89989 2008-06-01  Bruno Haible  <bruno@clisp.org>
89991         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
89992         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
89993         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
89994         APIs.
89995         * modules/acl-tests (configure.ac): Remove tests now contained in
89996         m4/acl.m4.
89998 2008-06-02  Jim Meyering  <meyering@redhat.com>
90000         announce-gen: use a better key-server host name
90001         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90002         it may be more consistently reliable.  Suggested by Werner Koch
90003         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90005 2008-06-01  Bruno Haible  <bruno@clisp.org>
90007         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90008         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90010 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90012         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90014 2008-06-01  Bruno Haible  <bruno@clisp.org>
90016         New ACL tests.
90017         * tests/test-file-has-acl.sh: New file.
90018         * tests/test-file-has-acl.c: New file.
90019         * tests/test-set-mode-acl.sh: New file.
90020         * tests/test-set-mode-acl.c: New file.
90021         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90022         * tests/test-copy-acl.c: New file.
90023         * modules/acl-tests: New file, based on modules/copy-file-tests.
90024         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90025         (Depends-on): Add acl-tests.
90026         (configure.ac): Remove checks.
90027         (Makefile.am): Don't create test-sameacls program here any more.
90029 2008-06-01  Bruno Haible  <bruno@clisp.org>
90031         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90032         * tests/test-sameacls.c: Include progname.h.
90033         (main): Invoke set_program_name. Portability fixes for MacOS X,
90034         Solaris, HP-UX.
90036 2008-06-01  Bruno Haible  <bruno@clisp.org>
90038         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90039         function.
90040         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90042 2008-06-01  Bruno Haible  <bruno@clisp.org>
90044         * modules/rpmatch (Depends-on): Add strdup.
90046 2008-06-01  Bruno Haible  <bruno@clisp.org>
90048         * lib/pipe.c: Include unistd-safer.h.
90049         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90050         * modules/pipe (Depends-on): Add unistd-safer.
90052 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90054         * modules/autobuild (configure.ac): Call AB_INIT.
90056 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90058         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90059         Suggested by Bruno Haible <bruno@clisp.org>.
90061 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90063         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90064         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90065         <bruno@clisp.org>.
90067 2008-05-29  Eric Blake  <ebb9@byu.net>
90069         Prefer new POSIX 200x interfaces over futimesat.
90070         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90071         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90072         when available.
90073         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
90075 2008-05-28  Bruno Haible  <bruno@clisp.org>
90077         * modules/stpcpy (License): Change to LGPLv2+.
90078         Requested by David Lutterkort <dlutter@redhat.com>.
90080 2008-05-27  Bruno Haible  <bruno@clisp.org>
90082         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
90083         current mingw.
90084         Reported by Jose E. Marchesi <jemarch@gnu.org>.
90086 2008-05-27  Bruno Haible  <bruno@clisp.org>
90088         * modules/iconv_open (Link): New section, from module 'iconv'.
90089         * modules/striconv (Link): Likewise.
90090         * modules/striconveh (Link): Likewise.
90091         * modules/xstriconv (Link): Likewise.
90092         * modules/unicodeio (Link): Likewise.
90093         * modules/propername (Link): Likewise.
90094         Reported by Jim Meyering.
90096 2008-05-26  Jim Meyering  <meyering@redhat.com>
90098         sha256: do not artificially restrict buffer length to be < 2^32
90099         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
90100         uint32_t to size_t.
90101         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
90102         to match.
90104         avoid unaligned access errors, e.g., on sparc
90105         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
90106         direct access through a possibly-unaligned uint64* pointer.
90107         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
90108         direct access through a possibly-unaligned uint32* pointer.
90109         Prompted by this patch from Tom "spot" Callaway:
90110         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90112         sha512.c: fix typo in comment
90113         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90115 2008-05-25  Bruno Haible  <bruno@clisp.org>
90117         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90118         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90119         (Makefile.am): Update lib_SOURCES.
90121 2008-05-25  Bruno Haible  <bruno@clisp.org>
90123         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90125 2008-05-25  Jim Meyering  <meyering@redhat.com>
90127         useless-if-before-free: freed expr may have white-space differences
90128         * build-aux/useless-if-before-free: Recognize cases in which the
90129         freed expression differs from the tested one in embedded white
90130         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90131         $1 was used, so we can't make any regexp shy.  Improved tests now
90132         detect this.
90134         useless-if-before-free: accept white space in the expression.
90135         * build-aux/useless-if-before-free: For now, any white space
90136         in the expression must be identical in the free argument.
90138         useless-if-before-free: efficiency tweak
90139         * build-aux/useless-if-before-free: Make the expression-matching
90140         regexp "shy".
90141         Make the *outer* regexp shy, not the expr-matching one.
90143         update code-in-comment to accept cast of free arg
90144         * build-aux/useless-if-before-free: Update regexp.
90146 2008-05-25  Bruno Haible  <bruno@clisp.org>
90148         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90149         * modules/copy-file-tests (Files, Makefile.am): Update.
90150         * tests/test-copy-file.c (func_test_copy): Update.
90152 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90154         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90156 2008-05-23  Bruno Haible  <bruno@clisp.org>
90158         Improve support for ACLs on OSF/1.
90159         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90160         Remove fallback for unknown flavors of ACLs.
90162 2008-05-22  Bruno Haible  <bruno@clisp.org>
90164         Add support for ACLs on OSF/1.
90165         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90166         replacements.
90167         (acl_free_text): New macro fallback.
90168         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90169         acl_free.
90170         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90171         acl_free_text function. Require AC_C_INLINE.
90173 2008-05-22  Bruno Haible  <bruno@clisp.org>
90175         Make copy_acl work on MacOS X 10.5.
90176         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90177         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90178         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90179         If MODE_INSIDE_ACL, don't assume that every system has the same text
90180         representation for ACLs as FreeBSD.
90181         * lib/copy-acl.c (copy_acl): Add support for platforms with
90182         !MODE_INSIDE_ACL.
90183         * lib/file-has-acl.c (file_has_acl): Likewise.
90184         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90185         FreeBSD, MacOS X, or IRIX, respectively.
90187 2008-05-22  Bruno Haible  <bruno@clisp.org>
90189         * lib/acl.h: Don't include <sys/acl.h>.
90190         (GETACLCNT): Move fallback to lib/acl-internal.h.
90191         * lib/acl-internal.h: Include <sys/acl.h> here.
90192         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90194 2008-05-22  Bruno Haible  <bruno@clisp.org>
90196         Split off copy_acl function to separate file.
90197         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90198         * lib/acl.c (copy_acl): Moved function to separate file.
90199         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90200         * modules/acl (Files): Add lib/copy-acl.c.
90201         (Makefiles.am): Augment lib_SOURCES.
90203 2008-05-22  Bruno Haible  <bruno@clisp.org>
90205         * modules/copy-file-tests: New file.
90206         * tests/test-copy-file.sh: New file.
90207         * tests/test-copy-file.c: New file.
90208         * tests/test-copy-file-sameacls.c: New file.
90210 2008-05-22  Eric Blake  <ebb9@byu.net>
90212         Avoid gcc warning.
90213         * tests/test-memcmp.c (main): Pass NULL indirectly.
90215 2008-05-21  Bruno Haible  <bruno@clisp.org>
90217         Add reference doc about ACLs.
90218         * doc/acl-resources.txt: New file.
90219         * doc/acl-cygwin.txt: New file.
90221 2008-05-21  Bruno Haible  <bruno@clisp.org>
90223         Avoid one more warning from gcc.
90224         * lib/vasnprintf.c (IF_LINT): Update comments.
90225         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90227 2008-05-21  Jim Meyering  <meyering@redhat.com>
90229         avoid a warning from gcc
90230         * lib/vasnprintf.c (IF_LINT): Define.
90231         (scale10_round_decimal_long_double):
90232         Use it to avoid a "may be used uninitialized" warning.
90233         (scale10_round_decimal_double): Likewise.
90235 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90237         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90238         declared.
90240 2008-05-20  Bruno Haible  <bruno@clisp.org>
90242         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90243         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90245 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90247         * modules/memcmp-tests: New file.
90248         * tests/test-memcmp.c: New file.
90250 2008-05-19  Bruno Haible  <bruno@clisp.org>
90252         * modules/propername (Notice, configure.ac): Put quoted "..." into
90253         --keyword option.
90254         * lib/propername.h: Update comments accordingly.
90255         Reported by Eric Blake.
90257 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90259         * modules/getpass-gnu (Depends-on): Add fseeko.
90261 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90263         * modules/base64-tests: New file.
90265 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90267         * lib/base64.c (base64_decode_ctx): If a decode context structure
90268         was passed in use it to ignore newlines.  If a context structure
90269         was _not_ passed in, continue to treat newlines as garbage (this
90270         is the historical behavior).  Formerly base64_decode.
90271         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90272         takes a decode context structure.
90273         * lib/base64.h (base64_decode): Macro for four-argument calls.
90274         (base64_decode_alloc): Likewise.
90275         * lib/base64.c (base64_decode_ctx): If a decode context structure
90276         was passed in use it to ignore newlines.  If a context structure
90277         was _not_ passed in, continue to treat newlines as garbage (this
90278         is the historical behavior).  Formerly base64_decode.
90279         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90280         takes a decode context structure.
90281         * lib/base64.h (base64_decode): Macro for four-argument calls.
90282         (base64_decode_alloc): Likewise.
90284 2008-05-19  Jim Meyering  <meyering@redhat.com>
90286         avoid a warning from gcc
90287         * lib/trim.c (IF_LINT): Define.
90288         (trim2): Use it to avoid a "may be used uninitialized" warning.
90290         Fix doc typo.
90291         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90293 2008-05-19  Bruno Haible  <bruno@clisp.org>
90295         * doc/glibc-functions/getpass.texi: Document limits of other
90296         implementations.
90298 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90299             Bruno Haible <bruno@clisp.org>
90301         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90303 2008-05-18  Bruno Haible  <bruno@clisp.org>
90305         * modules/propername: New file, from GNU gettext.
90306         * lib/propername.h: New file, from GNU gettext.
90307         * lib/propername.c: New file, from GNU gettext.
90308         * MODULES.html.sh (Internationalization functions): Add propername.
90310 2008-05-16  Jim Meyering  <meyering@redhat.com>
90311             Bruno Haible  <bruno@clisp.org>
90313         Avoid some warnings from "gcc -Wshadow".
90314         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90316 2008-05-15  Eric Blake  <ebb9@byu.net>
90318         Extend previous patch to cygwin 1.7.0.
90319         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90320         fast implementation in cygwin >= 1.7.0.
90321         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90324 2008-05-15  Bruno Haible  <bruno@clisp.org>
90326         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90327         implementation in glibc >= 2.9.
90328         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90331 2008-05-15  Bruno Haible  <bruno@clisp.org>
90333         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90334         (Unicode string functions): Add unilbrk/*.
90335         Reported by Karl Berry.
90337 2008-05-15  Eric Blake  <ebb9@byu.net>
90339         Fix violation of <stdbool.h> replacement in regex.
90340         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90341         * lib/regexec.c (re_search_internal): Likewise.
90342         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90344 2008-05-15  Jim Meyering  <meyering@redhat.com>
90346         avoid distracting test output when git or cvs is not found
90347         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90348         * tests/test-vc-list-files-git.sh: Likewise.
90350 2008-05-15  Eric Blake  <ebb9@byu.net>
90352         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90353         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90354         glibc version.
90355         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90356         * doc/posix-functions/strstr.texi (strstr): Likewise.
90357         * lib/str-two-way.h (MAX): Sychronize with glibc.
90359 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90361         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90362         opr.ctx_type.
90363         (calc_first): Initialize constraint field.
90364         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90365         Fix grammar.
90366         (duplicate_node): Merge constraint field for all node types.
90367         (calc_eclosure_iter): Look at constraint field for all node types.
90368         * lib/regex_internal.c (create_cd_newstate): Don't look at
90369         opr.ctx_type.
90371 2008-05-14  Bruno Haible  <bruno@clisp.org>
90373         Help GCC to do better code generation.
90374         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90375         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90376         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90377         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90378         Declare with attribute 'malloc' if supported.
90380 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90382         use "echo STR|wc -c" rather than unportable "expr length STR"
90383         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90384         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90386 2008-05-14  Jim Meyering  <meyering@redhat.com>
90388         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90389         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90390         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90391         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90392         via Collin Lasse.
90394 2008-05-14  Eric Blake  <ebb9@byu.net>
90396         Avoid quadratic growth in gl_LIBSOURCES.
90397         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90398         Suggested by Bruno Haible.
90400         Test xmemdup0.
90401         * modules/xmemdup0-tests: New file.
90402         * tests/test-xmemdup0.c: Likewise.
90404 2008-05-13  Eric Blake  <ebb9@byu.net>
90406         Split xmemdup0 into its own module.
90407         * modules/xmemdup0: New file.
90408         * lib/xmemdup0.h: Likewise.
90409         * lib/xmemdup0.c: Likewise.
90410         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90411         * lib/xalloc.h (xmemdup0): Remove.
90412         * lib/xmalloc.c (xmemdup0): Likewise.
90414 2008-05-13  Eric Blake  <ebb9@byu.net>
90415             Bruno Haible  <bruno@clisp.org>
90417         Reduce number of forks required during autoconf.
90418         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90419         and gl_LIBSOURCES_DIR.
90420         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90421         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90422         m4_syscmd per file.
90423         <m4_foreach_w>: Move...
90424         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90426 2008-05-13  Eric Blake  <ebb9@byu.net>
90428         * gnulib-tool: Fix various comment typos.
90430 2008-05-12  Bruno Haible  <bruno@clisp.org>
90432         Tailor the linebreaking algorithm.
90433         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90435 2008-05-12  Bruno Haible  <bruno@clisp.org>
90437         Update to Unicode 5.0.0.
90438         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90439         LBP_JV, LBP_JT. Redistribute values.
90440         (unilbrk_table): Change size.
90441         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90442         Unicode TR#14 rev. 22.
90443         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90444         LBP_JV, LBP_JT. Redistribute values.
90445         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90446         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90447         Update.
90448         * lib/unilbrk/lbrkprop1.h: Regenerated.
90449         * lib/unilbrk/lbrkprop2.h: Regenerated.
90450         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90451         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90452         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90453         Likewise.
90454         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90455         Likewise.
90456         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90457         result.
90458         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90459         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90460         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90461         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90462         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90463         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90465 2008-05-11  Bruno Haible  <bruno@clisp.org>
90467         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90469 2008-05-11  Bruno Haible  <bruno@clisp.org>
90471         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90472         * modules/unilbrk/gen-lbrk: New file.
90474 2008-05-11  Bruno Haible  <bruno@clisp.org>
90476         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90477         * m4/sha512.m4 (gl_SHA512): Likewise.
90479 2008-05-11  Jim Meyering  <meyering@redhat.com>
90481         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90482         * modules/crypto/sha256: New file.
90483         * modules/crypto/sha512: Likewise.
90484         * lib/sha256.c: Likewise.
90485         * lib/sha256.h: Likewise.
90486         * lib/sha512.c: Likewise.
90487         * lib/sha512.h: Likewise.
90488         * lib/u64.h: Likewise.
90489         * m4/sha256.m4: Likewise.
90490         * m4/sha512.m4: Likewise.
90491         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90493 2008-05-10  Bruno Haible  <bruno@clisp.org>
90495         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90496         (Input/Output <stdio.h>): Add xprintf.
90497         (Signal handling <signal.h>): Add strsignal.
90498         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90499         (Core language properties): Add func.
90500         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90501         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90502         strings.
90503         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90504         (Input/output): New section.
90505         (File system functions): Add openat-die, stat-macros.
90506         (Networking functions): Add sockets.
90507         (Unicode string functions): Add unictype/*.
90508         (Support for building libraries and executables): Add gperf.
90509         (Support for building documentation): Add agpl-3.0.
90510         (Misc): Add nocrash.
90512 2008-05-10  Bruno Haible  <bruno@clisp.org>
90514         * modules/unictype/gen-ctype: New file.
90516 2008-05-10  Jim Meyering  <meyering@redhat.com>
90518         Make chdir-safer.c more efficient on a system with no symlinks.
90519         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90520         also if ELOOP is zero.  Suggested by Bruno Haible.
90522         Make chdir-safer.c slightly safer.
90523         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90524         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90526         Avoid compile failure on systems without ELOOP (like mingw).
90527         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90528         Reported by Bruno Haible.
90530 2008-05-10  Bruno Haible  <bruno@clisp.org>
90532         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90533         (is_utf8_encoding): Use a case-insensitive comparison.
90534         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90535         streq.
90537 2008-05-10  Bruno Haible  <bruno@clisp.org>
90539         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90540         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90541         * lib/unilbrk/ulc-common.h (iconv_string_length,
90542         iconv_string_keeping_offsets): Remove declarations.
90543         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90544         Don't include <iconv.h>, streq.h, xsize.h.
90545         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90546         conversion.
90547         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90548         <iconv.h>, streq.h, xsize.h.
90549         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90550         conversion.
90551         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90552         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90553         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90554         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90556 2008-05-10  Bruno Haible  <bruno@clisp.org>
90558         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90559         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90561         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90562         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90564         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90565         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90567         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90568         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90570         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90571         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90573         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90574         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90576         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90577         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90579         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90580         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90582 2008-05-10  Bruno Haible  <bruno@clisp.org>
90584         Split up 'linebreak' module.
90585         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90586         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90587         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90588         modifications.
90589         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90590         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90591         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90592         lib/linebreak.c.
90593         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90594         lib/linebreak.c.
90595         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90596         lib/linebreak.c.
90597         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90598         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90599         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90600         lib/linebreak.c.
90601         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90602         lib/linebreak.c.
90603         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90604         lib/linebreak.c.
90605         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90606         lib/linebreak.c.
90607         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90608         lib/linebreak.c.
90609         * modules/unilbrk/base: New file.
90610         * modules/unilbrk/tables: New file.
90611         * modules/unilbrk/u8-possible-linebreaks: New file.
90612         * modules/unilbrk/u16-possible-linebreaks: New file.
90613         * modules/unilbrk/u32-possible-linebreaks: New file.
90614         * modules/unilbrk/ulc-common: New file.
90615         * modules/unilbrk/ulc-possible-linebreaks: New file.
90616         * modules/unilbrk/u8-width-linebreaks: New file.
90617         * modules/unilbrk/u16-width-linebreaks: New file.
90618         * modules/unilbrk/u32-width-linebreaks: New file.
90619         * modules/unilbrk/ulc-width-linebreaks: New file.
90620         * lib/linebreak.h: Remove file.
90621         * lib/linebreak.c: Remove file.
90622         * m4/linebreak.m4: Remove file.
90623         * modules/linebreak: Remove file.
90624         * NEWS: Mention the changes.
90626 2008-05-09  Eric Blake  <ebb9@byu.net>
90628         Add xmemdup0.
90629         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90630         implementation.
90631         * lib/xmalloc.c (xmemdup0): New C implementation.
90633 2008-05-08  Bruno Haible  <bruno@clisp.org>
90635         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90637 2008-05-07  Eric Blake  <ebb9@byu.net>
90639         Support cross-compilation of <wctype.h>.
90640         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90641         AC_CACHE_CHECK.
90643 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90645         * build-aux/vc-list-files: Add support for bzr.
90647 2008-05-03  Jim Meyering  <meyering@redhat.com>
90649         avoid failed assertion with tight malloc
90650         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90652 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90654         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90655         are needed from arpa/inet.h.
90656         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90657         Reported by Bruno Haible.
90659 2008-05-02  Jim Meyering  <meyering@redhat.com>
90661         avoid compilation error on FreeBSD 6
90662         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90664 2008-05-01  Jim Meyering  <meyering@redhat.com>
90666         useless-if-before-free: correct --help's exit status description
90667         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90668         for one or more matches, etc.  Reported by Bruno Haible.
90670         vc-list-files: make the stand-alone gnulib test work
90671         * modules/vc-list-files-tests (configure.ac):
90672         Define and AC_SUBST abs_aux_dir.
90673         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90674         $(abs_top_srcdir) to each script and having each of them
90675         duplicate the work of setting PATH, set PATH here, using
90676         the new variable, abs_aux_dir instead.
90677         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90678         * tests/test-vc-list-files-git.sh: Likewise.
90679         Reported by Bruno Haible.
90681 2008-05-01  Bruno Haible  <bruno@clisp.org>
90683         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90684         reallocation. Rename 'done' to 'found_delimiter'.
90686 2008-05-01  Jim Meyering  <meyering@redhat.com>
90688         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90689         * build-aux/vc-list-files: Use `...`, not $(...).
90691 2008-04-30  Jim Meyering  <meyering@redhat.com>
90693         add tests for vc-list-files
90694         * modules/vc-list-files-tests: New module.
90695         * tests/test-vc-list-files-cvs.sh: New file.
90696         * tests/test-vc-list-files-git.sh: New file.
90698         avoid a warning from gcc
90699         * lib/getndelim2.c (IF_LINT): Define.
90700         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90702         vc-list-files: work properly with build-aux/cvsu, too
90703         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90704         to all cvs-based clauses.
90706         vc-list-files: work properly in the CVS+awk case, too
90707         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90709         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90710         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90711         take more than one file argument, so .  Add quotes, just in case $dir
90712         ever contains a shell meta-character.  Prompted by Soren Hansen in
90713         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90715 2008-04-29  Eric Blake  <ebb9@byu.net>
90717         Optimize getndelim2 to use block operations when possible.
90718         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90719         freadseek, and memchr2.
90720         * lib/getndelim2.c (getndelim2): Use them for block reads.
90722 2008-04-29  Bruno Haible  <bruno@clisp.org>
90724         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90725         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90726         * modules/inet_ntop (Depends-on): Add extensions.
90727         * modules/inet_pton (Depends-on): Likewise.
90728         Reported by Simon Josefsson.
90730 2008-04-29  Jim Meyering  <meyering@redhat.com>
90732         When the is more than one match in a block, match all of them.
90733         * build-aux/useless-if-before-free: Iterate through each block
90734         until there are no more matches.
90736         Fix broken useless-if-before-free script.
90737         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90738         the expression to match cast of argument to free-like function.
90740 2008-04-29  Eric Blake  <ebb9@byu.net>
90742         Use new header.
90743         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90745 2008-04-29  Jim Meyering  <meyering@redhat.com>
90747         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90748         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90749         by gnulib to exist and to declare e.g., inet_ntop.
90750         Don't include "inet_ntop.h", now removed.
90752         * m4/arpa_inet_h.m4: Remove trailing blanks.
90754 2008-04-29  Eric Blake  <ebb9@byu.net>
90756         Silence valgrind on safe reads beyond potential array bounds.
90757         * lib/rawmemchr.valgrind: New file.
90758         * lib/strchrnul.valgrind: Likewise.
90759         * modules/rawmemchr (Files): Distribute new file.
90760         * modules/strchrnul (Files): Likewise.
90761         Suggested by Bruno Haible.
90763 2008-04-29  Bruno Haible  <bruno@clisp.org>
90765         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90766         (inet_ntop, inet_pton): Change portability warning's wording.
90767         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90768         Invoke gl_CHECK_NEXT_HEADERS.
90769         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90770         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90771         set ARPA_INET_H.
90772         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90773         * modules/arpa_inet (Description): No longer only for systems that
90774         lack it.
90775         (Depends-on): Add include_next.
90776         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90777         HAVE_ARPA_INET_H.
90779 2008-04-29  Jim Meyering  <meyering@redhat.com>
90781         * modules/mkdir (License): Re-license as LGPLv2+.
90783 2008-04-29  Bruno Haible  <bruno@clisp.org>
90785         * modules/rawmemchr (Maintainer): Set to Eric.
90786         * modules/strchrnul (Maintainer): Likewise.
90788 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90790         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90791         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90793         * modules/arpa_inet (arpa/inet.h): Use them.
90795 2008-04-28  Eric Blake  <ebb9@byu.net>
90797         Test getndelim2.
90798         * modules/getndelim2-tests: New file.
90799         * tests/test-getndelim2.c: Likewise.
90800         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90801         stream.
90802         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90804         * MODULES.html.sh: Document new module.
90806 2008-04-20  Bruno Haible  <bruno@clisp.org>
90808         * lib/c-stack.c (die): Use raise.
90809         * modules/c-stack (Depends-on): Add raise.
90811 2008-04-28  Bruno Haible  <bruno@clisp.org>
90813         Expect rpmatch to be declared.
90814         * lib/yesno.c (rpmatch): Remove declaration.
90816         Declare rpmatch.
90817         * lib/stdlib.in.h (rpmatch): New declaration.
90818         * lib/rpmatch.c: Include <stdlib.h> first.
90819         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90820         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90822         HAVE_RPMATCH.
90823         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90825         (Include): Set to <stdlib.h>.
90826         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90827         HAVE_RPMATCH.
90828         * NEWS: Document the change.
90830 2008-04-28  Bruno Haible  <bruno@clisp.org>
90832         Change rpmatch to use nl_langinfo when appropriate.
90833         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90834         (N_): New macro.
90835         (localized_pattern): New function/macro.
90836         (try): Remove match, nomatch arguments. Copy the pattern into safe
90837         memory before caching it.
90838         (rpmatch): Use localized_pattern. Add translator comments.
90839         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90840         Suggested by Eric Blake.
90841         * modules/rpmatch (Depends-on): Add stdbool.
90843 2008-04-28  Eric Blake  <ebb9@byu.net>
90845         Add rawmemchr module, matching glibc.
90846         * modules/string (Makefile.am): New indicator.
90847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90848         * lib/string.in.h (rawmemchr): Declare when appropriate.
90849         * modules/rawmemchr: New file.
90850         * m4/rawmemchr.m4: Likewise.
90851         * lib/rawmemchr.c: Likewise.
90852         * modules/rawmemchr-tests: Likewise.
90853         * tests/test-rawmemchr.c: Likewise.
90854         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90855         module.
90856         * modules/strchrnul (Depends-on): Add rawmemchr.
90857         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90859         Whitespace cleanup.
90860         * tests/test-strchrnul.c: Reindent.
90861         * lib/strchrnul.c: Likewise.
90863         Optimize and test strchrnul.
90864         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90865         * modules/strchrnul-tests: New file.
90866         * tests/test-strchrnul.c: Likewise.
90868         Remove intprops dependency.
90869         * modules/memchr (Depends-on): Remove intprops.
90870         * modules/memrchr (Depends-on): Likewise.
90871         * modules/memchr2 (Depends-on): Likewise.
90872         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90873         * lib/memrchr.c (__memrchr): Likewise.
90874         * lib/memrchr2.c (memchr2): Likewise.
90875         Reported by Simon Josefsson.
90877 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90879         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90880         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90882 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90884         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90886         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90888         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90890         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90891         declarations.
90892         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90894         * m4/inet_pton.m4: Don't check for header files.
90896         * m4/inet_ntop.m4: Don't check for header files.
90898 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90900         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90901         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90902         trigger for cygwin).
90903         Reported by Bruno Haible  <bruno@clisp.org>.
90905 2008-04-28  Bruno Haible  <bruno@clisp.org>
90907         * doc/posix-functions/strdup.texi: Mention mingw problem.
90909 2008-04-27  Bruno Haible  <bruno@clisp.org>
90911         * modules/stat-time-tests (Depends-on): Add sleep.
90912         * tests/test-stat-time.c (force_unlink): New function.
90913         (cleanup): Use it.
90914         (test_mtime): Remove the ctime related tests.
90915         (test_ctime): New function, containing the ctime related tests.
90916         (main): Call test_ctime, except on native Windows platforms.
90918 2008-04-27  Bruno Haible  <bruno@clisp.org>
90920         * lib/rpmatch.c (rpmatch): Add some comments.
90921         Reported by James Youngman <jay@gnu.org>.
90923 2008-04-27  Bruno Haible  <bruno@clisp.org>
90925         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90926         quiet NaNs.
90928 2008-04-27  Bruno Haible  <bruno@clisp.org>
90930         Make test-yesno.sh work on mingw.
90931         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90932         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90933         (main): Set stdin to binary mode.
90934         * modules/yesno-tests (Depends-on): Add binary-io.
90936 2008-04-27  Bruno Haible  <bruno@clisp.org>
90938         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90939         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90940         argument that lie outside the IEEE 854 domain.
90941         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90942         (gl_ISFINITE): Use it.
90943         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90945 2008-04-27  Bruno Haible  <bruno@clisp.org>
90947         Allow local renaming in config.h.
90948         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90950 2008-04-27  Bruno Haible  <bruno@clisp.org>
90952         * lib/memchr.c (__memchr): Change type of 'i'.
90953         * lib/memchr2.c (memchr2): Likewise.
90955 2008-04-26  Eric Blake  <ebb9@byu.net>
90956         and Bruno Haible  <bruno@clisp.org>
90958         Optimize and test memrchr.
90959         * modules/memrchr (Depends-on): Add intprops.
90960         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90961         * modules/memrchr-tests: New file.
90962         * tests/test-memrchr.c: New file.
90964 2008-04-26  Bruno Haible  <bruno@clisp.org>
90966         Add tentative support for DragonFly BSD.
90967         * lib/stdio-impl.h: Add macros for DragonFly BSD.
90968         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
90969         fp.
90970         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90971         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
90972         * lib/fpurge.c (fpurge): Likewise.
90973         * lib/freadable.c (freaadable): Likewise.
90974         * lib/freadahead.c (freadahead): Likewise.
90975         * lib/freading.c (freading): Likewise.
90976         * lib/freadptr.c (freadptr): Likewise.
90977         * lib/freadseek.c (freadptrinc): Likewise.
90978         * lib/fseeko.c (fseeko): Likewise.
90979         * lib/fseterr.c (fseterr): Likewise.
90980         * lib/fwritable.c (fwritable): Likewise.
90981         * lib/fwriting.c (fwriting): Likewise.
90983 2008-04-26  Bruno Haible  <bruno@clisp.org>
90985         * lib/stdio-impl.h: New file.
90986         * lib/fbufmode.c: Include stdio-impl.h.
90987         (fbufmode): Use fp_, remove redundant #defines.
90988         * lib/fflush.c: Include stdio-impl.h.
90989         (clear_ungetc_buffer): Remove redundant #defines.
90990         * lib/fpurge.c: Include stdio-impl.h.
90991         (fpurge): Remove redundant #defines.
90992         * lib/freadable.c: Include stdio-impl.h.
90993         (freadable): Remove redundant #defines.
90994         * lib/freadahead.c: Include stdio-impl.h.
90995         (freadahead): Remove redundant #defines.
90996         * lib/freading.c: Include stdio-impl.h.
90997         (freading): Remove redundant #defines.
90998         * lib/freadptr.c: Include stdio-impl.h.
90999         (freadptr): Remove redundant #defines.
91000         * lib/freadseek.c: Include stdio-impl.h.
91001         (freadptrinc): Remove redundant #defines.
91002         * lib/fseeko.c: Include stdio-impl.h.
91003         (rpl_fseeko): Remove redundant #defines.
91004         * lib/fseterr.c: Include stdio-impl.h.
91005         (fseterr): Remove redundant #defines.
91006         * lib/fwritable.c: Include stdio-impl.h.
91007         (fwritable: Remove redundant #defines.
91008         * lib/fwriting.c: Include stdio-impl.h.
91009         (fwriting): Remove redundant #defines.
91010         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91011         * modules/fflush (Files): Likewise.
91012         * modules/fpurge (Files): Likewise.
91013         * modules/freadable (Files): Likewise.
91014         * modules/freadahead (Files): Likewise.
91015         * modules/freading (Files): Likewise.
91016         * modules/freadptr (Files): Likewise.
91017         * modules/freadseek (Files): Likewise.
91018         * modules/fseeko (Files): Likewise.
91019         * modules/fseterr (Files): Likewise.
91020         * modules/fwritable (Files): Likewise.
91021         * modules/fwriting (Files): Likewise.
91023 2008-04-26  Bruno Haible  <bruno@clisp.org>
91025         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91026         restore_seek_optimization, update_fpos_cache): New functions, extracted
91027         from rpl_fflush.
91028         (rpl_fflush): Use them.
91029         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91030         (gl_REPLACE_FFLUSH): Use it.
91032 2008-04-26  Bruno Haible  <bruno@clisp.org>
91034         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91035         on Solaris.
91036         * tests/test-xstrtoimax.sh: Likewise.
91037         * tests/test-xstrtoumax.sh: Likewise.
91038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91040 2008-04-26  Bruno Haible  <bruno@clisp.org>
91042         * modules/memchr-tests: New file.
91043         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91045 2008-04-26  Eric Blake  <ebb9@byu.net>
91046             Bruno Haible  <bruno@clisp.org>
91048         * lib/memchr.c: Include intprops.h.
91049         (__memchr): Optimize parallel detection of matching bytes. Rename local
91050         variables. Add explanatory comments.
91052 2008-04-26  Bruno Haible  <bruno@clisp.org>
91054         Fix module 'memchr', broken since 2000-10-28.
91055         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91057 2008-04-26  Bruno Haible  <bruno@clisp.org>
91059         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91060         comments.
91062 2008-04-25  Eric Blake  <ebb9@byu.net>
91064         Use native fstatat on cygwin 1.7.0.
91065         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91066         first.
91068 2008-04-23  Eric Blake  <ebb9@byu.net>
91070         Improve memchr2 performance.
91071         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91072         NUL bytes.
91073         * modules/memchr2 (Depends-on): Use intprops.h.
91075 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91077         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
91078         an inline function instead of a CPP macro.  Patch by Ben Pfaff
91079         <blp@cs.stanford.edu>.
91081 2008-04-23  Simon Josefsson  <simon@josefsson.org>
91083         * lib/arpa_inet.in.h: New file.
91085         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
91086         (Makefile.am): Sed in substitute header file.
91088         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
91089         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
91091         * modules/inet_ntop (configure.ac): Use
91092         gl_ARPA_INET_MODULE_INDICATOR.
91094         * modules/inet_pton (configure.ac): Use
91095         gl_ARPA_INET_MODULE_INDICATOR.
91097 2008-04-22  Jim Meyering  <meyering@redhat.com>
91099         * modules/verify (License): Re-license as LGPLv2+.
91101 2008-04-22  Simon Josefsson  <simon@josefsson.org>
91103         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
91104         parameter to void* as per POSIX standard (MinGW uses char*).
91106 2008-04-21  Bruno Haible  <bruno@clisp.org>
91108         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91109         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91110         Define to replacements if REPLACE_ISWCNTRL is 1.
91111         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91112         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91113         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91114         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91115         what it fixes.
91116         * doc/posix-functions/iswalpha.texi: Likewise.
91117         * doc/posix-functions/iswblank.texi: Likewise.
91118         * doc/posix-functions/iswcntrl.texi: Likewise.
91119         * doc/posix-functions/iswdigit.texi: Likewise.
91120         * doc/posix-functions/iswgraph.texi: Likewise.
91121         * doc/posix-functions/iswlower.texi: Likewise.
91122         * doc/posix-functions/iswprint.texi: Likewise.
91123         * doc/posix-functions/iswpunct.texi: Likewise.
91124         * doc/posix-functions/iswspace.texi: Likewise.
91125         * doc/posix-functions/iswupper.texi: Likewise.
91126         * doc/posix-functions/iswxdigit.texi: Likewise.
91127         Reported by Alain Guibert.
91129 2008-04-21  Bruno Haible  <bruno@clisp.org>
91131         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91132         Patch by Alain Guibert.
91134 2008-04-21  Bruno Haible  <bruno@clisp.org>
91136         Fix test failures on mingw.
91137         * tests/test-xstrtol.c (print_no_progname): New function.
91138         (main): Install it in error_print_progname hook.
91139         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91140         * tests/test-xstrtoimax.sh: Likewise.
91141         * tests/test-xstrtoumax.sh: Likewise.
91143 2008-04-21  Bruno Haible  <bruno@clisp.org>
91145         Fix test failure on mingw.
91146         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91148 2008-04-21  Bruno Haible  <bruno@clisp.org>
91150         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91151         Actually assign a value.
91153 2008-04-20  Bruno Haible  <bruno@clisp.org>
91155         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91156         take 2.
91157         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91158         'canonicalize-lgpl' module is also used.
91159         * lib/canonicalize-lgpl.c: Undo last change.
91160         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91162 2008-04-20  Bruno Haible  <bruno@clisp.org>
91164         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91165         config.h. Provide _mkdir based fallback for mingw.
91166         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91167         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91168         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91169         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91170         rather than defining mkdir in config.h.
91171         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91172         (gl_SYS_STAT_H_DEFAULTS): New macro.
91173         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91174         HAVE_IO_H any more.
91175         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91176         HAVE_DECL_MKDIR and HAVE_IO_H.
91178 2008-04-20  Bruno Haible  <bruno@clisp.org>
91180         * lib/isapipe.c: Port to native Windows platforms.
91182 2008-04-20  Bruno Haible  <bruno@clisp.org>
91184         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91186 2008-04-21  Eric Blake  <ebb9@byu.net>
91188         Work around preprocessors that don't handle UINTMAX_MAX.
91189         * lib/memchr2.c (memchr2): Avoid embedded #if.
91190         Reported by Alain Guibert, fix suggested by Bruno Haible.
91192 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91194         * doc/posix-functions/strftime.texi (strftime): Explain better
91195         Windows incompatibility.  Suggested by Micah Cowan
91196         <micah@cowan.name>.
91198 2008-04-20  Bruno Haible  <bruno@clisp.org>
91200         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91201         unistr/u8-mblen.
91203 2008-04-20  Bruno Haible  <bruno@clisp.org>
91205         Fix test failure on platforms with non-GNU iconv.
91206         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91207         (U_TO_U8): Use it, rather than u16_to_u8.
91208         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91209         units at the end of the input string.
91210         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91212 2008-04-20  Bruno Haible  <bruno@clisp.org>
91214         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91215         when the resulting length is 0.
91216         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91218 2008-04-20  Bruno Haible  <bruno@clisp.org>
91220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91221         works.
91222         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91224 2008-04-20  Bruno Haible  <bruno@clisp.org>
91226         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91227         * modules/tsearch-tests (configure.ac): Test for initstate function.
91229 2008-04-20  Bruno Haible  <bruno@clisp.org>
91231         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91232         for nlink_t if missing.
91233         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91235 2008-04-19  Bruno Haible  <bruno@clisp.org>
91237         Work around snprintf bug on Linux libc5.
91238         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91240         gl_SNPRINTF_SIZE1.
91241         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91242         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91243         that test failed.
91244         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91245         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91246         * modules/snprintf (Files): Add m4/printf.m4.
91247         * modules/vsnprintf (Files): Likewise.
91248         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91249         * doc/posix-functions/vsnprintf.texi: Likewise.
91251 2008-04-19  Bruno Haible  <bruno@clisp.org>
91253         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91254         from 0.0058 to less than 10^-7.
91256 2008-04-19  Bruno Haible  <bruno@clisp.org>
91258         Fix rounding when a precision is given.
91259         * lib/vasnprintf.c (is_borderline): New function.
91260         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91261         9...9x.
91262         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91263         %e, %g.
91264         * tests/test-vasprintf-posix.c (test_function): Likewise.
91265         * tests/test-snprintf-posix.h (test_function): Likewise.
91266         * tests/test-sprintf-posix.h (test_function): Likewise.
91267         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91268         * tests/test-printf-posix.h (test_function): Likewise.
91269         * tests/test-printf-posix.output: Update.
91270         Reported by John Darrington <john@darrington.wattle.id.au> via
91271         Ben Pfaff <blp@cs.stanford.edu>.
91273 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91275         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91276         Suggested by Bruno Haible <bruno@clisp.org>.
91278 2008-04-17  Bruno Haible  <bruno@clisp.org>
91280         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91281         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91282         implementation.
91283         Patch by Bruce Merry <bmerry@gmail.com>.
91285 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91287         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91288         doesn't work under Windows.
91290 2008-04-16  Bruno Haible  <bruno@clisp.org>
91292         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91293         New macros.
91294         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91295         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91296         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91297         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91298         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91299         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91300         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91301         macros.
91302         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91303         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91304         Northern Sotho, Uighur.
91306 2008-04-16  Bruno Haible  <bruno@clisp.org>
91308         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91309         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91310         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91311         Reported by Daniel Bergström <daniel@octocode.com>.
91313 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91314             Bruno Haible  <bruno@clisp.org>
91316         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91317         function.
91318         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91319         New functions, mostly extracted from gl_locale_name_default.
91320         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91322 2008-04-16  Eric Blake  <ebb9@byu.net>
91324         Adjust strtod detection to catch glibc 2.7 bug.
91325         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91326         Reported by John Gatewood Ham.
91328 2008-04-16  Bruno Haible  <bruno@clisp.org>
91330         Add tentative support for Linux libc5.
91331         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91332         * lib/fpurge.c (fpurge): Likewise.
91333         * lib/freadable.c (freadable): Likewise.
91334         * lib/freadahead.c (freadahead): Likewise.
91335         * lib/freading.c (freading): Likewise.
91336         * lib/freadptr.c (freadptr): Likewise.
91337         * lib/freadseek.c (freadptrinc): Likewise.
91338         * lib/fseeko.c (rpl_fseeko): Likewise.
91339         * lib/fseterr.c (fseterr): Likewise.
91340         * lib/fwritable.c (fwritable): Likewise.
91341         * lib/fwriting.c (fwriting): Likewise.
91342         Reported by Alain Guibert <alguibert+bts@free.fr>.
91344 2008-04-15  Bruno Haible  <bruno@clisp.org>
91346         * modules/mathl (configure.ac): Define module indicator.
91348 2008-04-15  Bruno Haible  <bruno@clisp.org>
91350         * lib/logl.c (logl): Remove unused variables.
91352 2008-04-15  Bruno Haible  <bruno@clisp.org>
91354         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91355         fails.
91357 2008-04-15  Bruno Haible  <bruno@clisp.org>
91359         * lib/trim.c (trim2): Fix argument of isspace() macro.
91361 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91363         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91364         to 0.
91365         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91367 2008-04-14  Bruno Haible  <bruno@clisp.org>
91369         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91370         AC_LANG_PROGRAM argument.
91371         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91372         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91374         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91375         * m4/math_h.m4 (gl_MATH_H): Likewise.
91376         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91378         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91379         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91380         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91381         * m4/regex.m4 (gl_REGEX): Likewise.
91382         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91383         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91385         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91386         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91387         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91391 2008-04-14  Jim Meyering  <meyering@redhat.com>
91393         test-strtod: fix typos: s/abs/fabs/
91394         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91396 2008-04-13  Bruno Haible  <bruno@clisp.org>
91398         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91399         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91400         module is also used and while not building the reloc-wrapper.
91402 2008-04-13  Bruno Haible  <bruno@clisp.org>
91404         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91406 2008-04-13  Bruno Haible  <bruno@clisp.org>
91408         Fix AIX compilation failure introduced on 2008-04-02.
91409         * tests/test-frexp.c (exp): Undefine before redefining.
91410         * tests/test-frexpl.c (exp): Likewise.
91412 2008-04-13  Bruno Haible  <bruno@clisp.org>
91414         Work around a HP-UX stdio bug.
91415         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91416         * tests/test-ftello.c (main): Likewise.
91417         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91418         * doc/posix-functions/ftello.texi: Likewise.
91420 2008-04-13  Bruno Haible  <bruno@clisp.org>
91422         Make test-signbit pass on HP-UX/hppa.
91423         * tests/test-signbit.c (minus_zerol): New variable.
91424         (test_signbitl): Use it.
91426 2008-04-13  Bruno Haible  <bruno@clisp.org>
91428         Make truncl work on OSF/1 4.0.
91429         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91430         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91431         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91433         HAVE_DECL_TRUNCL.
91434         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91435         HAVE_DECL_TRUNCL.
91436         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91438 2008-04-13  Bruno Haible  <bruno@clisp.org>
91440         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91442 2008-04-13  Bruno Haible  <bruno@clisp.org>
91444         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91445         expression, so as to avoid HP-UX 11 cc compiler bug.
91447 2008-04-13  Bruno Haible  <bruno@clisp.org>
91449         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91451 2008-04-13  Bruno Haible  <bruno@clisp.org>
91453         * lib/git-merge-changelog.c: Remove empty declaration outside of
91454         functions.
91456 2008-04-13  Bruno Haible  <bruno@clisp.org>
91458         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91460 2008-04-13  Bruno Haible  <bruno@clisp.org>
91462         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91463         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91465         also if it exists but lacks definitions of the SHUT_* macros.
91466         * modules/sys_socket (Description): Update.
91467         Reported by Elbert Pol <e.pol@chello.nl>.
91469 2008-04-13  Bruno Haible  <bruno@clisp.org>
91471         * lib/localcharset.c (OS2): Don't redefine if already defined.
91472         Reported by Elbert Pol <e.pol@chello.nl>.
91474 2008-04-13  Bruno Haible  <bruno@clisp.org>
91476         * lib/binary-io.h [__EMX__]: Include <io.h>.
91477         Reported by Elbert Pol <e.pol@chello.nl>.
91479 2008-04-12  Bruno Haible  <bruno@clisp.org>
91481         * lib/fpucw.h: Enable the definitions also for x86_64.
91482         Needed for NetBSD/x86_64.
91483         Reported by Thomas Klausner <tk@giga.or.at>.
91485 2008-04-12  Bruno Haible  <bruno@clisp.org>
91487         * tests/test-strtod.c: Include isnand.h.
91488         (main): Use isnand instead of isnan.
91489         Reported by Jim Meyering.
91491 2008-04-12  Bruno Haible  <bruno@clisp.org>
91493         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91494         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91496 2008-04-12  Jim Meyering  <meyering@redhat.com>
91498         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91500 2008-04-12  Bruno Haible  <bruno@clisp.org>
91502         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91503         Reported by Elbert Pol <e.pol@chello.nl>.
91505 2008-04-12  Eric Blake  <ebb9@byu.net>
91507         Work around Solaris 10 math.h bug.
91508         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91509         (gl_MATH_H_DEFAULTS): Set up default.
91510         * modules/math (Makefile.am): Replace new indicators.
91511         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91512         * tests/test-math.c (main): Test this.
91513         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91514         * doc/posix-headers/math.texi (math.h): Mention bug.
91515         Reported by Nelson H. F. Beebe and Jim Meyering.
91517 2008-04-11  Bruno Haible  <bruno@clisp.org>
91519         Adapt to future versions of Apple GCC.
91520         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91521         Reported by Peter O'Gorman <peter@pogma.com>.
91523 2008-04-11  Bruno Haible  <bruno@clisp.org>
91525         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91527 2008-04-11  Bruno Haible  <bruno@clisp.org>
91529         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91531         * modules/getaddrinfo-tests (Makefile.am): Define
91532         test_getaddrinfo_LDADD.
91534 2008-04-11  Bruno Haible  <bruno@clisp.org>
91536         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91537         (init): Fix syntax error.
91538         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91539         is declared.
91541 2008-04-11  Bruno Haible  <bruno@clisp.org>
91543         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91544         * modules/glob (Depends-on): Add stdbool.
91546 2008-04-11  Bruno Haible  <bruno@clisp.org>
91548         * lib/trim.c: Include <string.h>.
91550 2008-04-11  Eric Blake  <ebb9@byu.net>
91552         Avoid compile failure on OS/2.
91553         * lib/regex_internal.h (internal_function): Disable optimization
91554         on OS/2 (__EMX__), where it caused compiler error.
91555         Reported by Elbert Pol.
91557 2008-04-11  Bruno Haible  <bruno@clisp.org>
91559         Flush the standard error stream before aborting. Needed on mingw.
91560         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91561         * tests/test-array_list.c (ASSERT): Likewise.
91562         * tests/test-array_oset.c (ASSERT): Likewise.
91563         * tests/test-avltree_list.c (ASSERT): Likewise.
91564         * tests/test-avltree_oset.c (ASSERT): Likewise.
91565         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91566         * tests/test-binary-io.c (ASSERT): Likewise.
91567         * tests/test-byteswap.c (ASSERT): Likewise.
91568         * tests/test-c-ctype.c (ASSERT): Likewise.
91569         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91570         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91571         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91572         * tests/test-c-strstr.c (ASSERT): Likewise.
91573         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91574         * tests/test-canonicalize.c (ASSERT): Likewise.
91575         * tests/test-carray_list.c (ASSERT): Likewise.
91576         * tests/test-ceilf1.c (ASSERT): Likewise.
91577         * tests/test-ceilf2.c (ASSERT): Likewise.
91578         * tests/test-ceill.c (ASSERT): Likewise.
91579         * tests/test-count-one-bits.c (ASSERT): Likewise.
91580         * tests/test-fbufmode.c (ASSERT): Likewise.
91581         * tests/test-fflush2.c (ASSERT): Likewise.
91582         * tests/test-floorf1.c (ASSERT): Likewise.
91583         * tests/test-floorf2.c (ASSERT): Likewise.
91584         * tests/test-floorl.c (ASSERT): Likewise.
91585         * tests/test-fopen.c (ASSERT): Likewise.
91586         * tests/test-fpending.c (ASSERT): Likewise.
91587         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91588         * tests/test-fpurge.c (ASSERT): Likewise.
91589         * tests/test-freadable.c (ASSERT): Likewise.
91590         * tests/test-freadahead.c (ASSERT): Likewise.
91591         * tests/test-freading.c (ASSERT): Likewise.
91592         * tests/test-freadptr.c (ASSERT): Likewise.
91593         * tests/test-freadptr2.c (ASSERT): Likewise.
91594         * tests/test-freadseek.c (ASSERT): Likewise.
91595         * tests/test-freopen.c (ASSERT): Likewise.
91596         * tests/test-frexp.c (ASSERT): Likewise.
91597         * tests/test-frexpl.c (ASSERT): Likewise.
91598         * tests/test-fseek.c (ASSERT): Likewise.
91599         * tests/test-fseeko.c (ASSERT): Likewise.
91600         * tests/test-fstrcmp.c (ASSERT): Likewise.
91601         * tests/test-ftell.c (ASSERT): Likewise.
91602         * tests/test-ftello.c (ASSERT): Likewise.
91603         * tests/test-func.c (ASSERT): Likewise.
91604         * tests/test-fwritable.c (ASSERT): Likewise.
91605         * tests/test-fwriting.c (ASSERT): Likewise.
91606         * tests/test-getdelim.c (ASSERT): Likewise.
91607         * tests/test-getline.c (ASSERT): Likewise.
91608         * tests/test-i-ring.c (ASSERT): Likewise.
91609         * tests/test-iconv-utf.c (ASSERT): Likewise.
91610         * tests/test-iconv.c (ASSERT): Likewise.
91611         * tests/test-isfinite.c (ASSERT): Likewise.
91612         * tests/test-isnand.c (ASSERT): Likewise.
91613         * tests/test-isnanf.c (ASSERT): Likewise.
91614         * tests/test-isnanl.h (ASSERT): Likewise.
91615         * tests/test-ldexpl.c (ASSERT): Likewise.
91616         * tests/test-linked_list.c (ASSERT): Likewise.
91617         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91618         * tests/test-localename.c (ASSERT): Likewise.
91619         * tests/test-lseek.c (ASSERT): Likewise.
91620         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91621         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91622         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91623         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91624         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91625         * tests/test-mbschr.c (ASSERT): Likewise.
91626         * tests/test-mbscspn.c (ASSERT): Likewise.
91627         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91628         * tests/test-mbspbrk.c (ASSERT): Likewise.
91629         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91630         * tests/test-mbsrchr.c (ASSERT): Likewise.
91631         * tests/test-mbsspn.c (ASSERT): Likewise.
91632         * tests/test-mbsstr1.c (ASSERT): Likewise.
91633         * tests/test-mbsstr2.c (ASSERT): Likewise.
91634         * tests/test-mbsstr3.c (ASSERT): Likewise.
91635         * tests/test-memchr2.c (ASSERT): Likewise.
91636         * tests/test-memmem.c (ASSERT): Likewise.
91637         * tests/test-open.c (ASSERT): Likewise.
91638         * tests/test-printf-frexp.c (ASSERT): Likewise.
91639         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91640         * tests/test-printf-posix.c (ASSERT): Likewise.
91641         * tests/test-quotearg.c (ASSERT): Likewise.
91642         * tests/test-rbtree_list.c (ASSERT): Likewise.
91643         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91644         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91645         * tests/test-round1.c (ASSERT): Likewise.
91646         * tests/test-roundf1.c (ASSERT): Likewise.
91647         * tests/test-roundl.c (ASSERT): Likewise.
91648         * tests/test-signbit.c (ASSERT): Likewise.
91649         * tests/test-sleep.c (ASSERT): Likewise.
91650         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91651         * tests/test-snprintf.c (ASSERT): Likewise.
91652         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91653         * tests/test-stat-time.c (ASSERT): Likewise.
91654         * tests/test-strcasestr.c (ASSERT): Likewise.
91655         * tests/test-strerror.c (ASSERT): Likewise.
91656         * tests/test-striconv.c (ASSERT): Likewise.
91657         * tests/test-striconveh.c (ASSERT): Likewise.
91658         * tests/test-striconveha.c (ASSERT): Likewise.
91659         * tests/test-strsignal.c (ASSERT): Likewise.
91660         * tests/test-strstr.c (ASSERT): Likewise.
91661         * tests/test-strtod.c (ASSERT): Likewise.
91662         * tests/test-trunc1.c (ASSERT): Likewise.
91663         * tests/test-trunc2.c (ASSERT): Likewise.
91664         * tests/test-truncf1.c (ASSERT): Likewise.
91665         * tests/test-truncf2.c (ASSERT): Likewise.
91666         * tests/test-truncl.c (ASSERT): Likewise.
91667         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91668         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91669         * tests/test-vasnprintf.c (ASSERT): Likewise.
91670         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91671         * tests/test-vasprintf.c (ASSERT): Likewise.
91672         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91673         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91674         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91675         * tests/test-vsnprintf.c (ASSERT): Likewise.
91676         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91677         * tests/test-wcwidth.c (ASSERT): Likewise.
91678         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91679         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91680         * tests/test-xvasprintf.c (ASSERT): Likewise.
91681         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91682         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91683         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91684         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91685         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91686         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91687         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91688         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91689         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91690         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91691         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91692         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91693         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91694         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91695         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91696         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91697         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91698         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91699         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91700         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91701         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91702         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91703         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91704         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91705         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91706         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91707         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91708         * tests/unictype/test-combining.c (ASSERT): Likewise.
91709         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91710         * tests/unictype/test-digit.c (ASSERT): Likewise.
91711         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91712         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91713         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91714         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91715         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91716         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91717         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91718         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91719         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91720         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91721         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91722         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91723         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91724         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91725         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91726         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91727         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91728         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91729         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91730         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91731         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91732         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91733         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91734         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91735         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91736         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91737         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91738         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91739         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91740         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91741         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91742         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91743         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91744         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91745         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91746         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91747         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91748         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91749         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91750         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91751         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91752         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91753         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91754         Reported by Eric Blake.
91756 2008-04-11  Bruno Haible  <bruno@clisp.org>
91758         * lib/wchar.in.h: Tweak comment.
91760 2008-04-11  Bruno Haible  <bruno@clisp.org>
91762         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91763         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91764         gl_COMMON.
91765         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91767 2008-04-11  Bruno Haible  <bruno@clisp.org>
91769         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91771 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91773         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91774         of attempting to use non-existing /dev/*random.  Based on patch
91775         from Adam Strzelecki <ono@java.pl> in
91776         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91778 2008-04-08  Bruno Haible  <bruno@clisp.org>
91780         Add tentative support for emx+gcc.
91781         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91782         * lib/fpurge.c (fpurge): Likewise.
91783         * lib/freadable.c (freadable): Likewise.
91784         * lib/freadahead.c (freadahead): Likewise.
91785         * lib/freading.c (freading): Likewise.
91786         * lib/freadptr.c (freadptr): Likewise.
91787         * lib/freadseek.c (freadptrinc): Likewise.
91788         * lib/fseeko.c (rpl_fseeko): Likewise.
91789         * lib/fseterr.c (fseterr): Likewise.
91790         * lib/fwritable.c (fwritable): Likewise.
91791         * lib/fwriting.c (fwriting): Likewise.
91792         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91794 2008-04-09  Eric Blake  <ebb9@byu.net>
91796         Avoid some autoconf warnings.
91797         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91798         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91799         * m4/afs.m4 (gl_AFS): Likewise.
91800         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91801         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91803         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91804         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91805         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91806         (AC_CHECK_DECLS_ONCE): Likewise.
91807         Rename file...
91808         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91809         gnulib-tool requires autoconf 2.59 or better.
91810         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91812 2008-04-08  Eric Blake  <ebb9@byu.net>
91814         Use 'git describe --match' if present (added in git 1.5.5).
91815         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91816         if possible.
91818 2008-04-08  Bruno Haible  <bruno@clisp.org>
91820         Add tentative support for OpenServer.
91821         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91822         _ptr, _cnt.
91823         * lib/fpurge.c (fpurge): Likewise.
91824         * lib/freadable.c (freadable): Likewise.
91825         * lib/freadahead.c (freadahead): Likewise.
91826         * lib/freading.c (freading): Likewise.
91827         * lib/freadptr.c (freadptr): Likewise.
91828         * lib/freadseek.c (freadptrinc): Likewise.
91829         * lib/fseeko.c (rpl_fseeko): Likewise.
91830         * lib/fseterr.c (fseterr): Likewise.
91831         * lib/fwritable.c (fwritable): Likewise.
91832         * lib/fwriting.c (fwriting): Likewise.
91833         Reported by Roger Cornelius <rac@tenzing.org> and
91834         Brian K. White <brian@aljex.com>.
91836 2008-04-06  Jim Meyering  <meyering@redhat.com>
91838         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91840 2008-04-06  Bruno Haible  <bruno@clisp.org>
91842         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91843         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91844         * tests/test-printf-posix.sh: Likewise.
91845         * tests/test-vfprintf-posix.sh: Likewise.
91846         * tests/test-vprintf-posix.sh: Likewise.
91847         * tests/test-xprintf-posix.sh: Likewise.
91849 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91851         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91852         hide error from 'ls', needed on OS/2.
91853         Report by Elbert Pol <elbert.pol@gmail.com>.
91855 2008-04-04  Eric Blake  <ebb9@byu.net>
91857         Make test-fseeko.c failures meaningful.
91858         * tests/test-fseeko.c: Print line number on failure.
91859         * tests/test-fseek.c: Likewise.
91860         Reported by Nelson H. F. Beebe.
91862         Improve strtod bug detection check.
91863         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91864         required for Solaris 10.
91865         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91867 2008-04-04  Bruno Haible  <bruno@clisp.org>
91869         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91870         by m4/setenv.m4.
91872 2008-04-03  Eric Blake  <ebb9@byu.net>
91874         Ensure sane .version contents.
91875         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91876         version string.
91877         * build-aux/git-version-gen: Improve documentation.
91879         Make GNU make output nicer.
91880         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91881         MAKECMDGOALS to enforce message for all command line targets.  Set
91882         srcdir for use in maint.mk.
91884         Another maintainer tweak.
91885         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91886         a target that regenerates version.
91888 2008-04-03  Jim Meyering  <meyering@redhat.com>
91890         vc-list-files: don't cause coreutils "make po-check" failure
91891         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91893 2008-04-03  Eric Blake  <ebb9@byu.net>
91895         Allow VPATH usage of vc-list-files.
91896         * build-aux/vc-list-files (scriptversion): Add timestamp.
91897         (options): Add --help, --version, -C.
91898         (CVS): Support installed cvsu.
91900 2008-04-02  Bruno Haible  <bruno@clisp.org>
91902         Avoid some "statement with no effect" warnings from gcc.
91903         * tests/test-wctype.c (main): Explicitly ignore unused values.
91904         Reported by Jim Meyering.
91906 2008-04-02  Jim Meyering  <meyering@redhat.com>
91908         Avoid some warnings from "gcc -Wshadow".
91909         * tests/test-frexp.c (exp): Define to a different identifier.
91910         * tests/test-frexpl.c (exp): Likewise.
91912 2008-04-03  Jim Meyering  <meyering@redhat.com>
91914         bootstrap: remove dangling *.[ch] symlinks from lib
91915         * build-aux/bootstrap [dangling symlink removal]: Move find's
91916         -depth option to precede all others, to avoid a warning.
91917         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91919 2008-04-02  Bruno Haible  <bruno@clisp.org>
91921         Avoid some warnings from "gcc -Wshadow".
91922         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91923         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91924         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91925         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91926         Reported by Jim Meyering.
91928 2008-04-01  Bruno Haible  <bruno@clisp.org>
91930         Fix test to work on IRIX 6.5 with cc.
91931         * tests/test-math.c (numeric_equal): New function.
91932         (main): Use it.
91934 2008-04-01  Bruno Haible  <bruno@clisp.org>
91936         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91938 2008-04-01  Bruno Haible  <bruno@clisp.org>
91940         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91941         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91942         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91943         (Depends-on): Remove math.
91945         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91946         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91947         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91948         (Depends-on): Remove math.
91950         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91951         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91952         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91953         (Depends-on): Remove math.
91954         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91955         (Depends-on): Remove math.
91957         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91958         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91959         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91960         (Depends-on): Remove math.
91961         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91962         (Depends-on): Remove math.
91964         * tests/test-round1.c: Include nan.h.
91965         (main): Use NaNd instead of NAN.
91966         * modules/round-tests (Files): Add tests/nan.h.
91968         * tests/test-trunc1.c: Include nan.h.
91969         (main): Use NaNd instead of NAN.
91970         * modules/trunc-tests (Files): Add tests/nan.h.
91972         * tests/test-roundf1.c: Include nan.h.
91973         (main): Use NaNf instead of NAN.
91974         * modules/roundf-tests (Files): Add tests/nan.h.
91976         * tests/test-truncf1.c: Include nan.h.
91977         (main): Use NaNf instead of NAN.
91978         * modules/truncf-tests (Files): Add tests/nan.h.
91980         * tests/test-ceilf1.c: Include nan.h.
91981         (main): Use NaNf instead of NAN.
91982         * modules/ceilf-tests (Files): Add tests/nan.h.
91984         * tests/test-floorf1.c: Include nan.h.
91985         (main): Use NaNf instead of NAN.
91986         * modules/floorf-tests (Files): Add tests/nan.h.
91988         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
91989         (main): Use NaNf instead of NAN.
91990         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
91992         * tests/test-isnand.c: Include nan.h instead of <math.h>.
91993         (main): Use NaNd instead of NAN.
91994         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
91996         * tests/test-frexp.c: Include nan.h.
91997         (main): Use NaNd instead of NAN.
91998         * modules/frexp-tests (Files): Add tests/nan.h.
92000         * lib/isnan.c: Don't include <math.h>.
92001         (FUNC): Don't use NAN macro.
92002         * modules/isnand-nolibm (Depends-on): Remove math.
92003         * modules/isnanf-nolibm (Depends-on): Remove math.
92004         * modules/isnanl (Depends-on): Remove math.
92005         * modules/isnanl-nolibm (Depends-on): Remove math.
92007         * tests/nan.h: New file.
92009 2008-04-01  Eric Blake  <ebb9@byu.net>
92011         Fix typos.
92012         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92013         values to be the right type.
92015         For now, cater to gnulib strtod inaccuracies.
92016         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92017         fractional results.  While not as nice from a QoI perspective, it
92018         is a quicker patch than correctly implementing decimal to binary
92019         rounding.
92021 2008-03-31  Eric Blake  <ebb9@byu.net>
92023         Guarantee a definition of NAN.
92024         * lib/math.in.h (NAN): Define if missing.
92025         * tests/test-math.c (main): Test it.
92026         * doc/posix-headers/math.texi (math.h): Document this.
92027         * lib/isnan.c (rpl_isnand): Use it.
92028         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92029         * tests/test-floorf1.c (NaN): Likewise.
92030         * tests/test-frexp.c (NaN): Likewise.
92031         * tests/test-isnand.c (NaN): Likewise.
92032         * tests/test-isnanf.c (NaN): Likewise.
92033         * tests/test-round1.c (NaN): Likewise.
92034         * tests/test-roundf1.c (NaN): Likewise.
92035         * tests/test-snprintf-posix.h (NaN): Likewise.
92036         * tests/test-sprintf-posix.h (NaN): Likewise.
92037         * tests/test-trunc1.c (NaN): Likewise.
92038         * tests/test-truncf1.c (NaN): Likewise.
92039         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92040         * tests/test-vasprintf-posix.c (NaN): Likewise.
92041         * modules/isnand-nolibm (Depends-on): Add math.
92042         * modules/isnanf-nolibm (Depends-on): Likewise.
92043         * modules/isnanl (Depends-on): Likewise.
92044         * modules/isnanl-nolibm (Depends-on): Likewise.
92045         * modules/snprintf-posix-tests (Depends-on): Likewise.
92046         * modules/sprintf-posix-tests (Depends-on): Likewise.
92047         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92048         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92049         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92050         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92052 2008-03-31  Bruno Haible  <bruno@clisp.org>
92054         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92055         * doc/posix-functions/strtod.texi: Likewise.
92057 2008-03-31  Bruno Haible  <bruno@clisp.org>
92059         * tests/test-strtod.c (main): Don't use C99 syntax.
92061 2008-03-31  Bruno Haible  <bruno@clisp.org>
92063         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92064         Reported by Eric Blake.
92066 2008-03-31  Jim Meyering  <meyering@redhat.com>
92068         Don't compare actual signbit return values.
92069         * tests/test-strtod.c (main): Rather, compare only their
92070         zero/non-zero nature.
92072 2008-03-31  Eric Blake  <ebb9@byu.net>
92074         More strtod documentation.
92075         * doc/posix-functions/strtod.texi (strtod): Interpret more test
92076         failures as distinct bugs.
92078 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
92080         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
92081         Problem reported by Erik Benada in
92082         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
92084 2008-03-30  Bruno Haible  <bruno@clisp.org>
92086         * tests/test-strtod.c: Add comments about which assertion fails on which
92087         platform.
92088         * doc/posix-functions/strtod.texi: Add info about many more platforms.
92090 2008-03-30  Eric Blake  <ebb9@byu.net>
92092         Test signbit behavior on zeros.
92093         * tests/test-signbit.c (test_signbitf): Add tests for zero.
92094         (test_signbitd, test_signbitl): Likewise.
92096         More strtod touchups.
92097         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
92098         sign of negative underflow, for now.  Use .5, not .1.
92099         * doc/posix-functions/strtod.texi (strtod): Mention these
92100         limitations.
92101         Reported by Jim Meyering.
92103 2008-03-30  Bruno Haible  <bruno@clisp.org>
92105         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
92106         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
92108 2008-03-30  Bruno Haible  <bruno@clisp.org>
92110         Avoid failure when attempting to return empty iconv results on some
92111         platforms.
92112         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92113         allocation, don't report ENOMEM when the resulting string is empty.
92115 2008-03-30  Bruno Haible  <bruno@clisp.org>
92117         Fix buffer overrun.
92118         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92119         Don't consider the width for tmp_length. Check count against tmp_length
92120         before doing the padding. Ensure enough allocation during padding.
92122 2008-03-30  Eric Blake  <ebb9@byu.net>
92124         strtod touchups.
92125         * lib/strtod.c (strtod): Avoid compiler warnings.
92126         Reported by Jim Meyering.
92128 2008-03-30  Bruno Haible  <bruno@clisp.org>
92130         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92131         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92132         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92133         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92134         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92135         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92136         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92137         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92139         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92140         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92141         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92142         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92143         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92144         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92145         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92146         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92148         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92149         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92150         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92151         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92152         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92153         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92154         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92155         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92157         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92158         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92160         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92161         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92163         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92164         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92166         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92168         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92170         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92172         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92174         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92176         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92178         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92180         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92182         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92183         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92185         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92186         (Depends-on): Add EOVERFLOW.
92187         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92188         (Depends-on): Add EOVERFLOW.
92189         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92190         (Depends-on): Add EOVERFLOW.
92191         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92192         (Depends-on): Add EOVERFLOW.
92193         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92194         (Depends-on): Add EOVERFLOW.
92195         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92196         (Depends-on): Add EOVERFLOW.
92197         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92198         (Depends-on): Add EOVERFLOW.
92199         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92200         (Depends-on): Add EOVERFLOW.
92202         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92204         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92206         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92208         * modules/snprintf (Depends-on): Add EOVERFLOW.
92210         * lib/poll.c (EOVERFLOW): Remove fallback.
92211         * modules/poll (Depends-on): Add EOVERFLOW.
92213         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92214         * modules/getugroups (Depends-on): Add EOVERFLOW.
92216         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92217         * modules/getdelim (Depends-on): Add EOVERFLOW.
92219         * lib/ftell.c (EOVERFLOW): Remove fallback.
92220         * modules/ftell (Depends-on): Add EOVERFLOW.
92222         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92224         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92226         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92228         * modules/EOVERFLOW-tests: New file.
92229         * tests/test-EOVERFLOW.c: New file.
92231         * modules/EOVERFLOW: New file.
92232         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92234 2008-03-30  Bruno Haible  <bruno@clisp.org>
92236         Fix bug introduced on 2007-06-10.
92237         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92238         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92240 2008-03-30  Bruno Haible  <bruno@clisp.org>
92242         Improve freadseek's efficiency after ungetc.
92243         * lib/freadseek.c: Include freadahead.h.
92244         (freadptrinc): New function, extracted from freadseek.
92245         (freadseek): Use it in a loop. Use freadahead to determine the number
92246         of loop iterations.
92247         * modules/freadseek (Depends-on): Add freadahead.
92248         (configure.ac): Require AC_C_INLINE.
92250 2008-03-30  Bruno Haible  <bruno@clisp.org>
92252         * lib/freadseek.c (freadseek): Don't ignore the return value of
92253         freadptr.
92255 2008-03-29  Eric Blake  <ebb9@byu.net>
92257         Add hex float support.
92258         * modules/strtod (Depends-on): Add c-ctype.
92259         (Link): Mention POW_LIB.
92260         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92261         whitespace between 'e' and exponent.
92262         * tests/test-strtod.c (main): Enable hex float tests.
92263         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92264         now provides.
92266         Document various strtod bugs, with some fixes.
92267         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92268         "-0x", "inf", "nan", and hex constants.
92269         * doc/posix-functions/atof.texi (atof): Likewise.
92270         * modules/stdlib (Makefile.am): Support strtod.
92271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92272         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92273         detect additional strtod bugs.
92274         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92275         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92276         bool where appropriate.  Parse 'inf' and 'nan'.
92277         * tests/test-strtod.c: New file.
92278         * modules/strtod (Depends-on): Add stdbool, stdlib.
92279         (configure.ac): Turn on module indicator.
92280         * modules/strtod-tests: New module.
92282 2008-03-29  Eric Blake  <ebb9@byu.net>
92284         Fix ftell on mingw.
92285         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92286         * modules/ftell-tests (Depends-on): Add binary-io.
92287         * modules/ftello-tests (Depends-on): Likewise.
92288         * tests/test-ftell.c (main): Enhance test to cover behavior after
92289         ungetc.  Enforce binary mode.
92290         * tests/test-ftello.c (main): Likewise.
92292         Pass test-freadseek on cygwin.
92293         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92294         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92295         ungetc buffer.
92297         * tests/test-fflush2.c (main): Fix typo.
92299 2008-03-29  Bruno Haible  <bruno@clisp.org>
92301         * tests/test-fflush2.c (main): Temporarily disable the contents of
92302         this test.
92303         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92304         Reported by Eric Blake.
92306 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92308         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92309         (GC_SHA224_DIGEST_SIZE): Add.
92311         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92312         (gc_hash_digest_length): Likewise.
92313         (gc_hash_buffer): Likewise.
92315 2008-03-25  Bruno Haible  <bruno@clisp.org>
92317         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92318         detail which gettext release to use.
92319         Reported by Simon Josefsson.
92321 2008-03-26  Jim Meyering  <meyering@redhat.com>
92323         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92324         * modules/gnumakefile (clean-GNUmakefile): Also, use
92325         test ... && ... || : syntax rather than if-then ... fi.
92327         gnumakefile: Don't double-quote-expand $(VPATH) value.
92328         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92330 2008-03-24  Eric Blake  <ebb9@byu.net>
92332         Alter GNUmakefile to install into top directory.
92333         * modules/maintainer-makefile: Split, and add dependency...
92334         * modules/gnumakefile: to this new module.
92335         * build-aux/GNUmakefile: Move...
92336         * top/GNUmakefile: ...here.
92337         * build-aux/maint.mk: Move...
92338         * top/maint.mk: ...here.
92339         * MODULES.html.sh (Support for maintaining...): Document new
92340         module.
92342 2008-03-23  Bruno Haible  <bruno@clisp.org>
92344         * gnulib-tool: New options --vc-files, --no-vc-files.
92345         (func_usage): Document them.
92346         (vc_files): New variable.
92347         (func_import): Consider vc_files.
92348         (func_create_testdir): Set vc_files to empty.
92349         Suggested by Jim Meyering and Karl Berry.
92351 2008-03-23  Bruno Haible  <bruno@clisp.org>
92353         Fix regex compilation error on HP-UX 11.
92354         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92355         * modules/regex (Files): Add m4/mbstate_t.m4.
92356         Reported by Ton Voon <ton.voon@altinity.com>.
92358 2008-03-23  Bruno Haible  <bruno@clisp.org>
92360         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92362 2008-03-23  Eric Blake  <ebb9@byu.net>
92363             Bruno Haible  <bruno@clisp.org>
92365         Install files from top/ in the destination directory.
92366         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92367         augmentation also for the files from top/.
92368         (func_import, func_create_testdir): Rewrite file names:
92369         top/filename -> filename.
92371 2008-03-23  Bruno Haible  <bruno@clisp.org>
92373         Tweak "gnulib --version" output.
92374         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92376 2008-03-23  Bruno Haible  <bruno@clisp.org>
92378         Tweak "gnulib --version" output.
92379         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92380         rather than contents of ChangeLog, when possible.
92382 2008-03-21  Eric Blake  <ebb9@byu.net>
92384         More --version tweaks.
92385         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92386         date of last ChangeLog entry.
92388 2008-03-21  Jim Meyering  <meyering@redhat.com>
92390         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92392 2008-03-20  Eric Blake  <ebb9@byu.net>
92394         VPATH fix.
92395         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92397 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92399         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92400         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92402 2008-03-20  Eric Blake  <ebb9@byu.net>
92404         Sync GNUmakefile with coreutils.
92405         * build-aux/GNUmakefile (have-Makefile): Rename...
92406         (_have-Makefile): ...to this, for namespace consideration.
92407         (GNUmakefile.cfg): Include, if present.
92408         (_autoreconf): Define a default.
92409         (_is-dist-target): New rule for rebuilds to pick up intra-release
92410         version.
92411         (maint-cfg.mk): Rename...
92412         (cfg.mk): ...to this.
92414 2008-03-18  Jim Meyering  <meyering@redhat.com>
92416         New script and module: mktempd
92417         * MODULES.html.sh (maint+release support): Add mktempd.
92418         * build-aux/mktempd: New file.
92419         * modules/mktempd: New file.
92421 2008-03-15  Jim Meyering  <meyering@redhat.com>
92423         Undo last change.
92424         * lib/sha1.c, lib/md5.c: 63 != ~63.
92425         Reported by Andreas Schwab.
92427         sha1.c, md5.c: Hoist a redundant expression.
92428         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92429         "ctx->buflen" only once, before calling *_process_block.
92430         * lib/md5.c (md5_process_bytes): Likewise.
92432 2008-03-14  Eric Blake  <ebb9@byu.net>
92434         Bump copyright year in files generated by gnulib-tool.
92435         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92436         gnulib-tool, rather than hard-coding it.
92438         Fix 'gnulib-tool --version' output to work with git.
92439         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92440         (startup): ...here.
92441         (func_version): Use it to invoke git-version-gen, rather than
92442         relying on CVS keyword expansion.  Modernize wording.
92443         (cvsdatestamp, last_checkin_date, version): Kill unused
92444         variables.
92446 2008-03-12  Jim Meyering  <meyering@redhat.com>
92448         Recognize optional cast of the argument to free.
92449         * build-aux/useless-if-before-free: Update regexps.
92451         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92453 2008-03-11  Bruno Haible  <bruno@clisp.org>
92455         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92456         by a single package.
92457         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92458         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92459         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92460         Reported by Sam Steingold <sds@gnu.org>.
92462 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92464         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92465         repositories.
92467 2008-03-11  Bruno Haible  <bruno@clisp.org>
92469         Avoid conflicts between local macro definitions.
92470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92471         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92473 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92474             Bruno Haible  <bruno@clisp.org>
92476         Make va_copy work with some version of xlc on AIX 5.1.
92477         * lib/stdarg.in.h: New file.
92478         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92479         On AIX, use a <stdarg.h> file substitute.
92480         * modules/stdarg (Files): Add lib/stdarg.in.h.
92481         (Depends-on): Add include_next.
92482         (Makefile.am): Build a stdarg.h substitute if requested.
92483         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92485 2008-03-10  Bruno Haible  <bruno@clisp.org>
92487         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92488         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92489         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92491 2008-03-10  Bruno Haible  <bruno@clisp.org>
92493         * modules/stdlib (Depends-on): Add include_next, remove
92494         absolute-header.
92496 2008-03-09  Bruno Haible  <bruno@clisp.org>
92498         * lib/freadahead.h (freadahead): Document more precisely.
92499         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92500         the sum of both buffer sizes.
92501         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92502         * NEWS: Document the change.
92504 2008-03-09  Bruno Haible  <bruno@clisp.org>
92506         Extend freadptr to return also the buffer size.
92507         * lib/freadptr.h (freadptr): Add sizep argument.
92508         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92509         (freadptr): Add sizep argument. Determine buffer size like freadahead
92510         does.
92511         * tests/test-freadptr.c: Don't include freadahead.h.
92512         (main): Adapt for new calling convention of freadptr.
92513         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92514         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92515         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92516         tests/test-freadptr2.sh.
92517         (Depends): Remove freadahead.
92518         (TESTS): Add test-freadptr2.sh.
92519         (check_PROGRAMS): Add test-freadptr2.
92521 2008-03-09  Bruno Haible  <bruno@clisp.org>
92523         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92524         Report and solution by Simon Josefsson.
92526 2008-03-06  Bruno Haible  <bruno@clisp.org>
92528         Make fflush after ungetc work on BSD platforms.
92529         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92530         * tests/test-fflush2.c: New file.
92531         * tests/test-fflush2.sh: New file.
92532         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92533         tests/test-fflush2.c.
92534         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92535         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92537 2008-03-06  Eric Blake  <ebb9@byu.net>
92539         Likewise for ftello.
92540         * modules/ftello (Dependencies): Add extensions.
92541         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92543 2008-03-06  Bruno Haible  <bruno@clisp.org>
92545         * modules/fseeko (Dependencies): Add extensions.
92546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92547         Needed on glibc systems.
92549 2008-03-06  Bruno Haible  <bruno@clisp.org>
92551         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92552         email address.
92553         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92555 2008-03-06  Bruno Haible  <bruno@clisp.org>
92557         * users.txt: Add libgnupdf.
92559 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92561         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92562         (Header File Substitutes, Function Substitutes,
92563         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92564         (Build robot for gnulib): Fix typo.
92566 2008-03-06  Bruno Haible  <bruno@clisp.org>
92568         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92569         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92571 2008-03-06  Bruno Haible  <bruno@clisp.org>
92573         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92574         * doc/gnulib.texi: Include it.
92576 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92578         * modules/func (License): Change license to unlimited; there was
92579         no LGPL parts in the module anyway.
92581 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92583         * modules/__func__: Renamed to modules/func.
92584         * modules/__func__-tests: Renamed to modules/func-tests.
92585         * tests/test-__func__.c: Renamed to tests/test-func.c.
92586         * m4/__func__.m4: Renamed to m4/func.m4.
92587         * doc/gnulib.texi (__func__): Section renamed to func.
92588         Suggested by Eric Blake <ebb9@byu.net>.
92590 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92592         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92593         about __func__.  Make example self-contained.  Suggested by Eric
92594         Blake <ebb9@byu.net>.
92596         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92597         Suggested by Eric Blake <ebb9@byu.net>.
92599 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92601         * modules/__func__: New file.
92602         * modules/__func__-tests: New file.
92603         * tests/test-__func__.c: New file.
92604         * m4/__func__.m4: New file.
92605         * doc/gnulib.texi (__func__): Document __func__ module.
92607 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92609         * modules/byteswap (License): Re-license as LGPLv2+.
92611 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92613         * doc/Makefile: Add pdf target.
92615 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92617         * modules/inline (License): Use 'unlimited', since there are only
92618         *.m4 files in this module.
92620 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92621             Bruno Haible  <bruno@clisp.org>
92623         Add support for HP C 7.1 on OpenVMS 8.3.
92624         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92626 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92628         Update VMS specifics.
92629         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92631 2008-03-02  Jim Meyering  <meyering@redhat.com>
92633         Remove the last dependency on the "free" module.
92634         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92635         Reported by Bob Proulx.
92637         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92639         Remove useless "if" tests before free.  Deprecate "free" module.
92640         * doc/posix-functions/free.texi: Mention that this
92641         module is no longer useful.
92642         * modules/free (Notice): Say this module is obsolete.
92643         * modules/readutmp (Depends-on): Remove free.
92644         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92645         * lib/putenv.c (putenv): Likewise.
92646         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92647         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92648         * tests/test-c-strcasestr.c (main): Likewise.
92649         * tests/test-c-strstr.c (main): Likewise.
92650         * tests/test-mbscasestr1.c (main): Likewise.
92651         * tests/test-mbscasestr2.c (main): Likewise.
92652         * tests/test-mbsstr1.c (main): Likewise.
92653         * tests/test-mbsstr2.c (main): Likewise.
92654         * tests/test-memmem.c (main): Likewise.
92655         * tests/test-strcasestr.c (main): Likewise.
92656         * tests/test-striconv.c (main): Likewise.
92657         * tests/test-striconveh.c (main): Likewise.
92658         * tests/test-striconveha.c (main): Likewise.
92659         * tests/test-strstr.c (main): Likewise.
92661         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92663         bootstrap: sync from coreutils again
92664         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92666 2008-03-01  Jim Meyering  <meyering@redhat.com>
92668         bootstrap: sync from coreutils
92669         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92670         also when the target doesn't exist.
92672 2008-03-01  Eric Blake  <ebb9@byu.net>
92674         Fix bugs in last patch.
92675         * lib/memchr2.c (memchr2): Fix typo.
92676         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92677         extension.
92678         Reported by Bruce Korb.
92680         New module 'memchr2'.
92681         * modules/memchr2: New file.
92682         * modules/memchr2-tests: Likewise.
92683         * lib/memchr2.h: Likewise.
92684         * lib/memchr2.c: Likewise, based on memchr.c.
92685         * tests/test-memchr2.c: New test.
92686         * MODULES.html.sh (String handling): Add memchr2.
92688 2008-02-29  Bruno Haible  <bruno@clisp.org>
92690         * modules/freadseek-tests: New file.
92691         * tests/test-freadseek.sh: New file.
92692         * tests/test-freadseek.c: New file.
92694         New module 'freadseek'.
92695         * modules/freadseek: New file.
92696         * lib/freadseek.h: New file.
92697         * lib/freadseek.c: New file.
92698         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92700 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92702         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92703         wydawca.
92705         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92706         program_invocation_name and program_invocation_short_name are
92707         present.
92709 2008-02-28  Bruno Haible  <bruno@clisp.org>
92711         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92712         * tests/test-freadptr.sh: Also test non-seekable stdin.
92714 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92716         * build-aux/bootstrap (source_base, m4_base)
92717         (doc_base, tests_base): New variables.
92718         (gnulib_tool_options): Do not hardcode base directories, use
92719         the above variables instead.
92721 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92723         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92725 2008-02-28  Bruno Haible  <bruno@clisp.org>
92727         * modules/freadptr-tests: New file.
92728         * tests/test-freadptr.sh: New file.
92729         * tests/test-freadptr.c: New file.
92731         New module 'freadptr'.
92732         * modules/freadptr: New file.
92733         * lib/freadptr.h: New file.
92734         * lib/freadptr.c: New file.
92735         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92737 2008-02-26  Karl Berry  <karl@freefriends.org>
92739         Sync from Libtool:
92740         * libltdl/argz.c (argz_add, argz_count): New functions.
92741         * libltdl/argz.in.h: Declare them.
92742         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92744 2008-02-22  Bruno Haible  <bruno@clisp.org>
92746         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92747         is a pointer type.  Needed for HP-UX 10.
92748         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92749         * doc/posix-functions/gmtime_r.texi: Likewise.
92750         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92752 2008-02-24  Bruno Haible  <bruno@clisp.org>
92754         * modules/environ-tests: New file.
92755         * tests/test-environ.c: New file.
92757         New module 'environ'.
92758         * modules/environ: New file.
92759         * lib/unistd.in.h (environ): New declaration.
92760         * m4/environ.m4: New file.
92761         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92762         after use.
92763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92764         HAVE_DECL_ENVIRON.
92765         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92766         HAVE_DECL_ENVIRON.
92767         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92768         wrong claim that 'environ' is missing on some systems.
92769         * modules/execute (Depends-on): Add environ.
92770         * lib/execute.c (environ): Remove fallback declaration.
92771         * modules/pipe (Depends-on): Add environ.
92772         * lib/pipe.c (environ): Remove fallback declaration.
92773         * modules/setenv (Depends-on): Add environ.
92774         * lib/setenv.c (environ): Remove fallback declaration.
92775         * modules/unsetenv (Depends-on): Add environ.
92776         * lib/unsetenv.c (environ): Remove fallback declaration.
92777         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92778         m4/environ.m4.
92779         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92780         (gl_PREREQ_UNSETENV): Likewise.
92782 2008-02-24  Bruno Haible  <bruno@clisp.org>
92784         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92786 2008-02-20  Bob Proulx  <bob@proulx.com>
92788         Enable use of older two part flavor 'git describe'.
92789         * build-aux/git-version-gen: If using the older two part flavor of
92790         git version then recreate the third part now present in the
92791         newer three part flavor of git describe.
92793 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92795         * lib/fts.c (fts_build): Typo correction to comment.
92797 2008-02-17  Bruno Haible  <bruno@clisp.org>
92799         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92800         generating no-op conflicts.
92802 2008-02-17  Bruno Haible  <bruno@clisp.org>
92804         Speed up by 10%.
92805         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92806         result_entries, rather than an index-based loop.
92808 2008-02-17  Bruno Haible  <bruno@clisp.org>
92810         Speed up by 25%.
92811         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92812         'hashcode_cached'.
92813         (entry_create): New function.
92814         (entry_hashcode): Use the cached hashcode if possible.
92815         (read_changelog_file, try_split_merged_entry): Use entry_create.
92817 2008-02-17  Bruno Haible  <bruno@clisp.org>
92819         Speed up from O(n^2) to O(n) for long ChangeLog files.
92820         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92821         (read_changelog_file): Change implementation of entries_reversed list
92822         to rbtreehash.
92823         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92825 2008-02-17  Bruno Haible  <bruno@clisp.org>
92827         New option --split-merged-entry.
92828         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92829         (find_paragraph_end, try_split_merged_entry): New functions.
92830         (long_options): Add option --split-merged-entry.
92831         (usage): Document option --split-merged-entry.
92832         (main): Implement option --split-merged-entry.
92833         Reported by Eric Blake.
92835 2008-02-17  Bruno Haible  <bruno@clisp.org>
92837         * lib/git-merge-changelog.c: Include c-strstr.h.
92838         (main): Support the "git pull --rebase" situation.
92839         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92840         Reported by Eric Blake.
92842 2008-02-16  Eric Blake  <ebb9@byu.net>
92844         Avoid doubling \ in common case of "c-maybe" quoting style.
92845         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92846         eliding outer quotes.
92847         * lib/quotearg.h: Document this.
92848         * tests/test-quotearg.c (result_strings, inputs, results_g)
92849         (flag_results, locale_results): Test it by adding a new string to
92850         each test group.
92851         (compare_strings): Test new string.
92853 2008-02-13  Eric Blake  <ebb9@byu.net>
92855         Avoid trigraph quoting in default output.
92856         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92857         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92858         unless explicitly requested.
92859         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92861 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92863         Don't rely on signed integer overflowing to negative value.
92864         * lib/getugroups.c (getugroups): Include <limits.h>.
92865         Instead, compare against INT_MAX, and increment only if the test passes.
92867 2008-02-13  Jim Meyering  <meyering@redhat.com>
92868         and Eric Blake  <ebb9@byu.net>
92870         Avoid shadowing warning and compile errors on Linux.
92871         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92872         forwarding macros on Linux.
92873         (dcgettext): Define a stub, for Linux.
92874         (results_g, main): Avoid warnings.
92876 2008-02-12  Eric Blake  <ebb9@byu.net>
92878         Silence warning in last patch.
92879         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92881         Quotearg part 4: add tests, fix c-maybe colon quoting.
92882         * lib/quotearg.h: Improve documentation.
92883         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92884         escapes when adding outer quotes.  When quoting trigraphs, use
92885         valid C notation.  When quoting NUL, omit extra characters if next
92886         character is not digit.  Alter prototype.
92887         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92888         callers.
92889         * modules/quotearg-tests: New module.
92890         * tests/test-quotearg.c: New test.
92892 2008-02-07  Eric Blake  <ebb9@byu.net>
92894         Quotearg part 3: add flag to control outer quote elision.
92895         * lib/quotearg.h (c_maybe_quoting_style): New style.
92896         (enum quoting_flags): Better documentation of flags.
92897         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92898         c-maybe style.
92899         (quotearg_buffer_restyled): Handle new flag to elide outer
92900         quotes.
92902         Quotearg part 2: add flag that can control NUL elision.
92903         * lib/quotearg.h (set_quoting_flags): New prototype.
92904         * lib/quotearg.c (struct quoting_options): Add flag field.
92905         (set_quoting_flags): New function.
92906         (quotearg_buffer_restyled): Add flags parameter.
92907         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92908         (quotearg_n_options): Set the flag, since length cannot be
92909         returned.
92910         (quoting_options_from_style): Default flags correctly.
92912         Quotearg part 1: more wrappers, restore quotearg_char state.
92913         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92914         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92915         (quotearg_colon_mem): New wrappers.
92916         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92917         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92918         functions.
92919         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92920         (quotearg_colon_mem): New functions.
92922 2008-02-11  Bruno Haible  <bruno@clisp.org>
92924         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92925         library in the current directory: it does not work with parallel make.
92926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92928 2008-02-11  Bruno Haible  <bruno@clisp.org>
92930         * .gitattributes: New file.
92932 2008-02-11  Jim Meyering  <meyering@redhat.com>
92934         useless-if-before-free: Fix reversed exit values.
92935         * build-aux/useless-if-before-free: Use correct values
92936         for EXIT_MATCH and EXIT_NO_MATCH.
92938         * build-aux/useless-if-before-free: Close stdout carefully.
92940 2008-02-10  Bruno Haible  <bruno@clisp.org>
92942         New module 'git-merge-changelog'.
92943         * modules/git-merge-changelog: New file.
92944         * lib/git-merge-changelog.c: New file.
92946 2008-02-10  Jim Meyering  <meyering@redhat.com>
92948         useless-if-before-free: New option: --list (-l).
92950         useless-if-before-free: Don't exit immediately upon open failure.
92951         * build-aux/useless-if-before-free: Exit 2 for errors.
92952         Upon failure to open a file, don't exit immediately.
92953         Rather, just warn and continue with any remaining files.
92955 2008-02-10  Bruno Haible  <bruno@clisp.org>
92957         New abstract list operation 'node_set_value'.
92958         * lib/gl_list.h (gl_list_node_set_value): New function.
92959         (struct gl_list_implementation): New field node_set_value.
92960         * lib/gl_list.c (gl_list_node_set_value): New function.
92961         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92962         (gl_array_list_implementation): Update.
92963         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92964         (gl_carray_list_implementation): Update.
92965         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92966         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92967         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92968         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
92969         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92970         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92971         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92972         Update.
92973         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92974         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
92975         (gl_sublist_list_implementation): Update.
92977 2008-02-10  Bruno Haible  <bruno@clisp.org>
92979         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
92980         Needed when ELEMENT is #defined to 'some_type *'.
92982 2008-02-10  Jim Meyering  <meyering@redhat.com>
92984         New script and module: useless-if-before-free
92985         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
92986         * build-aux/useless-if-before-free: New file.
92987         * modules/useless-if-before-free: New file.
92989         * build-aux/gitlog-to-changelog: Use committer date, not author date.
92991         xstrtol_error: Fix typo.
92992         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
92993         s/exit_failure/exit_status/.
92995 2008-02-09  Jim Meyering  <meyering@redhat.com>
92997         New script and module: gitlog-to-changelog
92998         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
92999         * modules/gitlog-to-changelog: New file.
93000         * build-aux/gitlog-to-changelog: New file.
93002 2008-02-08  Jim Meyering  <meyering@redhat.com>
93004         Avoid two "parameter unused" warnings.
93005         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93006         Mark "st" as used.
93008         Use "git COMMAND", not "git-COMMAND".
93009         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93010         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93011         * build-aux/git-version-gen: Use "git status", not "git-status".
93013 2008-02-07  Bruno Haible  <bruno@clisp.org>
93015         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93016         Avoids a crash on Windows Vista.
93017         Reported by Adam Strzelecki <ono@java.pl> via
93018         Simon Josefsson <simon@josefsson.org>.
93020 2008-02-06  Bruno Haible  <bruno@clisp.org>
93022         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93023         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93024         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93026         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93027         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93028         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93029         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93037         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93038         left-adjust flag.
93039         * tests/test-snprintf-posix.h (test_function): Likewise.
93040         * tests/test-sprintf-posix.h (test_function): Likewise.
93041         * tests/test-vasprintf-posix.c (test_function): Likewise.
93042         * doc/posix-functions/fprintf.texi: Update.
93043         * doc/posix-functions/printf.texi: Update.
93044         * doc/posix-functions/snprintf.texi: Update.
93045         * doc/posix-functions/sprintf.texi: Update.
93046         * doc/posix-functions/vfprintf.texi: Update.
93047         * doc/posix-functions/vprintf.texi: Update.
93048         * doc/posix-functions/vsnprintf.texi: Update.
93049         * doc/posix-functions/vsprintf.texi: Update.
93050         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93052 2008-02-06  Bruno Haible  <bruno@clisp.org>
93054         Fix bug introduced on 2008-01-26.
93055         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93057 2008-02-06  Bruno Haible  <bruno@clisp.org>
93059         Fix bug introduced on 2007-06-10.
93060         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93061         !NEED_PRINTF_FLAG_ZERO.
93063 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93065         getloadavg: use libperfstat on AIX5
93066         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93068 2008-02-03  Bruno Haible  <bruno@clisp.org>
93070         * lib/diffseq.h: Add comments about required #includes.
93071         Reported by Michael Biggs <gnulib@doubleplum.net>.
93073 2008-02-01  Bruno Haible  <bruno@clisp.org>
93075         * users.txt: Add gnuit.
93077 2008-01-31  Bruno Haible  <bruno@clisp.org>
93079         * lib/md4.c (set_uint32): Mark as inline.
93080         * lib/md5.c (set_uint32): Likewise.
93081         * lib/sha1.c (set_uint32): Likewise.
93082         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
93083         * m4/md5.m4 (gl_MD5): Likewise.
93084         * m4/sha1.m4 (gl_SHA1): Likewise.
93086 2008-01-31  Jim Meyering  <meyering@redhat.com>
93088         Use "sizeof VAR", rather than a literal "4".
93089         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
93090         * lib/md4.c (md4_read_ctx): Likewise.
93091         * lib/sha1.c (sha1_read_ctx): Likewise.
93093 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93095         * tests/test-sha1.c: New file, based on test-md5.c.
93097         * modules/crypto/sha1-tests: New file.
93099 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93101         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
93103 2008-01-31  Jim Meyering  <meyering@redhat.com>
93105         Prefer "sizeof v" over the equivalent "4".
93106         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
93107         * lib/md5.c (set_uint32): Likewise.
93108         * lib/sha1.c (set_uint32): Likewise.
93110 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93112         * lib/sha1.c (set_uint32): Mark function as static.
93114 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93116         md2: clarify comments to say that alignment is not required.
93117         * lib/md2.h: Remove warning about alignment in comment.
93118         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93119         never been required.
93121 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93123         md4: adapt alignment constraint fix from sha1.
93124         * lib/md4.c (set_uint32): New function, from sha1.c
93125         (md4_read_ctx): Use it.
93126         (md4_finish_ctx): Doc fix.
93127         * lib/md4.h: Doc fix.
93129 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93131         md5: adapt alignment constraint fix from sha1.
93132         * lib/md5.c (set_uint32): New function, from sha1.c
93133         (md5_read_ctx): Use it.
93134         (md5_finish_ctx): Doc fix.
93135         * lib/md5.h: Doc fix.
93137 2008-01-30  Peter Palfrader  <weasel@debian.org>
93139         sha1: remove the result buffer alignment constraint
93140         * lib/sha1.c (set_uint32): New function.
93141         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93142         constraint.
93143         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93144         * lib/sha1.h: Likewise.
93146 2008-01-30  Andreas Schwab  <schwab@suse.de>
93147             Bruno Haible  <bruno@clisp.org>
93149         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93150         correct definition of LDBL_MIN_EXP.
93152 2008-01-30  Karl Berry  <karl@gnu.org>
93154         * config/srclist-update: try to preserve x bit on updates.
93155         * config/srclistvars.sh: update for karl.
93157 2008-01-29  Jim Meyering  <meyering@redhat.com>
93159         vasnprintf.c: Avoid warning about unused label
93160         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93161         "overflow" label definition and associated code with the
93162         same cpp condition that guards the sole use of that label.
93164 2008-01-26  Bruno Haible  <bruno@clisp.org>
93166         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93167         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93168         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93169         * lib/isnanl-nolibm.h (isnanl): Likewise.
93170         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93172 2008-01-26  Bruno Haible  <bruno@clisp.org>
93174         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93175         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93177 2008-01-26  Bruno Haible  <bruno@clisp.org>
93179         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93180         GCC >= 4.0 built-in.
93181         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93183 2008-01-26  Bruno Haible  <bruno@clisp.org>
93185         Rename isnan, applicable to 'double' only, to isnand.
93186         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93187         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93188         (configure.ac): Update.
93189         (Include): Replace "isnan.h" with "isnand.h".
93190         * m4/isnand.m4: Renamed from m4/isnan.m4.
93191         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93192         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93193         instead of isnan.c.
93194         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93195         instead of HAVE_ISNAN_IN_LIBC.
93196         (isnand): Renamed from isnan.
93197         * lib/isnand.c: New file.
93198         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93199         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93200         (Makefile.am): Update.
93201         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93202         Include isnand.h instead of isnan.h.
93203         (main): Test isnand instead of isnan.
93204         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93205         isnan-nolibm.
93206         * modules/frexp (Depends-on): Likewise.
93207         * modules/frexp-tests (Depends-on): Likewise.
93208         * modules/frexp-nolibm (Depends-on): Likewise.
93209         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93210         * modules/isfinite (Depends-on): Likewise.
93211         * modules/round-tests (Depends-on): Likewise.
93212         * modules/signbit (Depends-on): Likewise.
93213         * modules/signbit-tests (Depends-on): Likewise.
93214         * modules/snprintf-posix (Depends-on): Likewise.
93215         * modules/sprintf-posix (Depends-on): Likewise.
93216         * modules/trunc-tests (Depends-on): Likewise.
93217         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93218         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93219         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93220         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93221         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93222         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93223         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93224         * modules/vasnprintf-posix (Depends-on): Likewise.
93225         * modules/vasprintf-posix (Depends-on): Likewise.
93226         * modules/vfprintf-posix (Depends-on): Likewise.
93227         * modules/vsnprintf-posix (Depends-on): Likewise.
93228         * modules/vsprintf-posix (Depends-on): Likewise.
93229         * lib/frexp.c: Include isnand.h instead of isnan.h.
93230         (ISNAN): Set to isnand instead of isnan.
93231         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93232         (gl_isfinited): Use isnand instead of isnan.
93233         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93234         (gl_signbitd): Use isnand instead of isnan.
93235         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93236         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93237         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93238         (main): Use isnand instead of isnan.
93239         * tests/test-round1.c: Include isnand.h.
93240         (main): Use isnand instead of isnan.
93241         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93242         (ISNAN): Set to isnand instead of isnan.
93243         * tests/test-trunc1.c: Include isnand.h.
93244         (main): Use isnand instead of isnan.
93245         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93246         (equal): Use isnand instead of isnan.
93247         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93248         isnand-nolibm.
93249         * NEWS: Mention the change.
93251 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93252             Bruno Haible  <bruno@clisp.org>
93254         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93255         the GCC builtins for signbits are present and set
93256         REPLACE_SIGNBIT_USING_GCC if so.
93257         * lib/math.in.h (signbit): Define using GCC builtins if
93258         REPLACE_SIGNBIT_USING_GCC is set.
93259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93260         REPLACE_SIGNBIT_USING_GCC.
93261         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93263 2008-01-25  Jim Meyering  <meyering@redhat.com>
93265         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93266         * lib/poll.c: Include <config.h>, not "config.h".
93267         * tests/test-getaddrinfo.c: Likewise.
93269 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93271         * modules/sockets-tests: New file.
93273 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93275         * modules/sockets: New module, can be used to call WSA_Startup and
93276         WSA_Cleanup when needed.
93278         * lib/sockets.h, lib/sockets.c: New files.
93280         * m4/sockets.m4: New file.
93282         * tests/test-sockets.c: New file.
93284 2008-01-19  Bruno Haible  <bruno@clisp.org>
93286         * doc/posix-headers: Renamed from doc/headers.
93287         * doc/posix-functions: Renamed from doc/functions.
93288         * doc/gnulib.texi: Update.
93290 2008-01-19  Bruno Haible  <bruno@clisp.org>
93292         * doc/glibc-functions/strcasestr.texi: Include contents of
93293         doc/functions/strcasestr.texi, fixing the list of platforms.
93294         * doc/functions/strcasestr.texi: Remove file.
93296 2008-01-19  Bruno Haible  <bruno@clisp.org>
93298         * doc/glibc-functions/memmem.texi: Include contents of
93299         doc/functions/memmem.texi.
93300         * doc/functions/memmem.texi: Remove file.
93302 2008-01-18  Bruno Haible  <bruno@clisp.org>
93304         * doc/glibc-functions/*.texi: New files.
93305         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93306         to use the new files.
93308 2008-01-17  Bruno Haible  <bruno@clisp.org>
93310         * tests/test-gethostname.c (main): Fix printf statement.
93312 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93314         * modules/gethostname-tests: New file.
93316         * tests/test-gethostname.c: New file.
93318 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93320         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93321         used by the UNAME case.  Reported by Bruno Haible
93322         <bruno@clisp.org>.
93324 2008-01-17  Eric Blake  <ebb9@byu.net>
93326         Convert c-strcasestr to be more efficient.
93327         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93328         (Depends-on): Add c-strcase, remove malloca, strnlen.
93329         * tests/test-c-strcasestr.c (main): Enhance test.
93330         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93332 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93334         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93335         Use it in creating po/Makevars.
93337 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93339         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93340         Applications that requires it should initialize libgcrypt
93341         manually.
93343 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93345         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93347 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93349         Fix problem with getdate on mingw32 reported by Simon Josefsson
93350         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93351         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93352         tzname", when deciding whether to declare tzname.
93353         * lib/strftime.c (tzname): Likewise.
93355 2008-01-15  Bruno Haible  <bruno@clisp.org>
93357         Work around a MacOS X 10.5 bug in frexpl().
93358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93359         * doc/functions/frexpl.texi: Document the bug.
93360         Reported by Elias Pipping <pipping@gentoo.org>.
93362 2008-01-14  Eric Blake  <ebb9@byu.net>
93364         Touch up previous patch.
93365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93366         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93368         Convert strcasestr module to use Two-Way algorithm.
93369         * modules/strcasestr-simple: New module, based on the old
93370         strcasestr, but with Two-Way rather than KMP.
93371         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93372         * lib/string.in.h (rpl_strcasestr): Declare.
93373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93374         performance.
93375         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93376         * modules/string (Makefile.am): Support strcasestr.
93377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93378         * modules/strcasestr-tests (Depends-on): Check for alarm.
93379         * tests/test-strcasestr.c: Augment test.
93380         * lib/str-two-way.h: Clean up stray macro.
93381         * NEWS: Document new module.
93382         * MODULES.html.sh (string handling): Likewise.
93383         * doc/functions/strcasestr.texi: New file.
93384         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93385         here, since it is not a POSIX function.
93387 2008-01-14  Colin Watson  <cjwatson@debian.org>
93388             Bruno Haible  <bruno@clisp.org>
93390         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93391         works fine; if not, set REPLACE_STRSIGNAL.
93392         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93394         REPLACE_STRSIGNAL.
93395         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93396         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93397         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93399 2008-01-14  Bruno Haible  <bruno@clisp.org>
93401         * modules/strsignal (Include): Change to <string.h>.
93403 2008-01-14  Colin Watson  <cjwatson@debian.org>
93405         * modules/argp (Notice): Add a notice recommending to change
93406         XGETTEXT_OPTIONS.
93407         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93409 2008-01-13  Colin Watson  <cjwatson@debian.org>
93411         * modules/strsignal-tests: New file.
93412         * tests/test-strsignal.c: New file.
93414         * lib/strsignal.c: New file, from glibc with modifications.
93415         * lib/siglist.h: New file, from glibc with modifications.
93416         * lib/string.in.h (strsignal): New declaration.
93417         * m4/strsignal.m4: New file.
93418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93419         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93420         * modules/strsignal: New file.
93421         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93422         HAVE_DECL_STRSIGNAL.
93424 2008-01-13  Bruno Haible  <bruno@clisp.org>
93426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93427         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93428         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93431 2008-01-13  Bruno Haible  <bruno@clisp.org>
93433         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93434         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93435         * lib/argp.h (__attribute__): Likewise.
93436         * lib/c-stack.c (__attribute__): Likewise.
93437         * lib/error.h (__attribute__): Likewise.
93438         * lib/fts.c (__attribute__): Likewise.
93439         * lib/openat.h (__attribute__): Likewise.
93440         * lib/stdio.in.h (__attribute__): Likewise.
93441         * lib/string.in.h (__attribute__): Likewise.
93442         * lib/utimens.c (__attribute__): Likewise.
93443         * lib/vasnprintf.h (__attribute__): Likewise.
93444         * lib/xalloc.h (__attribute__): Likewise.
93445         * lib/xprintf.h (__attribute__): Likewise.
93446         * lib/xstrtol.h (__attribute__): Likewise.
93447         * lib/xvasprintf.h (__attribute__): Likewise.
93449 2008-01-12  Bruno Haible  <bruno@clisp.org>
93451         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93452         * doc/glibc-headers/a.out.texi: New file.
93453         * doc/glibc-headers/aliases.texi: New file.
93454         * doc/glibc-headers/alloca.texi: New file.
93455         * doc/glibc-headers/ar.texi: New file.
93456         * doc/glibc-headers/argp.texi: New file.
93457         * doc/glibc-headers/argz.texi: New file.
93458         * doc/glibc-headers/byteswap.texi: New file.
93459         * doc/glibc-headers/crypt.texi: New file.
93460         * doc/glibc-headers/endian.texi: New file.
93461         * doc/glibc-headers/envz.texi: New file.
93462         * doc/glibc-headers/err.texi: New file.
93463         * doc/glibc-headers/error.texi: New file.
93464         * doc/glibc-headers/execinfo.texi: New file.
93465         * doc/glibc-headers/fpu_control.texi: New file.
93466         * doc/glibc-headers/fstab.texi: New file.
93467         * doc/glibc-headers/fts.texi: New file.
93468         * doc/glibc-headers/getopt.texi: New file.
93469         * doc/glibc-headers/ieee754.texi: New file.
93470         * doc/glibc-headers/ifaddrs.texi: New file.
93471         * doc/glibc-headers/libintl.texi: New file.
93472         * doc/glibc-headers/mcheck.texi: New file.
93473         * doc/glibc-headers/mntent.texi: New file.
93474         * doc/glibc-headers/obstack.texi: New file.
93475         * doc/glibc-headers/paths.texi: New file.
93476         * doc/glibc-headers/printf.texi: New file.
93477         * doc/glibc-headers/pty.texi: New file.
93478         * doc/glibc-headers/resolv.texi: New file.
93479         * doc/glibc-headers/shadow.texi: New file.
93480         * doc/glibc-headers/sysexits.texi: New file.
93481         * doc/glibc-headers/ttyent.texi: New file.
93483 2008-01-12  Jim Meyering  <meyering@redhat.com>
93485         announce-gen: emit Gnulib's git-based version string.
93486         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93487         New option --gnulib-version=V, where V is expected to be
93488         the output of running git describe in the gnulib directory.
93489         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93490         not useful, and plan to stop publishing an xdelta file with each
93491         coreutils release.
93493         * build-aux/announce-gen: Also check for lzma-compressed files.
93495 2008-01-11  Bruno Haible  <bruno@clisp.org>
93497         * tests/test-memmem.c (main): Increase maximum allowed time.
93498         * tests/test-strstr.c (main): Likewise.
93500 2008-01-11  Bruno Haible  <bruno@clisp.org>
93502         * doc/functions/memmem.texi: Add more precisions about platforms.
93503         * doc/functions/strstr.texi: Likewise.
93505 2008-01-10  Eric Blake  <ebb9@byu.net>
93507         * m4/strstr.m4: Delete cruft from copy-n-paste.
93508         Reported by Bruno Haible.
93510 2008-01-10  Bruno Haible  <bruno@clisp.org>
93512         Make c-strstr rely on strstr.
93513         * lib/c-strstr.c: Don't include str-kmp.h.
93514         (c_strstr): Define in terms of strstr.
93515         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93516         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93518 2008-01-10  Bruno Haible  <bruno@clisp.org>
93520         * doc/gnulib.texi (String Functions in C Locale): New section.
93521         * doc/c-ctype.texi: New file.
93522         * doc/c-strcase.texi: New file.
93523         * doc/c-strcaseeq.texi: New file.
93524         * doc/c-strcasestr.texi: New file.
93525         * doc/c-strstr.texi: New file.
93526         * doc/c-strtod.texi: New file.
93527         * doc/c-strtold.texi: New file.
93529 2008-01-10  Eric Blake  <ebb9@byu.net>
93531         * lib/relocatable.h: Fix a comment.
93533 2008-01-10  Eric Blake  <ebb9@byu.net>
93535         Share two-way algorithm.
93536         * lib/str-two-way.h: New file, merged from...
93537         * lib/memmem.c: ...here...
93538         * lib/strstr.c: ...and here.
93539         * modules/memmem (Files): Use it.
93540         * modules/strstr (Files): Likewise.
93542         Avoid quadratic strstr implementations.
93543         * lib/strstr.c: New file.
93544         * m4/strstr.m4: Likewise.
93545         * modules/strstr: Likewise.
93546         * modules/strstr-tests: Likewise.
93547         * tests/test-strstr.c: Likewise.
93548         * lib/string.in.h (rpl_strstr): Declare.
93549         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93551         * modules/string (Makefile.am): Likewise.
93552         * MODULES.html.sh (string handling): Mention new module.
93553         * doc/functions/strstr.texi (strstr): Document the bug.
93555 2008-01-10  Bruno Haible  <bruno@clisp.org>
93557         * lib/relocatable.h (relocate): State whether result is freshly
93558         allocated or not.
93559         * lib/relocatable.c (relocate): Return a freshly allocated string
93560         instead of a pointer to a privately held string.
93561         Reported by Sylvain Beucler <beuc@gnu.org>.
93563 2008-01-10  Colin Watson  <cjwatson@debian.org>
93565         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93566         s/S_ISNLK/S_ISLNK/.
93568 2008-01-09  Bruno Haible  <bruno@clisp.org>
93570         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93571         and other files.
93572         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93573         if it's only a guess.
93574         * modules/memmem: Simplify by depending on memmem-simple.
93576 2008-01-09  Bruno Haible  <bruno@clisp.org>
93578         Work around OpenBSD 4.0 tdelete() bug.
93579         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93580         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93581         macros and don't redefine the enum values.
93582         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93583         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93584         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93586 2008-01-09  Bruno Haible  <bruno@clisp.org>
93588         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93589         (main): Don't perform the tests if setlocale did not install a UTF-8
93590         locale. Needed on OpenBSD 4.0.
93591         * modules/wcwidth-tests (Depends-on): Add localcharset.
93593 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93595         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93596         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93597         * NEWS: announce this.
93598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93600 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93601         and Eric Blake  <ebb9@byu.net>
93603         Add memmem-simple module.
93604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93605         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93606         * modules/memmem-simple: New file.
93607         * modules/memmem (Description): Tweak.
93608         * MODULES.html.sh (string handling): Mention new module.
93609         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93610         addressed by memmem-simple.
93611         * NEWS: Document the difference.
93613 2008-01-09  Eric Blake  <ebb9@byu.net>
93615         Give gcc some memmem optimization hints.
93616         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93617         (strcasestr): Declare as pure.
93618         * modules/memmem (Maintainer): Claim my implementation.
93620 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93622         Support AIX 6.1 and higher.
93623         * build-aux/config.libpath: Likewise.
93624         * build-aux/config.rpath: Likewise.
93626 2008-01-08  Jim Meyering  <meyering@redhat.com>
93627             Bruno Haible  <bruno@clisp.org>
93629         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93630         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93631         Reported by Peter Fales in
93632         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93634 2008-01-08  Bruno Haible  <bruno@clisp.org>
93636         * modules/unictype/category-of (Depends-on): Add
93637         unictype/category-none.
93638         * modules/unictype/category-and-tests (Depends-on): Add
93639         unictype/category-{L,N,Lu,Nd}.
93640         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93641         * modules/unictype/category-or-tests (Depends-on): Add
93642         unictype/category-{L,N}.
93643         * modules/unictype/category-name-tests (Depends-on): Add
93644         unictype/category-{Z,Nl}.
93645         Reported by Simon Josefsson.
93647 2008-01-08  Bruno Haible  <bruno@clisp.org>
93649         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93650         convention better.
93651         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93652         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93653         Reported by Peter Miller <millerp@canb.auug.org.au>.
93655 2008-01-08  Eric Blake  <ebb9@byu.net>
93657         Rewrite memmem to guarantee linear complexity without malloc.
93658         * lib/memmem.c (memmem): Use Two-Way rather than
93659         Knuth-Morris-Pratt, to allow O(1) space usage.
93660         (critical_factorization, two_way_short_needle)
93661         (two_way_long_needle): New functions.
93662         (knuth_morris_pratt): Delete.
93663         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93664         Add stdint.
93665         * tests/test-memmem.c (main): Add tests for periodic needle and
93666         sublinear performance.
93667         * doc/functions/memmem.texi (memmem): Document other deficiencies
93668         in cygwin and older glibc.
93670 2008-01-08  Bruno Haible  <bruno@clisp.org>
93672         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93673         augmentation.
93675 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93677         Add a configure time option: --disable-acl.
93678         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93679         AC_ARG_ENABLE(acl).
93681 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93683         * tests/test-localename.c: Don't include obsolete "setenv.h".
93685         * modules/localename-tests (Depends-on): Need unsetenv.
93687 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93689         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93691 2008-01-06  Colin Watson  <cjwatson@debian.org>
93693         * users.txt: Add man-db.
93695 2008-01-07  Bruno Haible  <bruno@clisp.org>
93697         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93698         previous section name.
93700 2008-01-07  Bruno Haible  <bruno@clisp.org>
93702         * lib/progname.c (set_program_name): Don't strip off a leading
93703         "lt-" prefix outside a .libs directory.
93704         Suggested by Paul Eggert.
93706 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93707             Bruno Haible  <bruno@clisp.org>
93709         Improve memory cleanup in 'relocatable' module.
93710         * lib/relocatable.h (compute_curr_prefix): Change return type to
93711         'char *'.
93712         * lib/relocatable.c (compute_curr_prefix): Change return type to
93713         'char *'. Free curr_installdir after use.
93714         (relocate): Free curr_prefix_better after use.
93715         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93717 2008-01-01  Bruno Haible  <bruno@clisp.org>
93719         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93720         failure on older glibc systems.
93721         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93723 2008-01-05  Eric Blake  <ebb9@byu.net>
93725         Avoid quadratic system memmem.
93726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93727         Reported by Ralf Wildenhues.
93729         Fix memmem test for mingw.
93730         * modules/memmem-tests (configure.ac): Check for alarm.
93731         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93732         it.
93733         * doc/functions/memmem.texi: New file.
93734         * doc/gnulib.texi (Function Substitutes): Add memmem.
93735         Reported by Bruno Haible.
93737 2008-01-04  Bruno Haible  <bruno@clisp.org>
93739         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93740         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93741         gl_HEADER_STRING_H_DEFAULTS.
93743 2008-01-04  Eric Blake  <ebb9@byu.net>
93745         Shorten duration of memmem test.
93746         * tests/test-memmem.c (main): Use alarm to declare failure if test
93747         is taking too long.
93748         Reported by Ralf Wildenhues.
93750 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93752         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93753         string, needed by strerror.
93755 2008-01-03  Colin Watson  <cjwatson@debian.org>
93756             Bruno Haible  <bruno@clisp.org>
93758         * doc/gnulib-tool.texi (Localization): New section.
93760 2008-01-02  Bruno Haible  <bruno@clisp.org>
93762         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93763         variables to 'unsigned char *' type.
93764         Reported by Paul Eggert.
93766 2008-01-02  Jim Meyering  <jim@meyering.net>
93768         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93770 2007-12-31  Jim Meyering  <jim@meyering.net>
93772         Avoid use of private FTS type name.
93773         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93775 2007-12-30  Karl Berry  <karl@gnu.org>
93777         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93778         work around defect in Texinfo and/or the standalone Info browser.
93780 2007-12-30  Bruno Haible  <bruno@clisp.org>
93782         Unify 5 copies of the KMP code.
93783         * lib/str-kmp.h: New file.
93784         * lib/c-strcasestr.c: Include str-kmp.h.
93785         (knuth_morris_pratt): Remove function.
93786         (c_strcasestr): Update.
93787         * lib/c-strstr.c: Include str-kmp.h.
93788         (knuth_morris_pratt): Remove function.
93789         (c_strcasestr): Update.
93790         * lib/mbscasestr.c: Include str-kmp.h.
93791         (knuth_morris_pratt_unibyte): Remove function.
93792         * lib/mbsstr.c: Include str-kmp.h.
93793         (knuth_morris_pratt_unibyte): Remove function.
93794         * lib/strcasestr.c: Include str-kmp.h.
93795         (knuth_morris_pratt): Remove function.
93796         (strcasestr): Update.
93797         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93798         * modules/c-strstr (Files): Likewise.
93799         * modules/mbscasestr (Files): Likewise.
93800         * modules/mbsstr (Files): Likewise.
93801         * modules/strcasestr (Files): Likewise.
93802         Suggested by Paul Eggert.
93804 2007-12-30  Bruno Haible  <bruno@clisp.org>
93806         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93807         defined.
93809 2007-12-30  Bruno Haible  <bruno@clisp.org>
93811         * lib/xmalloca.h: Include xalloc.h.
93812         (xnmalloca): New macro.
93814 2007-12-30  Bruno Haible  <bruno@clisp.org>
93816         * lib/malloca.h (nmalloca): New macro.
93817         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93818         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93819         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93820         knuth_morris_pratt_multibyte): Likewise.
93821         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93822         knuth_morris_pratt_multibyte): Likewise.
93823         * lib/memmem.c (knuth_morris_pratt): Likewise.
93824         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93826 2007-12-25  Bruno Haible  <bruno@clisp.org>
93828         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93829         * lib/glob.c: Don't include openat.h.
93830         (link_exists2_p): Add back the code that deals with the
93831         !GLOB_ALTDIRFUNC case.
93832         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93833         let it do the filename concatenation.
93834         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93835         * modules/glob (Depends-on): Remove openat.
93837 2007-12-31  Bruno Haible  <bruno@clisp.org>
93839         * modules/dirfd (License): Change to LGPLv2+.
93840         Approved by Jim Meyering.
93842 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93844         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93845         when multiplying M by sizeof (size_t).
93847 2007-12-10  Martin Lambers  <marlam@marlam.de>
93849         Override getpagesize on mingw.
93850         * lib/getpagesize.c: New file.
93851         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93852         * modules/getpagesize (Files): Add lib/getpagesize.c.
93853         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93855         REPLACE_GETPAGESIZE.
93856         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93858 2007-12-25  Bruno Haible  <bruno@clisp.org>
93860         * modules/localcharset (Notice): New field.
93861         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93862         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93864 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93865             Bruno Haible  <bruno@clisp.org>
93867         Avoid using the syntax symbol() in formatted documentation.
93868         * MODULES.html.sh (func_module): When replacing symbol() with a
93869         hyperlink, remove the parentheses. Show an error if some remain.
93870         Recognize and render the '...' syntax.
93871         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93872         Rework. Add paragraph about GCC's inlining.
93873         * doc/alloca.texi: Likewise.
93874         * doc/error.texi: Remove parentheses from symbol reference.
93875         * doc/gnulib-intro.texi: Likewise.
93876         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93877         * modules/fnmatch (Description): Reword to say "the ... function".
93878         * modules/full-read (Description): Likewise.
93879         * modules/full-write (Description): Likewise.
93880         * modules/safe-read (Description): Likewise.
93881         * modules/safe-write (Description): Likewise.
93882         * modules/strchrnul (Description): Likewise.
93883         * modules/trim (Description): Likewise.
93884         * modules/error (Description): Remove parentheses from symbol
93885         references.
93886         * modules/verror (Description): Likewise.
93887         Reported by Karl Berry.
93889 2007-12-25  Bruno Haible  <bruno@clisp.org>
93891         Fixup after 2007-10-16 commit.
93892         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93894 2007-12-24  Bruno Haible  <bruno@clisp.org>
93896         Make --enable-relocatable work with DESTDIR.
93897         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93898         to compute installdir from destprog.
93899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93900         also set the RELOC_DESTDIR variable.
93901         Reported by Левашев Иван <octagram@bluebottle.com>.
93903 2007-12-24  Bruno Haible  <bruno@clisp.org>
93905         Fix link error due to xalloc_die().
93906         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93907         of xreadlink.
93908         * lib/relocwrapper.c: Update comments.
93909         * build-aux/install-reloc: Remove xreadlink.c from file list.
93910         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93911         xreadlink.c.
93912         Reported by Левашев Иван <octagram@bluebottle.com>.
93914 2007-12-24  Bruno Haible  <bruno@clisp.org>
93916         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93917         * lib/setenv.h: Remove file.
93918         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93919         lib/setenv.h.
93920         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93921         (Depends-on): Add stdlib.
93922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93923         gl_FUNC_UNSETENV.
93924         (Include): Replace setenv.h with <stdlib.h>.
93925         * modules/unsetenv: New file.
93926         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93927         * lib/unsetenv.c: Include <stdlib.h> first.
93928         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93929         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93930         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93931         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93932         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93933         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93935         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93936         * doc/functions/unsetenv.texi: Update.
93937         * modules/xsetenv (Depends-on): Add unsetenv.
93938         * modules/getdate (Depends-on): Likewise.
93939         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93940         * lib/xsetenv.c: Don't include setenv.h.
93941         * lib/getdate.y: Likewise.
93942         * lib/relocwrapper.c: Likewise.
93943         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93944         (Depends-on): Add stdlib.
93945         * NEWS: Mention the changes.
93946         Reported by Левашев Иван <octagram@bluebottle.com>.
93948 2007-12-23  Bruno Haible  <bruno@clisp.org>
93950         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93951         indentation.
93953 2007-12-23  Bruno Haible  <bruno@clisp.org>
93955         * lib/c-strcasestr.c: Add more comments.
93956         * lib/c-strstr.c: Likewise.
93957         * lib/mbscasestr.c: Likewise.
93958         * lib/mbsstr.c: Likewise.
93959         * lib/strcasestr.c: Likewise.
93960         * lib/memmem.c: Likewise.
93962 2007-12-23  Bruno Haible  <bruno@clisp.org>
93964         * tests/test-memmem.c: Include <string.h> first.
93966 2007-12-22  Bruno Haible  <bruno@clisp.org>
93968         * gnulib-tool (func_create_testdir): Change $auxdir while generating
93969         the contents of $testsbase.
93970         Reported by Ralf Wildenhues.
93972 2007-12-22  Bruno Haible  <bruno@clisp.org>
93974         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
93975         two variables local_ldadd_before, local_ldadd_last.
93977 2007-12-20  Eric Blake  <ebb9@byu.net>
93979         Work around circular library issue when cross-compiling.
93980         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
93981         that progname.o does not need to pull in rpl_memcmp.
93983 2007-12-19  Eric Blake  <ebb9@byu.net>
93985         Fix memmem to avoid O(n^2) worst-case complexity.
93986         * lib/memmem.c (knuth_morris_pratt): New function.
93987         (memmem): Use it if first few naive iterations fail.
93988         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
93989         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
93990         * modules/memchr (License): Likewise.
93991         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
93992         malloca.
93993         * tests/test-memmem.c: Rewrite, borrowing ideas from
93994         test-mbsstr1.c; the old version wouldn't even compile!
93995         * modules/memmem-tests: New file.
93996         * lib/string.in.h (rpl_memmem): Add declaration.
93997         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
93998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
93999         REPLACE_MEMMEM.
94001 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94003         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94004         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94005         before any system include files, and undef after them all.  This
94006         should fix a problem on VMS reported by John E. Malmberg in
94007         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94009 2007-12-17  Eric Blake  <ebb9@byu.net>
94011         Revert addition of verify, for BSD/OS.
94012         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94013         can't handle large files, for the sake of obsolete platforms.
94014         * modules/fseeko (Depends-on): Remove verify.
94015         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94016         * doc/functions/ftello.texi (ftello): Likewise.
94017         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94018         Reported by Larry Jones.
94020 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94022         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94023         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94025 2007-12-17  Jim Meyering  <meyering@redhat.com>
94027         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94028         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94029         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94030         * modules/getcwd (Depends-on): Add openat.
94031         Reported by Petr Salinger.
94033 2007-12-17  Bruno Haible  <bruno@clisp.org>
94035         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94036         avoid a segmentation fault of the configure test on x86_64 systems.
94038 2007-12-15  Jim Meyering  <meyering@redhat.com>
94040         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94042 2007-12-13  Eric Blake  <ebb9@byu.net>
94044         Another fseek test.
94045         * tests/test-fseek.c (main): Also test ungetc handling.
94046         * tests/test-fseeko.c (main): Likewise.
94047         * modules/fseeko (Depends-on): Add verify.
94048         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94049         large.
94050         Reported by Larry Jones.
94052         Fix fseeko on mingw.
94053         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94054         seek.
94056         Beef up fseek tests.
94057         * tests/test-fseek.c (main): Also test eof handling.
94058         * tests/test-fseeko.c (main): Likewise.
94059         Reported by Larry Jones.
94061 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94063         Fix fseeko on BSD-based platforms.
94064         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94065         successful seek.
94067 2007-12-12  Eric Blake  <ebb9@byu.net>
94069         Allow circular dependency of separate libtests.a
94070         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94071         when use_libtests.
94073 2007-12-11  Eric Blake  <ebb9@byu.net>
94075         Fix bug with -0.0L in previous patch.
94076         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
94077         * tests/test-isnan.c (main): Also test on zeroes.
94078         * tests/test-isnanf.c (main): Likewise.
94079         * tests/test-isnanl.h (main): Likewise.
94081         Detect pseudo-denormals on x86 even when cross-compiling.
94082         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
94083         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
94084         invalid bit patterns that happen to satisfy ==.
94086         Avoid link failures with separate libtests.a.
94087         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
94088         last, to satisfy circular dependencies.
94090 2007-12-11  Eric Blake  <ebb9@byu.net>
94091         and Bruno Haible  <bruno@clisp.org>
94093         Fix OpenBSD 4.0 <float.h> handling of long double.
94094         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
94095         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
94096         * doc/headers/float.texi (float.h): Document OpenBSD bug.
94098 2007-12-11  Jim Meyering  <meyering@redhat.com>
94100         * users.txt: Add libvirt.
94102         Support versions of autoconf prior to 2.59c.
94103         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
94104         if it is not already defined.
94106 2007-12-09  Bruno Haible  <bruno@clisp.org>
94108         Let 'gnulib-tool --import' collect sources needed for the tests in
94109         tests/ rather than in lib/.
94110         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94111         argument. If true, add rules to generate libtests.a, and put libtests.a
94112         into $(LDADD). Consider source files in subdirectories and set
94113         uses_subdirs.
94114         (func_emit_initmacro_start, func_emit_initmacro_end,
94115         func_emit_initmacro_done): Pass all arguments explicitly.
94116         (func_import): Determine two module lists main_modules,
94117         testsrelated_modules. Determine use_libtests. Determine two variables
94118         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94119         instead of just sed_transform_lib_file. Determine two variables
94120         main_files and testsrelated_files. Compute 'files' as the union of
94121         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94122         func_add_or_update. In the generated gnulib-comp.m4, collect the
94123         object files for tests/ in different variables than those for lib/.
94124         Substitute LIBTESTS_LIBDEPS.
94125         (func_create_testdir): Combine the uses_subdirs results from
94126         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94128 2007-12-09  Bruno Haible  <bruno@clisp.org>
94130         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94131         the build-aux directory.
94133 2007-12-09  Bruno Haible  <bruno@clisp.org>
94135         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94136         introduced on 2006-09-09.
94138 2007-12-07  Jim Meyering  <meyering@redhat.com>
94140         Let these macros work also with autoconf-2.59.
94141         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94142         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94143         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94145 2007-12-06  Jim Meyering  <meyering@redhat.com>
94147         Avoid a configure-time syntax error in gl_FUNC_ACL.
94148         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94149         function in each branch, before testing the cache variable.
94151 2007-12-04  Eric Blake  <ebb9@byu.net>
94153         Make scripts executable.
94154         * build-aux/config.guess: Add execute permissions.
94155         * build-aux/config.sub: Likewise.
94156         * build-aux/gendocs.sh: Likewise.
94158         Fix frexp on mingw.
94159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94160         cross-compiling.
94161         * doc/functions/frexp.texi (frexp): Document the bug.
94163         Make cygwin fseeko check more reliable.
94164         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94165         version numbers, rather than unrelated feature check.
94166         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94167         * doc/functions/ftello.texi (ftello): Likewise.
94168         Reported by Bruno Haible.
94170         * m4/strerror.m4: Bump version number.
94172 2007-12-03  Bruno Haible  <bruno@clisp.org>
94174         * doc/functions/mprotect.texi: Mention the mingw problem.
94176 2007-12-03  Eric Blake  <ebb9@byu.net>
94178         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94179         REPLACE_STRERROR is initialized before this macro.
94181 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94183         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94184         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94185         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94186         put -lsec in even for programs other than 'ls'.  This fixes a problem
94187         for gettext reported by Bruno Haible in
94188         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94189         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94190         Add support for Solaris 10.  This isn't efficient, but should get the
94191         job done for now.
94193 2007-12-03  James Youngman  <jay@gnu.org>
94195         * doc/regexprops-generic.texi: change "an close-group" to "a
94196         close-group" and "illegal" to "not allowed".
94198 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94200         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94201         pr_byname.h. Needed for the rare case when the maintainer has done
94202         "make maintainer-clean" in the source directory and then attempts a
94203         build outside the source directory.
94204         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94205         scripts_byname.h.
94207 2007-12-02  Martin Lambers  <marlam@marlam.de>
94208             Bruno Haible  <bruno@clisp.org>
94210         * lib/getpagesize.h: Remove file.
94211         * lib/unistd.in.h: Include declaration of getpagesize here.
94212         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94213         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94214         HAVE_SYS_PARAM_H.
94215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94216         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94217         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94218         (Depends-on): Add unistd.
94219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94220         (Include): Use <unistd.h> instead of getpagesize.h.
94221         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94222         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94223         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94224         gl_GETPAGESIZE invocation, already handled by module dependency.
94225         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94227 2007-12-02  Bruno Haible  <bruno@clisp.org>
94229         * modules/strings-tests: New file.
94230         * tests/test-strings.c: New file.
94232         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94233         * lib/strings.in.h: New file.
94234         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94235         * m4/strings_h.m4: New file.
94236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94237         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94238         * modules/strings: New file.
94239         * modules/string (Makefile.am): Update.
94240         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94241         Reported by Karl Berry.
94243 2007-12-01  Eric Blake  <ebb9@byu.net>
94245         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94246         accommodate fix in cygwin 1.5.25.
94248 2007-12-01  Jim Meyering  <meyering@redhat.com>
94250         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94251         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94252         that would inhibit utf8-optimization of a regexp containing line-
94253         or buffer-anchors, e.g., `^', `$'.
94255 2007-11-30  Bruno Haible  <bruno@clisp.org>
94257         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94258         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94259         glthread_recursive_lock_init.
94260         * lib/lock.c (glthread_recursive_lock_init)
94261         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94262         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94264 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94266         New function qset_acl, like set_acl but with syscall semantics.
94267         * lib/acl.h (qset_acl): New decl.
94268         * lib/acl.c (qset_acl): New function.
94269         (set_acl): Use new function.  Use more-consistent diagnostics.
94271 2007-11-28  Jim Meyering  <meyering@redhat.com>
94273         * modules/physmem (License): Change from GPL to LGPLv2+.
94275 2007-11-26  Bruno Haible  <bruno@clisp.org>
94277         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94278         'long double' type has excess precision.
94279         Reported by Jim Meyering in
94280         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94282 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94284         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94285         Sync from <http://gnu.org/licenses>.
94286         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94287         with license text from same location.
94288         * doc/maintain.texi, doc/standards.texi:  Sync from
94289         <http://savannah.gnu.org/projects/gnustandards>.
94291 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94292         and Jim Meyering  <meyering@redhat.com>
94294         Adjust getdate' grammar to accept a slightly more regular language.
94295         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94296         Before, the former was rejected.
94297         * lib/getdate.y (digits_to_date_time): New function, factored
94298         out of ...
94299         (number): ...here.  Just call digits_to_date_time.
94300         (hybrid): New non-terminal to handle an <unsigned number,
94301         signed relative offset> sequence consistently.
94303 2007-11-18  Jim Meyering  <meyering@redhat.com>
94305         Pull my changes from coreutils:
94306         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94307         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94308         use of $gnulib_tool_option_extras, so that it's separated from the
94309         preceding argument.
94311         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94312         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94313         parent destination directories before copying a file into place.
94315 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94317         bootstrap: work also with 4-argument variant of AC_INIT
94318         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94320 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94322         Port test-getaddrinfo to Solaris.
94323         Problem reported by Bruno Haible in
94324         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94325         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94326         explanation of setting 'hints'.
94327         Don't reject an implementation merely because it returns EAI_SERVICE.
94328         (EAI_SERVICE): Define to 0 if not defined.
94330 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94332         The license of gnu-make and posix-shell is now "GPLed build tool".
94333         * modules/gnu-make (License): Likewise.
94334         * modules/posix-shell (License): Likewise.
94336         New module posix-shell, for determining a POSIX shell
94337         or perhaps something that is close enough to a POSIX shell.
94338         * m4/posix-shell.m4: New file.
94339         * modules/posix-shell: New file.
94341         * MODULES.html.sh: Mention new module.
94343         New module gnu-make, for determining whether we're using GNU Make.
94344         * m4/gnu-make.m4: New file.
94345         * modules/gnu-make: New file.
94346         * MODULES.html.sh: Mention new module.
94348 2007-11-14  Jim Meyering  <meyering@redhat.com>
94350         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94351         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94352         use this macro to create a function _definition_.
94353         Remove useless "#undef ARGMATCH_DIE".
94355 2007-11-14  Bruno Haible  <bruno@clisp.org>
94357         * lib/config.charset: Update for OpenBSD 4.1.
94358         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94360 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94362         Document 64-bit #if problems in stdint.texi.
94363         * doc/headers/stdint.texi (stdint.h): Mention problems with
94364         64-bit-#if, and how to work around them.
94366         Don't insist on 'long long int' support in the preprocessor.  It
94367         breaks too many things.  For example, PRIdMAX still uses a 'long
94368         long int' format with the latest Sun compiler, even though
94369         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94370         preprocessor problem.  This causes the latest coreutils to dump
94371         core on Solaris 10 sparc with the Sun C compiler.
94372         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94373         the troublesome expressions at configure-time, not at #if-time.
94374         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94375         preprocessor.
94376         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94377         compile-time C checks, done at 'configure'-time.
94378         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94379         * modules/inttypes (Makefile): Substitute the new symbols that
94380         gl_INTTYPES_H now generates.
94381         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94383 2007-11-12  Bruno Haible  <bruno@clisp.org>
94385         Tests for Unicode character classification functions.
94387         * modules/unictype/bidicategory-byname-tests: New file.
94388         * modules/unictype/bidicategory-name-tests: New file.
94389         * modules/unictype/bidicategory-of-tests: New file.
94390         * modules/unictype/bidicategory-test-tests: New file.
94391         * modules/unictype/block-list-tests: New file.
94392         * modules/unictype/block-of-tests: New file.
94393         * modules/unictype/block-test-tests: New file.
94394         * modules/unictype/category-C-tests: New file.
94395         * modules/unictype/category-Cc-tests: New file.
94396         * modules/unictype/category-Cf-tests: New file.
94397         * modules/unictype/category-Cn-tests: New file.
94398         * modules/unictype/category-Co-tests: New file.
94399         * modules/unictype/category-Cs-tests: New file.
94400         * modules/unictype/category-L-tests: New file.
94401         * modules/unictype/category-Ll-tests: New file.
94402         * modules/unictype/category-Lm-tests: New file.
94403         * modules/unictype/category-Lo-tests: New file.
94404         * modules/unictype/category-Lt-tests: New file.
94405         * modules/unictype/category-Lu-tests: New file.
94406         * modules/unictype/category-M-tests: New file.
94407         * modules/unictype/category-Mc-tests: New file.
94408         * modules/unictype/category-Me-tests: New file.
94409         * modules/unictype/category-Mn-tests: New file.
94410         * modules/unictype/category-N-tests: New file.
94411         * modules/unictype/category-Nd-tests: New file.
94412         * modules/unictype/category-Nl-tests: New file.
94413         * modules/unictype/category-No-tests: New file.
94414         * modules/unictype/category-P-tests: New file.
94415         * modules/unictype/category-Pc-tests: New file.
94416         * modules/unictype/category-Pd-tests: New file.
94417         * modules/unictype/category-Pe-tests: New file.
94418         * modules/unictype/category-Pf-tests: New file.
94419         * modules/unictype/category-Pi-tests: New file.
94420         * modules/unictype/category-Po-tests: New file.
94421         * modules/unictype/category-Ps-tests: New file.
94422         * modules/unictype/category-S-tests: New file.
94423         * modules/unictype/category-Sc-tests: New file.
94424         * modules/unictype/category-Sk-tests: New file.
94425         * modules/unictype/category-Sm-tests: New file.
94426         * modules/unictype/category-So-tests: New file.
94427         * modules/unictype/category-Z-tests: New file.
94428         * modules/unictype/category-Zl-tests: New file.
94429         * modules/unictype/category-Zp-tests: New file.
94430         * modules/unictype/category-Zs-tests: New file.
94431         * modules/unictype/category-and-not-tests: New file.
94432         * modules/unictype/category-and-tests: New file.
94433         * modules/unictype/category-byname-tests: New file.
94434         * modules/unictype/category-name-tests: New file.
94435         * modules/unictype/category-none-tests: New file.
94436         * modules/unictype/category-of-tests: New file.
94437         * modules/unictype/category-or-tests: New file.
94438         * modules/unictype/category-test-withtable-tests: New file.
94439         * modules/unictype/combining-class-tests: New file.
94440         * modules/unictype/ctype-alnum-tests: New file.
94441         * modules/unictype/ctype-alpha-tests: New file.
94442         * modules/unictype/ctype-blank-tests: New file.
94443         * modules/unictype/ctype-cntrl-tests: New file.
94444         * modules/unictype/ctype-digit-tests: New file.
94445         * modules/unictype/ctype-graph-tests: New file.
94446         * modules/unictype/ctype-lower-tests: New file.
94447         * modules/unictype/ctype-print-tests: New file.
94448         * modules/unictype/ctype-punct-tests: New file.
94449         * modules/unictype/ctype-space-tests: New file.
94450         * modules/unictype/ctype-upper-tests: New file.
94451         * modules/unictype/ctype-xdigit-tests: New file.
94452         * modules/unictype/decimal-digit-tests: New file.
94453         * modules/unictype/digit-tests: New file.
94454         * modules/unictype/mirror-tests: New file.
94455         * modules/unictype/numeric-tests: New file.
94456         * modules/unictype/property-alphabetic-tests: New file.
94457         * modules/unictype/property-ascii-hex-digit-tests: New file.
94458         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94459         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94460         * modules/unictype/property-bidi-block-separator-tests: New file.
94461         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94462         * modules/unictype/property-bidi-common-separator-tests: New file.
94463         * modules/unictype/property-bidi-control-tests: New file.
94464         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94465         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94466         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94467         * modules/unictype/property-bidi-european-digit-tests: New file.
94468         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94469         * modules/unictype/property-bidi-left-to-right-tests: New file.
94470         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94471         * modules/unictype/property-bidi-other-neutral-tests: New file.
94472         * modules/unictype/property-bidi-pdf-tests: New file.
94473         * modules/unictype/property-bidi-segment-separator-tests: New file.
94474         * modules/unictype/property-bidi-whitespace-tests: New file.
94475         * modules/unictype/property-byname-tests: New file.
94476         * modules/unictype/property-combining-tests: New file.
94477         * modules/unictype/property-composite-tests: New file.
94478         * modules/unictype/property-currency-symbol-tests: New file.
94479         * modules/unictype/property-dash-tests: New file.
94480         * modules/unictype/property-decimal-digit-tests: New file.
94481         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94482         * modules/unictype/property-deprecated-tests: New file.
94483         * modules/unictype/property-diacritic-tests: New file.
94484         * modules/unictype/property-extender-tests: New file.
94485         * modules/unictype/property-format-control-tests: New file.
94486         * modules/unictype/property-grapheme-base-tests: New file.
94487         * modules/unictype/property-grapheme-extend-tests: New file.
94488         * modules/unictype/property-grapheme-link-tests: New file.
94489         * modules/unictype/property-hex-digit-tests: New file.
94490         * modules/unictype/property-hyphen-tests: New file.
94491         * modules/unictype/property-id-continue-tests: New file.
94492         * modules/unictype/property-id-start-tests: New file.
94493         * modules/unictype/property-ideographic-tests: New file.
94494         * modules/unictype/property-ids-binary-operator-tests: New file.
94495         * modules/unictype/property-ids-trinary-operator-tests: New file.
94496         * modules/unictype/property-ignorable-control-tests: New file.
94497         * modules/unictype/property-iso-control-tests: New file.
94498         * modules/unictype/property-join-control-tests: New file.
94499         * modules/unictype/property-left-of-pair-tests: New file.
94500         * modules/unictype/property-line-separator-tests: New file.
94501         * modules/unictype/property-logical-order-exception-tests: New file.
94502         * modules/unictype/property-lowercase-tests: New file.
94503         * modules/unictype/property-math-tests: New file.
94504         * modules/unictype/property-non-break-tests: New file.
94505         * modules/unictype/property-not-a-character-tests: New file.
94506         * modules/unictype/property-numeric-tests: New file.
94507         * modules/unictype/property-other-alphabetic-tests: New file.
94508         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94509         * modules/unictype/property-other-grapheme-extend-tests: New file.
94510         * modules/unictype/property-other-id-continue-tests: New file.
94511         * modules/unictype/property-other-id-start-tests: New file.
94512         * modules/unictype/property-other-lowercase-tests: New file.
94513         * modules/unictype/property-other-math-tests: New file.
94514         * modules/unictype/property-other-uppercase-tests: New file.
94515         * modules/unictype/property-paired-punctuation-tests: New file.
94516         * modules/unictype/property-paragraph-separator-tests: New file.
94517         * modules/unictype/property-pattern-syntax-tests: New file.
94518         * modules/unictype/property-pattern-white-space-tests: New file.
94519         * modules/unictype/property-private-use-tests: New file.
94520         * modules/unictype/property-punctuation-tests: New file.
94521         * modules/unictype/property-quotation-mark-tests: New file.
94522         * modules/unictype/property-radical-tests: New file.
94523         * modules/unictype/property-sentence-terminal-tests: New file.
94524         * modules/unictype/property-soft-dotted-tests: New file.
94525         * modules/unictype/property-space-tests: New file.
94526         * modules/unictype/property-terminal-punctuation-tests: New file.
94527         * modules/unictype/property-test-tests: New file.
94528         * modules/unictype/property-titlecase-tests: New file.
94529         * modules/unictype/property-unassigned-code-value-tests: New file.
94530         * modules/unictype/property-unified-ideograph-tests: New file.
94531         * modules/unictype/property-uppercase-tests: New file.
94532         * modules/unictype/property-variation-selector-tests: New file.
94533         * modules/unictype/property-white-space-tests: New file.
94534         * modules/unictype/property-xid-continue-tests: New file.
94535         * modules/unictype/property-xid-start-tests: New file.
94536         * modules/unictype/property-zero-width-tests: New file.
94537         * modules/unictype/scripts-tests: New file.
94538         * modules/unictype/syntax-c-ident-tests: New file.
94539         * modules/unictype/syntax-c-whitespace-tests: New file.
94540         * modules/unictype/syntax-java-ident-tests: New file.
94541         * modules/unictype/syntax-java-whitespace-tests: New file.
94542         * tests/unictype/test-bidi_byname.c: New file.
94543         * tests/unictype/test-bidi_name.c: New file.
94544         * tests/unictype/test-bidi_of.c: New file.
94545         * tests/unictype/test-bidi_test.c: New file.
94546         * tests/unictype/test-block_list.c: New file.
94547         * tests/unictype/test-block_of.c: New file.
94548         * tests/unictype/test-block_test.c: New file.
94549         * tests/unictype/test-categ_and.c: New file.
94550         * tests/unictype/test-categ_and_not.c: New file.
94551         * tests/unictype/test-categ_byname.c: New file.
94552         * tests/unictype/test-categ_name.c: New file.
94553         * tests/unictype/test-categ_none.c: New file.
94554         * tests/unictype/test-categ_of.c: New file.
94555         * tests/unictype/test-categ_or.c: New file.
94556         * tests/unictype/test-categ_test_withtable.c: New file.
94557         * tests/unictype/test-combining.c: New file.
94558         * tests/unictype/test-decdigit.c: New file.
94559         * tests/unictype/test-digit.c: New file.
94560         * tests/unictype/test-mirror.c: New file.
94561         * tests/unictype/test-numeric.c: New file.
94562         * tests/unictype/test-pr_byname.c: New file.
94563         * tests/unictype/test-pr_test.c: New file.
94564         * tests/unictype/test-predicate-part1.h: New file.
94565         * tests/unictype/test-predicate-part2.h: New file.
94566         * tests/unictype/test-scripts.c: New file.
94567         * tests/unictype/test-sy_c_ident.c: New file.
94568         * tests/unictype/test-sy_java_ident.c: New file.
94570         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94571         for Unicode 5.0.0.
94572         * tests/unictype/test-categ_Cc.c: Likewise.
94573         * tests/unictype/test-categ_Cf.c: Likewise.
94574         * tests/unictype/test-categ_Cn.c: Likewise.
94575         * tests/unictype/test-categ_Co.c: Likewise.
94576         * tests/unictype/test-categ_Cs.c: Likewise.
94577         * tests/unictype/test-categ_L.c: Likewise.
94578         * tests/unictype/test-categ_Ll.c: Likewise.
94579         * tests/unictype/test-categ_Lm.c: Likewise.
94580         * tests/unictype/test-categ_Lo.c: Likewise.
94581         * tests/unictype/test-categ_Lt.c: Likewise.
94582         * tests/unictype/test-categ_Lu.c: Likewise.
94583         * tests/unictype/test-categ_M.c: Likewise.
94584         * tests/unictype/test-categ_Mc.c: Likewise.
94585         * tests/unictype/test-categ_Me.c: Likewise.
94586         * tests/unictype/test-categ_Mn.c: Likewise.
94587         * tests/unictype/test-categ_N.c: Likewise.
94588         * tests/unictype/test-categ_Nd.c: Likewise.
94589         * tests/unictype/test-categ_Nl.c: Likewise.
94590         * tests/unictype/test-categ_No.c: Likewise.
94591         * tests/unictype/test-categ_P.c: Likewise.
94592         * tests/unictype/test-categ_Pc.c: Likewise.
94593         * tests/unictype/test-categ_Pd.c: Likewise.
94594         * tests/unictype/test-categ_Pe.c: Likewise.
94595         * tests/unictype/test-categ_Pf.c: Likewise.
94596         * tests/unictype/test-categ_Pi.c: Likewise.
94597         * tests/unictype/test-categ_Po.c: Likewise.
94598         * tests/unictype/test-categ_Ps.c: Likewise.
94599         * tests/unictype/test-categ_S.c: Likewise.
94600         * tests/unictype/test-categ_Sc.c: Likewise.
94601         * tests/unictype/test-categ_Sk.c: Likewise.
94602         * tests/unictype/test-categ_Sm.c: Likewise.
94603         * tests/unictype/test-categ_So.c: Likewise.
94604         * tests/unictype/test-categ_Z.c: Likewise.
94605         * tests/unictype/test-categ_Zl.c: Likewise.
94606         * tests/unictype/test-categ_Zp.c: Likewise.
94607         * tests/unictype/test-categ_Zs.c: Likewise.
94608         * tests/unictype/test-ctype_alnum.c: Likewise.
94609         * tests/unictype/test-ctype_alpha.c: Likewise.
94610         * tests/unictype/test-ctype_blank.c: Likewise.
94611         * tests/unictype/test-ctype_cntrl.c: Likewise.
94612         * tests/unictype/test-ctype_digit.c: Likewise.
94613         * tests/unictype/test-ctype_graph.c: Likewise.
94614         * tests/unictype/test-ctype_lower.c: Likewise.
94615         * tests/unictype/test-ctype_print.c: Likewise.
94616         * tests/unictype/test-ctype_punct.c: Likewise.
94617         * tests/unictype/test-ctype_space.c: Likewise.
94618         * tests/unictype/test-ctype_upper.c: Likewise.
94619         * tests/unictype/test-ctype_xdigit.c: Likewise.
94620         * tests/unictype/test-decdigit.h: Likewise.
94621         * tests/unictype/test-digit.h: Likewise.
94622         * tests/unictype/test-numeric.h: Likewise.
94623         * tests/unictype/test-pr_alphabetic.c: Likewise.
94624         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94625         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94626         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94627         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94628         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94629         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94630         * tests/unictype/test-pr_bidi_control.c: Likewise.
94631         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94632         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94633         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94634         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94635         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94636         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94637         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94638         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94639         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94640         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94641         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94642         * tests/unictype/test-pr_combining.c: Likewise.
94643         * tests/unictype/test-pr_composite.c: Likewise.
94644         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94645         * tests/unictype/test-pr_dash.c: Likewise.
94646         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94647         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94648         * tests/unictype/test-pr_deprecated.c: Likewise.
94649         * tests/unictype/test-pr_diacritic.c: Likewise.
94650         * tests/unictype/test-pr_extender.c: Likewise.
94651         * tests/unictype/test-pr_format_control.c: Likewise.
94652         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94653         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94654         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94655         * tests/unictype/test-pr_hex_digit.c: Likewise.
94656         * tests/unictype/test-pr_hyphen.c: Likewise.
94657         * tests/unictype/test-pr_id_continue.c: Likewise.
94658         * tests/unictype/test-pr_id_start.c: Likewise.
94659         * tests/unictype/test-pr_ideographic.c: Likewise.
94660         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94661         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94662         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94663         * tests/unictype/test-pr_iso_control.c: Likewise.
94664         * tests/unictype/test-pr_join_control.c: Likewise.
94665         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94666         * tests/unictype/test-pr_line_separator.c: Likewise.
94667         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94668         * tests/unictype/test-pr_lowercase.c: Likewise.
94669         * tests/unictype/test-pr_math.c: Likewise.
94670         * tests/unictype/test-pr_non_break.c: Likewise.
94671         * tests/unictype/test-pr_not_a_character.c: Likewise.
94672         * tests/unictype/test-pr_numeric.c: Likewise.
94673         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94674         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94675         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94676         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94677         * tests/unictype/test-pr_other_id_start.c: Likewise.
94678         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94679         * tests/unictype/test-pr_other_math.c: Likewise.
94680         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94681         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94682         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94683         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94684         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94685         * tests/unictype/test-pr_private_use.c: Likewise.
94686         * tests/unictype/test-pr_punctuation.c: Likewise.
94687         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94688         * tests/unictype/test-pr_radical.c: Likewise.
94689         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94690         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94691         * tests/unictype/test-pr_space.c: Likewise.
94692         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94693         * tests/unictype/test-pr_titlecase.c: Likewise.
94694         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94695         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94696         * tests/unictype/test-pr_uppercase.c: Likewise.
94697         * tests/unictype/test-pr_variation_selector.c: Likewise.
94698         * tests/unictype/test-pr_white_space.c: Likewise.
94699         * tests/unictype/test-pr_xid_continue.c: Likewise.
94700         * tests/unictype/test-pr_xid_start.c: Likewise.
94701         * tests/unictype/test-pr_zero_width.c: Likewise.
94702         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94703         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94705 2007-11-12  Bruno Haible  <bruno@clisp.org>
94707         Unicode character classification functions.
94708         * lib/unictype.h: New file.
94709         * modules/unictype/base: New file.
94710         * modules/unictype/category-L: New file.
94711         * modules/unictype/category-Lu: New file.
94712         * modules/unictype/category-Ll: New file.
94713         * modules/unictype/category-Lt: New file.
94714         * modules/unictype/category-Lm: New file.
94715         * modules/unictype/category-Lo: New file.
94716         * modules/unictype/category-M: New file.
94717         * modules/unictype/category-Mn: New file.
94718         * modules/unictype/category-Mc: New file.
94719         * modules/unictype/category-Me: New file.
94720         * modules/unictype/category-N: New file.
94721         * modules/unictype/category-Nd: New file.
94722         * modules/unictype/category-Nl: New file.
94723         * modules/unictype/category-No: New file.
94724         * modules/unictype/category-P: New file.
94725         * modules/unictype/category-Pc: New file.
94726         * modules/unictype/category-Pd: New file.
94727         * modules/unictype/category-Ps: New file.
94728         * modules/unictype/category-Pe: New file.
94729         * modules/unictype/category-Pi: New file.
94730         * modules/unictype/category-Pf: New file.
94731         * modules/unictype/category-Po: New file.
94732         * modules/unictype/category-S: New file.
94733         * modules/unictype/category-Sm: New file.
94734         * modules/unictype/category-Sc: New file.
94735         * modules/unictype/category-Sk: New file.
94736         * modules/unictype/category-So: New file.
94737         * modules/unictype/category-Z: New file.
94738         * modules/unictype/category-Zs: New file.
94739         * modules/unictype/category-Zl: New file.
94740         * modules/unictype/category-Zp: New file.
94741         * modules/unictype/category-C: New file.
94742         * modules/unictype/category-Cc: New file.
94743         * modules/unictype/category-Cf: New file.
94744         * modules/unictype/category-Cs: New file.
94745         * modules/unictype/category-Co: New file.
94746         * modules/unictype/category-Cn: New file.
94747         * modules/unictype/category-or: New file.
94748         * modules/unictype/category-of: New file.
94749         * modules/unictype/category-test: New file.
94750         * modules/unictype/category-test-withtable: New file.
94751         * modules/unictype/category-byname: New file.
94752         * modules/unictype/category-none: New file.
94753         * modules/unictype/category-and: New file.
94754         * modules/unictype/category-and-not: New file.
94755         * modules/unictype/category-name: New file.
94756         * modules/unictype/combining-class: New file.
94757         * modules/unictype/category-all: New file.
94758         * modules/unictype/bidicategory-all: New file.
94759         * modules/unictype/bidicategory-byname: New file.
94760         * modules/unictype/bidicategory-name: New file.
94761         * modules/unictype/bidicategory-of: New file.
94762         * modules/unictype/bidicategory-test: New file.
94763         * modules/unictype/decimal-digit: New file.
94764         * modules/unictype/digit: New file.
94765         * modules/unictype/numeric: New file.
94766         * modules/unictype/mirror: New file.
94767         * modules/unictype/property-white-space: New file.
94768         * modules/unictype/property-alphabetic: New file.
94769         * modules/unictype/property-other-alphabetic: New file.
94770         * modules/unictype/property-not-a-character: New file.
94771         * modules/unictype/property-default-ignorable-code-point: New file.
94772         * modules/unictype/property-other-default-ignorable-code-point: New
94773         file.
94774         * modules/unictype/property-deprecated: New file.
94775         * modules/unictype/property-logical-order-exception: New file.
94776         * modules/unictype/property-variation-selector: New file.
94777         * modules/unictype/property-private-use: New file.
94778         * modules/unictype/property-unassigned-code-value: New file.
94779         * modules/unictype/property-uppercase: New file.
94780         * modules/unictype/property-other-uppercase: New file.
94781         * modules/unictype/property-lowercase: New file.
94782         * modules/unictype/property-other-lowercase: New file.
94783         * modules/unictype/property-titlecase: New file.
94784         * modules/unictype/property-soft-dotted: New file.
94785         * modules/unictype/property-id-start: New file.
94786         * modules/unictype/property-other-id-start: New file.
94787         * modules/unictype/property-id-continue: New file.
94788         * modules/unictype/property-other-id-continue: New file.
94789         * modules/unictype/property-xid-start: New file.
94790         * modules/unictype/property-xid-continue: New file.
94791         * modules/unictype/property-pattern-white-space: New file.
94792         * modules/unictype/property-pattern-syntax: New file.
94793         * modules/unictype/property-join-control: New file.
94794         * modules/unictype/property-grapheme-base: New file.
94795         * modules/unictype/property-grapheme-extend: New file.
94796         * modules/unictype/property-other-grapheme-extend: New file.
94797         * modules/unictype/property-grapheme-link: New file.
94798         * modules/unictype/property-bidi-control: New file.
94799         * modules/unictype/property-bidi-left-to-right: New file.
94800         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94801         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94802         * modules/unictype/property-bidi-european-digit: New file.
94803         * modules/unictype/property-bidi-eur-num-separator: New file.
94804         * modules/unictype/property-bidi-eur-num-terminator: New file.
94805         * modules/unictype/property-bidi-arabic-digit: New file.
94806         * modules/unictype/property-bidi-common-separator: New file.
94807         * modules/unictype/property-bidi-block-separator: New file.
94808         * modules/unictype/property-bidi-segment-separator: New file.
94809         * modules/unictype/property-bidi-whitespace: New file.
94810         * modules/unictype/property-bidi-non-spacing-mark: New file.
94811         * modules/unictype/property-bidi-boundary-neutral: New file.
94812         * modules/unictype/property-bidi-pdf: New file.
94813         * modules/unictype/property-bidi-embedding-or-override: New file.
94814         * modules/unictype/property-bidi-other-neutral: New file.
94815         * modules/unictype/property-hex-digit: New file.
94816         * modules/unictype/property-ascii-hex-digit: New file.
94817         * modules/unictype/property-ideographic: New file.
94818         * modules/unictype/property-unified-ideograph: New file.
94819         * modules/unictype/property-radical: New file.
94820         * modules/unictype/property-ids-binary-operator: New file.
94821         * modules/unictype/property-ids-trinary-operator: New file.
94822         * modules/unictype/property-zero-width: New file.
94823         * modules/unictype/property-space: New file.
94824         * modules/unictype/property-non-break: New file.
94825         * modules/unictype/property-iso-control: New file.
94826         * modules/unictype/property-format-control: New file.
94827         * modules/unictype/property-dash: New file.
94828         * modules/unictype/property-hyphen: New file.
94829         * modules/unictype/property-punctuation: New file.
94830         * modules/unictype/property-line-separator: New file.
94831         * modules/unictype/property-paragraph-separator: New file.
94832         * modules/unictype/property-quotation-mark: New file.
94833         * modules/unictype/property-sentence-terminal: New file.
94834         * modules/unictype/property-terminal-punctuation: New file.
94835         * modules/unictype/property-currency-symbol: New file.
94836         * modules/unictype/property-math: New file.
94837         * modules/unictype/property-other-math: New file.
94838         * modules/unictype/property-paired-punctuation: New file.
94839         * modules/unictype/property-left-of-pair: New file.
94840         * modules/unictype/property-combining: New file.
94841         * modules/unictype/property-composite: New file.
94842         * modules/unictype/property-decimal-digit: New file.
94843         * modules/unictype/property-numeric: New file.
94844         * modules/unictype/property-diacritic: New file.
94845         * modules/unictype/property-extender: New file.
94846         * modules/unictype/property-ignorable-control: New file.
94847         * modules/unictype/property-test: New file.
94848         * modules/unictype/property-byname: New file.
94849         * modules/unictype/property-all: New file.
94850         * modules/unictype/scripts: New file.
94851         * modules/unictype/scripts-all: New file.
94852         * modules/unictype/block-of: New file.
94853         * modules/unictype/block-test: New file.
94854         * modules/unictype/block-list: New file.
94855         * modules/unictype/block-all: New file.
94856         * modules/unictype/syntax-c-whitespace: New file.
94857         * modules/unictype/syntax-java-whitespace: New file.
94858         * modules/unictype/syntax-c-ident: New file.
94859         * modules/unictype/syntax-java-ident: New file.
94860         * modules/unictype/ctype-alnum: New file.
94861         * modules/unictype/ctype-alpha: New file.
94862         * modules/unictype/ctype-cntrl: New file.
94863         * modules/unictype/ctype-digit: New file.
94864         * modules/unictype/ctype-graph: New file.
94865         * modules/unictype/ctype-lower: New file.
94866         * modules/unictype/ctype-print: New file.
94867         * modules/unictype/ctype-punct: New file.
94868         * modules/unictype/ctype-space: New file.
94869         * modules/unictype/ctype-upper: New file.
94870         * modules/unictype/ctype-xdigit: New file.
94871         * modules/unictype/ctype-blank: New file.
94872         * lib/unictype/bidi_byname.c: New file.
94873         * lib/unictype/bidi_name.c: New file.
94874         * lib/unictype/bidi_of.c: New file.
94875         * lib/unictype/bidi_test.c: New file.
94876         * lib/unictype/bitmap.h: New file.
94877         * lib/unictype/block_test.c: New file.
94878         * lib/unictype/blocks.c: New file.
94879         * lib/unictype/categ_C.c: New file.
94880         * lib/unictype/categ_Cc.c: New file.
94881         * lib/unictype/categ_Cf.c: New file.
94882         * lib/unictype/categ_Cn.c: New file.
94883         * lib/unictype/categ_Co.c: New file.
94884         * lib/unictype/categ_Cs.c: New file.
94885         * lib/unictype/categ_L.c: New file.
94886         * lib/unictype/categ_Ll.c: New file.
94887         * lib/unictype/categ_Lm.c: New file.
94888         * lib/unictype/categ_Lo.c: New file.
94889         * lib/unictype/categ_Lt.c: New file.
94890         * lib/unictype/categ_Lu.c: New file.
94891         * lib/unictype/categ_M.c: New file.
94892         * lib/unictype/categ_Mc.c: New file.
94893         * lib/unictype/categ_Me.c: New file.
94894         * lib/unictype/categ_Mn.c: New file.
94895         * lib/unictype/categ_N.c: New file.
94896         * lib/unictype/categ_Nd.c: New file.
94897         * lib/unictype/categ_Nl.c: New file.
94898         * lib/unictype/categ_No.c: New file.
94899         * lib/unictype/categ_P.c: New file.
94900         * lib/unictype/categ_Pc.c: New file.
94901         * lib/unictype/categ_Pd.c: New file.
94902         * lib/unictype/categ_Pe.c: New file.
94903         * lib/unictype/categ_Pf.c: New file.
94904         * lib/unictype/categ_Pi.c: New file.
94905         * lib/unictype/categ_Po.c: New file.
94906         * lib/unictype/categ_Ps.c: New file.
94907         * lib/unictype/categ_S.c: New file.
94908         * lib/unictype/categ_Sc.c: New file.
94909         * lib/unictype/categ_Sk.c: New file.
94910         * lib/unictype/categ_Sm.c: New file.
94911         * lib/unictype/categ_So.c: New file.
94912         * lib/unictype/categ_Z.c: New file.
94913         * lib/unictype/categ_Zl.c: New file.
94914         * lib/unictype/categ_Zp.c: New file.
94915         * lib/unictype/categ_Zs.c: New file.
94916         * lib/unictype/categ_and.c: New file.
94917         * lib/unictype/categ_and_not.c: New file.
94918         * lib/unictype/categ_byname.c: New file.
94919         * lib/unictype/categ_name.c: New file.
94920         * lib/unictype/categ_none.c: New file.
94921         * lib/unictype/categ_of.c: New file.
94922         * lib/unictype/categ_or.c: New file.
94923         * lib/unictype/categ_test.c: New file.
94924         * lib/unictype/combining.c: New file.
94925         * lib/unictype/ctype_alnum.c: New file.
94926         * lib/unictype/ctype_alpha.c: New file.
94927         * lib/unictype/ctype_blank.c: New file.
94928         * lib/unictype/ctype_cntrl.c: New file.
94929         * lib/unictype/ctype_digit.c: New file.
94930         * lib/unictype/ctype_graph.c: New file.
94931         * lib/unictype/ctype_lower.c: New file.
94932         * lib/unictype/ctype_print.c: New file.
94933         * lib/unictype/ctype_punct.c: New file.
94934         * lib/unictype/ctype_space.c: New file.
94935         * lib/unictype/ctype_upper.c: New file.
94936         * lib/unictype/ctype_xdigit.c: New file.
94937         * lib/unictype/decdigit.c: New file.
94938         * lib/unictype/digit.c: New file.
94939         * lib/unictype/identsyntaxmap.h: New file.
94940         * lib/unictype/mirror.c: New file.
94941         * lib/unictype/numeric.c: New file.
94942         * lib/unictype/pr_alphabetic.c: New file.
94943         * lib/unictype/pr_ascii_hex_digit.c: New file.
94944         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94945         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94946         * lib/unictype/pr_bidi_block_separator.c: New file.
94947         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94948         * lib/unictype/pr_bidi_common_separator.c: New file.
94949         * lib/unictype/pr_bidi_control.c: New file.
94950         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94951         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94952         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94953         * lib/unictype/pr_bidi_european_digit.c: New file.
94954         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94955         * lib/unictype/pr_bidi_left_to_right.c: New file.
94956         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94957         * lib/unictype/pr_bidi_other_neutral.c: New file.
94958         * lib/unictype/pr_bidi_pdf.c: New file.
94959         * lib/unictype/pr_bidi_segment_separator.c: New file.
94960         * lib/unictype/pr_bidi_whitespace.c: New file.
94961         * lib/unictype/pr_byname.c: New file.
94962         * lib/unictype/pr_byname.gperf: New file.
94963         * lib/unictype/pr_combining.c: New file.
94964         * lib/unictype/pr_composite.c: New file.
94965         * lib/unictype/pr_currency_symbol.c: New file.
94966         * lib/unictype/pr_dash.c: New file.
94967         * lib/unictype/pr_decimal_digit.c: New file.
94968         * lib/unictype/pr_default_ignorable_code_point.c: New file.
94969         * lib/unictype/pr_deprecated.c: New file.
94970         * lib/unictype/pr_diacritic.c: New file.
94971         * lib/unictype/pr_extender.c: New file.
94972         * lib/unictype/pr_format_control.c: New file.
94973         * lib/unictype/pr_grapheme_base.c: New file.
94974         * lib/unictype/pr_grapheme_extend.c: New file.
94975         * lib/unictype/pr_grapheme_link.c: New file.
94976         * lib/unictype/pr_hex_digit.c: New file.
94977         * lib/unictype/pr_hyphen.c: New file.
94978         * lib/unictype/pr_id_continue.c: New file.
94979         * lib/unictype/pr_id_start.c: New file.
94980         * lib/unictype/pr_ideographic.c: New file.
94981         * lib/unictype/pr_ids_binary_operator.c: New file.
94982         * lib/unictype/pr_ids_trinary_operator.c: New file.
94983         * lib/unictype/pr_ignorable_control.c: New file.
94984         * lib/unictype/pr_iso_control.c: New file.
94985         * lib/unictype/pr_join_control.c: New file.
94986         * lib/unictype/pr_left_of_pair.c: New file.
94987         * lib/unictype/pr_line_separator.c: New file.
94988         * lib/unictype/pr_logical_order_exception.c: New file.
94989         * lib/unictype/pr_lowercase.c: New file.
94990         * lib/unictype/pr_math.c: New file.
94991         * lib/unictype/pr_non_break.c: New file.
94992         * lib/unictype/pr_not_a_character.c: New file.
94993         * lib/unictype/pr_numeric.c: New file.
94994         * lib/unictype/pr_other_alphabetic.c: New file.
94995         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
94996         * lib/unictype/pr_other_grapheme_extend.c: New file.
94997         * lib/unictype/pr_other_id_continue.c: New file.
94998         * lib/unictype/pr_other_id_start.c: New file.
94999         * lib/unictype/pr_other_lowercase.c: New file.
95000         * lib/unictype/pr_other_math.c: New file.
95001         * lib/unictype/pr_other_uppercase.c: New file.
95002         * lib/unictype/pr_paired_punctuation.c: New file.
95003         * lib/unictype/pr_paragraph_separator.c: New file.
95004         * lib/unictype/pr_pattern_syntax.c: New file.
95005         * lib/unictype/pr_pattern_white_space.c: New file.
95006         * lib/unictype/pr_private_use.c: New file.
95007         * lib/unictype/pr_punctuation.c: New file.
95008         * lib/unictype/pr_quotation_mark.c: New file.
95009         * lib/unictype/pr_radical.c: New file.
95010         * lib/unictype/pr_sentence_terminal.c: New file.
95011         * lib/unictype/pr_soft_dotted.c: New file.
95012         * lib/unictype/pr_space.c: New file.
95013         * lib/unictype/pr_terminal_punctuation.c: New file.
95014         * lib/unictype/pr_test.c: New file.
95015         * lib/unictype/pr_titlecase.c: New file.
95016         * lib/unictype/pr_unassigned_code_value.c: New file.
95017         * lib/unictype/pr_unified_ideograph.c: New file.
95018         * lib/unictype/pr_uppercase.c: New file.
95019         * lib/unictype/pr_variation_selector.c: New file.
95020         * lib/unictype/pr_white_space.c: New file.
95021         * lib/unictype/pr_xid_continue.c: New file.
95022         * lib/unictype/pr_xid_start.c: New file.
95023         * lib/unictype/pr_zero_width.c: New file.
95024         * lib/unictype/scripts.c: New file.
95025         * lib/unictype/sy_c_ident.c: New file.
95026         * lib/unictype/sy_c_whitespace.c: New file.
95027         * lib/unictype/sy_java_ident.c: New file.
95028         * lib/unictype/sy_java_whitespace.c: New file.
95030         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95031         Unicode 5.0.0.
95032         * lib/unictype/blocks.h: Likewise.
95033         * lib/unictype/categ_C.h: Likewise.
95034         * lib/unictype/categ_Cc.h: Likewise.
95035         * lib/unictype/categ_Cf.h: Likewise.
95036         * lib/unictype/categ_Cn.h: Likewise.
95037         * lib/unictype/categ_Co.h: Likewise.
95038         * lib/unictype/categ_Cs.h: Likewise.
95039         * lib/unictype/categ_L.h: Likewise.
95040         * lib/unictype/categ_Ll.h: Likewise.
95041         * lib/unictype/categ_Lm.h: Likewise.
95042         * lib/unictype/categ_Lo.h: Likewise.
95043         * lib/unictype/categ_Lt.h: Likewise.
95044         * lib/unictype/categ_Lu.h: Likewise.
95045         * lib/unictype/categ_M.h: Likewise.
95046         * lib/unictype/categ_Mc.h: Likewise.
95047         * lib/unictype/categ_Me.h: Likewise.
95048         * lib/unictype/categ_Mn.h: Likewise.
95049         * lib/unictype/categ_N.h: Likewise.
95050         * lib/unictype/categ_Nd.h: Likewise.
95051         * lib/unictype/categ_Nl.h: Likewise.
95052         * lib/unictype/categ_No.h: Likewise.
95053         * lib/unictype/categ_P.h: Likewise.
95054         * lib/unictype/categ_Pc.h: Likewise.
95055         * lib/unictype/categ_Pd.h: Likewise.
95056         * lib/unictype/categ_Pe.h: Likewise.
95057         * lib/unictype/categ_Pf.h: Likewise.
95058         * lib/unictype/categ_Pi.h: Likewise.
95059         * lib/unictype/categ_Po.h: Likewise.
95060         * lib/unictype/categ_Ps.h: Likewise.
95061         * lib/unictype/categ_S.h: Likewise.
95062         * lib/unictype/categ_Sc.h: Likewise.
95063         * lib/unictype/categ_Sk.h: Likewise.
95064         * lib/unictype/categ_Sm.h: Likewise.
95065         * lib/unictype/categ_So.h: Likewise.
95066         * lib/unictype/categ_Z.h: Likewise.
95067         * lib/unictype/categ_Zl.h: Likewise.
95068         * lib/unictype/categ_Zp.h: Likewise.
95069         * lib/unictype/categ_Zs.h: Likewise.
95070         * lib/unictype/categ_of.h: Likewise.
95071         * lib/unictype/combining.h: Likewise.
95072         * lib/unictype/ctype_alnum.h: Likewise.
95073         * lib/unictype/ctype_alpha.h: Likewise.
95074         * lib/unictype/ctype_blank.h: Likewise.
95075         * lib/unictype/ctype_cntrl.h: Likewise.
95076         * lib/unictype/ctype_digit.h: Likewise.
95077         * lib/unictype/ctype_graph.h: Likewise.
95078         * lib/unictype/ctype_lower.h: Likewise.
95079         * lib/unictype/ctype_print.h: Likewise.
95080         * lib/unictype/ctype_punct.h: Likewise.
95081         * lib/unictype/ctype_space.h: Likewise.
95082         * lib/unictype/ctype_upper.h: Likewise.
95083         * lib/unictype/ctype_xdigit.h: Likewise.
95084         * lib/unictype/decdigit.h: Likewise.
95085         * lib/unictype/digit.h: Likewise.
95086         * lib/unictype/mirror.h: Likewise.
95087         * lib/unictype/numeric.h: Likewise.
95088         * lib/unictype/pr_alphabetic.h: Likewise.
95089         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
95090         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
95091         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
95092         * lib/unictype/pr_bidi_block_separator.h: Likewise.
95093         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
95094         * lib/unictype/pr_bidi_common_separator.h: Likewise.
95095         * lib/unictype/pr_bidi_control.h: Likewise.
95096         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
95097         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
95098         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
95099         * lib/unictype/pr_bidi_european_digit.h: Likewise.
95100         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
95101         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
95102         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
95103         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
95104         * lib/unictype/pr_bidi_pdf.h: Likewise.
95105         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
95106         * lib/unictype/pr_bidi_whitespace.h: Likewise.
95107         * lib/unictype/pr_combining.h: Likewise.
95108         * lib/unictype/pr_composite.h: Likewise.
95109         * lib/unictype/pr_currency_symbol.h: Likewise.
95110         * lib/unictype/pr_dash.h: Likewise.
95111         * lib/unictype/pr_decimal_digit.h: Likewise.
95112         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95113         * lib/unictype/pr_deprecated.h: Likewise.
95114         * lib/unictype/pr_diacritic.h: Likewise.
95115         * lib/unictype/pr_extender.h: Likewise.
95116         * lib/unictype/pr_format_control.h: Likewise.
95117         * lib/unictype/pr_grapheme_base.h: Likewise.
95118         * lib/unictype/pr_grapheme_extend.h: Likewise.
95119         * lib/unictype/pr_grapheme_link.h: Likewise.
95120         * lib/unictype/pr_hex_digit.h: Likewise.
95121         * lib/unictype/pr_hyphen.h: Likewise.
95122         * lib/unictype/pr_id_continue.h: Likewise.
95123         * lib/unictype/pr_id_start.h: Likewise.
95124         * lib/unictype/pr_ideographic.h: Likewise.
95125         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95126         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95127         * lib/unictype/pr_ignorable_control.h: Likewise.
95128         * lib/unictype/pr_iso_control.h: Likewise.
95129         * lib/unictype/pr_join_control.h: Likewise.
95130         * lib/unictype/pr_left_of_pair.h: Likewise.
95131         * lib/unictype/pr_line_separator.h: Likewise.
95132         * lib/unictype/pr_logical_order_exception.h: Likewise.
95133         * lib/unictype/pr_lowercase.h: Likewise.
95134         * lib/unictype/pr_math.h: Likewise.
95135         * lib/unictype/pr_non_break.h: Likewise.
95136         * lib/unictype/pr_not_a_character.h: Likewise.
95137         * lib/unictype/pr_numeric.h: Likewise.
95138         * lib/unictype/pr_other_alphabetic.h: Likewise.
95139         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95140         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95141         * lib/unictype/pr_other_id_continue.h: Likewise.
95142         * lib/unictype/pr_other_id_start.h: Likewise.
95143         * lib/unictype/pr_other_lowercase.h: Likewise.
95144         * lib/unictype/pr_other_math.h: Likewise.
95145         * lib/unictype/pr_other_uppercase.h: Likewise.
95146         * lib/unictype/pr_paired_punctuation.h: Likewise.
95147         * lib/unictype/pr_paragraph_separator.h: Likewise.
95148         * lib/unictype/pr_pattern_syntax.h: Likewise.
95149         * lib/unictype/pr_pattern_white_space.h: Likewise.
95150         * lib/unictype/pr_private_use.h: Likewise.
95151         * lib/unictype/pr_punctuation.h: Likewise.
95152         * lib/unictype/pr_quotation_mark.h: Likewise.
95153         * lib/unictype/pr_radical.h: Likewise.
95154         * lib/unictype/pr_sentence_terminal.h: Likewise.
95155         * lib/unictype/pr_soft_dotted.h: Likewise.
95156         * lib/unictype/pr_space.h: Likewise.
95157         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95158         * lib/unictype/pr_titlecase.h: Likewise.
95159         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95160         * lib/unictype/pr_unified_ideograph.h: Likewise.
95161         * lib/unictype/pr_uppercase.h: Likewise.
95162         * lib/unictype/pr_variation_selector.h: Likewise.
95163         * lib/unictype/pr_white_space.h: Likewise.
95164         * lib/unictype/pr_xid_continue.h: Likewise.
95165         * lib/unictype/pr_xid_start.h: Likewise.
95166         * lib/unictype/pr_zero_width.h: Likewise.
95167         * lib/unictype/scripts.h: Likewise.
95168         * lib/unictype/scripts_byname.gperf: Likewise.
95169         * lib/unictype/sy_c_ident.h: Likewise.
95170         * lib/unictype/sy_c_whitespace.h: Likewise.
95171         * lib/unictype/sy_java_ident.h: Likewise.
95172         * lib/unictype/sy_java_whitespace.h: Likewise.
95174         * lib/unictype/Makefile: New file.
95175         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95176         glibc.
95177         * lib/unictype/3level.h: New file, copied from glibc.
95178         * lib/unictype/3levelbit.h: New file.
95180 2007-11-11  Bruno Haible  <bruno@clisp.org>
95182         * modules/gperf: New file.
95183         * modules/iconv_open (Depends-on): Add it.
95184         (Makefile.am): Remove the GPERF definition.
95186 2007-11-11  Bruno Haible  <bruno@clisp.org>
95188         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95189         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95191 2007-11-11  Bruno Haible  <bruno@clisp.org>
95193         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95194         (usage): Remove function.
95196 2007-11-11  Bruno Haible  <bruno@clisp.org>
95198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95199         gl_FUNC_CEILF_LIBS.
95200         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95201         gl_FUNC_CEIL_LIBS.
95202         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95203         gl_FUNC_CEILL_LIBS.
95204         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95205         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95206         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95208 2007-11-11  Bruno Haible  <bruno@clisp.org>
95210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95211         roundf were declared but do not exist on functions.
95212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95213         roundl were declared but do not exist on functions.
95214         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95215         HAVE_FLOORL_AND_CEILL, respectively.
95216         Needed for Sun C on Solaris 10.
95218 2007-11-11  Bruno Haible  <bruno@clisp.org>
95220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95221         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95222         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95223         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95225         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95226         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95227         HAVE_DECL_ROUNDF.
95228         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95229         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95231         of HAVE_DECL_ROUND*.
95232         * modules/math (Makefile.am): Update.
95234 2007-11-10  Bruno Haible  <bruno@clisp.org>
95236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95237         ptrdiff_t as m4/intl.m4.
95239 2007-11-10  Jim Meyering  <meyering@redhat.com>
95241         Avoid link failure for the argmatch test.
95242         * tests/test-argmatch.c (usage): Define function to avoid a link
95243         failure: argmatch_die requires a usage function.
95245 2007-11-09  Bruno Haible  <bruno@clisp.org>
95247         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95248         * doc/functions/vsnprintf.texi: Likewise.
95249         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95250         with a size argument < 2.
95252 2007-11-09  Bruno Haible  <bruno@clisp.org>
95254         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95255         buffer. Fixes an inefficiency introduced on 2007-11-03.
95257 2007-11-09  Bruno Haible  <bruno@clisp.org>
95259         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95260         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95262 2007-11-08  Jim Meyering  <meyering@redhat.com>
95264         Change cache variable name prefix "jm_" to "gl_" everywhere.
95265         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95266         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95267         * m4/uptime.m4: s/gl_/jm_/
95269 2007-11-07  Bruno Haible  <bruno@clisp.org>
95271         Update to GNU gettext 0.17.
95272         * m4/intl.m4: Update to GNU gettext 0.17.
95273         * m4/po.m4: Likewise.
95274         * modules/gettext (Files): Remove m4/ulonglong.m4.
95275         (configure.ac): Require gettext infrastructure from version 0.17.
95277 2007-11-06  Bruno Haible  <bruno@clisp.org>
95279         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95280         symbolic values are not defined in a public header.
95281         * lib/freadable.c (freadable) [QNX]: Likewise.
95282         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95283         * lib/freading.c (freading) [QNX]: Likewise.
95284         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95285         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95286         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95287         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95288         Reported by Alain Magloire.
95290         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95292 2007-11-05  Bruno Haible  <bruno@clisp.org>
95294         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95295         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95296         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95297         Reported by Eric Blake.
95299 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95300             Bruno Haible  <bruno@clisp.org>
95302         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95303         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95304         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95305         (malloc): Undefine also before including <stdlib.h>.
95306         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95307         Needed on OSF/1 4.0.
95309 2007-11-05  Jim Meyering  <meyering@redhat.com>
95311         git-version-gen: sync from coreutils.
95312         * build-aux/git-version-gen: Add comments.
95313         Change the first '-' to '.' in the snapshot version string,
95314         e.g., 6.9-377-08144 -> 6.9.377-08144
95315         Remove first parameter.
95316         Don't declare a version "-dirty" merely because a time
95317         stamp has changed.
95319 2007-11-04  Bruno Haible  <bruno@clisp.org>
95321         * lib/lock.h: Protect all macro definitions containing an 'if'
95322         statement through a "do { ... } while (0)".
95323         * lib/tls.h: Likewise.
95325 2007-11-04  Bruno Haible  <bruno@clisp.org>
95327         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95329 2007-11-04  Bruno Haible  <bruno@clisp.org>
95331         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95332         * modules/fprintf-posix (Depends-on): Add nocrash.
95333         * modules/snprintf-posix (Depends-on): Likewise.
95334         * modules/sprintf-posix (Depends-on): Likewise.
95335         * modules/vasnprintf-posix (Depends-on): Likewise.
95336         * modules/vasprintf-posix (Depends-on): Likewise.
95337         * modules/vfprintf-posix (Depends-on): Likewise.
95338         * modules/vsnprintf-posix (Depends-on): Likewise.
95339         * modules/vsprintf-posix (Depends-on): Likewise.
95340         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95341         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95342         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95343         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95344         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95345         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95346         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95348 2007-11-04  Bruno Haible  <bruno@clisp.org>
95350         * modules/nocrash: New file.
95351         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95352         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95354 2007-11-04  Bruno Haible  <bruno@clisp.org>
95356         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95357         precision handling.
95358         * tests/test-vasprintf-posix.c (test_function): Likewise.
95359         * tests/test-snprintf-posix.h (test_function): Likewise.
95360         * tests/test-sprintf-posix.h (test_function): Likewise.
95362         Fix *printf behaviour for large precisions on mingw and BeOS.
95363         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95364         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95366         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95368         gl_PRINTF_PRECISION and test its result. Invoke
95369         gl_PREREQ_VASNPRINTF_PRECISION.
95370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95377         * doc/functions/fprintf.texi: Update.
95378         * doc/functions/printf.texi: Update.
95379         * doc/functions/snprintf.texi: Update.
95380         * doc/functions/sprintf.texi: Update.
95381         * doc/functions/vfprintf.texi: Update.
95382         * doc/functions/vprintf.texi: Update.
95383         * doc/functions/vsnprintf.texi: Update.
95384         * doc/functions/vsprintf.texi: Update.
95386 2007-11-04  Bruno Haible  <bruno@clisp.org>
95388         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95390 2007-11-04  Bruno Haible  <bruno@clisp.org>
95392         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95393         Reported by Sylvain Beucler <beuc@gnu.org>.
95395 2007-11-03  Bruno Haible  <bruno@clisp.org>
95397         * tests/test-fprintf-posix2.sh: New file.
95398         * tests/test-fprintf-posix2.c: New file.
95399         * modules/fprintf-posix-tests (Files): Add them.
95400         (TESTS): Add test-fprintf-posix2.sh.
95401         (configure.ac): Check for getrlimit and setrlimit.
95402         (check_PROGRAMS): Add test-fprintf-posix2.
95404         * tests/test-printf-posix2.sh: New file.
95405         * tests/test-printf-posix2.c: New file.
95406         * modules/printf-posix-tests (Files): Add them.
95407         (TESTS): Add test-printf-posix2.sh.
95408         (configure.ac): Check for getrlimit and setrlimit.
95409         (check_PROGRAMS): Add test-printf-posix2.
95411         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95412         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95413         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95414         (decode_double): New function, copied from decode_long_double.
95415         (scale10_round_decimal_decoded): New function, extracted from
95416         scale10_round_decimal_long_double.
95417         (scale10_round_decimal_long_double): Use it.
95418         (scale10_round_decimal_double): New function.
95419         (floorlog10): New function.
95420         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95422         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95424         gl_PRINTF_ENOMEM and test its result. Invoke
95425         gl_PREREQ_VASNPRINTF_ENOMEM.
95426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95429         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95430         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95432         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95433         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95434         * modules/snprintf-posix (Depends-on): Likewise.
95435         * modules/sprintf-posix (Depends-on): Likewise.
95436         * modules/vasnprintf-posix (Depends-on): Likewise.
95437         * modules/vasprintf-posix (Depends-on): Likewise.
95438         * modules/vfprintf-posix (Depends-on): Likewise.
95439         * modules/vsnprintf-posix (Depends-on): Likewise.
95440         * modules/vsprintf-posix (Depends-on): Likewise.
95441         * doc/functions/fprintf.texi: Update.
95442         * doc/functions/printf.texi: Update.
95443         * doc/functions/snprintf.texi: Update.
95444         * doc/functions/sprintf.texi: Update.
95445         * doc/functions/vfprintf.texi: Update.
95446         * doc/functions/vprintf.texi: Update.
95447         * doc/functions/vsnprintf.texi: Update.
95448         * doc/functions/vsprintf.texi: Update.
95450 2007-11-03  Bruno Haible  <bruno@clisp.org>
95452         * modules/frexp-nolibm-tests: New file.
95454         * modules/frexp-nolibm: New file.
95455         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95457 2007-11-03  Bruno Haible  <bruno@clisp.org>
95459         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95460         value is C99 compliant.
95461         Needed for OSF/1 5.1.
95463 2007-11-03  Bruno Haible  <bruno@clisp.org>
95465         Fix out-of-memory handling of vasnprintf.
95466         * lib/printf-parse.c: Include <errno.h>.
95467         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95468         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95469         is already set.
95471 2007-11-02  Eric Blake  <ebb9@byu.net>
95473         Fix tests on cygwin.
95474         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95476 2007-11-01  Bruno Haible  <bruno@clisp.org>
95478         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95479         warning.
95480         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95481         needed for POSIX compatibility.
95483 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95485         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95486         for compatibility with GNU.
95488 2007-11-01  Bruno Haible  <bruno@clisp.org>
95490         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95491         (putenv): Renamed from rpl_putenv. Change argument type from
95492         'const char *' to 'char *'.
95493         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95494         of defining putenv in config.h, just set REPLACE_PUTENV.
95495         * modules/putenv (Depends-on): Add stdlib.
95496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95497         (Include): Use <stdlib.h>.
95498         * lib/stdlib.in.h (putenv): New declaration.
95499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95500         REPLACE_PUTENV.
95501         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95502         REPLACE_PUTENV.
95503         Needed for MacOS X 10.5.0.
95504         Reported by Peter O'Gorman <peter@pogma.com>.
95506 2007-11-01  Jim Meyering  <meyering@redhat.com>
95508         Treat an empty date string exactly like "0".
95509         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95510         if the remaining date string (to be parsed) is empty, use "0".
95511         Reported by Mischa Molhoek and discussed in this thread:
95512         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95514 2007-10-31  Bruno Haible  <bruno@clisp.org>
95516         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95517         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95518         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95519         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95520         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95521         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95523 2007-10-31  Bruno Haible  <bruno@clisp.org>
95525         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95526         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95527         (AC_TYPE_LONG_LONG_INT): Use it.
95528         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95529         it as well.
95530         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95531         to m4/longlong.m4.
95532         * modules/stdint (Files): Remove m4/ulonglong.m4.
95533         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95534         m4/ulonglong.m4.
95535         * modules/strtoumax (Files): Likewise.
95537 2007-10-30  Bruno Haible  <bruno@clisp.org>
95539         * modules/xvasprintf-posix: New file.
95540         Suggested by Eric Blake.
95542 2007-10-30  Bruno Haible  <bruno@clisp.org>
95544         * modules/xprintf-posix-tests: New file.
95545         * tests/test-xprintf-posix.sh: New file.
95546         * tests/test-xprintf-posix.c: New file.
95547         * tests/test-xfprintf-posix.c: New file.
95549         * modules/xprintf-posix: New file.
95551 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95553         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95554         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95555         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95557 2007-10-29  Bruno Haible  <bruno@clisp.org>
95559         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95560         contain the special marker '_cv_'.
95561         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95562         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95563         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95564         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95565         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95566         Reported by Ralf Wildenhues.
95568 2007-10-29  Bruno Haible  <bruno@clisp.org>
95570         * gnulib-tool (func_import): When --lgpl is not specified, set
95571         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95572         GPLv3.
95573         Reported by Simon Josefsson.
95575 2007-10-28  Bruno Haible  <bruno@clisp.org>
95577         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95578         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95579         HAVE_DECL_ISFINITE.
95580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95581         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95582         HAVE_DECL_ISFINITE.
95584 2007-10-28  Bruno Haible  <bruno@clisp.org>
95586         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95587         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95589 2007-10-28  Bruno Haible  <bruno@clisp.org>
95591         Fix link errors with Sun C 5.0 on Solaris 10.
95592         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95593         function is declared but not present in the compiler's libm.
95594         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95595         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95596         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95597         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95598         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95599         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95600         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95602         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95603         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95604         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95605         HAVE_DECL_FLOORL.
95607 2007-10-28  Bruno Haible  <bruno@clisp.org>
95609         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95610         gl_FUNC_FLOORL. Cache the result.
95611         (gl_FUNC_FLOORL): Use it.
95612         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95613         gl_FUNC_CEILL. Cache the result.
95614         (gl_FUNC_CEILL): Use it.
95616         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95617         gl_FUNC_FLOOR. Cache the result.
95618         (gl_FUNC_FLOOR): Use it.
95619         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95620         gl_FUNC_CEIL. Cache the result.
95621         (gl_FUNC_CEIL): Use it.
95623         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95624         gl_FUNC_FLOORF. Cache the result.
95625         (gl_FUNC_FLOORF): Use it.
95626         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95627         gl_FUNC_CEILF. Cache the result.
95628         (gl_FUNC_CEILF): Use it.
95630 2007-10-28  Bruno Haible  <bruno@clisp.org>
95632         * gnulib-tool: Allow specifying the LGPL version number through
95633         --lgpl=2 or --lgpl=3.
95634         (func_usage): Document --lgpl with argument.
95635         Handle --lgpl=... arguments.
95636         (func_import): Recognize also gl_LGPL calls with an argument. When
95637         --lgpl=2 is used and the module's license is just LGPL, report an
95638         error. Set sed_transform_lib_file according to the lgpl variable. In
95639         the generated files, use --lgpl or gl_LGPL invocations with argument,
95640         if necessary.
95641         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95642         an LGPv2+ license.
95643         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95644         gl_LGPL macro.
95646 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95647             Bruno Haible  <bruno@clisp.org>
95649         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95650         (u16_uctomb_aux): Likewise.
95651         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95652         !HAVE_INLINE.
95653         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95655 2007-10-28  Bruno Haible  <bruno@clisp.org>
95657         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95658         Invoke AM_GETTEXT_OPTION if it exists.
95659         * modules/vasprintf: Likewise.
95660         * modules/verror: Likewise.
95661         * modules/xprintf: Likewise.
95662         * modules/xvasprintf: Likewise.
95664 2007-10-27  Ben Pfaff  <blp@gnu.org>
95666         * lib/math.in.h: Define isfinite macro and prototypes for
95667         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95668         implementations.
95669         * m4/math_h.m4: New substitutions for isfinite module.
95670         * lib/isfinite.c: New file.
95671         * m4/isfinite.m4: New file.
95672         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95673         * modules/isfinite: New file.
95674         * modules/isfinite-tests: New file.
95675         * tests/tests-isfinite.c: New file.
95676         * doc/functions/isfinite.texi: Mention isfinite module.
95677         * MODULES.html.sh: Mention new module.
95679 2007-10-27  Ben Pfaff  <blp@gnu.org>
95681         Ralf Wildenhues reported that Tru64 4.0D declares the round
95682         functions but does not have definitions.
95683         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95684         cannot be found in any library, set the output variable to
95685         "missing" instead of "".
95686         * m4/round.m4: Also use our substitute if we cannot find round in
95687         any library, even if it is declared.
95688         * m4/roundf.m4: Likewise for roundf.
95689         * m4/roundl.m4: Likewise for roundl.
95690         * lib/math.in.h: Undefine roundf, round, roundl before defining
95691         their replacements, to allow for hypothetical systems where these
95692         may be defined as macros but not available in libraries.
95694 2007-10-27  Bruno Haible  <bruno@clisp.org>
95696         * doc/gnulib.texi: Invoke @firstparagraphindent.
95697         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95698         changes in gnulib.
95699         (Source changes): New section.
95701 2007-10-26  Bruno Haible  <bruno@clisp.org>
95703         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95704         borrowed from autoconf.
95706 2007-10-26  Bruno Haible  <bruno@clisp.org>
95708         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95709         strerror returned the empty string. Needed on HP-UX 11.00.
95711 2007-10-24  Micah Cowan  <micah@cowan.name>
95713         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95714         * build-aux/bootstrap: Remove support for now-unnecessary option,
95715         --cvs-user, and envvars CVS_USER, CVS_RSH.
95717 2007-10-24  Jim Meyering  <meyering@redhat.com>
95719         Avoid diagnostics from sha1sum when there is no cached checksum.
95720         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95721         if the po.s1 file hasn't been created yet.
95723         * build-aux/bootstrap: Sync from coreutils:
95724         2007-10-24  Jim Meyering  <meyering@redhat.com>
95725         Get gnulib from the git repository, not from an obsolete cvs one.
95726         * build-aux/bootstrap: Suggestion from Micah Cowan.
95727         2007-10-04  Jim Meyering  <jim@meyering.net>
95728         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95729         (update_po_files): Work also when there are no .po files in po/.
95731 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95733         * README: Append ".git" to git and cg examples.
95734         Problem reported by Benoit Sigoure.
95736 2007-10-23  Micah Cowan  <micah@cowan.name>
95738         * users.txt: Add wget.
95740 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95742         Fix linking of some unistdio tests on FreeBSD.
95743         * modules/unistdio/u16-vsnprintf-tests
95744         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95745         * modules/unistdio/u16-vsprintf-tests
95746         (test_u16_vsnprintf1_LDADD): Likewise.
95747         * modules/unistdio/u32-vsnprintf-tests
95748         (test_u32_vsnprintf1_LDADD): Likewise.
95749         * modules/unistdio/u32-vsprintf-tests
95750         (test_u32_vsprintf1_LDADD): Likewise.
95751         * modules/unistdio/u8-vsnprintf-tests
95752         (test_u8_vsnprintf1_LDADD): Likewise.
95753         * modules/unistdio/u8-vsprintf-tests
95754         (test_u8_vsprintf1_LDADD): Likewise.
95755         * modules/unistdio/ulc-vsnprintf-tests
95756         (test_ulc_vsnprintf1_LDADD): Likewise.
95757         * modules/unistdio/ulc-vsprintf-tests
95758         (test_ulc_vsprintf1_LDADD): Likewise.
95760         Fix linking of some uniconv tests on FreeBSD.
95761         * modules/uniconv/u16-conv-from-enc-tests
95762         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95763         * modules/uniconv/u16-conv-to-enc-tests
95764         (test_u16_conv_to_enc_LDADD): Likewise.
95765         * modules/uniconv/u16-strconv-from-enc-tests
95766         (test_u16_strconv_from_enc_LDADD): Likewise.
95767         * modules/uniconv/u16-strconv-to-enc-tests
95768         (test_u16_strconv_to_enc_LDADD): Likewise.
95769         * modules/uniconv/u32-conv-from-enc-tests
95770         (test_u32_conv_from_enc_LDADD): Likewise.
95771         * modules/uniconv/u32-conv-to-enc-tests
95772         (test_u32_conv_to_enc_LDADD): Likewise.
95773         * modules/uniconv/u32-strconv-from-enc-tests
95774         (test_u32_strconv_from_enc_LDADD): Likewise.
95775         * modules/uniconv/u32-strconv-to-enc-tests
95776         (test_u32_strconv_to_enc_LDADD): Likewise.
95777         * modules/uniconv/u8-conv-from-enc-tests
95778         (test_u8_conv_from_enc_LDADD): Likewise.
95779         * modules/uniconv/u8-conv-to-enc-tests
95780         (test_u8_conv_to_enc_LDADD): Likewise.
95781         * modules/uniconv/u8-strconv-from-enc-tests
95782         (test_u8_strconv_from_enc_LDADD): Likewise.
95783         * modules/uniconv/u8-strconv-to-enc-tests
95784         (test_u8_strconv_to_enc_LDADD): Likewise.
95786 2007-10-22  Bruno Haible  <bruno@clisp.org>
95788         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95789         size.
95791 2007-10-22  Eric Blake  <ebb9@byu.net>
95793         Tweak x*printf documentation.
95794         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95795         variable name and comments.
95796         Suggested by Bruno Haible.
95798 2007-10-22  Bruno Haible  <bruno@clisp.org>
95800         * lib/acl.c (copy_acl): Fix file name in comment.
95802 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95804         Fix Tru64 problem with stdbool.h.
95805         * lib/stdbool.in.h (false, true):
95806         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95807         Don't declare as an enum in this situation; it runs afoul of Tru64.
95808         Problem reported by Steven M. Schweda in
95809         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95811 2007-10-22  Eric Blake  <ebb9@byu.net>
95813         Also wrap vf?printf.
95814         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95815         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95816         (xvprintf, xvfprintf): New functions.
95818 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95820         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95821         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95823         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95824         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95826 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95828         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95829         by Bruno Haible.
95831 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95833         * lib/getloadavg.c
95834         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95835         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95837         * tests/test-i-ring.c: Work for C89.
95839 2007-10-22  Bruno Haible  <bruno@clisp.org>
95841         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95842         -1u, in preprocessor expression, so that we don't test for the bug
95843         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95844         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95846 2007-10-22  Eric Blake  <ebb9@byu.net>
95848         * tests/test-yesno.sh: Silence stderr during test.
95850 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95852         * modules/crypto/gc-camellia: New file.
95854         * m4/gc-camellia.m4: New file.
95856         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95858         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95860 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95862         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95863         --help to stdout.  Reported by sms@antinode.org (Steven
95864         M. Schweda).
95866 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95868         * users.txt: Fix link to libksba.
95870 2007-10-21  Ben Pfaff  <blp@gnu.org>
95872         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95873         round.c roundf implementation that depends on floorf and ceilf to
95874         be tested unconditionally.
95876 2007-10-21  Ben Pfaff  <blp@gnu.org>
95878         * m4/check-libm-func.m4: Removed.
95879         * m4/check-math-lib.m4: New file.
95880         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95881         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95882         definition and lack of AC_LIBOBJ([roundf]).
95883         * m4/roundl.m4: Ditto, and similarly for roundl.
95884         * modules/round: Reference new m4 file.
95885         * modules/roundf: Ditto.
95886         * modules/roundl: Ditto.
95887         * tests/test-round2.c (main): Use ROUND instead of round.
95888         Bug report from Bruno Haible.
95890 2007-10-21  Bruno Haible  <bruno@clisp.org>
95892         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95893         context.
95895 2007-10-21  Bruno Haible  <bruno@clisp.org>
95897         * tests/test-wcwidth.c (main): Allow negative result for some control
95898         characters.
95900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95901         Needed on OSF/1 5.1.
95903 2007-10-21  Bruno Haible  <bruno@clisp.org>
95905         * tests/test-floorf1.c: Include isnanf.h.
95906         (main): Use isnanf() instead of isnan().
95907         * tests/test-ceilf1.c: Include isnanf.h.
95908         (main): Use isnanf() instead of isnan().
95909         * tests/test-truncf1.c: Include isnanf.h.
95910         (main): Use isnanf() instead of isnan().
95911         * tests/test-roundf1.c: Include isnanf.h.
95912         (main): Use isnanf() instead of isnan().
95914 2007-10-21  Eric Blake  <ebb9@byu.net>
95916         * users.txt: Update URL for m4.
95918 2007-10-21  Bruno Haible  <bruno@clisp.org>
95920         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95922 2007-10-21  Bruno Haible  <bruno@clisp.org>
95924         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95925         Git's management files if the CVS files are not present.
95927 2007-10-20  Bruno Haible  <bruno@clisp.org>
95929         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95930         gcc-3.4.x.
95932 2007-10-20  Ben Pfaff  <blp@gnu.org>
95934         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95935         implementations.
95936         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95937         * lib/round.c: New file.
95938         * lib/roundf.c: New file.
95939         * lib/roundl.c: New file.
95940         * m4/round.m4: New file.
95941         * m4/roundf.m4: New file.
95942         * m4/roundl.m4: New file.
95943         * m4/check-libm-func-m4: New file.
95944         * modules/math: Replace round, roundf, roundl related @VARS@ in
95945         math.in.h.
95946         * modules/round: New file.
95947         * modules/round-tests: New file.
95948         * modules/roundf: New file.
95949         * modules/roundf-tests: New file.
95950         * modules/roundl: New file.
95951         * modules/roundl-tests: New file.
95952         * tests/test-round1.c: New file.
95953         * tests/test-round2.c: New file.
95954         * tests/test-roundf1.c: New file.
95955         * tests/test-roundf2.c: New file.
95956         * tests/test-roundl.c: New file.
95957         * doc/functions/round.texi: Mention round module.
95958         * doc/functions/roundf.texi: Mention roundf module.
95959         * doc/functions/roundl.texi: Mention roundl module.
95960         * MODULES.html.sh: Mention new modules.
95961         Thanks to Bruno Haible for suggestions.
95963 2007-10-20  Jim Meyering  <meyering@redhat.com>
95965         * lib/xprintf.c: Include <config.h> unconditionally.
95967         Change xprintf's license to GPL.
95968         * modules/xprintf (License): s/LGPL/GPL/, since this module
95969         depends on modules (exit and exitfail) which are GPL.
95970         Suggestion from Bruno Haible.
95972         xprintf fixes.
95973         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
95974         Use a clearer diagnostic.
95975         Patch from Bruno Haible.
95977 2007-10-20  Bruno Haible  <bruno@clisp.org>
95979         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
95980         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
95981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95983 2007-10-20  Bruno Haible  <bruno@clisp.org>
95985         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
95986         precision in the comparison result > x - 1 or similar.
95987         * tests/test-ceilf2.c (correct_result_p): Likewise.
95988         * tests/test-truncf2.c (correct_result_p): Likewise.
95989         * tests/test-trunc2.c (correct_result_p): Likewise.
95990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95992 2007-10-20  Bruno Haible  <bruno@clisp.org>
95994         * modules/ceil: New file.
95995         * m4/ceil.m4: New file.
95996         * doc/functions/ceil.texi: Mention the 'ceil' module.
95998 2007-10-20  Bruno Haible  <bruno@clisp.org>
96000         * modules/floor: New file.
96001         * m4/floor.m4: New file.
96002         * doc/functions/floor.texi: Mention the 'floor' module.
96004 2007-10-20  Bruno Haible  <bruno@clisp.org>
96006         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96007         of %a.
96008         * modules/floorf-tests (Depends-on): Likewise.
96009         * modules/truncf-tests (Depends-on): Likewise.
96010         * modules/trunc-tests (Depends-on): Likewise.
96011         Reported by Ben Pfaff.
96013 2007-10-19  Jim Meyering  <meyering@redhat.com>
96015         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96016         Don't bother testing specific errno values.  Just test ferror.
96018         New module: xprintf
96019         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96021 2007-10-19  Bruno Haible  <bruno@clisp.org>
96023         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96024         syntax.
96025         * modules/javaexec (Makefile.am): Likewise.
96026         * modules/relocatable-prog (Makefile.am): Likewise.
96027         Suggested by Jim Meyering.
96029 2007-10-18  Bruno Haible  <bruno@clisp.org>
96031         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96032         Reported by Jim Meyering.
96034 2007-10-18  Eric Blake  <ebb9@byu.net>
96036         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96038 2007-10-18  Bruno Haible  <bruno@clisp.org>
96040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96041         the format string into writable memory. Needed in Fortify conditions.
96043 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96044             Bruno Haible  <bruno@clisp.org>
96046         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96047         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96048         * modules/trim (Depends-on): Add mbchar.
96049         (configure.ac): Add gl_FUNC_MBRTOWC.
96050         (Makefile.am): Augment lib_SOURCES.
96052 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96054         Modify glob.c to use fstatat and dirfd, to simplify it.
96055         Suggested by Eric Blake.
96056         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96057         Don't include <stdbool.h>; not used.
96058         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96059         (link_exists_p): Simplify implementation, since we can now assume
96060         dirfd and fstatat.
96061         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96063 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96065         * gnulib-tool (func_get_dependencies): Fix sed script to
96066         match only tests.
96068 2007-10-17  Bruno Haible  <bruno@clisp.org>
96070         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96071         allow locale names without encoding suffix.
96072         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96073         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96075 2007-10-16  Bruno Haible  <bruno@clisp.org>
96077         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
96078         * lib/getgroups.c (getgroups): Likewise.
96079         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
96081 2007-10-16  Bruno Haible  <bruno@clisp.org>
96083         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
96084         * modules/malloc-posix (License): Likewise.
96085         * modules/realloc-posix (License): Likewise.
96086         * modules/calloc-posix (License): Likewise.
96087         * modules/intprops (License): Change from GPL to LGPL, with
96088         Paul Eggert's approval.
96090 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96092         Merge glibc changes into lib/glob.c.
96094         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
96095         2007-10-15 04:59:03 UTC.  Here are the changes:
96097         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
96099         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
96101         * lib/glob.c: Add some branch prediction throughout.
96103         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
96105         [BZ #5103]
96106         * lib/glob.c (glob): Recognize patterns starting \/.
96108         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96110         [BZ #3996]
96111         * lib/glob.c (attribute_hidden): Define if not defined.
96112         (glob): Unescape dirname, filename or username when needed and not
96113         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96114         is NULL.  Handle unescaped [ in pattern without closing ].
96115         Don't pass GLOB_CHECK down to recursive glob for directories.
96116         (__glob_pattern_type): New function.
96117         (__glob_pattern_p): Implement using __glob_pattern_type.
96118         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96119         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96120         Remove unreachable code.
96122         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96124         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96125         explain why there are no leaks.
96127         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96129         [BZ #3253]
96130         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96131         time, rather allocate increasingly bigger arrays of pointers, if
96132         possible with alloca, if too large with malloc.
96134 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96136         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96137         Problem reported by H.Merijn Brand in
96138         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96139         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96140         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96142 2007-10-15  Bruno Haible  <bruno@clisp.org>
96144         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96145         with explicit rpl_ prefix.
96146         * lib/fopen.c (fopen): Likewise.
96147         * lib/freopen.c (freopen): Likewise.
96148         * lib/iconv.c (iconv): Likewise.
96149         * lib/iconv_close.c (iconv_close): Likewise.
96151 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96153         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96155 2007-10-15  Bruno Haible  <bruno@clisp.org>
96157         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96158         <stddef.h> instead of <stdlib.h> since we only need NULL.
96159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96161 2007-10-15  Bruno Haible  <bruno@clisp.org>
96163         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96164         Replace paragraph talking about LIBOBJS.
96165         Reported by Colin Watson <cjwatson@debian.org>.
96167 2007-10-15  Bruno Haible  <bruno@clisp.org>
96169         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96170         <stdlib.h> before using NULL.
96172 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96174         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96175         Reported by Albert Chin <china@thewrittenword.com>.
96177 2007-10-14  Bruno Haible  <bruno@clisp.org>
96179         * modules/iconv_open-utf-tests: New file.
96180         * tests/test-iconv-utf.c: New file.
96182         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96183         * modules/iconv_open-utf: New file.
96184         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96185         (iconv, iconv_close): New declarations.
96186         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96187         be defined.
96188         (iconv_open): Add special handling of conversion between UTF-8 and
96189         UTF-{16,32}{BE,LE}.
96190         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96191         * lib/iconv_close.c: New file.
96192         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96193         gl_FUNC_ICONV_OPEN.
96194         (gl_FUNC_ICONV_OPEN): Use it.
96195         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96196         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96197         and REPLACE_ICONV_UTF.
96198         * modules/iconv_open (Depends-on): Add c-strcase.
96199         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96200         ICONV_CONST.
96201         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96203 2007-10-13  Albert Chin  <china@thewrittenword.com>
96204             Bruno Haible  <bruno@clisp.org>
96206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96207         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96209 2007-10-13  Bruno Haible  <bruno@clisp.org>
96211         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96212         defined, use the ISO C99 inline semantics.
96213         * lib/argp.h (ARGP_EI): Likewise.
96215 2007-10-13  Bruno Haible  <bruno@clisp.org>
96217         Handle 'inline' change in gcc 4.3.0.
96218         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96219         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96220         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96221         argp_fmtstream_point): Disable 'extern' declaration if the function
96222         definition is going to be provided inline.
96223         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96224         semantics, not the ISO C99 inline semantics.
96225         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96226         'extern' declaration if the function definition is going to be provided
96227         inline.
96228         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96229         the GNU C inline semantics, not the ISO C99 inline semantics. With
96230         GCC 4.2, avoid a warning.
96232 2007-10-13  Bruno Haible  <bruno@clisp.org>
96234         * lib/freading.h (freading): Enable the use of __freading for
96235         glibc >= 2.7.
96236         * lib/freading.c (freading): Likewise.
96238 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96240         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96241         "warning: C99 inline functions are not supported; using GNU89".
96243 2007-10-12  Bruno Haible  <bruno@clisp.org>
96245         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96246         of 2.
96247         * tests/test-ceilf2.c: New file.
96248         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96250         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96251         * modules/ceilf-tests: Update.
96253 2007-10-12  Bruno Haible  <bruno@clisp.org>
96255         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96256         of 2.
96257         * tests/test-floorf2.c: New file.
96258         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96260         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96261         * modules/floorf-tests: Update.
96263 2007-10-12  Bruno Haible  <bruno@clisp.org>
96265         * tests/test-trunc2.c: New file.
96266         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96268         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96269         * modules/trunc-tests: Update.
96271 2007-10-12  Bruno Haible  <bruno@clisp.org>
96273         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96274         of 2.
96275         * tests/test-truncf2.c: New file.
96276         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96278         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96279         * modules/truncf-tests: Update.
96281 2007-10-11  Eric Blake  <ebb9@byu.net>
96283         Don't claim strerror is broken on Interix.
96284         * doc/functions/strerror.texi (strerror): Known broken systems are
96285         now Solaris 8, and not Interix.
96286         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96287         Interix on cross-compile.
96288         Reported by Martin Koeppe in
96289         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96291 2007-10-11  Bruno Haible  <bruno@clisp.org>
96293         * modules/i-ring-tests: New file.
96294         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96295         instead of assert.
96297 2007-10-11  Bruno Haible  <bruno@clisp.org>
96299         * modules/filenamecat-tests: New file.
96300         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96301         * lib/filenamecat.c: Remove test code.
96303 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96305         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96307         * lib/strerror.c: Include <string.h> always, to test interface,
96308         and to remove the need for the dummy.
96309         Include intprops.h to compute width instead of doing it ourselves
96310         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96311         (strerror): Define it to return NULL if there's no system strerror.
96312         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96313         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96314         ancient pre-strerror Unix systems well any more.  Saying "unknown
96315         system error" is enough.
96316         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96317         simpler strerror.c implementation.
96318         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96319         Simplify the tests to reflect the simpler strerror implementation.
96320         * modules/strerror (Depends-on): Add intprops.
96322 2007-10-09  Eric Blake  <ebb9@byu.net>
96324         Silence test-fpending.
96325         * modules/fpending-tests (Files): Add wrapper script.
96326         * tests/test-fpending.sh: New file.
96328 2007-10-09  Bruno Haible  <bruno@clisp.org>
96330         * MODULES.html.sh (func_module): Don't create a hyperlink for
96331         function names like 'printf_frexp'.
96332         (Misc): Add crc, memxor.
96333         (Characteristics of floating types): New section.
96334         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96335         isnanf-nolibm, signbit, trunc, truncf, truncl.
96336         (Enhancements for ISO C 99 functions): New subsection Input/output.
96337         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96338         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96339         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96340         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96341         (Enhancements for POSIX:2001 functions): Add chdir-long.
96342         (File system functions): Add areadlink, chdir-safer, read-file.
96343         Remove cycle-check.
96344         (File system as inode set): New section.
96345         (Date and time): Add gethrxtime.
96346         (Multithreading): Add openmp.
96347         (Internationalization functions): Add localename.
96348         (Unicode string functions): Add unistr/u*-mbsnlen.
96349         (Support for maintaining and releasing projects): Add git-version-gen.
96350         (Lone files): Remove directories.
96352 2007-10-08  Ben Pfaff  <blp@gnu.org>
96354         * lib/xmalloca.h: Fix typo in comment.
96356 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96358         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96359         when avoiding problems with integer overflow.  Use a portable test
96360         instead.
96362 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96364         * modules/dummy (License): Change to LGPLv2+.
96365         * modules/float (License): Likewise
96366         * modules/realloc (License): Likewise
96367         * modules/stdlib (License): Likewise
96369 2007-10-07  Bruno Haible  <bruno@clisp.org>
96371         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96372         * floor.c (TWO_MANT_DIG): Likewise.
96373         * ceil.c (TWO_MANT_DIG): Likewise.
96374         Reported by Ben Pfaff.
96376 2007-10-07  Bruno Haible  <bruno@clisp.org>
96378         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96379         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96380         * lib/frexp.c (FUNC): Likewise.
96381         * lib/printf-frexp.h (printf_frexp): Likewise.
96382         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96383         * lib/printf-frexp.c (FUNC): Likewise.
96384         Suggested by Jim Meyering.
96386 2007-10-07  Jim Meyering  <meyering@redhat.com>
96388         Make xnanosleep's integer overflow test more robust.
96389         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96390         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96392 2007-10-07  Bruno Haible  <bruno@clisp.org>
96394         * NEWS: Mention the license change.
96396         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96397         abbreviations in the modules files.
96399         Change copyright notice from GPLv2+ to GPLv3+.
96400         * README: Change copyright notice.
96401         * MODULES.html.sh: Likewise.
96402         * build-aux/bootstrap.conf: Likewise.
96403         * build-aux/config.libpath: Likewise.
96404         * build-aux/csharpcomp.sh.in: Likewise.
96405         * build-aux/csharpexec.sh.in: Likewise.
96406         * build-aux/install-reloc: Likewise.
96407         * build-aux/javacomp.sh.in: Likewise.
96408         * build-aux/javaexec.sh.in: Likewise.
96409         * build-aux/ldd.sh.in: Likewise.
96410         * build-aux/reloc-ldflags: Likewise.
96411         * build-aux/relocatable.sh.in: Likewise.
96412         * build-aux/x-to-1.in: Likewise.
96413         * check-module: Likewise.
96414         * config/srclistvars.sh: Likewise.
96415         * gnulib-tool: Likewise.
96416         * lib/acl-internal.h: Likewise.
96417         * lib/acl.c: Likewise.
96418         * lib/acl.h: Likewise.
96419         * lib/acl_entries.c: Likewise.
96420         * lib/areadlink-with-size.c: Likewise.
96421         * lib/areadlink.c: Likewise.
96422         * lib/areadlink.h: Likewise.
96423         * lib/argmatch.c: Likewise.
96424         * lib/argmatch.h: Likewise.
96425         * lib/argp-ba.c: Likewise.
96426         * lib/argp-eexst.c: Likewise.
96427         * lib/argp-fmtstream.c: Likewise.
96428         * lib/argp-fmtstream.h: Likewise.
96429         * lib/argp-fs-xinl.c: Likewise.
96430         * lib/argp-help.c: Likewise.
96431         * lib/argp-namefrob.h: Likewise.
96432         * lib/argp-parse.c: Likewise.
96433         * lib/argp-pin.c: Likewise.
96434         * lib/argp-pv.c: Likewise.
96435         * lib/argp-pvh.c: Likewise.
96436         * lib/argp-xinl.c: Likewise.
96437         * lib/argp.h: Likewise.
96438         * lib/at-func.c: Likewise.
96439         * lib/atanl.c: Likewise.
96440         * lib/backupfile.c: Likewise.
96441         * lib/backupfile.h: Likewise.
96442         * lib/basename.c: Likewise.
96443         * lib/binary-io.h: Likewise.
96444         * lib/byteswap.in.h: Likewise.
96445         * lib/c-stack.c: Likewise.
96446         * lib/c-stack.h: Likewise.
96447         * lib/c-strcasestr.c: Likewise.
96448         * lib/c-strcasestr.h: Likewise.
96449         * lib/c-strstr.c: Likewise.
96450         * lib/c-strstr.h: Likewise.
96451         * lib/c-strtod.c: Likewise.
96452         * lib/calloc.c: Likewise.
96453         * lib/canon-host.c: Likewise.
96454         * lib/canon-host.h: Likewise.
96455         * lib/canonicalize-lgpl.c: Likewise.
96456         * lib/canonicalize.c: Likewise.
96457         * lib/canonicalize.h: Likewise.
96458         * lib/ceil.c: Likewise.
96459         * lib/ceilf.c: Likewise.
96460         * lib/ceill.c: Likewise.
96461         * lib/chdir-long.c: Likewise.
96462         * lib/chdir-long.h: Likewise.
96463         * lib/chdir-safer.c: Likewise.
96464         * lib/chdir-safer.h: Likewise.
96465         * lib/chown.c: Likewise.
96466         * lib/classpath.c: Likewise.
96467         * lib/classpath.h: Likewise.
96468         * lib/clean-temp.c: Likewise.
96469         * lib/clean-temp.h: Likewise.
96470         * lib/cloexec.c: Likewise.
96471         * lib/close-stream.c: Likewise.
96472         * lib/closein.c: Likewise.
96473         * lib/closein.h: Likewise.
96474         * lib/closeout.c: Likewise.
96475         * lib/closeout.h: Likewise.
96476         * lib/concat-filename.c: Likewise.
96477         * lib/copy-file.c: Likewise.
96478         * lib/copy-file.h: Likewise.
96479         * lib/count-one-bits.h: Likewise.
96480         * lib/crc.c: Likewise.
96481         * lib/crc.h: Likewise.
96482         * lib/creat-safer.c: Likewise.
96483         * lib/csharpcomp.c: Likewise.
96484         * lib/csharpcomp.h: Likewise.
96485         * lib/csharpexec.c: Likewise.
96486         * lib/csharpexec.h: Likewise.
96487         * lib/cycle-check.c: Likewise.
96488         * lib/cycle-check.h: Likewise.
96489         * lib/diacrit.c: Likewise.
96490         * lib/diacrit.h: Likewise.
96491         * lib/diffseq.h: Likewise.
96492         * lib/dirchownmod.c: Likewise.
96493         * lib/dirent.in.h: Likewise.
96494         * lib/dirfd.c: Likewise.
96495         * lib/dirfd.h: Likewise.
96496         * lib/dirname.c: Likewise.
96497         * lib/dirname.h: Likewise.
96498         * lib/dummy.c: Likewise.
96499         * lib/dup-safer.c: Likewise.
96500         * lib/dup2.c: Likewise.
96501         * lib/eealloc.h: Likewise.
96502         * lib/error.c: Likewise.
96503         * lib/error.h: Likewise.
96504         * lib/euidaccess.c: Likewise.
96505         * lib/exclude.c: Likewise.
96506         * lib/exclude.h: Likewise.
96507         * lib/execute.c: Likewise.
96508         * lib/execute.h: Likewise.
96509         * lib/exitfail.c: Likewise.
96510         * lib/exitfail.h: Likewise.
96511         * lib/expl.c: Likewise.
96512         * lib/fatal-signal.c: Likewise.
96513         * lib/fatal-signal.h: Likewise.
96514         * lib/fbufmode.c: Likewise.
96515         * lib/fbufmode.h: Likewise.
96516         * lib/fchdir.c: Likewise.
96517         * lib/fchmodat.c: Likewise.
96518         * lib/fchownat.c: Likewise.
96519         * lib/fcntl--.h: Likewise.
96520         * lib/fcntl-safer.h: Likewise.
96521         * lib/fcntl.in.h: Likewise.
96522         * lib/fd-safer.c: Likewise.
96523         * lib/fflush.c: Likewise.
96524         * lib/file-has-acl.c: Likewise.
96525         * lib/file-set.c: Likewise.
96526         * lib/file-type.c: Likewise.
96527         * lib/file-type.h: Likewise.
96528         * lib/fileblocks.c: Likewise.
96529         * lib/filemode.c: Likewise.
96530         * lib/filemode.h: Likewise.
96531         * lib/filename.h: Likewise.
96532         * lib/filenamecat.c: Likewise.
96533         * lib/filenamecat.h: Likewise.
96534         * lib/findprog.c: Likewise.
96535         * lib/findprog.h: Likewise.
96536         * lib/float.in.h: Likewise.
96537         * lib/floor.c: Likewise.
96538         * lib/floorf.c: Likewise.
96539         * lib/floorl.c: Likewise.
96540         * lib/fopen-safer.c: Likewise.
96541         * lib/fopen.c: Likewise.
96542         * lib/fpending.c: Likewise.
96543         * lib/fpending.h: Likewise.
96544         * lib/fprintf.c: Likewise.
96545         * lib/fprintftime.h: Likewise.
96546         * lib/fpucw.h: Likewise.
96547         * lib/fpurge.c: Likewise.
96548         * lib/fpurge.h: Likewise.
96549         * lib/freadable.c: Likewise.
96550         * lib/freadable.h: Likewise.
96551         * lib/freadahead.c: Likewise.
96552         * lib/freadahead.h: Likewise.
96553         * lib/freading.c: Likewise.
96554         * lib/freading.h: Likewise.
96555         * lib/free.c: Likewise.
96556         * lib/freopen.c: Likewise.
96557         * lib/frexp.c: Likewise.
96558         * lib/frexpl.c: Likewise.
96559         * lib/fseek.c: Likewise.
96560         * lib/fseterr.c: Likewise.
96561         * lib/fseterr.h: Likewise.
96562         * lib/fstatat.c: Likewise.
96563         * lib/fstrcmp.c: Likewise.
96564         * lib/fstrcmp.h: Likewise.
96565         * lib/fsusage.c: Likewise.
96566         * lib/fsusage.h: Likewise.
96567         * lib/ftell.c: Likewise.
96568         * lib/ftello.c: Likewise.
96569         * lib/fts-cycle.c: Likewise.
96570         * lib/fts.c: Likewise.
96571         * lib/fts_.h: Likewise.
96572         * lib/full-read.c: Likewise.
96573         * lib/full-read.h: Likewise.
96574         * lib/full-write.c: Likewise.
96575         * lib/full-write.h: Likewise.
96576         * lib/fwritable.c: Likewise.
96577         * lib/fwritable.h: Likewise.
96578         * lib/fwriteerror.c: Likewise.
96579         * lib/fwriteerror.h: Likewise.
96580         * lib/fwriting.c: Likewise.
96581         * lib/fwriting.h: Likewise.
96582         * lib/gcd.c: Likewise.
96583         * lib/gcd.h: Likewise.
96584         * lib/getcwd.c: Likewise.
96585         * lib/getdate.h: Likewise.
96586         * lib/getdate.y: Likewise.
96587         * lib/getdomainname.c: Likewise.
96588         * lib/getdomainname.h: Likewise.
96589         * lib/getgroups.c: Likewise.
96590         * lib/gethostname.c: Likewise.
96591         * lib/gethrxtime.c: Likewise.
96592         * lib/gethrxtime.h: Likewise.
96593         * lib/getloadavg.c: Likewise.
96594         * lib/getndelim2.c: Likewise.
96595         * lib/getndelim2.h: Likewise.
96596         * lib/getnline.c: Likewise.
96597         * lib/getnline.h: Likewise.
96598         * lib/getopt.c: Likewise.
96599         * lib/getopt.in.h: Likewise.
96600         * lib/getopt1.c: Likewise.
96601         * lib/getopt_int.h: Likewise.
96602         * lib/getpagesize.h: Likewise.
96603         * lib/getsubopt.c: Likewise.
96604         * lib/gettime.c: Likewise.
96605         * lib/getugroups.c: Likewise.
96606         * lib/getugroups.h: Likewise.
96607         * lib/getusershell.c: Likewise.
96608         * lib/gl_anyavltree_list1.h: Likewise.
96609         * lib/gl_anyavltree_list2.h: Likewise.
96610         * lib/gl_anyhash_list1.h: Likewise.
96611         * lib/gl_anyhash_list2.h: Likewise.
96612         * lib/gl_anylinked_list1.h: Likewise.
96613         * lib/gl_anylinked_list2.h: Likewise.
96614         * lib/gl_anyrbtree_list1.h: Likewise.
96615         * lib/gl_anyrbtree_list2.h: Likewise.
96616         * lib/gl_anytree_list1.h: Likewise.
96617         * lib/gl_anytree_list2.h: Likewise.
96618         * lib/gl_anytree_oset.h: Likewise.
96619         * lib/gl_anytreehash_list1.h: Likewise.
96620         * lib/gl_anytreehash_list2.h: Likewise.
96621         * lib/gl_array_list.c: Likewise.
96622         * lib/gl_array_list.h: Likewise.
96623         * lib/gl_array_oset.c: Likewise.
96624         * lib/gl_array_oset.h: Likewise.
96625         * lib/gl_avltree_list.c: Likewise.
96626         * lib/gl_avltree_list.h: Likewise.
96627         * lib/gl_avltree_oset.c: Likewise.
96628         * lib/gl_avltree_oset.h: Likewise.
96629         * lib/gl_avltreehash_list.c: Likewise.
96630         * lib/gl_avltreehash_list.h: Likewise.
96631         * lib/gl_carray_list.c: Likewise.
96632         * lib/gl_carray_list.h: Likewise.
96633         * lib/gl_linked_list.c: Likewise.
96634         * lib/gl_linked_list.h: Likewise.
96635         * lib/gl_linkedhash_list.c: Likewise.
96636         * lib/gl_linkedhash_list.h: Likewise.
96637         * lib/gl_list.c: Likewise.
96638         * lib/gl_list.h: Likewise.
96639         * lib/gl_oset.c: Likewise.
96640         * lib/gl_oset.h: Likewise.
96641         * lib/gl_rbtree_list.c: Likewise.
96642         * lib/gl_rbtree_list.h: Likewise.
96643         * lib/gl_rbtree_oset.c: Likewise.
96644         * lib/gl_rbtree_oset.h: Likewise.
96645         * lib/gl_rbtreehash_list.c: Likewise.
96646         * lib/gl_rbtreehash_list.h: Likewise.
96647         * lib/gl_sublist.c: Likewise.
96648         * lib/gl_sublist.h: Likewise.
96649         * lib/group-member.c: Likewise.
96650         * lib/group-member.h: Likewise.
96651         * lib/hard-locale.c: Likewise.
96652         * lib/hard-locale.h: Likewise.
96653         * lib/hash-pjw.c: Likewise.
96654         * lib/hash-pjw.h: Likewise.
96655         * lib/hash-triple.c: Likewise.
96656         * lib/hash.c: Likewise.
96657         * lib/hash.h: Likewise.
96658         * lib/human.c: Likewise.
96659         * lib/human.h: Likewise.
96660         * lib/i-ring.c: Likewise.
96661         * lib/i-ring.h: Likewise.
96662         * lib/idcache.c: Likewise.
96663         * lib/imaxabs.c: Likewise.
96664         * lib/imaxdiv.c: Likewise.
96665         * lib/inet_pton.c: Likewise.
96666         * lib/inet_pton.h: Likewise.
96667         * lib/intprops.h: Likewise.
96668         * lib/inttostr.c: Likewise.
96669         * lib/inttostr.h: Likewise.
96670         * lib/inttypes.in.h: Likewise.
96671         * lib/isapipe.c: Likewise.
96672         * lib/isdir.c: Likewise.
96673         * lib/isnan.c: Likewise.
96674         * lib/isnan.h: Likewise.
96675         * lib/isnanf.c: Likewise.
96676         * lib/isnanf.h: Likewise.
96677         * lib/isnanl-nolibm.h: Likewise.
96678         * lib/isnanl.c: Likewise.
96679         * lib/isnanl.h: Likewise.
96680         * lib/javacomp.c: Likewise.
96681         * lib/javacomp.h: Likewise.
96682         * lib/javaexec.c: Likewise.
96683         * lib/javaexec.h: Likewise.
96684         * lib/javaversion.c: Likewise.
96685         * lib/javaversion.h: Likewise.
96686         * lib/javaversion.java: Likewise.
96687         * lib/lbrkprop.h: Likewise.
96688         * lib/lchmod.h: Likewise.
96689         * lib/lchown.c: Likewise.
96690         * lib/ldexpl.c: Likewise.
96691         * lib/linebreak.c: Likewise.
96692         * lib/linebreak.h: Likewise.
96693         * lib/linebuffer.c: Likewise.
96694         * lib/linebuffer.h: Likewise.
96695         * lib/locale.in.h: Likewise.
96696         * lib/logl.c: Likewise.
96697         * lib/long-options.c: Likewise.
96698         * lib/long-options.h: Likewise.
96699         * lib/lstat.c: Likewise.
96700         * lib/lstat.h: Likewise.
96701         * lib/math.in.h: Likewise.
96702         * lib/mbchar.c: Likewise.
96703         * lib/mbchar.h: Likewise.
96704         * lib/mbfile.h: Likewise.
96705         * lib/mbiter.h: Likewise.
96706         * lib/mbscasecmp.c: Likewise.
96707         * lib/mbscasestr.c: Likewise.
96708         * lib/mbschr.c: Likewise.
96709         * lib/mbscspn.c: Likewise.
96710         * lib/mbslen.c: Likewise.
96711         * lib/mbsncasecmp.c: Likewise.
96712         * lib/mbsnlen.c: Likewise.
96713         * lib/mbspbrk.c: Likewise.
96714         * lib/mbspcasecmp.c: Likewise.
96715         * lib/mbsrchr.c: Likewise.
96716         * lib/mbssep.c: Likewise.
96717         * lib/mbsspn.c: Likewise.
96718         * lib/mbsstr.c: Likewise.
96719         * lib/mbstok_r.c: Likewise.
96720         * lib/mbswidth.c: Likewise.
96721         * lib/mbswidth.h: Likewise.
96722         * lib/mbuiter.h: Likewise.
96723         * lib/memcasecmp.c: Likewise.
96724         * lib/memcasecmp.h: Likewise.
96725         * lib/memchr.c: Likewise.
96726         * lib/memcmp.c: Likewise.
96727         * lib/memcoll.c: Likewise.
96728         * lib/memcoll.h: Likewise.
96729         * lib/memcpy.c: Likewise.
96730         * lib/memrchr.c: Likewise.
96731         * lib/mkancesdirs.c: Likewise.
96732         * lib/mkdir-p.c: Likewise.
96733         * lib/mkdir-p.h: Likewise.
96734         * lib/mkdir.c: Likewise.
96735         * lib/mkdirat.c: Likewise.
96736         * lib/mkdtemp.c: Likewise.
96737         * lib/mkstemp-safer.c: Likewise.
96738         * lib/mkstemp.c: Likewise.
96739         * lib/modechange.c: Likewise.
96740         * lib/modechange.h: Likewise.
96741         * lib/mountlist.c: Likewise.
96742         * lib/mountlist.h: Likewise.
96743         * lib/mpsort.c: Likewise.
96744         * lib/nanosleep.c: Likewise.
96745         * lib/obstack.c: Likewise.
96746         * lib/obstack.h: Likewise.
96747         * lib/open-safer.c: Likewise.
96748         * lib/open.c: Likewise.
96749         * lib/openat-die.c: Likewise.
96750         * lib/openat-priv.h: Likewise.
96751         * lib/openat-proc.c: Likewise.
96752         * lib/openat.c: Likewise.
96753         * lib/openat.h: Likewise.
96754         * lib/pagealign_alloc.c: Likewise.
96755         * lib/pagealign_alloc.h: Likewise.
96756         * lib/physmem.c: Likewise.
96757         * lib/physmem.h: Likewise.
96758         * lib/pipe-safer.c: Likewise.
96759         * lib/pipe.c: Likewise.
96760         * lib/pipe.h: Likewise.
96761         * lib/posixtm.c: Likewise.
96762         * lib/posixtm.h: Likewise.
96763         * lib/posixver.c: Likewise.
96764         * lib/printf-frexp.c: Likewise.
96765         * lib/printf-frexp.h: Likewise.
96766         * lib/printf-frexpl.c: Likewise.
96767         * lib/printf-frexpl.h: Likewise.
96768         * lib/printf.c: Likewise.
96769         * lib/progname.c: Likewise.
96770         * lib/progname.h: Likewise.
96771         * lib/progreloc.c: Likewise.
96772         * lib/putenv.c: Likewise.
96773         * lib/quote.c: Likewise.
96774         * lib/quote.h: Likewise.
96775         * lib/quotearg.c: Likewise.
96776         * lib/quotearg.h: Likewise.
96777         * lib/raise.c: Likewise.
96778         * lib/readline.c: Likewise.
96779         * lib/readline.h: Likewise.
96780         * lib/readlink.c: Likewise.
96781         * lib/readtokens.c: Likewise.
96782         * lib/readtokens.h: Likewise.
96783         * lib/readtokens0.c: Likewise.
96784         * lib/readtokens0.h: Likewise.
96785         * lib/readutmp.c: Likewise.
96786         * lib/readutmp.h: Likewise.
96787         * lib/realloc.c: Likewise.
96788         * lib/relocwrapper.c: Likewise.
96789         * lib/rename-dest-slash.c: Likewise.
96790         * lib/rename.c: Likewise.
96791         * lib/rmdir.c: Likewise.
96792         * lib/rpmatch.c: Likewise.
96793         * lib/safe-read.c: Likewise.
96794         * lib/safe-read.h: Likewise.
96795         * lib/safe-write.c: Likewise.
96796         * lib/safe-write.h: Likewise.
96797         * lib/same-inode.h: Likewise.
96798         * lib/same.c: Likewise.
96799         * lib/same.h: Likewise.
96800         * lib/save-cwd.c: Likewise.
96801         * lib/save-cwd.h: Likewise.
96802         * lib/savedir.c: Likewise.
96803         * lib/savedir.h: Likewise.
96804         * lib/savewd.c: Likewise.
96805         * lib/savewd.h: Likewise.
96806         * lib/search.in.h: Likewise.
96807         * lib/setenv.c: Likewise.
96808         * lib/setenv.h: Likewise.
96809         * lib/settime.c: Likewise.
96810         * lib/sh-quote.c: Likewise.
96811         * lib/sh-quote.h: Likewise.
96812         * lib/sig2str.c: Likewise.
96813         * lib/sig2str.h: Likewise.
96814         * lib/signal.in.h: Likewise.
96815         * lib/signbitd.c: Likewise.
96816         * lib/signbitf.c: Likewise.
96817         * lib/signbitl.c: Likewise.
96818         * lib/sigprocmask.c: Likewise.
96819         * lib/sincosl.c: Likewise.
96820         * lib/sleep.c: Likewise.
96821         * lib/sprintf.c: Likewise.
96822         * lib/sqrtl.c: Likewise.
96823         * lib/stat-time.h: Likewise.
96824         * lib/stdio--.h: Likewise.
96825         * lib/stdio-safer.h: Likewise.
96826         * lib/stdlib--.h: Likewise.
96827         * lib/stdlib-safer.h: Likewise.
96828         * lib/stdlib.in.h: Likewise.
96829         * lib/stpcpy.c: Likewise.
96830         * lib/stpncpy.c: Likewise.
96831         * lib/strchrnul.c: Likewise.
96832         * lib/strcspn.c: Likewise.
96833         * lib/strerror.c: Likewise.
96834         * lib/strftime.c: Likewise.
96835         * lib/strftime.h: Likewise.
96836         * lib/striconveh.c: Likewise.
96837         * lib/striconveh.h: Likewise.
96838         * lib/striconveha.c: Likewise.
96839         * lib/striconveha.h: Likewise.
96840         * lib/stripslash.c: Likewise.
96841         * lib/strnlen1.c: Likewise.
96842         * lib/strnlen1.h: Likewise.
96843         * lib/strtod.c: Likewise.
96844         * lib/strtoimax.c: Likewise.
96845         * lib/strtok_r.c: Likewise.
96846         * lib/strtol.c: Likewise.
96847         * lib/strtoll.c: Likewise.
96848         * lib/strtoul.c: Likewise.
96849         * lib/strtoull.c: Likewise.
96850         * lib/sysexits.in.h: Likewise.
96851         * lib/tempname.c: Likewise.
96852         * lib/tempname.h: Likewise.
96853         * lib/timespec.h: Likewise.
96854         * lib/tls.c: Likewise.
96855         * lib/tls.h: Likewise.
96856         * lib/tmpdir.c: Likewise.
96857         * lib/tmpdir.h: Likewise.
96858         * lib/tmpfile-safer.c: Likewise.
96859         * lib/tmpfile.c: Likewise.
96860         * lib/trigl.c: Likewise.
96861         * lib/trigl.h: Likewise.
96862         * lib/trim.c: Likewise.
96863         * lib/trim.h: Likewise.
96864         * lib/trunc.c: Likewise.
96865         * lib/truncf.c: Likewise.
96866         * lib/truncl.c: Likewise.
96867         * lib/tsearch.c: Likewise.
96868         * lib/unicodeio.c: Likewise.
96869         * lib/unicodeio.h: Likewise.
96870         * lib/unistd--.h: Likewise.
96871         * lib/unistd-safer.h: Likewise.
96872         * lib/unistdio/ulc-fprintf.c: Likewise.
96873         * lib/unistdio/ulc-vfprintf.c: Likewise.
96874         * lib/unlinkdir.c: Likewise.
96875         * lib/unlinkdir.h: Likewise.
96876         * lib/unlocked-io.h: Likewise.
96877         * lib/unsetenv.c: Likewise.
96878         * lib/userspec.c: Likewise.
96879         * lib/utime.c: Likewise.
96880         * lib/utimecmp.c: Likewise.
96881         * lib/utimecmp.h: Likewise.
96882         * lib/utimens.c: Likewise.
96883         * lib/verify.h: Likewise.
96884         * lib/verror.c: Likewise.
96885         * lib/verror.h: Likewise.
96886         * lib/version-etc-fsf.c: Likewise.
96887         * lib/version-etc.c: Likewise.
96888         * lib/version-etc.h: Likewise.
96889         * lib/vfprintf.c: Likewise.
96890         * lib/vprintf.c: Likewise.
96891         * lib/vsprintf.c: Likewise.
96892         * lib/w32spawn.h: Likewise.
96893         * lib/wait-process.c: Likewise.
96894         * lib/wait-process.h: Likewise.
96895         * lib/wcwidth.c: Likewise.
96896         * lib/write-any-file.c: Likewise.
96897         * lib/xalloc-die.c: Likewise.
96898         * lib/xalloc.h: Likewise.
96899         * lib/xasprintf.c: Likewise.
96900         * lib/xgetcwd.c: Likewise.
96901         * lib/xgetcwd.h: Likewise.
96902         * lib/xgetdomainname.c: Likewise.
96903         * lib/xgetdomainname.h: Likewise.
96904         * lib/xgethostname.c: Likewise.
96905         * lib/xmalloc.c: Likewise.
96906         * lib/xmalloca.c: Likewise.
96907         * lib/xmalloca.h: Likewise.
96908         * lib/xmemcoll.c: Likewise.
96909         * lib/xnanosleep.c: Likewise.
96910         * lib/xreadlink.c: Likewise.
96911         * lib/xreadlink.h: Likewise.
96912         * lib/xsetenv.c: Likewise.
96913         * lib/xsetenv.h: Likewise.
96914         * lib/xstriconv.c: Likewise.
96915         * lib/xstriconv.h: Likewise.
96916         * lib/xstrndup.c: Likewise.
96917         * lib/xstrndup.h: Likewise.
96918         * lib/xstrtod.c: Likewise.
96919         * lib/xstrtod.h: Likewise.
96920         * lib/xstrtol-error.c: Likewise.
96921         * lib/xstrtol.c: Likewise.
96922         * lib/xstrtol.h: Likewise.
96923         * lib/xtime.h: Likewise.
96924         * lib/xvasprintf.c: Likewise.
96925         * lib/xvasprintf.h: Likewise.
96926         * lib/yesno.c: Likewise.
96927         * lib/yesno.h: Likewise.
96928         * posix-modules: Likewise.
96929         * tests/test-alloca-opt.c: Likewise.
96930         * tests/test-arcfour.c: Likewise.
96931         * tests/test-arctwo.c: Likewise.
96932         * tests/test-argmatch.c: Likewise.
96933         * tests/test-argp-2.sh: Likewise.
96934         * tests/test-argp.c: Likewise.
96935         * tests/test-arpa_inet.c: Likewise.
96936         * tests/test-array_list.c: Likewise.
96937         * tests/test-array_oset.c: Likewise.
96938         * tests/test-atexit.c: Likewise.
96939         * tests/test-avltree_list.c: Likewise.
96940         * tests/test-avltree_oset.c: Likewise.
96941         * tests/test-avltreehash_list.c: Likewise.
96942         * tests/test-base64.c: Likewise.
96943         * tests/test-binary-io.c: Likewise.
96944         * tests/test-byteswap.c: Likewise.
96945         * tests/test-c-ctype.c: Likewise.
96946         * tests/test-c-strcasecmp.c: Likewise.
96947         * tests/test-c-strcasestr.c: Likewise.
96948         * tests/test-c-strncasecmp.c: Likewise.
96949         * tests/test-c-strstr.c: Likewise.
96950         * tests/test-canonicalize-lgpl.c: Likewise.
96951         * tests/test-canonicalize.c: Likewise.
96952         * tests/test-carray_list.c: Likewise.
96953         * tests/test-ceilf.c: Likewise.
96954         * tests/test-ceill.c: Likewise.
96955         * tests/test-count-one-bits.c: Likewise.
96956         * tests/test-crc.c: Likewise.
96957         * tests/test-dirname.c: Likewise.
96958         * tests/test-fbufmode.c: Likewise.
96959         * tests/test-fcntl.c: Likewise.
96960         * tests/test-fflush.c: Likewise.
96961         * tests/test-floorf.c: Likewise.
96962         * tests/test-floorl.c: Likewise.
96963         * tests/test-fopen.c: Likewise.
96964         * tests/test-fprintf-posix.c: Likewise.
96965         * tests/test-fprintf-posix.h: Likewise.
96966         * tests/test-fpurge.c: Likewise.
96967         * tests/test-freadable.c: Likewise.
96968         * tests/test-freadahead.c: Likewise.
96969         * tests/test-freading.c: Likewise.
96970         * tests/test-freopen.c: Likewise.
96971         * tests/test-frexp.c: Likewise.
96972         * tests/test-frexpl.c: Likewise.
96973         * tests/test-fseek.c: Likewise.
96974         * tests/test-fseeko.c: Likewise.
96975         * tests/test-fseterr.c: Likewise.
96976         * tests/test-fstrcmp.c: Likewise.
96977         * tests/test-ftell.c: Likewise.
96978         * tests/test-ftello.c: Likewise.
96979         * tests/test-fwritable.c: Likewise.
96980         * tests/test-fwriting.c: Likewise.
96981         * tests/test-getaddrinfo.c: Likewise.
96982         * tests/test-getpass.c: Likewise.
96983         * tests/test-gettimeofday.c: Likewise.
96984         * tests/test-hmac-md5.c: Likewise.
96985         * tests/test-hmac-sha1.c: Likewise.
96986         * tests/test-iconv.c: Likewise.
96987         * tests/test-iconvme.c: Likewise.
96988         * tests/test-inttypes.c: Likewise.
96989         * tests/test-isnan.c: Likewise.
96990         * tests/test-isnanf.c: Likewise.
96991         * tests/test-isnanl-nolibm.c: Likewise.
96992         * tests/test-isnanl.c: Likewise.
96993         * tests/test-isnanl.h: Likewise.
96994         * tests/test-ldexpl.c: Likewise.
96995         * tests/test-linked_list.c: Likewise.
96996         * tests/test-linkedhash_list.c: Likewise.
96997         * tests/test-locale.c: Likewise.
96998         * tests/test-localename.c: Likewise.
96999         * tests/test-lock.c: Likewise.
97000         * tests/test-lseek.c: Likewise.
97001         * tests/test-malloca.c: Likewise.
97002         * tests/test-math.c: Likewise.
97003         * tests/test-mbscasecmp.c: Likewise.
97004         * tests/test-mbscasestr1.c: Likewise.
97005         * tests/test-mbscasestr2.c: Likewise.
97006         * tests/test-mbscasestr3.c: Likewise.
97007         * tests/test-mbscasestr4.c: Likewise.
97008         * tests/test-mbschr.c: Likewise.
97009         * tests/test-mbscspn.c: Likewise.
97010         * tests/test-mbsncasecmp.c: Likewise.
97011         * tests/test-mbspbrk.c: Likewise.
97012         * tests/test-mbspcasecmp.c: Likewise.
97013         * tests/test-mbsrchr.c: Likewise.
97014         * tests/test-mbsspn.c: Likewise.
97015         * tests/test-mbsstr1.c: Likewise.
97016         * tests/test-mbsstr2.c: Likewise.
97017         * tests/test-mbsstr3.c: Likewise.
97018         * tests/test-md5.c: Likewise.
97019         * tests/test-memmem.c: Likewise.
97020         * tests/test-netinet_in.c: Likewise.
97021         * tests/test-open.c: Likewise.
97022         * tests/test-printf-frexp.c: Likewise.
97023         * tests/test-printf-frexpl.c: Likewise.
97024         * tests/test-printf-posix.c: Likewise.
97025         * tests/test-printf-posix.h: Likewise.
97026         * tests/test-rbtree_list.c: Likewise.
97027         * tests/test-rbtree_oset.c: Likewise.
97028         * tests/test-rbtreehash_list.c: Likewise.
97029         * tests/test-read-file.c: Likewise.
97030         * tests/test-rijndael.c: Likewise.
97031         * tests/test-search.c: Likewise.
97032         * tests/test-signbit.c: Likewise.
97033         * tests/test-sleep.c: Likewise.
97034         * tests/test-snprintf-posix.c: Likewise.
97035         * tests/test-snprintf-posix.h: Likewise.
97036         * tests/test-snprintf.c: Likewise.
97037         * tests/test-sprintf-posix.c: Likewise.
97038         * tests/test-sprintf-posix.h: Likewise.
97039         * tests/test-stat-time.c: Likewise.
97040         * tests/test-stdbool.c: Likewise.
97041         * tests/test-stdint.c: Likewise.
97042         * tests/test-stdio.c: Likewise.
97043         * tests/test-stdlib.c: Likewise.
97044         * tests/test-stpncpy.c: Likewise.
97045         * tests/test-strcasestr.c: Likewise.
97046         * tests/test-striconv.c: Likewise.
97047         * tests/test-striconveh.c: Likewise.
97048         * tests/test-striconveha.c: Likewise.
97049         * tests/test-string.c: Likewise.
97050         * tests/test-sys_select.c: Likewise.
97051         * tests/test-sys_socket.c: Likewise.
97052         * tests/test-sys_stat.c: Likewise.
97053         * tests/test-sys_time.c: Likewise.
97054         * tests/test-sysexits.c: Likewise.
97055         * tests/test-time.c: Likewise.
97056         * tests/test-tls.c: Likewise.
97057         * tests/test-trunc.c: Likewise.
97058         * tests/test-truncf.c: Likewise.
97059         * tests/test-truncl.c: Likewise.
97060         * tests/test-unistd.c: Likewise.
97061         * tests/test-vasnprintf-posix.c: Likewise.
97062         * tests/test-vasnprintf-posix2.c: Likewise.
97063         * tests/test-vasnprintf.c: Likewise.
97064         * tests/test-vasprintf-posix.c: Likewise.
97065         * tests/test-vasprintf.c: Likewise.
97066         * tests/test-verify.c: Likewise.
97067         * tests/test-vfprintf-posix.c: Likewise.
97068         * tests/test-vprintf-posix.c: Likewise.
97069         * tests/test-vsnprintf-posix.c: Likewise.
97070         * tests/test-vsnprintf.c: Likewise.
97071         * tests/test-vsprintf-posix.c: Likewise.
97072         * tests/test-wchar.c: Likewise.
97073         * tests/test-wctype.c: Likewise.
97074         * tests/test-wcwidth.c: Likewise.
97075         * tests/test-xstrtol.c: Likewise.
97076         * tests/test-xvasprintf.c: Likewise.
97077         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
97078         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
97079         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97080         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97081         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97082         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
97083         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97084         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97085         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97086         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
97087         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97088         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97089         * tests/uniname/test-uninames.c: Likewise.
97090         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
97091         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
97092         * tests/unistdio/test-u16-printf1.h: Likewise.
97093         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
97094         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
97095         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
97096         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
97097         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
97098         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
97099         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
97100         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
97101         * tests/unistdio/test-u32-printf1.h: Likewise.
97102         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
97103         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
97104         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
97105         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
97106         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
97107         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
97108         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97109         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97110         * tests/unistdio/test-u8-printf1.h: Likewise.
97111         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97112         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97113         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97114         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97115         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97116         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97117         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97118         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97119         * tests/unistdio/test-ulc-printf1.h: Likewise.
97120         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97121         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97122         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97123         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97124         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97125         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97126         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97127         * tests/uniwidth/test-u16-width.c: Likewise.
97128         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97129         * tests/uniwidth/test-u32-width.c: Likewise.
97130         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97131         * tests/uniwidth/test-u8-width.c: Likewise.
97132         * tests/uniwidth/test-uc_width.c: Likewise.
97133         * config/srclist-update: Likewise.
97134         (fixlicense): Update to GPLv3+.
97136         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97137         * tests/test-tsearch.c: Change copyright notice.
97139         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97140         * lib/c-strcaseeq.h: Change copyright notice.
97141         * lib/streq.h: Likewise.
97142         * lib/uniconv.h: Likewise.
97143         * lib/uniconv/u-conv-from-enc.h: Likewise.
97144         * lib/uniconv/u-conv-to-enc.h: Likewise.
97145         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97146         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97147         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97148         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97149         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97150         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97151         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97152         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97153         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97154         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97155         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97156         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97157         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97158         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97159         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97160         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97161         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97162         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97163         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97164         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97165         * lib/uniname.h: Likewise.
97166         * lib/uniname/uniname.c: Likewise.
97167         * lib/unistdio.h: Likewise.
97168         * lib/unistdio/u-asnprintf.h: Likewise.
97169         * lib/unistdio/u-asprintf.h: Likewise.
97170         * lib/unistdio/u-printf-args.c: Likewise.
97171         * lib/unistdio/u-printf-args.h: Likewise.
97172         * lib/unistdio/u-printf-parse.h: Likewise.
97173         * lib/unistdio/u-snprintf.h: Likewise.
97174         * lib/unistdio/u-sprintf.h: Likewise.
97175         * lib/unistdio/u-vasprintf.h: Likewise.
97176         * lib/unistdio/u-vsnprintf.h: Likewise.
97177         * lib/unistdio/u-vsprintf.h: Likewise.
97178         * lib/unistdio/u16-asnprintf.c: Likewise.
97179         * lib/unistdio/u16-asprintf.c: Likewise.
97180         * lib/unistdio/u16-printf-parse.c: Likewise.
97181         * lib/unistdio/u16-snprintf.c: Likewise.
97182         * lib/unistdio/u16-sprintf.c: Likewise.
97183         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97184         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97185         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97186         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97187         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97188         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97189         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97190         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97191         * lib/unistdio/u16-vasnprintf.c: Likewise.
97192         * lib/unistdio/u16-vasprintf.c: Likewise.
97193         * lib/unistdio/u16-vsnprintf.c: Likewise.
97194         * lib/unistdio/u16-vsprintf.c: Likewise.
97195         * lib/unistdio/u32-asnprintf.c: Likewise.
97196         * lib/unistdio/u32-asprintf.c: Likewise.
97197         * lib/unistdio/u32-printf-parse.c: Likewise.
97198         * lib/unistdio/u32-snprintf.c: Likewise.
97199         * lib/unistdio/u32-sprintf.c: Likewise.
97200         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97201         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97202         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97203         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97204         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97205         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97206         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97207         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97208         * lib/unistdio/u32-vasnprintf.c: Likewise.
97209         * lib/unistdio/u32-vasprintf.c: Likewise.
97210         * lib/unistdio/u32-vsnprintf.c: Likewise.
97211         * lib/unistdio/u32-vsprintf.c: Likewise.
97212         * lib/unistdio/u8-asnprintf.c: Likewise.
97213         * lib/unistdio/u8-asprintf.c: Likewise.
97214         * lib/unistdio/u8-printf-parse.c: Likewise.
97215         * lib/unistdio/u8-snprintf.c: Likewise.
97216         * lib/unistdio/u8-sprintf.c: Likewise.
97217         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97218         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97219         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97220         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97221         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97222         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97223         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97224         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97225         * lib/unistdio/u8-vasnprintf.c: Likewise.
97226         * lib/unistdio/u8-vasprintf.c: Likewise.
97227         * lib/unistdio/u8-vsnprintf.c: Likewise.
97228         * lib/unistdio/u8-vsprintf.c: Likewise.
97229         * lib/unistdio/ulc-asnprintf.c: Likewise.
97230         * lib/unistdio/ulc-asprintf.c: Likewise.
97231         * lib/unistdio/ulc-printf-parse.c: Likewise.
97232         * lib/unistdio/ulc-snprintf.c: Likewise.
97233         * lib/unistdio/ulc-sprintf.c: Likewise.
97234         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97235         * lib/unistdio/ulc-vasprintf.c: Likewise.
97236         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97237         * lib/unistdio/ulc-vsprintf.c: Likewise.
97238         * lib/unistr.h: Likewise.
97239         * lib/unistr/u-cpy-alloc.h: Likewise.
97240         * lib/unistr/u-cpy.h: Likewise.
97241         * lib/unistr/u-endswith.h: Likewise.
97242         * lib/unistr/u-move.h: Likewise.
97243         * lib/unistr/u-set.h: Likewise.
97244         * lib/unistr/u-startswith.h: Likewise.
97245         * lib/unistr/u-stpcpy.h: Likewise.
97246         * lib/unistr/u-stpncpy.h: Likewise.
97247         * lib/unistr/u-strcat.h: Likewise.
97248         * lib/unistr/u-strcpy.h: Likewise.
97249         * lib/unistr/u-strcspn.h: Likewise.
97250         * lib/unistr/u-strdup.h: Likewise.
97251         * lib/unistr/u-strlen.h: Likewise.
97252         * lib/unistr/u-strncat.h: Likewise.
97253         * lib/unistr/u-strncpy.h: Likewise.
97254         * lib/unistr/u-strnlen.h: Likewise.
97255         * lib/unistr/u-strpbrk.h: Likewise.
97256         * lib/unistr/u-strspn.h: Likewise.
97257         * lib/unistr/u-strstr.h: Likewise.
97258         * lib/unistr/u-strtok.h: Likewise.
97259         * lib/unistr/u16-check.c: Likewise.
97260         * lib/unistr/u16-chr.c: Likewise.
97261         * lib/unistr/u16-cmp.c: Likewise.
97262         * lib/unistr/u16-cpy-alloc.c: Likewise.
97263         * lib/unistr/u16-cpy.c: Likewise.
97264         * lib/unistr/u16-endswith.c: Likewise.
97265         * lib/unistr/u16-mblen.c: Likewise.
97266         * lib/unistr/u16-mbsnlen.c: Likewise.
97267         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97268         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97269         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97270         * lib/unistr/u16-mbtouc.c: Likewise.
97271         * lib/unistr/u16-mbtoucr.c: Likewise.
97272         * lib/unistr/u16-move.c: Likewise.
97273         * lib/unistr/u16-next.c: Likewise.
97274         * lib/unistr/u16-prev.c: Likewise.
97275         * lib/unistr/u16-set.c: Likewise.
97276         * lib/unistr/u16-startswith.c: Likewise.
97277         * lib/unistr/u16-stpcpy.c: Likewise.
97278         * lib/unistr/u16-stpncpy.c: Likewise.
97279         * lib/unistr/u16-strcat.c: Likewise.
97280         * lib/unistr/u16-strchr.c: Likewise.
97281         * lib/unistr/u16-strcmp.c: Likewise.
97282         * lib/unistr/u16-strcpy.c: Likewise.
97283         * lib/unistr/u16-strcspn.c: Likewise.
97284         * lib/unistr/u16-strdup.c: Likewise.
97285         * lib/unistr/u16-strlen.c: Likewise.
97286         * lib/unistr/u16-strmblen.c: Likewise.
97287         * lib/unistr/u16-strmbtouc.c: Likewise.
97288         * lib/unistr/u16-strncat.c: Likewise.
97289         * lib/unistr/u16-strncmp.c: Likewise.
97290         * lib/unistr/u16-strncpy.c: Likewise.
97291         * lib/unistr/u16-strnlen.c: Likewise.
97292         * lib/unistr/u16-strpbrk.c: Likewise.
97293         * lib/unistr/u16-strrchr.c: Likewise.
97294         * lib/unistr/u16-strspn.c: Likewise.
97295         * lib/unistr/u16-strstr.c: Likewise.
97296         * lib/unistr/u16-strtok.c: Likewise.
97297         * lib/unistr/u16-to-u32.c: Likewise.
97298         * lib/unistr/u16-to-u8.c: Likewise.
97299         * lib/unistr/u16-uctomb-aux.c: Likewise.
97300         * lib/unistr/u16-uctomb.c: Likewise.
97301         * lib/unistr/u32-check.c: Likewise.
97302         * lib/unistr/u32-chr.c: Likewise.
97303         * lib/unistr/u32-cmp.c: Likewise.
97304         * lib/unistr/u32-cpy-alloc.c: Likewise.
97305         * lib/unistr/u32-cpy.c: Likewise.
97306         * lib/unistr/u32-endswith.c: Likewise.
97307         * lib/unistr/u32-mblen.c: Likewise.
97308         * lib/unistr/u32-mbsnlen.c: Likewise.
97309         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97310         * lib/unistr/u32-mbtouc.c: Likewise.
97311         * lib/unistr/u32-mbtoucr.c: Likewise.
97312         * lib/unistr/u32-move.c: Likewise.
97313         * lib/unistr/u32-next.c: Likewise.
97314         * lib/unistr/u32-prev.c: Likewise.
97315         * lib/unistr/u32-set.c: Likewise.
97316         * lib/unistr/u32-startswith.c: Likewise.
97317         * lib/unistr/u32-stpcpy.c: Likewise.
97318         * lib/unistr/u32-stpncpy.c: Likewise.
97319         * lib/unistr/u32-strcat.c: Likewise.
97320         * lib/unistr/u32-strchr.c: Likewise.
97321         * lib/unistr/u32-strcmp.c: Likewise.
97322         * lib/unistr/u32-strcpy.c: Likewise.
97323         * lib/unistr/u32-strcspn.c: Likewise.
97324         * lib/unistr/u32-strdup.c: Likewise.
97325         * lib/unistr/u32-strlen.c: Likewise.
97326         * lib/unistr/u32-strmblen.c: Likewise.
97327         * lib/unistr/u32-strmbtouc.c: Likewise.
97328         * lib/unistr/u32-strncat.c: Likewise.
97329         * lib/unistr/u32-strncmp.c: Likewise.
97330         * lib/unistr/u32-strncpy.c: Likewise.
97331         * lib/unistr/u32-strnlen.c: Likewise.
97332         * lib/unistr/u32-strpbrk.c: Likewise.
97333         * lib/unistr/u32-strrchr.c: Likewise.
97334         * lib/unistr/u32-strspn.c: Likewise.
97335         * lib/unistr/u32-strstr.c: Likewise.
97336         * lib/unistr/u32-strtok.c: Likewise.
97337         * lib/unistr/u32-to-u16.c: Likewise.
97338         * lib/unistr/u32-to-u8.c: Likewise.
97339         * lib/unistr/u32-uctomb.c: Likewise.
97340         * lib/unistr/u8-check.c: Likewise.
97341         * lib/unistr/u8-chr.c: Likewise.
97342         * lib/unistr/u8-cmp.c: Likewise.
97343         * lib/unistr/u8-cpy-alloc.c: Likewise.
97344         * lib/unistr/u8-cpy.c: Likewise.
97345         * lib/unistr/u8-endswith.c: Likewise.
97346         * lib/unistr/u8-mblen.c: Likewise.
97347         * lib/unistr/u8-mbsnlen.c: Likewise.
97348         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97349         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97350         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97351         * lib/unistr/u8-mbtouc.c: Likewise.
97352         * lib/unistr/u8-mbtoucr.c: Likewise.
97353         * lib/unistr/u8-move.c: Likewise.
97354         * lib/unistr/u8-next.c: Likewise.
97355         * lib/unistr/u8-prev.c: Likewise.
97356         * lib/unistr/u8-set.c: Likewise.
97357         * lib/unistr/u8-startswith.c: Likewise.
97358         * lib/unistr/u8-stpcpy.c: Likewise.
97359         * lib/unistr/u8-stpncpy.c: Likewise.
97360         * lib/unistr/u8-strcat.c: Likewise.
97361         * lib/unistr/u8-strchr.c: Likewise.
97362         * lib/unistr/u8-strcmp.c: Likewise.
97363         * lib/unistr/u8-strcpy.c: Likewise.
97364         * lib/unistr/u8-strcspn.c: Likewise.
97365         * lib/unistr/u8-strdup.c: Likewise.
97366         * lib/unistr/u8-strlen.c: Likewise.
97367         * lib/unistr/u8-strmblen.c: Likewise.
97368         * lib/unistr/u8-strmbtouc.c: Likewise.
97369         * lib/unistr/u8-strncat.c: Likewise.
97370         * lib/unistr/u8-strncmp.c: Likewise.
97371         * lib/unistr/u8-strncpy.c: Likewise.
97372         * lib/unistr/u8-strnlen.c: Likewise.
97373         * lib/unistr/u8-strpbrk.c: Likewise.
97374         * lib/unistr/u8-strrchr.c: Likewise.
97375         * lib/unistr/u8-strspn.c: Likewise.
97376         * lib/unistr/u8-strstr.c: Likewise.
97377         * lib/unistr/u8-strtok.c: Likewise.
97378         * lib/unistr/u8-to-u16.c: Likewise.
97379         * lib/unistr/u8-to-u32.c: Likewise.
97380         * lib/unistr/u8-uctomb-aux.c: Likewise.
97381         * lib/unistr/u8-uctomb.c: Likewise.
97382         * lib/unitypes.h: Likewise.
97383         * lib/uniwidth.h: Likewise.
97384         * lib/uniwidth/cjk.h: Likewise.
97385         * lib/uniwidth/u16-strwidth.c: Likewise.
97386         * lib/uniwidth/u16-width.c: Likewise.
97387         * lib/uniwidth/u32-strwidth.c: Likewise.
97388         * lib/uniwidth/u32-width.c: Likewise.
97389         * lib/uniwidth/u8-strwidth.c: Likewise.
97390         * lib/uniwidth/u8-width.c: Likewise.
97391         * lib/uniwidth/width.c: Likewise.
97393 2007-10-07  Bruno Haible  <bruno@clisp.org>
97395         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97396         The file is still under LGPL (see modules/inttypes).
97398 2007-10-06  Bruno Haible  <bruno@clisp.org>
97400         * modules/trunc (Dependencies): Add 'extensions'.
97401         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97402         Reported by Ben Pfaff <blp@gnu.org>.
97404 2007-10-06  Bruno Haible  <bruno@clisp.org>
97406         * modules/freopen-tests: New file.
97407         * tests/test-freopen.c: New file.
97409         * modules/fopen-tests: New file.
97410         * tests/test-fopen.c: New file.
97412         * modules/fopen: New file.
97413         * lib/fopen.c: New file.
97414         * m4/fopen.m4: New file.
97415         * modules/freopen: New file.
97416         * lib/freopen.c: New file.
97417         * m4/freopen.m4: New file.
97418         * lib/stdio.in.h (fopen, freopen): New declarations.
97419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97420         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97421         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97422         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97423         * doc/functions/fopen.texi: Mention the 'fopen' module.
97424         * doc/functions/freopen.texi: Mention the 'freopen' module.
97426 2007-10-06  Bruno Haible  <bruno@clisp.org>
97428         * modules/open-tests: New file.
97429         * tests/test-open.c: New file.
97431         * modules/open: New file.
97432         * lib/open.c: New file.
97433         * m4/open.m4: New file.
97434         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97435         lib/open.c does.
97436         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97437         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97438         macros.
97439         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97440         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97441         REPLACE_OPEN.
97442         * doc/functions/open.texi: Mention the 'open' module.
97444 2007-10-04  Bruno Haible  <bruno@clisp.org>
97446         * modules/ceill-tests: New file.
97447         * tests/test-ceill.c: New file.
97449         * modules/ceill: New file.
97450         * lib/ceill.c: Replace entire file.
97451         * m4/ceill.m4: New file.
97452         * lib/math.in.h (ceill): Replace declaration.
97453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97454         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97455         * doc/functions/ceill.texi: Mention the 'ceill' module.
97456         * modules/mathl (Files): Remove lib/ceill.c.
97457         (Depends-on): Add ceill.
97459 2007-10-04  Bruno Haible  <bruno@clisp.org>
97461         * modules/ceilf-tests: New file.
97462         * tests/test-ceilf.c: New file.
97464         * modules/ceilf: New file.
97465         * lib/ceil.c: New file.
97466         * lib/ceilf.c: New file.
97467         * m4/ceilf.m4: New file.
97468         * lib/math.in.h (ceilf): New declaration.
97469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97470         HAVE_DECL_CEILF.
97471         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97472         HAVE_DECL_CEILF.
97473         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97475 2007-10-04  Bruno Haible  <bruno@clisp.org>
97477         * modules/floorl-tests: New file.
97478         * tests/test-floorl.c: New file.
97480         * modules/floorl: New file.
97481         * lib/floorl.c: Replace entire file.
97482         * m4/floorl.m4: New file.
97483         * lib/math.in.h (floorl): Replace declaration.
97484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97485         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97486         * doc/functions/floorl.texi: Mention the 'floorl' module.
97487         * modules/mathl (Files): Remove lib/floorl.c.
97488         (Depends-on): Add floorl.
97490 2007-10-04  Bruno Haible  <bruno@clisp.org>
97492         * modules/floorf-tests: New file.
97493         * tests/test-floorf.c: New file.
97495         * modules/floorf: New file.
97496         * lib/floor.c: New file.
97497         * lib/floorf.c: New file.
97498         * m4/floorf.m4: New file.
97499         * lib/math.in.h (floorf): New declaration.
97500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97501         HAVE_DECL_FLOORF.
97502         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97503         HAVE_DECL_FLOORF.
97504         * doc/functions/floorf.texi: Mention the 'floorf' module.
97506 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97507             Bruno Haible  <bruno@clisp.org>
97509         Advertise for the Git server instead of the CVS server.
97510         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97511         repository instead of the CVS one.
97512         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97513         about all VCS systems generically.
97514         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97516 2007-10-04  Bruno Haible  <bruno@clisp.org>
97518         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97519         means.
97520         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97522 2007-10-04  Bruno Haible  <bruno@clisp.org>
97524         * modules/truncl-tests: New file.
97525         * tests/test-truncl.c: New file.
97527         * modules/truncl: New file.
97528         * lib/truncl.c: New file.
97529         * m4/truncl.m4: New file.
97530         * lib/math.in.h (truncl): New declaration.
97531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97532         HAVE_DECL_TRUNCL.
97533         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97534         HAVE_DECL_TRUNCL.
97535         * doc/functions/truncl.texi: Mention the 'truncl' module.
97537 2007-10-04  Bruno Haible  <bruno@clisp.org>
97539         * modules/truncf-tests: New file.
97540         * tests/test-truncf.c: New file.
97542         * modules/truncf: New file.
97543         * lib/trunc.c: Make paramerizable through USE_* macros.
97544         * lib/truncf.c: New file.
97545         * m4/truncf.m4: New file.
97546         * lib/math.in.h (truncf): New declaration.
97547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97548         HAVE_DECL_TRUNCF.
97549         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97550         HAVE_DECL_TRUNCF.
97551         * doc/functions/truncf.texi: Mention the 'truncf' module.
97553 2007-10-03  Bruno Haible  <bruno@clisp.org>
97555         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97556         augmentation also for tests modules.
97557         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97558         * modules/atexit-tests (Makefile.am): Likewise.
97559         * modules/binary-io-tests (Makefile.am): Likewise.
97560         * modules/c-strcase-tests (Makefile.am): Likewise.
97561         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97562         * modules/canonicalize-tests (Makefile.am): Likewise.
97563         * modules/closein-tests (Makefile.am): Likewise.
97564         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97565         * modules/freadahead-tests (Makefile.am): Likewise.
97566         * modules/fseek-tests (Makefile.am): Likewise.
97567         * modules/fseeko-tests (Makefile.am): Likewise.
97568         * modules/ftell-tests (Makefile.am): Likewise.
97569         * modules/ftello-tests (Makefile.am): Likewise.
97570         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97571         * modules/isnanl-tests (Makefile.am): Likewise.
97572         * modules/lseek-tests (Makefile.am): Likewise.
97573         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97574         * modules/mbscasestr-tests (Makefile.am): Likewise.
97575         * modules/mbschr-tests (Makefile.am): Likewise.
97576         * modules/mbscspn-tests (Makefile.am): Likewise.
97577         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97578         * modules/mbspbrk-tests (Makefile.am): Likewise.
97579         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97580         * modules/mbsrchr-tests (Makefile.am): Likewise.
97581         * modules/mbsspn-tests (Makefile.am): Likewise.
97582         * modules/mbsstr-tests (Makefile.am): Likewise.
97583         * modules/printf-posix-tests (Makefile.am): Likewise.
97584         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97585         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97586         * modules/tsearch-tests (Makefile.am): Likewise.
97587         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97588         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97589         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97590         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97591         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97592         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97593         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97594         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97595         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97596         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97597         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97598         * modules/xstrtol-tests (Makefile.am): Likewise.
97599         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97600         * modules/yesno-tests (Makefile.am): Likewise.
97602 2007-10-03  Bruno Haible  <bruno@clisp.org>
97604         * modules/trunc-tests: New file.
97605         * tests/test-trunc.c: New file.
97607         * modules/trunc: New file.
97608         * lib/trunc.c: New file.
97609         * m4/trunc.m4: New file.
97610         * lib/math.in.h (trunc): New declaration.
97611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97612         HAVE_DECL_TRUNC.
97613         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97614         HAVE_DECL_TRUNC.
97615         * doc/functions/trunc.texi: Mention the 'trunc' module.
97617 2007-10-03  Bruno Haible  <bruno@clisp.org>
97619         * tests/test-fpending.c: New file, mostly copied
97620         from coreutils/lib/t-fpending.c.
97621         * modules/fpending-tests: New file.
97623 2007-10-03  Bruno Haible  <bruno@clisp.org>
97625         Port the stdio extensions to QNX (untested).
97626         * lib/fseterr.c (fseterr): Add support for QNX.
97627         * lib/fbufmode.c (fbufmode): Likewise.
97628         * lib/freadable.c (freadable): Likewise.
97629         * lib/fwritable.c (fwritable): Likewise.
97630         * lib/freading.c (freading): Likewise.
97631         * lib/fwriting.c (fwriting): Likewise.
97632         * lib/freadahead.c (freadahed): Likewise.
97633         * lib/fpurge.c (fpurge): Likewise.
97634         * lib/fseeko.c (rpl_fseeko): Likewise.
97636 2007-10-03  Bruno Haible  <bruno@clisp.org>
97637             Jim Meyering  <jim@meyering.net>
97638             Eric Blake  <ebb9@byu.net>
97640         * doc/relocatable.texi: Use @command instead of @program.
97642 2007-10-02  Jim Meyering  <jim@meyering.net>
97644         Perform one more "_.h" -> ".in.h" substitution.
97645         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97646         instead of unistd_.h here, too.
97648 2007-10-01  Bruno Haible  <bruno@clisp.org>
97650         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97651         Needed for the alloca-opt module.
97653 2007-09-30  Bruno Haible  <bruno@clisp.org>
97655         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97656         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97657         alloca_.h.
97658         * lib/argz.in.h: Renamed from lib/argz_.h.
97659         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97660         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97661         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97662         byteswap_.h.
97663         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97664         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97665         dirent_.h.
97666         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97667         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97668         fcntl_.h.
97669         * lib/float.in.h: Renamed from lib/float_.h.
97670         * modules/float (Files, Makefile.am): Use float.in.h instead of
97671         float_.h.
97672         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97673         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97674         fnmatch_.h.
97675         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97676         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97677         getopt_.h.
97678         * lib/glob.in.h: Renamed from lib/glob_.h.
97679         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97680         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97681         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97682         iconv_.h.
97683         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97684         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97685         inttypes_.h.
97686         * lib/locale.in.h: Renamed from lib/locale_.h.
97687         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97688         locale_.h.
97689         * lib/math.in.h: Renamed from lib/math_.h.
97690         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97691         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97692         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97693         of netinet_in_.h. Add dependency.
97694         * lib/poll.in.h: Renamed from lib/poll_.h.
97695         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97696         * lib/search.in.h: Renamed from lib/search_.h.
97697         * modules/search (Files, Makefile.am): Use search.in.h instead of
97698         search_.h.
97699         * lib/signal.in.h: Renamed from lib/signal_.h.
97700         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97701         _signal.h.
97702         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97703         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97704         stdbool_.h.
97705         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97706         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97707         stdint_.h.
97708         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97709         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97710         stdio_.h.
97711         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97712         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97713         stdlib_.h.
97714         * lib/string.in.h: Renamed from lib/string_.h.
97715         * modules/string (Files, Makefile.am): Use string.in.h instead of
97716         string_.h.
97717         * doc/gnulib-tool.texi (Initial import): Update.
97718         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97719         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97720         of sys_select_.h. Add dependency.
97721         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97722         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97723         of sys_socket_.h.
97724         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97725         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97726         sys_stat_.h.
97727         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97728         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97729         sys_time_.h.
97730         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97731         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97732         sysexits_.h.
97733         * lib/time.in.h: Renamed from lib/time_.h.
97734         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97735         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97736         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97737         unistd_.h.
97738         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97739         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97740         wchar_.h.
97741         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97742         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97743         wctype_.h.
97744         * build-aux/bootstrap (slurp): Update.
97745         * lib/.cppi-disable: Update.
97747 2007-09-30  Bruno Haible  <bruno@clisp.org>
97749         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97750         Needed on BeOS.
97752 2007-09-30  Bruno Haible  <bruno@clisp.org>
97754         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97756 2007-09-29  Bruno Haible  <bruno@clisp.org>
97758         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97760 2007-09-29  Bruno Haible  <bruno@clisp.org>
97762         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97763         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97764         * build-aux/install-reloc: Compile also areadlink.c.
97765         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97767 2007-09-29  Bruno Haible  <bruno@clisp.org>
97769         * gnulib-tool (func_emit_initmacro_done): Indentation.
97771 2007-09-29  Bruno Haible  <bruno@clisp.org>
97773         * README: Add CVS checkout update instructions.
97774         Info from Bob Proulx <bob@proulx.com>.
97776 2007-09-28  Eric Blake  <ebb9@byu.net>
97778         Provide move-if-change.
97779         * build-aux/move-if-change: New file, based on best practice
97780         rather than any canonical upstream location.
97782 2007-09-28  Jim Meyering  <jim@meyering.net>
97784         Fix canonicalize loop-detection corner case.
97785         Do not attempt to stat the symlink values stored via seen_triple.
97786         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97787         on linux-2.6.18, (but not 2.6.22).
97788         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97789         triple_compare.  The former compares dev,ino,filename, while the latter
97790         would actually stat dirname(filename) when dev and ino were equal.
97791         * lib/hash-triple.c: Install <string.h>.
97792         (STREQ): Define.
97793         (triple_compare_ino_str): New function.
97794         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97796 2007-09-28  Eric Blake  <ebb9@byu.net>
97798         Enforce that AC_REPLACE_FUNCS files exist.
97799         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97800         override check for typos.
97802         Fix test-closein on Solaris 10.
97803         * tests/test-closein.c (main): Don't assume stdin can be inherited
97804         closed on all systems.
97805         * tests/test-closein.sh: Likewise.
97806         Reported by Piotr Tarnowski.
97808 2007-09-28  Jim Meyering  <jim@meyering.net>
97810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97812 2007-09-27  Jim Meyering  <jim@meyering.net>
97814         canonicalize: Avoid a false-positive cycle failure.
97815         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97816         Sort.  Remove cycle-check.
97817         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97818         not cycle-check.h.
97819         (seen_triple): New function.
97820         (canonicalize_filename_mode): Use it instead of cycle-check.
97821         * tests/test-canonicalize.c: Add a test for this bug.
97822         * tests/test-canonicalize.sh: Set up and run the test.
97824         New module, file-set, from coreutils.
97825         * modules/file-set: Define it.
97826         * lib/file-set.c, lib/file-set.h: Implement.
97828         New module, hash-triple, from coreutils.
97829         * modules/hash-triple: Define it.
97830         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97832 2007-09-25  Eric Blake  <ebb9@byu.net>
97834         Fix strerror on Interix.
97835         * lib/string_.h (strerror): Declare replacement.
97836         * doc/functions/strerror.texi (strerror): Document the Interix
97837         shortcoming.
97838         * modules/string (Makefile.am): Support new hooks.
97839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97840         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97841         gl_FUNC_STRERROR_SEPARATE.
97842         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97843         * lib/strerror.c (rpl_strerror): Provide replacement.
97844         * modules/strerror (Depends-on): Add string.
97845         (configure.ac): Detect use of module.
97846         * tests/test-strerror.c: New file.
97847         * modules/strerror-tests: New test module.
97848         * modules/argp (Depends-on): Add strerror.
97849         * modules/error (Depends-on): Likewise.
97850         Reported by Martin Koeppe.
97852 2007-09-24  Bruno Haible  <bruno@clisp.org>
97854         * README: Update git instructions.
97856 2007-09-24  Eric Blake  <ebb9@byu.net>
97858         Revert fpending breakage from 2007-09-08.
97859         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97860         __fpending.c.
97862 2007-09-24  Jim Meyering  <jim@meyering.net>
97864         filenamecat.c: Add a test.
97865         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97866         showing how the function works when DIR is the empty string.
97868 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97870         * tests/test-canonicalize.sh: Turn on executable bit.
97872 2007-09-19  Eric Blake  <ebb9@byu.net>
97874         * README: Update CVS instructions.
97876 2007-09-18  Bruno Haible  <bruno@clisp.org>
97878         * modules/areadlink: New file.
97879         * lib/areadlink.h (areadlink): New declaration.
97880         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97882 2007-09-17  Jim Meyering  <jim@meyering.net>
97884         * lib/savewd.c (ESTALE) [!defined]: Define.
97885         Reported to be required on Interix by Martin Koeppe.
97887 2007-09-17  Bruno Haible  <bruno@clisp.org>
97889         * gnulib-tool (func_version): Use $version.
97891 2007-09-16  Bruno Haible  <bruno@clisp.org>
97893         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97894         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97895         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97896         Reported by Greg Schafer <gschafer@zip.com.au>.
97898 2007-09-15  Bruno Haible  <bruno@clisp.org>
97900         * gnulib-tool (sed): Try a little harder to make bash understand the
97901         alias.
97902         Reported by Bruce Korb <bruce.korb@gmail.com>.
97904 2007-09-13  Eric Blake  <ebb9@byu.net>
97906         * ChangeLog: Remove conflict markers.
97908 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97910         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97911         Reported by Bruno Haible <bruno@clisp.org>.
97913 2007-09-12  Bruno Haible  <bruno@clisp.org>
97915         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97916         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97917         is not defined.
97919 2007-09-12  Eric Blake  <ebb9@byu.net>
97921         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97922         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97923         Autoconf definition.
97924         * modules/euidaccess (Depends-on): Add extensions, for
97925         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97926         * modules/fnmatch (Depends-on): Likewise.
97927         * modules/getaddrinfo (Depends-on): Likewise.
97928         * modules/getdelim (Depends-on): Likewise.
97929         * modules/getline (Depends-on): Likewise.
97930         * modules/getsubopt (Depends-on): Likewise.
97931         * modules/gettext (Depends-on): Likewise.
97932         * modules/group-member (Depends-on): Likewise.
97933         * modules/mbchar (Depends-on): Likewise.
97934         * modules/memmem (Depends-on): Likewise.
97935         * modules/mempcpy (Depends-on): Likewise.
97936         * modules/memrchr (Depends-on): Likewise.
97937         * modules/pagealign_alloc (Depends-on): Likewise.
97938         * modules/readutmp (Depends-on): Likewise.
97939         * modules/stpcpy (Depends-on): Likewise.
97940         * modules/stpncpy (Depends-on): Likewise.
97941         * modules/strchrnul (Depends-on): Likewise.
97942         * modules/strndup (Depends-on): Likewise.
97943         * modules/strsep (Depends-on): Likewise.
97944         * modules/strverscmp (Depends-on): Likewise.
97945         * modules/vasprintf (Depends-on): Likewise.
97946         * modules/wcwidth (Depends-on): Likewise.
97947         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97948         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97949         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97950         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97952         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97953         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97954         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97955         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97956         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97958         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97959         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97960         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97961         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97962         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97963         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97964         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97966         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97967         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97968         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97969         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97970         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
97971         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
97972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
97973         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
97974         so that lock.m4 can be used in gettext without extensions module.
97976 2007-09-11  Bruno Haible  <bruno@clisp.org>
97978         * m4/isc-posix.m4: Remove file.
97979         Suggested by Eric Blake.
97981 2007-09-11  Eric Blake  <ebb9@byu.net>
97983         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
97985 2007-09-10  Bruno Haible  <bruno@clisp.org>
97987         * posix-modules: Fix typo in error message.
97988         Reported by Matt <mkraai@beckman.com>.
97990 2007-09-09  Bruno Haible  <bruno@clisp.org>
97992         * doc/functions/getdelim.texi: Update list of platforms lacking the
97993         function.
97994         * doc/functions/getline.texi: Likewise.
97996 2007-09-09  Jim Meyering  <jim@meyering.net>
97998         * lib/hash.c (hash_initialize): Detect calloc failure.
97999         Reported by Bruno Haible.
98001 2007-09-09  Bruno Haible  <bruno@clisp.org>
98003         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98004         malloc or realloc fails.
98006 2007-09-09  Bruno Haible  <bruno@clisp.org>
98008         * modules/getcwd (Depends-on): Add malloc-posix.
98009         * modules/glob (Depends-on): Likewise.
98010         * modules/putenv (Depends-on): Likewise.
98011         * modules/strdup (Depends-on): Likewise.
98012         * modules/getdelim (Depends-on): Add realloc-posix.
98013         * modules/read-file (Depends-on): Likewise.
98015 2007-09-09  Bruno Haible  <bruno@clisp.org>
98017         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98018         (gl_FUNC_MALLOC_POSIX): Require it.
98019         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98020         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98021         * modules/realloc (Files): Add m4/malloc.m4.
98022         * modules/calloc (Files): Likewise.
98024 2007-09-09  Bruno Haible  <bruno@clisp.org>
98026         * modules/malloc-posix: New file.
98027         * modules/malloc (Depends-on): Add malloc-posix.
98028         * lib/malloc.c: Include errno.h.
98029         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98030         and a POSIX-compatible malloc into a single function. Set ENOMEM
98031         when returning NULL.
98032         * m4/malloc.m4: New file.
98033         * doc/functions/malloc.texi: Mention the malloc-posix module.
98034         * lib/stdlib_.h (malloc): New declaration.
98035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98036         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98037         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98038         and HAVE_MALLOC_POSIX.
98040 2007-09-09  Bruno Haible  <bruno@clisp.org>
98042         * modules/realloc-posix: New file.
98043         * modules/realloc (Depends-on): Add realloc-posix.
98044         * lib/realloc.c: Include errno.h.
98045         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98046         and a POSIX-compatible realloc into a single function. Set ENOMEM
98047         when returning NULL.
98048         * m4/realloc.m4: New file.
98049         * doc/functions/realloc.texi: Mention the realloc-posix module.
98050         * lib/stdlib_.h (realloc): New declaration.
98051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98052         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98053         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98054         and HAVE_REALLOC_POSIX.
98056 2007-09-09  Bruno Haible  <bruno@clisp.org>
98058         * modules/calloc-posix: New file.
98059         * modules/calloc (Depends-on): Add calloc-posix.
98060         * lib/calloc.c: Include errno.h.
98061         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98062         and a POSIX-compatible calloc into a single function. Set ENOMEM
98063         when returning NULL.
98064         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98065         * doc/functions/calloc.texi: Mention the calloc-posix module.
98066         * lib/stdlib_.h (calloc): New declaration.
98067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98068         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98069         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98070         and HAVE_CALLOC_POSIX.
98072 2007-09-09  Bruno Haible  <bruno@clisp.org>
98074         Allow for modules to show an arbitrary notice.
98075         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
98076         * gnulib-tool: New option --extract-notice.
98077         (func_usage): Document it.
98078         (sed_extract_prog): Update.
98079         (func_get_notice): New function.
98080         (func_modules_notice): New function.
98081         (func_import, func_create_testdir): Invoke it.
98082         Suggested by Jim Meyering.
98084 2007-09-09  Bruno Haible  <bruno@clisp.org>
98086         * gnulib-tool: New options --verbose, --quiet.
98087         (func_usage): Document them.
98088         (verbose): New variable.
98089         (func_execute_command): New function.
98090         (func_import): Don't show the module list and the file list if
98091         $verbose < 0.
98092         (func_create_testdir): Likewise. Use func_execute_command.
98093         (func_create_megatestdir): Use func_execute_command.
98095 2007-09-08  Bruno Haible  <bruno@clisp.org>
98097         * gnulib-tool (func_import): Prefer rsync over wget when available,
98098         for fetching the PO files.
98100 2007-09-08  Bruno Haible  <bruno@clisp.org>
98102         * posix-modules: New file. Portions copied from gnulib-tool.
98103         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
98105 2007-09-08  Jim Meyering  <jim@meyering.net>
98107         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
98108         * lib/fpending.h: Rename from __fpending.h.
98109         * lib/fpending.c: Rename from __fpending.c.
98110         Include "fpending.h", not "__fpending.h".
98111         * lib/__fpending.h, lib/__fpending.c: Remove files.
98112         * modules/fpending (Files): Reflect new file names.
98113         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98115 2007-09-08  Bruno Haible  <bruno@clisp.org>
98117         * m4/inttypes-h.m4: Remove stub file.
98119 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98121         * doc/headers/stdint.texi: Discuss #include_next issue.
98123 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98125         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98127 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98129         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98130         in variable name.
98132 2007-09-03  Jim Meyering  <jim@meyering.net>
98134         New module: git-version-gen.
98135         * modules/git-version-gen: New file.
98137         Import changes from coreutils for bootstrap script.
98139         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98141         bootstrap: uses rsync to download the .po files
98142         * build-aux/bootstrap (po_download_command_format): New global.
98143         (download_po_files): Use rsync.
98144         (update_po_files): Don't remove .po files after download,
98145         so future rsync runs can take advantage of the copies.
98147         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98149         Solve the unnecessary-.po-file-regeneration problem once and for all.
98150         * build-aux/bootstrap (download_po_files): New function, renamed from
98151         get_translations.  Now, downloads, but doesn't update LINGUAS.
98152         (update_po_files): New function.
98154         bootstrap: Ignore more.
98155         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98156         uniwidth to e.g., lib/.gitignore.
98157         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98159         * build-aux/bootstrap: New setting: vc_ignore.
98160         (insert_sorted_if_absent): Create $file if absent.
98161         Adapt to new, possibly empty, list: $vc_ignore.
98163         bootstrap: generate more ignorable names
98164         * build-aux/bootstrap (slurp): When generating ignorable names,
98165         also map .sin to .sed, .gperf to .c, and .y to .c.
98167 2007-09-03  Jim Meyering  <jim@meyering.net>
98169         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98170         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98172 2007-09-02  Bruno Haible  <bruno@clisp.org>
98174         Fix mis-recognition of 'mcs' on QNX 6.
98175         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98176         output contains the string "Mono".
98177         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98178         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98180 2007-09-01  Bruno Haible  <bruno@clisp.org>
98182         Fix collision between uniwidth/* and linebreak modules.
98183         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98184         u32_width): Remove declarations.
98185         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98186         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98187         streq3, streq2, streq1, streq0): Remove functions.
98188         (STREQ): Remove macro.
98189         (is_cjk_encoding): Remove function.
98190         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98191         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98192         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98193         * NEWS: Document the change.
98195 2007-09-01  Bruno Haible  <bruno@clisp.org>
98197         * lib/streq.h: Add double-inclusion guard.
98199 2007-09-01  Karl Berry  <karl@gnu.org>
98201         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98203 2007-08-28  Jim Meyering  <jim@meyering.net>
98205         Rename mreadlink_with_size to areadlink_with_size.
98206         * NEWS: Document the change.
98207         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98208         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98209         * lib/mreadlink.h: Rename this to...
98210         * lib/areadlink.h: ...this.
98211         * modules/mreadlink-with-size: Rename this to...
98212         * modules/areadlink-with-size: ...this.
98213         * lib/canonicalize.c: Reflect the renaming.
98214         * modules/canonicalize: Likewise.
98216 2007-08-26  Bruno Haible  <bruno@clisp.org>
98218         * gnulib-tool (func_import): When deciding which files to remove,
98219         consider also dangling symbolic links.
98220         Reported by Eric Blake.
98222 2007-08-26  Bruno Haible  <bruno@clisp.org>
98224         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98226 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98228         * lib/readline.c: Don't include getline.h, the prototype is now
98229         found in stdio.h.
98231 2007-08-23  Jim Meyering  <jim@meyering.net>
98233         Getdelim touchup.
98234         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98235         around the funlockfile call, since funlockfile never sets errno.
98236         Don't set errno upon failed realloc.
98238 2007-08-22  Eric Blake  <ebb9@byu.net>
98240         Getline touchups.
98241         * lib/getdelim.c (getdelim): Revert regression that required *n to
98242         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98243         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98244         getdelim, rather than whether implementation is missing.
98245         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98246         * lib/stdio_.h (getline): Also declare if replacement is
98247         required.
98248         * doc/functions/getdelim.texi: New file.
98249         * doc/functions/getline.texi: Likewise.
98250         * doc/gnulib.texi (Function Substitutes): Add new files.
98251         Reported by Bruno Haible.
98253 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98255         * users.txt: Add Guile.
98257 2007-08-22  Eric Blake  <ebb9@byu.net>
98259         * tests/test-getdelim.c (main): Use remove, not unlink.
98260         * tests/test-getline.c (main): Likewise.
98262         Move getline and getdelim into stdio.h, per POSIX 200x.
98263         * modules/getline (Files): Remove getline.h.
98264         (Depends-on): Add stdio.
98265         (configure.ac): Add module indicator.
98266         * modules/getdelim (Files): Remove getdelim.h.
98267         (Depends-on): Add stdio.
98268         (configure.ac): Add module indicator.
98269         * modules/stdio (Makefile.am): Work with new indicators.
98270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98271         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98272         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98273         * lib/getdelim.h: Delete.
98274         * lib/getline.h: Delete.
98275         * lib/stdio_.h (getdelim, getline): Declare.
98276         * modules/getdelim-tests: New module.
98277         * modules/getline-tests: Likewise.
98278         * tests/test-getdelim.c: New file.
98279         * tests/test-getline.c: Likewise.
98280         * NEWS: Document the change.
98281         * lib/getline.c: Update choice of header.
98282         * lib/csharpcomp.c: Likewise.
98283         * lib/getpass.c: Likewise.
98284         * lib/javacomp.c: Likewise.
98285         * lib/javaversion.c: Likewise.
98286         * lib/yesno.c: Likewise.
98287         * lib/getdelim.c: Likewise.
98288         (getdelim): Set errno on failure, and avoid memory leak.
98290 2007-08-19  Bruno Haible  <bruno@clisp.org>
98292         * modules/closein (Depends-on): Add freadahead.
98293         * lib/closein.c: Include freadahead.h.
98294         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98295         is zero.
98297 2007-08-19  Bruno Haible  <bruno@clisp.org>
98299         * modules/freadahead-tests: New file.
98300         * tests/test-freadahead.sh: New file.
98301         * tests/test-freadahead.c: New file.
98303         * modules/freadahead: New file.
98304         * lib/freadahead.h: New file.
98305         * lib/freadahead.c: New file.
98306         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98307         fbufmode, fpurge, freadable, fwritable.
98309 2007-08-19  Eric Blake  <ebb9@byu.net>
98311         Test yesno in combination with closein.
98312         * lib/yesno.c (yesno): Document use of stdin.
98313         * modules/yesno-tests (Files): New module.
98314         * tests/test-yesno.c (main): New file.
98315         * tests/test-yesno.sh: Likewise.
98317 2007-08-19  Bruno Haible  <bruno@clisp.org>
98319         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98320         * lib/fseeko.c (rpl_fseeko): Likewise.
98321         * lib/fseterr.c (fseterr): Likewise.
98323 2007-08-19  Bruno Haible  <bruno@clisp.org>
98325         * tests/test-lseek.c (main): Disable a test for BeOS.
98326         * doc/functions/lseek.texi: Document the BeOS bug.
98328 2007-08-19  Bruno Haible  <bruno@clisp.org>
98329             Eric Blake  <ebb9@byu.net>
98331         * lib/lseek.c: Include <sys/stat.h>.
98332         (rpl_lseek): Add workaround code also for Unix platforms.
98333         Needed for BeOS.
98334         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98335         * doc/functions/lseek.texi: Document BeOS definiency.
98337 2007-08-18  Bruno Haible  <bruno@clisp.org>
98339         * modules/fstrcmp-tests: New file.
98340         * tests/test-fstrcmp.c: New file.
98342 2007-08-18  Bruno Haible  <bruno@clisp.org>
98344         * modules/fstrcmp: New file, from GNU gettext with modifications.
98345         * lib/fstrcmp.h: New file, from GNU gettext.
98346         * lib/fstrcmp.c: New file, from GNU gettext.
98347         * MODULES.html.sh (String handling): Add fstrcmp.
98349 2007-08-18  Bruno Haible  <bruno@clisp.org>
98351         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98352         'bool'.
98353         (diag, compareseq): Remove const from the ctxt argument.
98354         (USE_HEURISTIC): Undefine at the end.
98356 2007-08-18  Jim Meyering  <jim@meyering.net>
98358         New file: lib/idcache.h
98359         * NEWS: Mention the addition.
98360         * modules/idcache (Files): Add lib/idcache.h
98361         * lib/idcache.c: Include "idcache.h".
98362         Don't include <sys/types.h>.
98363         Add a FIXME comment.
98364         Move file-scoped "static" declarations to the top.
98365         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98367 2007-08-17  Bruno Haible  <bruno@clisp.org>
98368         and Paul Eggert  <eggert@cs.ucla.edu>
98370         * MODULES.html.sh: Add diffseq.
98371         * modules/diffseq: New file.
98372         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98373         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98375 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98377         Import changes from coreutils for bootstrap script.
98379         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98381         * build-aux/bootstrap (slurp): Work even in environments where
98382         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98383         current code does not slurp files whose names start with ".", and
98384         this looks like it might be a troublesome area.
98386         2007-07-11  Jim Meyering  <jim@meyering.net>
98388         If there's a GPL vN copyright comment, require that N == 3.
98390         2007-07-08  Jim Meyering  <jim@meyering.net>
98392         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98393         * build-aux/bootstrap (mam_template): Move definition out of loop.
98395         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98397         * build-aux/bootstrap (symlink_to_dir): Rename function from
98398         symlink_to_gnulib.  Add a directory parameter.  Update all
98399         callers.
98400         (cp_mark_as_generated): Also check for -- and link to -- files in
98401         gl/.
98403         2007-07-08  Jim Meyering  <jim@meyering.net>
98405         Adapt to deeper hierarchy in gnulib.
98406         * build-aux/bootstrap (symlink_to_dir): If the destination
98407         directory doesn't exist, create it. This is required at least for
98408         "lib/uniwidth/cjk.h".
98410         2007-05-15  Jim Meyering  <jim@meyering.net>
98412         * build-aux/bootstrap: Now that generated Makefile.am files
98413         are no longer under version control, they must be created at
98414         bootstrap time.
98416 2007-08-14  Ben Pfaff  <blp@gnu.org>
98418         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98420 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98422         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98423         given the changes below.
98424         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98425         even on hosts that have padding bits beyond the supported 64.
98427 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98429         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98430         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98431         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98432         depends on it.
98433         (xstrtol_error): Remove.
98434         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98435         but with a different signature.
98436         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98437         * lib/xstrtol-error.c: Include exitfail.h.
98438         (xstrtol_fatal): New function, with a different signature from the
98439         old xstrtol_error, so that the caller need not worry about passing
98440         in an exit status, or about storage management of the option argument.
98441         (xstrtol_error): Now a static function.  Redo signature to
98442         implement xstrtol_fatal.  Output the correct number of hyphens in
98443         front of the option so that the caller need not worry about
98444         storage management.
98445         (N_): New macro.
98446         (_): Remove; not used now.
98447         * modules/xstrtol: Depend on getopt.
98448         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98449         of old STRTOL_FATAL_ERROR macro.
98450         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98451         of test program.
98452         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98453         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98455 2007-08-08  Eric Blake  <ebb9@byu.net>
98457         * lib/xstrtol-error.c: Add missing include.
98459         Move xstrtol messages into gnulib domain, when --pobase is used.
98460         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98461         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98462         * modules/xstrtol (Files): Distribute new file.
98463         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98464         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98465         * tests/test-xstrtol.c: ...into new file.
98466         * tests/test-xstrtoul.c: Also test xstrtoul.
98467         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98468         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98469         * tests/test-xstrtol.sh: Drive the tests.
98470         * tests/test-xstrtoimax.sh: Likewise.
98471         * tests/test-xstrtoumax.sh: Likewise.
98472         * modules/xstrtol-tests: New module.
98473         * modules/xstrtoimax-tests: Likewise.
98474         * modules/xstrtoumax-tests: Likewise.
98476 2007-08-08  Jim Meyering  <jim@meyering.net>
98478         New function: mfile_name_concat.
98479         * lib/filenamecat.c (mfile_name_concat): New function, just like
98480         file_name_concat, but return NULL upon failure rather than exiting
98481         with a diagnostic.
98482         * lib/filenamecat.h: Declare it.
98484 2007-08-07  Bruno Haible  <bruno@clisp.org>
98486         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98487         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98488         warning from gcc.
98489         Reported by Eric Blake.
98491 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98493         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98494         * modules/crypto/arcfour (License): Likewise.
98495         * modules/crypto/des-tests (License): Likewise.
98496         * modules/crypto/gc-arctwo-tests (License): Likewise.
98497         * modules/crypto/gc-des-tests (License): Likewise.
98498         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98499         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98500         * modules/crypto/gc-md2-tests (License): Likewise.
98501         * modules/crypto/gc-md4-tests (License): Likewise.
98502         * modules/crypto/gc-md5-tests (License): Likewise.
98503         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98504         * modules/crypto/gc-rijndael-tests (License): Likewise.
98505         * modules/crypto/gc-sha1-tests (License): Likewise.
98506         * modules/crypto/gc-tests (License): Likewise.
98507         * modules/crypto/hmac-md5 (License): Likewise.
98508         * modules/crypto/hmac-sha1 (License): Likewise.
98509         * modules/crypto/md2-tests (License): Likewise.
98510         * modules/crypto/md4-tests (License): Likewise.
98511         * modules/crypto/md5 (License): Likewise.
98512         * modules/crypto/rijndael (License): Likewise.
98513         * modules/crypto/sha1 (License): Likewise.
98514         * modules/memxor (License): Likewise.
98516 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98517         and Bruno Haible  <bruno@clisp.org>
98519         * NEWS: Describe interface changes to human, xstrtol.
98520         * lib/human.h: Include <xstrtol.h>.
98521         (human_options): Return enum strtol_error, not int.  Remove
98522         bool arg; take int * instead.
98523         * lib/human.c: Don't include "gettext.h".
98524         (_): Remove; no longer used.
98525         Don't include <xstrtol.h>, since human.h does it.
98526         (human_options): Adjust to abovementioned interface changes.
98527         Do not report error to stderr; that's now the caller's
98528         responsibility.
98529         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98530         interface change.
98531         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98532         Str, Argument_type_string.  All uses changed.  Put " argument"
98533         in diagnostics to make them clearer.  Change wording of suffix
98534         message for clarity.
98535         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98536         Argument_type_string.
98537         (STRTOL_FATAL_WARN): Remove; no longer used.
98538         * modules/human (Depends-on): Remove gettext-h.
98540 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98542         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98544 2007-07-31  Bruno Haible  <bruno@clisp.org>
98546         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98547         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98548         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98550 2007-07-31  Bruno Haible  <bruno@clisp.org>
98552         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98553         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98555 2007-07-30  Bruno Haible  <bruno@clisp.org>
98557         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98558         * modules/c-ctype (License): Likewise.
98559         * modules/c-strcase (License): Likewise.
98560         * modules/check-version (License): Likewise.
98561         * modules/iconv (License): Likewise.
98562         * modules/iconv_open (License): Likewise.
98563         * modules/read-file (License): Likewise.
98564         * modules/striconv (License): Likewise.
98565         * modules/strverscmp (License): Likewise.
98566         * modules/vasprintf (License): Likewise.
98567         * modules/crypto/des (License): Likewise.
98568         * modules/crypto/gc (License): Likewise.
98569         * modules/crypto/gc-arcfour (License): Likewise.
98570         * modules/crypto/gc-arctwo (License): Likewise.
98571         * modules/crypto/gc-des (License): Likewise.
98572         * modules/crypto/gc-hmac-md5 (License): Likewise.
98573         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98574         * modules/crypto/gc-md2 (License): Likewise.
98575         * modules/crypto/gc-md4 (License): Likewise.
98576         * modules/crypto/gc-md5 (License): Likewise.
98577         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98578         * modules/crypto/gc-random (License): Likewise.
98579         * modules/crypto/gc-rijndael (License): Likewise.
98580         * modules/crypto/gc-sha1 (License): Likewise.
98581         * modules/crypto/md2 (License): Likewise.
98582         * modules/crypto/md4 (License): Likewise.
98584 2007-07-30  Jim Meyering  <jim@meyering.net>
98586         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98587         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98588         it has valid stat data.  This bug would cause du not to count the
98589         sizes of inaccessible directories.
98590         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98591         in <http://bugzilla.redhat.com/250077>.
98593 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98594             Bruno Haible  <bruno@clisp.org>
98596         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98597         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98598         #include_next, gives a diagnostic about it, but reports no error in
98599         the exit code.
98600         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98602 2007-07-24  Ben Pfaff  <blp@gnu.org>
98604         Improve name: "count-one-bits" is better than "popcount".
98605         * MODULES.html.sh: Update name.
98606         * lib/popcount.h: Renamed lib/count-one-bits.h.
98607         (popcount): Renamed count_one_bits.
98608         (popcountl): Renamed count_one_bits_l.
98609         (popcountll): Renamed count_one_bits_ll.
98610         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98611         * modules/popcount: Renamed module/count-one-bits.
98612         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98613         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98615 2007-07-23  Ben Pfaff  <blp@gnu.org>
98617         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98618         better code generation, and add U to large constants to avoid
98619         warnings, in non-GCC case.
98620         Suggested by Bruno Haible.
98622 2007-07-23  Ben Pfaff  <blp@gnu.org>
98624         * lib/popcount.h: Use verify_true instead of if...abort.
98625         * modules/popcount: Depend on verify module.
98626         Suggested by Jim Meyering.
98628 2007-07-23  Bruno Haible  <bruno@clisp.org>
98630         * gnulib-tool (func_import): Create a .cvsignore file also when the
98631         directory is not yet in CVS but the toplevel directory is. When
98632         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98633         Reported by Karl Berry.
98635 2007-07-22  Ben Pfaff  <blp@gnu.org>
98637         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98638         case.
98639         Suggested by Eric Blake.
98641 2007-07-22  Ben Pfaff  <blp@gnu.org>
98643         New module: popcount.
98644         * MODULES.html.sh: Add popcount.
98645         * modules/popcount: New file.
98646         * modules/popcount-tests: New file.
98647         * tests/test-popcount.c: New file.
98648         * lib/popcount.h: New file.
98649         * m4/popcount.m4: New file.
98651 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98653         * build-aux/announce-gen: Update to GPLv3.
98655         * build-aux/config.guess: Update from config.
98657 2007-07-21  Bruno Haible  <bruno@clisp.org>
98659         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98660         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98662 2007-07-20  Jim Meyering  <jim@meyering.net>
98664         * check-module: Diagnose a self-dependency.
98666 2007-07-19  Bruno Haible  <bruno@clisp.org>
98668         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98669         empty.
98670         Reported by Eric Blake.
98672 2007-07-18  Bruno Haible  <bruno@clisp.org>
98674         * gnulib-tool: New options --po-base, --po-domain.
98675         (func_usage): Document them.
98676         (pobase, po_domain): New variables.
98677         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98678         DEFAULT_TEXT_DOMAIN.
98679         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98680         (func_import): Consider pobase and po_domain. Create a po/ directory.
98681         (func_create_testdir): Set pobase and po_domain to empty.
98682         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98683         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98685 2007-07-18  Bruno Haible  <bruno@clisp.org>
98687         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98688         EXTRA_DIST augmentation for files in build-aux/.
98690 2007-07-16  Bruno Haible  <bruno@clisp.org>
98692         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98693         * modules/getdelim (License): Likewise.
98695 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98697         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98698         * modules/d-type (License): Likewise.
98699         * modules/extensions (License): Likewise.
98700         * modules/fnmatch (License): Likewise.
98701         * modules/fseeko (License): Likewise.
98702         * modules/getaddrinfo (License): Likewise.
98703         * modules/getline (License): Likewise.
98704         * modules/getlogin_r (License): Likewise.
98705         * modules/getpass (License): Likewise.
98706         * modules/gettimeofday (License): Likewise.
98707         * modules/glob (License): Likewise.
98708         * modules/inet_ntop (License): Likewise.
98709         * modules/malloc (License): Likewise.
98710         * modules/malloca (License): Likewise.
98711         * modules/memmem (License): Likewise.
98712         * modules/mempcpy (License): Likewise.
98713         * modules/memset (License): Likewise.
98714         * modules/minmax (License): Likewise.
98715         * modules/mktime (License): Likewise.
98716         * modules/netinet_in (License): Likewise.
98717         * modules/pathmax (License): Likewise.
98718         * modules/poll (License): Likewise.
98719         * modules/regex (License): Likewise.
98720         * modules/snprintf (License): Likewise.
98721         * modules/stdbool (License): Likewise.
98722         * modules/stdint (License): Likewise.
98723         * modules/stdio (License): Likewise.
98724         * modules/strcase (License): Likewise.
98725         * modules/strcasestr (License): Likewise.
98726         * modules/strdup (License): Likewise.
98727         * modules/string (License): Likewise.
98728         * modules/strndup (License): Likewise.
98729         * modules/strnlen (License): Likewise.
98730         * modules/strpbrk (License): Likewise.
98731         * modules/strptime (License): Likewise.
98732         * modules/strsep (License): Likewise.
98733         * modules/sys_select (License): Likewise.
98734         * modules/sys_socket (License): Likewise.
98735         * modules/sys_stat (License): Likewise.
98736         * modules/sys_time (License): Likewise.
98737         * modules/time (License): Likewise.
98738         * modules/time_r (License): Likewise.
98739         * modules/timegm (License): Likewise.
98740         * modules/unistd (License): Likewise.
98741         * modules/vsnprintf (License): Likewise.
98742         * modules/wctype (License): Likewise.
98744 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98746         * modules/argz (License): LGPLv2+.
98748 2007-07-15  Karl Berry  <karl@gnu.org>
98750         * doc/gnulib.texi: revise node structure per new fdl.texi.
98752 2007-07-14  Bruno Haible  <bruno@clisp.org>
98754         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98755         the output file.
98756         * lib/uniname/uninames.h: Regenerated.
98758 2007-07-14  Karl Berry  <karl@gnu.org>
98760         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98761         omitting sectioning and index commands.
98763 2007-07-13  Bruno Haible  <bruno@clisp.org>
98765         New gnulib-tool option --more-symlinks.
98766         * gnulib-tool (func_usage): Document --more-symlinks.
98767         (do_copyrights): New variable.
98768         Recognize option --more-symlinks.
98769         (func_import): Don't add a copyright notice transform to
98770         sed_transform_lib_file if do_copyrights is empty.
98772 2007-07-13  Bruno Haible  <bruno@clisp.org>
98774         * lib/vasnprintf.c (decimal_point_char): Define also if
98775         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98776         && !NEED_PRINTF_DIRECTIVE_A.
98777         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98778         Gary V. Vaughan <gary@gnu.org>.
98780 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98782         * lib/inttypes_.h: Undo previous change, since it was fixed
98783         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98785 2007-07-13  Bruno Haible  <bruno@clisp.org>
98787         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98788         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98790 2007-07-13  Jim Meyering  <jim@meyering.net>
98792         df: Don't fail for Tru64's "file-on-file mount".
98793         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98794         so we fall through and use statfs instead.  Details here:
98795         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98796         Reported by Albert Chin.
98798 2007-07-13  Bruno Haible  <bruno@clisp.org>
98800         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98801         * modules/configmake (License): Likewise.
98802         * modules/gettext (License): Likewise.
98803         * modules/gettext-h (License): Likewise.
98804         * modules/include_next (License): Likewise.
98805         * modules/link-warning (License): Likewise.
98806         * modules/localcharset (License): Likewise.
98807         * modules/localename (License): Likewise.
98808         * modules/lock (License): Likewise.
98809         * modules/relocatable-lib-lgpl (License): Likewise.
98810         * modules/size_max (License): Likewise.
98811         * modules/vasnprintf (License): Likewise.
98812         * modules/wchar (License): Likewise.
98813         * modules/xsize (License): Likewise.
98815 2007-07-13  Bruno Haible  <bruno@clisp.org>
98817         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98818         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98820 2007-07-12  Bruno Haible  <bruno@clisp.org>
98822         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98823         in the modules files.
98825 2007-07-11  Karl Berry  <karl@gnu.org>
98827         * MODULES.html.sh (func_module): use
98828          sed -e '\|^'"${includefile}"'$|d'
98829          instead of /.../d, to avoid errors on $includefile's containing /.
98831 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98833         * gnulib-tool (func_import): Avoid duplication of --avoid
98834         statements
98835         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98836         names to `_' in variable names.
98838 2007-07-10  Eric Blake  <ebb9@byu.net>
98840         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98841         * NEWS: Document this change.
98843 2007-07-08  Bruno Haible  <bruno@clisp.org>
98845         Update to Unicode 5.0.
98846         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98847         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98848         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98849         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98850         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98851         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98852         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98853         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98854         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98855         U+10A3F, U+1D242..U+1D244.
98856         (nonspacing_table_ind): Update.
98857         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98858         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98860 2007-07-08  Bruno Haible  <bruno@clisp.org>
98862         Update to Unicode 5.0.
98863         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98864         code transform. Extend the name index field of unicode_name_to_code and
98865         unicode_code_to_name from 16 to 24 bits.
98866         * lib/uniname/uniname.c (unicode_character_name,
98867         unicode_name_character): Add the range 0x12xxx to the code transform.
98868         * lib/uniname/uninames.h: Regenerated.
98869         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98871 2007-07-07  Bruno Haible  <bruno@clisp.org>
98873         * modules/wcwidth-tests: New file.
98874         * tests/test-wcwidth.c: New file.
98876         Work around MacOS X wcwidth() bug.
98877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98878         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98879         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98880         original wcwidth in non-UTF-8 locales.
98881         * modules/wcwidth (Depends-on): Add localcharset, streq,
98882         uniwidth/width.
98883         * doc/functions/wcwidth.texi: Update.
98885 2007-07-07  Bruno Haible  <bruno@clisp.org>
98887         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98888         (wcwidth): New declaration.
98889         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98890         macros.
98891         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98892         here. Prepare for creating <wchar.h> unconditionally.
98893         * modules/wchar (Depends-on): Add link-warning.
98894         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98895         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98896         * lib/wcwidth.h: Remove file.
98897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98898         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98899         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98900         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98901         (Include): Replace wcwidth.h with <wchar.h>.
98902         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98903         * lib/mbchar.h: Don't include wcwidth.h.
98904         * lib/mbswidth.c: Likewise.
98905         * NEWS: Mention the change.
98907 2007-07-07  Bruno Haible  <bruno@clisp.org>
98909         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98910         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98911         definition with an external declaration.
98912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98913         defined as a function. Remove AC_C_INLINE requirement.
98914         * modules/wcwidth (Files): Add lib/wcwidth.c.
98915         (Makefile.am): Remove redundant statement.
98917 2007-07-07  Bruno Haible  <bruno@clisp.org>
98919         * MODULES.html.sh (Unicode string functions): Add the new modules.
98921         * tests/uniwidth/test-u32-strwidth.c: New file.
98922         * modules/uniwidth/u32-strwidth-tests: New file.
98924         * lib/uniwidth/u32-strwidth.c: New file.
98925         * modules/uniwidth/u32-strwidth: New file.
98927         * tests/uniwidth/test-u16-strwidth.c: New file.
98928         * modules/uniwidth/u16-strwidth-tests: New file.
98930         * lib/uniwidth/u16-strwidth.c: New file.
98931         * modules/uniwidth/u16-strwidth: New file.
98933         * tests/uniwidth/test-u8-strwidth.c: New file.
98934         * modules/uniwidth/u8-strwidth-tests: New file.
98936         * lib/uniwidth/u8-strwidth.c: New file.
98937         * modules/uniwidth/u8-strwidth: New file.
98939         * tests/uniwidth/test-u32-width.c: New file.
98940         * modules/uniwidth/u32-width-tests: New file.
98942         * lib/uniwidth/u32-width.c: New file.
98943         * modules/uniwidth/u32-width: New file.
98945         * tests/uniwidth/test-u16-width.c: New file.
98946         * modules/uniwidth/u16-width-tests: New file.
98948         * lib/uniwidth/u16-width.c: New file.
98949         * modules/uniwidth/u16-width: New file.
98951         * tests/uniwidth/test-u8-width.c: New file.
98952         * modules/uniwidth/u8-width-tests: New file.
98954         * lib/uniwidth/u8-width.c: New file.
98955         * modules/uniwidth/u8-width: New file.
98957         * tests/uniwidth/test-uc_width.c: New file.
98958         * modules/uniwidth/width-tests: New file.
98960         * lib/uniwidth/width.c: New file, from GNU libiconv.
98961         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98962         * modules/uniwidth/width: New file.
98964         * lib/uniwidth.h: New file, from GNU libiconv.
98965         * modules/uniwidth/base: New file.
98967 2007-07-07  Bruno Haible  <bruno@clisp.org>
98969         * lib/uniname.h: New file, from GNU gettext.
98970         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
98971         * lib/uniname/uninames.h: New file, from GNU gettext.
98972         * lib/uniname/uniname.c: New file, from GNU gettext.
98973         * tests/uniname/test-uninames.sh: New file.
98974         * tests/uniname/test-uninames.c: New file, from GNU gettext.
98975         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
98976         * modules/uniname/base: New file.
98977         * modules/uniname/uniname: New file.
98978         * modules/uniname/uniname-tests: New file.
98979         * MODULES.html.sh (Unicode string functions): Add the new modules.
98981 2007-07-06  Bruno Haible  <bruno@clisp.org>
98983         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
98985 2007-07-06  Bruno Haible  <bruno@clisp.org>
98987         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
98988         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
98989         includes <cygwin/sys_time.h> which includes <sys/select.h> which
98990         include <sys/time.h>.
98991         Reported by Eric Blake.
98993 2007-07-06  Eric Blake  <ebb9@byu.net>
98995         Fix testing canonicalize on cygwin.
98996         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
98997         Revert patch from 2007-06-19.
98998         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
98999         canonicalize module is also in use.
99000         * tests/test-canonicalize.c: New file.
99001         * tests/test-canonicalize.sh: Likewise.
99002         * modules/canonicalize-tests: Likewise.
99004 2007-07-06  Jim Meyering  <jim@meyering.net>
99006         * lib/getugroups.c (getugroups): Detect getgrent failure.
99007         Adjust comment to reflect reality: this function may return -1.
99009 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99011         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99012         the new TP address.
99013         (usage): Fix typo
99014         (gnulib_mk): New variable.
99016 2007-07-05  Jim Meyering  <jim@meyering.net>
99018         Don't let endgrent clobber errno, no matter how improbable.
99019         * lib/getugroups.c (getugroups): Save and restore errno around
99020         endgrent call.
99022         Close the group DB even when failing with 2^31 or more members.
99023         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99025 2007-07-04  Jim Meyering  <jim@meyering.net>
99027         * lib/getugroups.h: New file.
99028         * lib/getugroups.c: Include "getugroups.h".
99029         Remove uses of "register" keyword.
99030         Move local variable, "cp", down into scope where used.
99031         Give "username" parameter the "const" attribute.
99032         * modules/getugroups (Files): Add lib/getugroups.h
99034 2007-07-04  Karl Berry  <karl@gnu.org>
99036         * MODULES.html.sh (func_all_modules): Complete rename of
99037         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99039 2007-07-02  Bruno Haible  <bruno@clisp.org>
99041         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99042         mode, when inttypes.h comes from gnulib.
99043         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99045 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99047         * NEWS: Mention lgpl module name change.
99049         * modules/lgpl-2.1: Renamed from lgpl.
99051         * NEWS: Mention gpl module name change.
99053         * modules/gpl-3.0: New file, based on gpl-2.0.
99055         * modules/gpl-2.0: Renamed from gpl.
99057         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99058         doc/gpl-2.0.texi.
99060 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99062         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99063         #define __STDC_LIMIT_MACROS temporarily while including
99064         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99065         Problem reported by Joel E. Denny in
99066         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99068 2007-07-01  Bruno Haible  <bruno@clisp.org>
99070         * lib/unistdio.h: New file.
99071         * lib/unistdio/u-asnprintf.h: New file.
99072         * lib/unistdio/u-asprintf.h: New file.
99073         * lib/unistdio/u-printf-args.c: New file.
99074         * lib/unistdio/u-printf-args.h: New file.
99075         * lib/unistdio/u-printf-parse.h: New file.
99076         * lib/unistdio/u-snprintf.h: New file.
99077         * lib/unistdio/u-sprintf.h: New file.
99078         * lib/unistdio/u-vasprintf.h: New file.
99079         * lib/unistdio/u-vsnprintf.h: New file.
99080         * lib/unistdio/u-vsprintf.h: New file.
99081         * lib/unistdio/ulc-asnprintf.c: New file.
99082         * lib/unistdio/ulc-asprintf.c: New file.
99083         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
99084         * lib/unistdio/ulc-printf-parse.c: New file.
99085         * lib/unistdio/ulc-snprintf.c: New file.
99086         * lib/unistdio/ulc-sprintf.c: New file.
99087         * lib/unistdio/ulc-vasnprintf.c: New file.
99088         * lib/unistdio/ulc-vasprintf.c: New file.
99089         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
99090         * lib/unistdio/ulc-vsnprintf.c: New file.
99091         * lib/unistdio/ulc-vsprintf.c: New file.
99092         * lib/unistdio/u8-asnprintf.c: New file.
99093         * lib/unistdio/u8-asprintf.c: New file.
99094         * lib/unistdio/u8-printf-parse.c: New file.
99095         * lib/unistdio/u8-snprintf.c: New file.
99096         * lib/unistdio/u8-sprintf.c: New file.
99097         * lib/unistdio/u8-vasnprintf.c: New file.
99098         * lib/unistdio/u8-vasprintf.c: New file.
99099         * lib/unistdio/u8-vsnprintf.c: New file.
99100         * lib/unistdio/u8-vsprintf.c: New file.
99101         * lib/unistdio/u8-u8-asnprintf.c: New file.
99102         * lib/unistdio/u8-u8-asprintf.c: New file.
99103         * lib/unistdio/u8-u8-snprintf.c: New file.
99104         * lib/unistdio/u8-u8-sprintf.c: New file.
99105         * lib/unistdio/u8-u8-vasnprintf.c: New file.
99106         * lib/unistdio/u8-u8-vasprintf.c: New file.
99107         * lib/unistdio/u8-u8-vsnprintf.c: New file.
99108         * lib/unistdio/u8-u8-vsprintf.c: New file.
99109         * lib/unistdio/u16-asnprintf.c: New file.
99110         * lib/unistdio/u16-asprintf.c: New file.
99111         * lib/unistdio/u16-printf-parse.c: New file.
99112         * lib/unistdio/u16-snprintf.c: New file.
99113         * lib/unistdio/u16-sprintf.c: New file.
99114         * lib/unistdio/u16-vasnprintf.c: New file.
99115         * lib/unistdio/u16-vasprintf.c: New file.
99116         * lib/unistdio/u16-vsnprintf.c: New file.
99117         * lib/unistdio/u16-vsprintf.c: New file.
99118         * lib/unistdio/u16-u16-asnprintf.c: New file.
99119         * lib/unistdio/u16-u16-asprintf.c: New file.
99120         * lib/unistdio/u16-u16-snprintf.c: New file.
99121         * lib/unistdio/u16-u16-sprintf.c: New file.
99122         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99123         * lib/unistdio/u16-u16-vasprintf.c: New file.
99124         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99125         * lib/unistdio/u16-u16-vsprintf.c: New file.
99126         * lib/unistdio/u32-asnprintf.c: New file.
99127         * lib/unistdio/u32-asprintf.c: New file.
99128         * lib/unistdio/u32-printf-parse.c: New file.
99129         * lib/unistdio/u32-snprintf.c: New file.
99130         * lib/unistdio/u32-sprintf.c: New file.
99131         * lib/unistdio/u32-vasnprintf.c: New file.
99132         * lib/unistdio/u32-vasprintf.c: New file.
99133         * lib/unistdio/u32-vsnprintf.c: New file.
99134         * lib/unistdio/u32-vsprintf.c: New file.
99135         * lib/unistdio/u32-u32-asnprintf.c: New file.
99136         * lib/unistdio/u32-u32-asprintf.c: New file.
99137         * lib/unistdio/u32-u32-snprintf.c: New file.
99138         * lib/unistdio/u32-u32-sprintf.c: New file.
99139         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99140         * lib/unistdio/u32-u32-vasprintf.c: New file.
99141         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99142         * lib/unistdio/u32-u32-vsprintf.c: New file.
99143         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99144         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99145         * tests/unistdio/test-ulc-printf1.h: New file.
99146         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99147         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99148         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99149         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99150         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99151         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99152         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99153         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99154         * tests/unistdio/test-u8-asnprintf1.c: New file.
99155         * tests/unistdio/test-u8-asnprintf1.h: New file.
99156         * tests/unistdio/test-u8-printf1.h: New file.
99157         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99158         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99159         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99160         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99161         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99162         * tests/unistdio/test-u8-vasprintf1.c: New file.
99163         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99164         * tests/unistdio/test-u8-vsprintf1.c: New file.
99165         * tests/unistdio/test-u16-asnprintf1.c: New file.
99166         * tests/unistdio/test-u16-asnprintf1.h: New file.
99167         * tests/unistdio/test-u16-printf1.h: New file.
99168         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99169         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99170         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99171         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99172         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99173         * tests/unistdio/test-u16-vasprintf1.c: New file.
99174         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99175         * tests/unistdio/test-u16-vsprintf1.c: New file.
99176         * tests/unistdio/test-u32-asnprintf1.c: New file.
99177         * tests/unistdio/test-u32-asnprintf1.h: New file.
99178         * tests/unistdio/test-u32-printf1.h: New file.
99179         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99180         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99181         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99182         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99183         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99184         * tests/unistdio/test-u32-vasprintf1.c: New file.
99185         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99186         * tests/unistdio/test-u32-vsprintf1.c: New file.
99187         * modules/unistdio/base: New file.
99188         * modules/unistdio/u-printf-args: New file.
99189         * modules/unistdio/ulc-asnprintf: New file.
99190         * modules/unistdio/ulc-asprintf: New file.
99191         * modules/unistdio/ulc-fprintf: New file.
99192         * modules/unistdio/ulc-printf-parse: New file.
99193         * modules/unistdio/ulc-snprintf: New file.
99194         * modules/unistdio/ulc-sprintf: New file.
99195         * modules/unistdio/ulc-vasnprintf: New file.
99196         * modules/unistdio/ulc-vasprintf: New file.
99197         * modules/unistdio/ulc-vfprintf: New file.
99198         * modules/unistdio/ulc-vsnprintf: New file.
99199         * modules/unistdio/ulc-vsprintf: New file.
99200         * modules/unistdio/u8-asnprintf: New file.
99201         * modules/unistdio/u8-asprintf: New file.
99202         * modules/unistdio/u8-printf-parse: New file.
99203         * modules/unistdio/u8-snprintf: New file.
99204         * modules/unistdio/u8-sprintf: New file.
99205         * modules/unistdio/u8-vasnprintf: New file.
99206         * modules/unistdio/u8-vasprintf: New file.
99207         * modules/unistdio/u8-vsnprintf: New file.
99208         * modules/unistdio/u8-vsprintf: New file.
99209         * modules/unistdio/u8-u8-asnprintf: New file.
99210         * modules/unistdio/u8-u8-asprintf: New file.
99211         * modules/unistdio/u8-u8-snprintf: New file.
99212         * modules/unistdio/u8-u8-sprintf: New file.
99213         * modules/unistdio/u8-u8-vasnprintf: New file.
99214         * modules/unistdio/u8-u8-vasprintf: New file.
99215         * modules/unistdio/u8-u8-vsnprintf: New file.
99216         * modules/unistdio/u8-u8-vsprintf: New file.
99217         * modules/unistdio/u16-asnprintf: New file.
99218         * modules/unistdio/u16-asprintf: New file.
99219         * modules/unistdio/u16-printf-parse: New file.
99220         * modules/unistdio/u16-snprintf: New file.
99221         * modules/unistdio/u16-sprintf: New file.
99222         * modules/unistdio/u16-vasnprintf: New file.
99223         * modules/unistdio/u16-vasprintf: New file.
99224         * modules/unistdio/u16-vsnprintf: New file.
99225         * modules/unistdio/u16-vsprintf: New file.
99226         * modules/unistdio/u16-u16-asnprintf: New file.
99227         * modules/unistdio/u16-u16-asprintf: New file.
99228         * modules/unistdio/u16-u16-snprintf: New file.
99229         * modules/unistdio/u16-u16-sprintf: New file.
99230         * modules/unistdio/u16-u16-vasnprintf: New file.
99231         * modules/unistdio/u16-u16-vasprintf: New file.
99232         * modules/unistdio/u16-u16-vsnprintf: New file.
99233         * modules/unistdio/u16-u16-vsprintf: New file.
99234         * modules/unistdio/u32-asnprintf: New file.
99235         * modules/unistdio/u32-asprintf: New file.
99236         * modules/unistdio/u32-printf-parse: New file.
99237         * modules/unistdio/u32-snprintf: New file.
99238         * modules/unistdio/u32-sprintf: New file.
99239         * modules/unistdio/u32-vasnprintf: New file.
99240         * modules/unistdio/u32-vasprintf: New file.
99241         * modules/unistdio/u32-vsnprintf: New file.
99242         * modules/unistdio/u32-vsprintf: New file.
99243         * modules/unistdio/u32-u32-asnprintf: New file.
99244         * modules/unistdio/u32-u32-asprintf: New file.
99245         * modules/unistdio/u32-u32-snprintf: New file.
99246         * modules/unistdio/u32-u32-sprintf: New file.
99247         * modules/unistdio/u32-u32-vasnprintf: New file.
99248         * modules/unistdio/u32-u32-vasprintf: New file.
99249         * modules/unistdio/u32-u32-vsnprintf: New file.
99250         * modules/unistdio/u32-u32-vsprintf: New file.
99251         * modules/unistdio/ulc-asnprintf-tests: New file.
99252         * modules/unistdio/ulc-vasnprintf-tests: New file.
99253         * modules/unistdio/ulc-vasprintf-tests: New file.
99254         * modules/unistdio/ulc-vsnprintf-tests: New file.
99255         * modules/unistdio/ulc-vsprintf-tests: New file.
99256         * modules/unistdio/u8-asnprintf-tests: New file.
99257         * modules/unistdio/u8-vasnprintf-tests: New file.
99258         * modules/unistdio/u8-vasprintf-tests: New file.
99259         * modules/unistdio/u8-vsnprintf-tests: New file.
99260         * modules/unistdio/u8-vsprintf-tests: New file.
99261         * modules/unistdio/u16-asnprintf-tests: New file.
99262         * modules/unistdio/u16-vasnprintf-tests: New file.
99263         * modules/unistdio/u16-vasprintf-tests: New file.
99264         * modules/unistdio/u16-vsnprintf-tests: New file.
99265         * modules/unistdio/u16-vsprintf-tests: New file.
99266         * modules/unistdio/u32-asnprintf-tests: New file.
99267         * modules/unistdio/u32-vasnprintf-tests: New file.
99268         * modules/unistdio/u32-vasprintf-tests: New file.
99269         * modules/unistdio/u32-vsnprintf-tests: New file.
99270         * modules/unistdio/u32-vsprintf-tests: New file.
99271         * MODULES.html.sh (Unicode string functions): Add the new modules.
99273 2007-07-01  Bruno Haible  <bruno@clisp.org>
99275         * lib/sprintf.c (sprintf): Limit the available length estimation,
99276         to avoid address wraparound.
99277         * lib/vsprintf.c (vsprintf): Likewise.
99278         * modules/sprintf-posix (Dependencies): Add stdint.
99279         * modules/vsprintf-posix (Dependencies): Likewise.
99281 2007-07-01  Bruno Haible  <bruno@clisp.org>
99283         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99284         Windows PATH as well. Conservative double-quoting. Comments.
99286 2007-07-01  Bruno Haible  <bruno@clisp.org>
99287             Eric Blake  <ebb9@byu.net>
99288             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99290         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99291         empty components in $PATH, denoting '.'.
99293 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99295         * gnulib-tool: Fix indentation.
99296         (func_create_megatestdir): Likewise.
99297         Report by Bruno Haible.
99299 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99301         Sync from Automake.
99302         * build-aux/gnupload: Fix shell portability issues with for loops.
99303         Report by Karl Berry.
99305 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99307         * build-aux/maint.mk (POURL): Use translationproject.org.
99309 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99310             Bruno Haible  <bruno@clisp.org>
99312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99313         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99314         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99315         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99316         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99318 2007-06-27  Bruno Haible  <bruno@clisp.org>
99320         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99321         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99323 2007-06-26  Karl Berry  <karl@gnu.org>
99325         * MODULES.html.sh: remove xreadlink-with-size.
99327 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99329         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99330         method that I hope also handles the double-include problem noted
99331         by Bruno Haible in
99332         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99334 2007-06-23  Bruno Haible  <bruno@clisp.org>
99336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99337         Don't let the 'mostlyclean' target fail if the last subdirectory could
99338         not be removed.
99339         Reported by Karl Berry.
99341 2007-06-23  Bruno Haible  <bruno@clisp.org>
99343         * gnulib-tool (echo): Add a speedier workaround for ksh.
99344         * tests/test-echo.sh: Likewise.
99346 2007-06-23  Bruno Haible  <bruno@clisp.org>
99348         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99349         * tests/test-echo.sh: Likewise.
99351 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99353         * gnulib-tool (IFS): Initialize early, so we don't set it to
99354         empty later.
99355         (self_abspathname): Rewrite algorithm to set it, reindent.
99356         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99357         (func_create_megatestdir): Merge some sed scripts.
99359 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99361         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99362         exposed by Sun Studio 11 cc on Solaris 8.
99364 2007-06-22  Bruno Haible  <bruno@clisp.org>
99366         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99367         backslashes.
99368         * tests/test-echo.sh: New file.
99370 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99372         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99373         simplify `sed_replace_build_aux' scripts, they are portable but
99374         echoing them with `echo' is not.
99375         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99377 2007-06-21  Karl Berry  <karl@gnu.org>
99379         * config/srclist.txt: guess we can't handle the licenses via
99380         srclist at the moment.
99382 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99384         * MODULES.html.sh: Add include_next.
99385         * modules/include_next: New file.
99387 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99389         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99390         INCLUDE_NEXT.
99391         (gl_CHECK_NEXT_HEADERS): New macro.
99392         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99393         the obsolescent gl_ABSOLUTE_HEADER.
99394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99395         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99396         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99397         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99398         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99399         * m4/math_h.m4 (gl_MATH_H): Likewise.
99400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99401         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99402         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99403         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99404         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99405         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99407         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99410         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99411         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99412         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99413         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99414         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99415         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99416         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99417         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99418         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99419         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99420         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99421         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99422         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99423         * lib/float_.h: Likewise.
99424         * lib/inttypes_.h: Likewise.
99425         * lib/math_.h: Likewise.
99426         * lib/search_.h: Likewise.
99427         * lib/signal_.h: Likewise.
99428         * lib/stdint_.h: Likewise.
99429         * lib/stdio_.h: Likewise.
99430         * lib/stdlib_.h: Likewise.
99431         * lib/string_.h: Likewise.
99432         * lib/sys_stat_.h: Likewise.
99433         * lib/sys_time_.h: Likewise.
99434         * lib/time_.h: Likewise.
99435         * lib/unistd_.h: Likewise.
99436         * lib/wchar_.h: Likewise.
99437         * lib/wctype_.h: Likewise.
99438         * lib/dirent_.h: Likewise.
99439         * lib/iconv_.h: Likewise.
99440         * lib/locale_.h: Likewise.
99441         * lib/netinet_in_.h: Likewise.
99442         * lib/sys_select_.h: Likewise.
99443         * lib/sys_socket_.h: Likewise.
99444         * lib/sysexits_.h: Likewise.
99445         * modules/fcntl (Depends-on): Depend on include_next, not
99446         absolute_header.
99447         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99448         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99449         * modules/fchdir: Likewise.
99450         * modules/float: Likewise.
99451         * modules/iconv_open: Likewise.
99452         * modules/inttypes: Likewise.
99453         * modules/locale: Likewise.
99454         * modules/math: Likewise.
99455         * modules/netinet_in: Likewise.
99456         * modules/search: Likewise.
99457         * modules/signal: Likewise.
99458         * modules/stdint: Likewise.
99459         * modules/stdio: Likewise.
99460         * modules/stdlib: Likewise.
99461         * modules/string: Likewise.
99462         * modules/sys_select: Likewise.
99463         * modules/sys_socket: Likewise.
99464         * modules/sys_stat: Likewise.
99465         * modules/sys_time: Likewise.
99466         * modules/sysexits: Likewise.
99467         * modules/time: Likewise.
99468         * modules/unistd: Likewise.
99469         * modules/wchar: Likewise.
99470         * modules/wctype: Likewise.
99471         * modules/sys_stat: Change maintainer to "all".
99472         * modules/unistd: Likewise.
99474 2007-06-20  Karl Berry  <karl@gnu.org>
99476         * config/srclist.txt: track www changes in license files.
99478 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99480         * build-aux/bootstrap: Remove stray dot.
99481         Make sure build_aux settings are honored when linking
99482         gnulib_extra_files.
99484 2007-06-19  Eric Blake  <ebb9@byu.net>
99486         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99487         Allow compilation on cygwin.
99489 2007-06-19  Jim Meyering  <jim@meyering.net>
99491         xreadlink-with-size: Remove module.  No longer used.
99492         Ex-callers now use xreadlink or mreadlink-with-size.
99493         * modules/xreadlink-with-size: Remove module.
99494         * lib/xreadlink-with-size.c: Remove file.
99495         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99496         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99497         just before the function definition *is* accurate.
99499         Eliminate one way canonicalize_filename_mode could exit.
99500         * lib/canonicalize.c (canonicalize_filename_mode):
99501         Use mreadlink_with_size, not xreadlink_with_size.
99503 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99505         Detect porting problems to FreeBSD/arm, which has time_t wider than
99506         long int.  Original problem reported for GNU diff by Xin Li in
99507         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99508         * modules/getdate (Depends-on): Add intprops, verify.
99509         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99510         is an integer type no wider than long int.
99512 2007-06-18  Jim Meyering  <jim@meyering.net>
99514         New module: mreadlink-with-size.
99515         * MODULES.html.sh: Add mreadlink-with-size.
99516         * modules/mreadlink-with-size: New module
99517         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99518         not xreadlink-with-size.
99519         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99521 2007-06-16  Bruno Haible  <bruno@clisp.org>
99523         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99524         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99525         Reported by Gary V. Vaughan <gary@gnu.org>.
99527 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99529         Revamp lchown so that it lives in unistd.h where it belongs.
99530         * lib/lchown.h: Remove.
99531         * lib/dirchownmod.c: Don't include lib/lchown.h.
99532         * lib/fchownat.c: Likewise.
99533         * lib/openat.c: Likewise.
99534         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99535         does not follow symlinks.
99536         (EOPNOTSUPP): Define if not defined.
99537         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99538         is defined to 0.
99539         (lchown): New decl.
99540         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99541         Do not check for lchown decl.
99542         Set REPLACE_LCHOWN.
99543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99544         REPLACE_LCHOWN.
99545         * modules/chown: Make it clear it follows symlinks.
99546         * modules/lchown: Make it clear it doesn't follow symlinks.
99547         (Files): Remove lib/lchown.h
99548         (Depends-on): Add unistd.
99549         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99550         (Include): Include <unistd.h>, not "lchown.h".
99551         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99552         REPLACE_LCHOWN.
99554 2007-06-15  Jim Meyering  <jim@meyering.net>
99556         Change license (GPL to LGPL) of fsusage and dependents.
99557         * modules/fsusage (License): Change to LGPL.
99558         * modules/full-read (License): Likewise.
99559         * modules/full-write (License): Likewise.
99560         * modules/safe-read (License): Likewise.
99561         * modules/safe-write (License): Likewise.
99563 2007-06-14  Ben Pfaff  <blp@gnu.org>
99565         Missing part of allocsa -> malloca transition.
99566         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99567         gl_MALLOCA.
99569 2007-06-12  Bruno Haible  <bruno@clisp.org>
99571         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99572         to ia64, x86_64, i386.
99573         Reported by Eric Blake.
99575 2007-06-12  Bruno Haible  <bruno@clisp.org>
99577         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99578         cross-compiling to x86_64.
99580 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99582         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99583         glitch reported by Ralf Wildenhues in
99584         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99586         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99587         Vin Shelton.
99589 2007-06-11  Bruno Haible  <bruno@clisp.org>
99591         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99592         replacement string.
99593         Reported by Eric Blake.
99595 2007-06-10  Bruno Haible  <bruno@clisp.org>
99597         Prepare vasnprintf code for use with Unicode strings.
99598         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99599         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99600         TYPE_U32_STRING.
99601         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99602         a_u32_string variants.
99603         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99604         * lib/printf-args.c: Don't include config.h and the specification
99605         header if PRINTF_FETCHARGS is already defined.
99606         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99607         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99608         TYPE_U16_STRING, TYPE_U32_STRING.
99609         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99610         u16_directive, u16_directives, u32_directive, u32_directives): New
99611         types.
99612         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99613         New declarations.
99614         * lib/printf-parse.c: Don't include config.h and the specification
99615         header if PRINTF_PARSE is already defined. Eliminate the set of
99616         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99617         them now. Include c-ctype.h.
99618         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99619         directive and CHAR_T_ONLY_ASCII.
99620         * lib/vasnprintf.c: Don't include config.h and the specification header
99621         if VASNPRINTF is already defined.
99622         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99623         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99624         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99625         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99626         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99627         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99628         code accordingly.
99629         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99630         pad_ourselves also in this case, with the 'c' and 's' directives, and
99631         with a different notion of "width".
99632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99634 2007-06-10  Bruno Haible  <bruno@clisp.org>
99636         * modules/unistr/u32-mbsnlen: New file.
99637         * lib/unistr/u32-mbsnlen.c: New file.
99639         * modules/unistr/u16-mbsnlen: New file.
99640         * lib/unistr/u16-mbsnlen.c: New file.
99642         * modules/unistr/u8-mbsnlen: New file.
99643         * lib/unistr/u8-mbsnlen.c: New file.
99645         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99646         declarations.
99648 2007-06-10  Bruno Haible  <bruno@clisp.org>
99650         * lib/string_.h (mbsnlen): New declaration.
99651         * lib/mbsnlen.c: New file.
99652         * m4/mbsnlen.m4: New file.
99653         * modules/mbsnlen: New file.
99654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99655         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99656         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99658 2007-06-10  Bruno Haible  <bruno@clisp.org>
99660         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99662 2007-06-10  Bruno Haible  <bruno@clisp.org>
99664         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99665         * lib/mbuiter.h: Likewise.
99667 2007-06-10  Bruno Haible  <bruno@clisp.org>
99669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99670         declaration.
99672 2007-06-10  Karl Berry  <karl@gnu.org>
99674         * config/srclist.txt: remove gettext entries, Bruno prefers
99675         to update individually.
99677 2007-06-10  Bruno Haible  <bruno@clisp.org>
99679         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99680         'maxlen'. Ensure only length + width bytes are allocated, not
99681         length + 1 + width.
99683 2007-06-09  Bruno Haible  <bruno@clisp.org>
99685         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99686         (CHAR_T): Remove macro.
99687         (VASNPRINTF): Update.
99689 2007-06-09  Bruno Haible  <bruno@clisp.org>
99691         * MODULES.html.sh (Unicode string functions): Add the new modules.
99693         * modules/uniconv/u32-conv-to-enc: New file.
99694         * lib/uniconv/u32-conv-to-enc.c: New file.
99695         * modules/uniconv/u32-conv-to-enc-tests: New file.
99696         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99698         * modules/uniconv/u16-conv-to-enc: New file.
99699         * lib/uniconv/u16-conv-to-enc.c: New file.
99700         * lib/uniconv/u-conv-to-enc.h: New file.
99701         * modules/uniconv/u16-conv-to-enc-tests: New file.
99702         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99704         * modules/uniconv/u8-conv-to-enc: New file.
99705         * lib/uniconv/u8-conv-to-enc.c: New file.
99706         * modules/uniconv/u8-conv-to-enc-tests: New file.
99707         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99709         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99710         u32_conv_to_encoding): New declarations.
99712 2007-06-09  Bruno Haible  <bruno@clisp.org>
99714         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99716 2007-06-09  Bruno Haible  <bruno@clisp.org>
99718         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99719         * modules/malloca: Renamed from modules/allocsa, updated.
99720         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99721         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99722         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99723         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99724         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99725         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99726         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99727         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99728         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99729         * modules/c-strcasestr (Depends-on): Update.
99730         * lib/c-strcasestr.c: Update.
99731         * modules/c-strstr (Depends-on): Update.
99732         * lib/c-strstr.c: Update.
99733         * modules/canonicalize-lgpl (Depends-on): Update.
99734         * lib/canonicalize-lgpl.c: Update.
99735         * modules/clean-temp (Depends-on): Update.
99736         * lib/clean-temp.c: Update.
99737         * modules/csharpcomp (Depends-on): Update.
99738         * lib/csharpcomp.c: Update.
99739         * modules/csharpexec (Depends-on): Update.
99740         * lib/csharpexec.c: Update.
99741         * modules/javacomp (Depends-on): Update.
99742         * lib/javacomp.c: Update.
99743         * modules/javaexec (Depends-on): Update.
99744         * lib/javaexec.c: Update.
99745         * modules/mbscasestr (Depends-on): Update.
99746         * lib/mbscasestr.c: Update.
99747         * modules/mbsstr (Depends-on): Update.
99748         * lib/mbsstr.c: Update.
99749         * modules/setenv (Depends-on): Update.
99750         * lib/setenv.c: Update.
99751         * modules/strcasestr (Depends-on): Update.
99752         * lib/strcasestr.c: Update.
99753         * modules/striconveha (Depends-on): Update.
99754         * lib/striconveha.c: Update.
99755         * modules/relocatable-prog-wrapper (Files): Update.
99756         * lib/relocwrapper.c: Update.
99757         * build-aux/install-reloc: Update.
99758         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99760 2007-06-08  Bruno Haible  <bruno@clisp.org>
99762         Port to uClibc.
99763         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99764         * lib/fpurge.c (fpurge): Likewise.
99765         * lib/freading.c (freading): Likewise.
99766         * lib/fseeko.c (rpl_fseeko): Likewise.
99767         * lib/fseterr.c (fseterr): Likewise.
99768         * lib/fwriting.c (fwriting): Likewise.
99769         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99771 2007-06-08  Bruno Haible  <bruno@clisp.org>
99773         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99774         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99775         * modules/gettext (Files): Add m4/intlmacosx.m4.
99777 2007-06-07  Bruno Haible  <bruno@clisp.org>
99779         * modules/localename-tests: New file.
99780         * tests/test-localename.c: New file.
99782         New module 'localename'.
99783         * lib/localename.h: New file.
99784         * lib/localename.c: New file, from GNU gettext.
99785         * m4/localename.m4: New file.
99786         * modules/localename: New file.
99788 2007-06-07  Bruno Haible  <bruno@clisp.org>
99790         Work around the lack of <wchar.h> on some builds of uClibc.
99791         * doc/headers/wchar.texi: Update.
99792         * lib/wchar_.h: Include <wchar.h> only if it exists.
99793         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99794         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99795         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99796         doesn't exist.
99797         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99798         * modules/mbfile (Depends-on): Add wchar.
99799         * modules/mbiter (Depends-on): Likewise.
99800         * modules/mbuiter (Depends-on): Likewise.
99801         Reported by Simon Josefsson.
99803 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99805         Work around problem reported by Steven M. Schweda in
99806         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99807         Tru64 5.1B with the Compaq compiler environment installed declares
99808         an 'isblank' function but does not define it in the C library.
99809         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99810         * lib/regex_internal.h (isblank): Likewise.
99811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99812         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99814 2007-06-05  Bruno Haible  <bruno@clisp.org>
99816         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99817         ia64.
99818         * modules/printf-safe: New file.
99819         * modules/fprintf-posix (Depends-on): Add printf-safe.
99820         * modules/printf-posix (Depends-on): Likewise.
99821         * modules/snprintf-posix (Depends-on): Likewise.
99822         * modules/sprintf-posix (Depends-on): Likewise.
99823         * modules/vasnprintf-posix (Depends-on): Likewise.
99824         * modules/vasprintf-posix (Depends-on): Likewise.
99825         * modules/vfprintf-posix (Depends-on): Likewise.
99826         * modules/vprintf-posix (Depends-on): Likewise.
99827         * modules/vsnprintf-posix (Depends-on): Likewise.
99828         * modules/vsprintf-posix (Depends-on): Likewise.
99829         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99830         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99831         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99832         "no" on i386, x86_64, ia64.
99833         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99834         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99835         on i386, x86_64, ia64.
99836         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99837         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99838         on i386, x86_64, ia64.
99839         * tests/test-vasnprintf-posix.c: Include float.h.
99840         (LDBL80_WORDS): New macro.
99841         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99842         on i386, x86_64, ia64.
99843         * tests/test-vasprintf-posix.c: Include float.h.
99844         (LDBL80_WORDS): New macro.
99845         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99846         on i386, x86_64, ia64.
99847         * tests/test-snprintf-posix.c: Include float.h.
99848         * tests/test-sprintf-posix.c: Likewise.
99849         * tests/test-vsnprintf-posix.c: Likewise.
99850         * tests/test-vsprintf-posix.c: Likewise.
99852 2007-06-05  Bruno Haible  <bruno@clisp.org>
99854         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99855         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99856         non-IEEE numbers on i386, x86_64, ia64.
99857         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99858         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99859         * tests/test-isnanl.h: Include float.h.
99860         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99862 2007-06-05  Bruno Haible  <bruno@clisp.org>
99864         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99865         also the %a / %A. Handle the %a / %A code before this extra handling.
99867 2007-06-05  Bruno Haible  <bruno@clisp.org>
99869         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99870         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99872 2007-06-05  Bruno Haible  <bruno@clisp.org>
99874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99875         typo in variable name.
99877 2007-06-05  Eric Blake  <ebb9@byu.net>
99879         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99880         Reported by Simon Josefsson.
99882 2007-06-04  Bruno Haible  <bruno@clisp.org>
99884         Avoid test failures on some PowerPC platforms.
99885         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99886         Define differently for PowerPC.
99887         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99888         Reported by Gary V. Vaughan <gary@gnu.org>.
99890 2007-06-02  Bruno Haible  <bruno@clisp.org>
99892         Fix test-stdint failure on FreeBSD/ia64.
99893         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99894         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99895         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99896         * doc/headers/stdint.texi: Update.
99898 2007-06-01  Bruno Haible  <bruno@clisp.org>
99900         * tests/test-binary-io.c (main): Pass a third argument to open().
99901         Reported by Gary V. Vaughan <gary@gnu.org>.
99903 2007-06-01  Bruno Haible  <bruno@clisp.org>
99905         * doc/functions/frexpl.texi: Update for mingw.
99907 2007-06-01  Bruno Haible  <bruno@clisp.org>
99909         * tests/test-lseek.c (main): Disable test of errno for invalid third
99910         argument.
99911         * doc/functions/lseek.texi: Update.
99912         Reported by Gary V. Vaughan <gary@gnu.org>.
99914 2007-05-28  Bruno Haible  <bruno@clisp.org>
99916         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99918 2007-05-31  Eric Blake  <ebb9@byu.net>
99920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99921         cross compiling.
99923 2007-05-30  Eric Blake  <ebb9@byu.net>
99924         and Bruno Haible  <bruno@clisp.org>
99926         Work around mingw test failures exposed by m4-1.4.9b.
99927         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99928         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99929         moment.
99931 2007-05-30  Bruno Haible  <bruno@clisp.org>
99933         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99934         assuming that they are closed. Needed on HP-UX 11.
99936 2007-05-29  Bruno Haible  <bruno@clisp.org>
99938         Fix a problem with #include_next.
99939         * lib/dirent_.h: Split the double-inclusion guard.
99940         * lib/fcntl_.h: Likewise.
99941         * lib/float_.h: Likewise.
99942         * lib/iconv_.h: Likewise.
99943         * lib/inttypes_.h: Likewise.
99944         * lib/locale_.h: Likewise.
99945         * lib/math_.h: Likewise.
99946         * lib/netinet_in_.h: Likewise.
99947         * lib/search_.h: Likewise.
99948         * lib/signal_.h: Likewise.
99949         * lib/stdint_.h: Likewise.
99950         * lib/stdio_.h: Likewise.
99951         * lib/stdlib_.h: Likewise.
99952         * lib/string_.h: Likewise.
99953         * lib/sys_select_.h: Likewise.
99954         * lib/sys_socket_.h: Likewise.
99955         * lib/sys_stat_.h: Likewise.
99956         * lib/sys_time_.h: Likewise.
99957         * lib/sysexits_.h: Likewise.
99958         * lib/time_.h: Likewise.
99959         * lib/unistd_.h: Likewise.
99960         * lib/wchar_.h: Likewise.
99961         * lib/wctype_.h: Likewise.
99963 2007-05-29  Bruno Haible  <bruno@clisp.org>
99965         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99966         for the moment.
99968 2007-05-29  Bruno Haible  <bruno@clisp.org>
99970         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
99971         invocation.
99972         Reported by Eric Blake.
99974 2007-05-29  Bruno Haible  <bruno@clisp.org>
99976         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
99977         compiling case.
99979 2007-05-29  Eric Blake  <ebb9@byu.net>
99980             Bruno Haible  <bruno@clisp.org>
99982         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
99983         cross compiles.
99985 2007-05-28  Eric Blake  <ebb9@byu.net>
99987         * modules/closein-tests (test_closein_LDADD): Support test on
99988         cygwin with libtool.
99990 2007-05-28  Bruno Haible  <bruno@clisp.org>
99992         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
99993         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99994         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99995         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99996         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99997         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99998         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99999         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100000         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100002 2007-05-28  Eric Blake  <ebb9@byu.net>
100004         Unconditionally include <config.h> in unit tests.
100005         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100006         * tests/test-allocsa.c, tests/test-arcfour.c,
100007         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100008         tests/test-array_list.c, tests/test-array_oset.c,
100009         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100010         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100011         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100012         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100013         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100014         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100015         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100016         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100017         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100018         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100019         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100020         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100021         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100022         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100023         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100024         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100025         test-md5.c, test-memmem.c, test-printf-posix.c,
100026         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100027         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100028         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100029         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100030         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100031         test-vasnprintf-posix2.c, test-vasnprintf.c,
100032         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100033         test-vfprintf-posix.c, test-vprintf-posix.c,
100034         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100035         test-xvasprintf.c: Likewise.
100037 2007-05-28  Bruno Haible  <bruno@clisp.org>
100039         * gnulib-tool (func_import): Remember the --with-tests command-line
100040         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100041         Reported by Eric Blake.
100043 2007-05-28  Bruno Haible  <bruno@clisp.org>
100045         * modules/ftell-tests: New file.
100046         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100047         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100049         * lib/ftell.c: New file.
100050         * modules/ftell: New file.
100051         * m4/ftell.m4: New file.
100052         * doc/functions/ftell.texi: Update.
100053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100054         REPLACE_FTELL.
100055         * lib/stdio_.h (rpl_ftell): New declaration.
100056         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100057         REPLACE_FTELL.
100059 2007-05-28  Eric Blake  <ebb9@byu.net>
100061         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100063 2007-05-28  Bruno Haible  <bruno@clisp.org>
100065         * modules/fseek-tests: New file.
100066         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100067         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100069         * lib/fseek.c: New file.
100070         * modules/fseek: New file.
100071         * m4/fseek.m4: New file.
100072         * doc/functions/fseek.texi: Update.
100073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
100074         REPLACE_FSEEK.
100075         * lib/stdio_.h (rpl_fseek): New declaration.
100076         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
100077         REPLACE_FSEEK.
100079 2007-05-28  Bruno Haible  <bruno@clisp.org>
100081         * lib/stdio_.h (fflush): More comments.
100083 2007-05-28  Bruno Haible  <bruno@clisp.org>
100085         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
100086         runtime test.
100088 2007-05-28  Eric Blake  <ebb9@byu.net>
100090         Improve lseek module.
100091         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
100092         * lib/unistd_.h (lseek): Scale back link warning message.
100093         * tests/test-lseek.c: Beef up test.
100094         * tests/test-lseek.sh: Exercise more facets of lseek.
100095         Reported by Bruno Haible.
100097 2007-05-28  Bruno Haible  <bruno@clisp.org>
100099         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
100100         to define.
100102 2007-05-27  Bruno Haible  <bruno@clisp.org>
100104         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
100106 2007-05-27  Bruno Haible  <bruno@clisp.org>
100108         * modules/openmp: New file.
100109         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100110         Noah Misch.
100112 2007-05-26  Bruno Haible  <bruno@clisp.org>
100114         * modules/chdir-long (Depends-on): Add fchdir.
100115         * modules/chdir-safer (Depends-on): Likewise.
100116         * modules/fts (Depends-on): Likewise.
100117         * modules/fts-lgpl (Depends-on): Likewise.
100118         * modules/openat (Depends-on): Likewise.
100119         * modules/savewd (Depends-on): Likewise.
100121 2007-05-24  Eric Blake  <ebb9@byu.net>
100123         Fix lseek on mingw.
100124         * modules/lseek: New module.
100125         * m4/lseek.m4: New file.
100126         * lib/lseek.c: New file.
100127         * modules/lseek-tests: New file.
100128         * tests/test-lseek.c: New file.
100129         * tests/test-lseek.sh: New file.
100130         * MODULES.html.sh: Document lseek module.
100131         * modules/fflush (Depends-on): Add lseek, fseeko.
100132         * modules/fseeko (Depends-on): Likewise.
100133         * modules/ftello (Depends-on): Likewise.
100134         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100135         broken.
100136         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100137         broken.
100138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100139         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100140         * lib/ftello.c (rpl_ftello): Likewise.
100141         * tests/test-fseeko.c (main): Test this.
100142         * tests/test-fseeko.sh: Likewise.
100143         * tests/test-ftello.c (main): Likewise.
100144         * tests/test-ftello.sh: Likewise.
100145         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100146         implies replacing fseek.
100147         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100148         HAVE_FTELLO.
100149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100150         * modules/unistd (Makefile.am): Likewise.
100151         * lib/unistd_.h (lseek): Declare a replacement.
100152         * doc/functions/lseek.texi (lseek): Document this fix.
100153         * doc/functions/fseek.texi (fseek): Likewise.
100154         * doc/functions/ftell.texi (ftell): Likewise.
100156 2007-05-24  Bruno Haible  <bruno@clisp.org>
100158         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100159         in the printed representation of a NaN.
100160         * tests/test-vasprintf-posix.c (test_function): Likewise.
100161         * tests/test-snprintf-posix.h (test_function): Likewise.
100162         * tests/test-sprintf-posix.h (test_function): Likewise.
100163         Reported by Eric Blake.
100165 2007-05-23  Eric Blake  <ebb9@byu.net>
100167         Fix fseeko/ftello on cygwin 1.5.24.
100168         * doc/functions/fseeko.texi (fseeko): Document the fix.
100169         * doc/functions/ftello.texi (ftello): Document the fix.
100170         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100171         * doc/functions/stdout.text (stdout): New file.
100172         * doc/functions/stderr.text (stderr): New file.
100173         * doc/gnulib.texi (Function Substitutes): Use new files.
100174         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100175         prior to 1.7.0.
100176         * tests/test-ftello.c (main): Likewise for ftello.
100177         * tests/test-fseeko.sh: New file.
100178         * tests/test-ftello.sh: New file.
100179         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100180         with seekable stdin.
100181         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100183         (gl_REPLACE_FSEEKO): New macro.
100184         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100185         * modules/fseeko (Files): Distribute fseeko.c.
100186         * modules/ftello (Files): Distribute ftello.c.
100187         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100188         mode.
100189         * lib/ftello.c (rpl_ftello): New file.
100190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100191         fseeko, ftello.
100192         (gl_STDIN_LARGE_OFFSET): New macro.
100193         * modules/stdio (Makefile.am): Perform the replacement.
100194         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100196 2007-05-23  Bruno Haible  <bruno@clisp.org>
100198         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100199         GNULIB_POSIXCHECK is defined.
100201 2007-05-21  Bruno Haible  <bruno@clisp.org>
100203         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100204         Check also the output for NaN arguments. When cross-compiling, guess
100205         no on IRIX.
100206         * lib/vasnprintf.c: Update comments.
100207         * tests/test-vasnprintf-posix.c (strisnan): New function.
100208         (test_function): Use it.
100209         * tests/test-vasprintf-posix.c (strisnan): New function.
100210         (test_function): Use it.
100211         * tests/test-snprintf-posix.h (strisnan): New function.
100212         (test_function): Use it.
100213         * tests/test-sprintf-posix.h (strisnan): New function.
100214         (test_function): Use it.
100215         Reported by Eric Blake.
100217 2007-05-20  Bruno Haible  <bruno@clisp.org>
100219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100220         numbers that fails on BeOS.
100221         * doc/functions/frexpl.texi: Update.
100223 2007-05-20  Jim Meyering  <jim@meyering.net>
100225         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100226         forced upon us by glibc-2.6.
100228 2007-05-20  Bruno Haible  <bruno@clisp.org>
100230         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100231         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100232         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100233         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100234         NEED_PRINTF_INFINITE.
100235         (is_infinitel): New function.
100236         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100238         gl_PREREQ_VASNPRINTF_INFINITE.
100239         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100241         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100242         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100243         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100244         gl_PREREQ_VASNPRINTF_INFINITE.
100245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100246         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100252         * doc/functions/fprintf.texi: Update.
100253         * doc/functions/printf.texi: Update.
100254         * doc/functions/snprintf.texi: Update.
100255         * doc/functions/sprintf.texi: Update.
100256         * doc/functions/vfprintf.texi: Update.
100257         * doc/functions/vprintf.texi: Update.
100258         * doc/functions/vsnprintf.texi: Update.
100259         * doc/functions/vsprintf.texi: Update.
100261 2007-05-20  Bruno Haible  <bruno@clisp.org>
100263         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100264         was not found in libc.
100265         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100267 2007-05-20  Bruno Haible  <bruno@clisp.org>
100269         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100270         printed as "-nan" instead of "nan".
100271         * tests/test-vasprintf-posix.c (test_function): Likewise.
100272         * tests/test-snprintf-posix.h (test_function): Likewise.
100273         * tests/test-sprintf-posix.h (test_function): Likewise.
100274         Needed for HP-UX 11.
100276 2007-05-20  Jim Meyering  <jim@meyering.net>
100278         Fix buggy test for the fchownat-deref bug.
100279         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100280         symlink required for the run-test.  Without it, this test would
100281         always declare that fchownat doesn't work, and client code would
100282         unnecessarily use the replacement function with fixed libc.
100283         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100284         Reported by Greg Schafer.
100286 2007-05-19  Bruno Haible  <bruno@clisp.org>
100288         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100289         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100290         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100291         Needed for IRIX 6.5 and Solaris 2.5.1.
100293 2007-05-19  Bruno Haible  <bruno@clisp.org>
100295         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100296         (test_function): Skip tests involving -0.0 on platforms where
100297         -0.0 = 0.0.
100298         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100299         (test_function): Skip tests involving -0.0 on platforms where
100300         -0.0 = 0.0.
100301         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100302         (test_function): Skip tests involving -0.0 on platforms where
100303         -0.0 = 0.0.
100304         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100305         (test_function): Skip tests involving -0.0 on platforms where
100306         -0.0 = 0.0.
100307         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100308         tests.
100309         * tests/test-printf-posix.h (test_function): Likewise.
100310         * tests/test-printf-posix.output: Remove all -0.0 related results.
100311         Needed for IRIX 6.5.
100313 2007-05-19  Bruno Haible  <bruno@clisp.org>
100315         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100316         printed as "nan0x7fffffff" instead of "nan".
100317         * tests/test-vasprintf-posix.c (test_function): Likewise.
100318         * tests/test-snprintf-posix.h (test_function): Likewise.
100319         * tests/test-sprintf-posix.h (test_function): Likewise.
100320         * tests/test-fprintf-posix.h (NaN): Remove macro.
100321         (test_function): Remove all NaN related tests.
100322         * tests/test-printf-posix.h (NaN): Remove macro.
100323         (test_function): Remove all NaN related tests.
100324         * tests/test-printf-posix.output: Remove all NaN related results.
100325         Needed for IRIX 6.5.
100327 2007-05-19  Bruno Haible  <bruno@clisp.org>
100329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100332 2007-05-19  Bruno Haible  <bruno@clisp.org>
100334         * lib/float_.h: New file.
100335         * m4/float_h.m4: New file.
100336         * modules/float: New file.
100337         * modules/isnanl (Dependencies): Add float.
100338         * modules/isnanl-nolibm (Dependencies): Likewise.
100339         * modules/mathl (Dependencies): Likewise.
100340         * modules/printf-frexpl (Dependencies): Likewise.
100341         * modules/signbit (Dependencies): Likewise.
100342         * modules/vasnprintf (Dependencies): Likewise.
100343         * doc/headers/float.texi: Update.
100345 2007-05-19  Jim Meyering  <jim@meyering.net>
100347         * lib/utimens.c (gl_futimens): Rename from futimens,
100348         now that glibc-2.6 declares futimens.
100349         * lib/utimens.h: Likewise.
100351 2007-05-19  Bruno Haible  <bruno@clisp.org>
100353         Avoid test failures on mingw.
100354         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100355         * tests/test-printf-posix.sh: Likewise.
100356         * tests/test-vfprintf-posix.sh: Likewise.
100357         * tests/test-vprintf-posix.sh: Likewise.
100359 2007-05-19  Bruno Haible  <bruno@clisp.org>
100361         Fix *printf result for NaN, Inf, -0.0 on mingw.
100362         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100363         * lib/vasnprintf.c: Include math.h and isnan.h.
100364         (is_infinite_or_zero): New function.
100365         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100366         values in the %f, %F, %e, %E, %g, %G directives.
100367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100368         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100369         gl_PRINTF_INFINITE and test its result. Invoke
100370         gl_PREREQ_VASNPRINTF_INFINITE.
100371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100378         * doc/functions/fprintf.texi: Update.
100379         * doc/functions/printf.texi: Update.
100380         * doc/functions/snprintf.texi: Update.
100381         * doc/functions/sprintf.texi: Update.
100382         * doc/functions/vfprintf.texi: Update.
100383         * doc/functions/vprintf.texi: Update.
100384         * doc/functions/vsnprintf.texi: Update.
100385         * doc/functions/vsprintf.texi: Update.
100387 2007-05-19  Bruno Haible  <bruno@clisp.org>
100389         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100390         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100391         Instead of multiplying with 10^k, set extra_zeroes to k.
100392         (scale10_round_long_double): Remove function.
100394 2007-05-18  Bruno Haible  <bruno@clisp.org>
100396         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100397         introduced on 2007-05-06.
100399 2007-05-18  Bruno Haible  <bruno@clisp.org>
100401         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100402         %g directives.
100403         * tests/test-vasprintf-posix.c (test_function): Likewise.
100404         * tests/test-snprintf-posix.h (test_function): Likewise.
100405         * tests/test-sprintf-posix.h (test_function): Likewise.
100407 2007-05-18  Bruno Haible  <bruno@clisp.org>
100409         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100410         (strmatch): New function.
100411         (test_function): Test the %f directive on numbers of various exponents.
100412         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100413         (strmatch): New function.
100414         (test_function): Test the %f directive on numbers of various exponents.
100415         * tests/test-snprintf-posix.h (strmatch): New function.
100416         (test_function): Test the %f directive on numbers of various exponents.
100417         * tests/test-sprintf-posix.h (strmatch): New function.
100418         (test_function): Test the %f directive on numbers of various exponents.
100419         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100420         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100421         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100422         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100424 2007-05-18  Bruno Haible  <bruno@clisp.org>
100426         Add support for 'long double' number output.
100427         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100428         * lib/vasnprintf.c: Include math.h and float+.h.
100429         (mp_limb_t): New type.
100430         (GMP_LIMB_BITS): New macro.
100431         (mp_twolimb_t): New type.
100432         (GMP_TWOLIMB_BITS): New macro.
100433         (mpn_t): New type.
100434         (multiply, divide, convert_to_decimal, decode_long_double,
100435         scale10_round_long_double, scale10_round_decimal_long_double,
100436         floorlog10l): New functions.
100437         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100438         for the %f, %F, %e, %E, %g, %G directives.
100439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100441         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100442         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100450         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100451         * modules/snprintf-posix (Depends-on): Likewise.
100452         * modules/sprintf-posix (Depends-on): Likewise.
100453         * modules/vasnprintf-posix (Depends-on): Likewise.
100454         * modules/vasprintf-posix (Depends-on): Likewise.
100455         * modules/vfprintf-posix (Depends-on): Likewise.
100456         * modules/vsnprintf-posix (Depends-on): Likewise.
100457         * modules/vsprintf-posix (Depends-on): Likewise.
100458         * modules/vasnprintf (Files): Add lib/float+.h.
100459         * doc/functions/fprintf.texi: Update.
100460         * doc/functions/printf.texi: Update.
100461         * doc/functions/snprintf.texi: Update.
100462         * doc/functions/sprintf.texi: Update.
100463         * doc/functions/vfprintf.texi: Update.
100464         * doc/functions/vprintf.texi: Update.
100465         * doc/functions/vsnprintf.texi: Update.
100466         * doc/functions/vsprintf.texi: Update.
100468 2007-05-18  Bruno Haible  <bruno@clisp.org>
100470         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100472 2007-05-18  Bruno Haible  <bruno@clisp.org>
100474         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100475         for printing 64-bit integers. Needed for mingw.
100477 2007-05-18  Bruno Haible  <bruno@clisp.org>
100479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100480         gl_FUNC_FREXPL_WORKS.
100481         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100483 2007-05-18  Bruno Haible  <bruno@clisp.org>
100485         * modules/frexpl-nolibm-tests: New file.
100487         * modules/frexpl-nolibm: New file.
100488         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100490 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100492         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100493         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100494         GCC 4.2, which otherwise issues a lot of warnings.
100495         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100496         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100497         Likewise.
100498         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100499         * modules/iconv_open (iconv.h): Likewise.
100500         * modules/locale (locale.h): Likewise.
100501         * modules/netinet_in (netinet/in.h): Likewise.
100502         * modules/sys_select (sys_select.h): Likewise.
100503         * modules/sys_socket (sys/socket.h): Likewise.
100504         * modules/sys_stat (sys/stat.h): Likewise.
100505         * modules/sysexits (sysexits.h): Likewise.
100506         * modules/unistd (unistd.h): Likewise.
100508 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100510         * modules/closein-tests (Makefile.am): Distribute
100511         `test-closein.sh'.
100513 2007-05-17  Bruno Haible  <bruno@clisp.org>
100515         * tests/test-printf-posix.output: Renamed from
100516         tests/test-fprintf-posix.out.
100517         * modules/fprintf-posix-tests: Update.
100518         * modules/printf-posix-tests: Update.
100519         * modules/vfprintf-posix-tests: Update.
100520         * modules/vprintf-posix-tests: Update.
100521         * tests/test-fprintf-posix.sh: Update.
100522         * tests/test-printf-posix.sh: Update.
100523         * tests/test-vfprintf-posix.sh: Update.
100524         * tests/test-vprintf-posix.sh: Update.
100525         Reported by Ralf Wildenhues.
100527 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100529         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100530         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100531         GCC 4.2, which otherwise issues a lot of warnings.
100532         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100533         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100534         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100535         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100536         it should no longer be needed.
100537         * lib/string_.h: Likewise.
100538         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100539         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100540         * modules/inttypes (inttypes.h): Likewise.
100541         * modules/math (math.h): Likewise.
100542         * modules/search (search.h): Likewise.
100543         * modules/signal (signal.h): Likewise.
100544         * modules/stdint (stdint.h): Likewise.
100545         * modules/stdio (stdio.h): Likewise.
100546         * modules/stdlib (stdlib.h): Likewise.
100547         * modules/string (string.h): Likewise.
100548         * modules/sys_time (sys/time.h): Likewise.
100549         * modules/time (time.h): Likewise.
100550         * modules/wchar (wchar.h): Likewise.
100551         * modules/wctype (wtype.h): Likewise.
100553 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100555         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100557 2007-05-13  Bruno Haible  <bruno@clisp.org>
100559         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100560         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100561         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100562         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100563         (gl_PREREQ_STRTOK_R): Don't require it here.
100565 2007-05-13  Bruno Haible  <bruno@clisp.org>
100567         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100568         when used in C++ mode.
100570 2007-05-12  Bruno Haible  <bruno@clisp.org>
100572         * lib/linebuffer.h: Tweak doc.
100573         * lib/linebuffer.c: Likewise.
100575 2007-05-12  James Youngman  <jay@gnu.org>
100577         * lib/linebuffer.c (readlinebuffer_delim): New function,
100578         like readlinebuffer, but use a caller-specified delimiter.
100579         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100580         as the delimiter.
100581         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100583 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100585         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100586         * modules/openat (Files): Remove openat-die.c.
100587         (Depends-on): Add openat-die.
100588         * modules/openat-die: New module.
100590 2007-05-06  Bruno Haible  <bruno@clisp.org>
100592         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100593         Update with info about Cygwin.
100594         * doc/functions/fprintf.texi: Update.
100595         * doc/functions/printf.texi: Update.
100596         * doc/functions/snprintf.texi: Update.
100597         * doc/functions/sprintf.texi: Update.
100598         * doc/functions/vfprintf.texi: Update.
100599         * doc/functions/vprintf.texi: Update.
100600         * doc/functions/vsnprintf.texi: Update.
100601         * doc/functions/vsprintf.texi: Update.
100602         Reported by Eric Blake.
100604 2007-05-06  Bruno Haible  <bruno@clisp.org>
100606         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100607         padding ourselves for the floating-point directives.
100608         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100611         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100612         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100620         * tests/test-snprintf-posix.h (test_function): Also check the width
100621         and some flags in the %f directive.
100622         * tests/test-sprintf-posix.h (test_function): Likewise.
100623         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100624         * tests/test-vasprintf-posix.c (test_function): Likewise.
100625         * doc/functions/fprintf.texi: Update.
100626         * doc/functions/printf.texi: Update.
100627         * doc/functions/snprintf.texi: Update.
100628         * doc/functions/sprintf.texi: Update.
100629         * doc/functions/vfprintf.texi: Update.
100630         * doc/functions/vprintf.texi: Update.
100631         * doc/functions/vsnprintf.texi: Update.
100632         * doc/functions/vsprintf.texi: Update.
100634 2007-05-06  Bruno Haible  <bruno@clisp.org>
100636         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100637         pass the ' flag character to sprintf or snprintf.
100638         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100641         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100642         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100643         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100644         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100650         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100651         flag.
100652         * tests/test-sprintf-posix.h (test_function): Likewise.
100653         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100654         * tests/test-vasprintf-posix.c (test_function): Likewise.
100655         * doc/functions/fprintf.texi: Update.
100656         * doc/functions/printf.texi: Update.
100657         * doc/functions/snprintf.texi: Update.
100658         * doc/functions/sprintf.texi: Update.
100659         * doc/functions/vfprintf.texi: Update.
100660         * doc/functions/vprintf.texi: Update.
100661         * doc/functions/vsnprintf.texi: Update.
100662         * doc/functions/vsprintf.texi: Update.
100664 2007-05-01  Bruno Haible  <bruno@clisp.org>
100666         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100668 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100670         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100671         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100673 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100675         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100676         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100677         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100679 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100681         * lib/argp-help.c (struct hol_entry): New member `ord'.
100682         (HOL_ENTRY_PTRCMP): Use ord for comparison
100683         (hol_sort): Initialize ord.
100685 2007-05-01  Bruno Haible  <bruno@clisp.org>
100687         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100688         Reported by Eric Blake.
100689         * doc/gnulib.texi (Function Substitutes): Update.
100691 2007-05-01  Bruno Haible  <bruno@clisp.org>
100693         * doc/functions.texi: Remove file, now redundant through
100694         doc/functions/*.texi.
100696 2007-05-01  Bruno Haible  <bruno@clisp.org>
100698         * modules/argp (Depends-on): Add sleep.
100700 2007-05-01  Bruno Haible  <bruno@clisp.org>
100702         * modules/sleep-tests: New file.
100703         * tests/test-sleep.c: New file.
100705         * modules/sleep: New file.
100706         * lib/sleep.c: New file.
100707         * m4/sleep.m4: New file.
100708         * lib/unistd_.h (sleep): New declaration.
100709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100710         HAVE_SLEEP.
100711         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100712         * doc/functions/sleep.texi: Document the sleep module.
100714 2007-05-01  Bruno Haible  <bruno@clisp.org>
100716         * lib/sigprocmask.h: Remove file.
100717         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100718         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100719         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100720         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100721         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100722         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100723         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100724         HAVE_SIGSET_T as a shell variable.
100725         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100726         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100727         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100728         (Depends-on): Add signal. Remove verify.
100729         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100730         (Include): Mention <signal.h> instead of sigprocmask.h.
100731         * NEWS: Mention the change.
100732         * lib/fatal-signal.c: Don't include sigprocmask.h.
100734 2007-05-01  Bruno Haible  <bruno@clisp.org>
100736         * modules/signal: New file.
100737         * lib/signal_.h: New file.
100738         * m4/signal_h.m4: New file.
100740 2007-05-01  Bruno Haible  <bruno@clisp.org>
100742         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100743         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100744         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100745         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100747 2007-05-01  Bruno Haible  <bruno@clisp.org>
100749         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100750         configure time.
100751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100752         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100753         * modules/sys_stat (Makefile.am): Substitute their values into
100754         sys/stat.h.
100756 2007-05-01  Bruno Haible  <bruno@clisp.org>
100758         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100759         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100760         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100762 2007-05-01  Bruno Haible  <bruno@clisp.org>
100764         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100765         'assert' module here.
100767 2007-05-01  Bruno Haible  <bruno@clisp.org>
100769         * doc/functions/*.texi: New files.
100770         * doc/functions/google-ranking.txt: New file.
100771         * doc/gnulib.texi (Function Substitutes): New chapter.
100772         (ctime, inet_ntoa): Remove sections.
100773         * doc/ctime.texi: Remove file.
100774         * doc/inet_ntoa.texi: Remove file.
100775         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100776         dependencies.
100777         (%.info): New rule, specifying a --reference-limit.
100779 2007-05-01  Bruno Haible  <bruno@clisp.org>
100781         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100783 2007-05-01  Bruno Haible  <bruno@clisp.org>
100785         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100786         the portability of 'mkdir' to mingw systems.
100788 2007-05-01  Bruno Haible  <bruno@clisp.org>
100790         * doc/headers/google-ranking.txt: New file.
100792 2007-04-30  Eric Blake  <ebb9@byu.net>
100794         Prefer fseeko to fseek.
100795         * modules/getpass (Depends-on): Add fseeko.
100796         * lib/getpass.c (getpass): Use fseeko, not fseek.
100798 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100800         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100801         assumes the sorting is stable, while most qsort implementations
100802         are not.  Use argument addresses to ensure they never compare as
100803         equal.
100805         * tests/test-argp-2.sh (usage-indent test): Fix output
100806         (func_compare): Restore diff options
100807         * tests/test-argp.c: Restore #include "progname.h"
100809 2007-04-29  Bruno Haible  <bruno@clisp.org>
100811         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100813         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100814         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100815         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100816         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100817         (TESTS, check_PROGRAMS): Add test-snprintf.
100818         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100819         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100820         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100821         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100822         assertions that fail on HP-UX, OSF/1, or IRIX.
100823         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100825 2007-04-29  Bruno Haible  <bruno@clisp.org>
100827         * MODULES.html.sh (posix_functions): Remove 'contents'.
100829 2007-04-29  Karl Berry  <karl@gnu.org>
100831         * config/srclist.txt (gendocs_template_min): new entry.
100833 2007-04-29  Bruno Haible  <bruno@clisp.org>
100835         Work around fpurge bug on BSD systems.
100836         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100837         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100838         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100839         fpurge to rpl_fpurge if the system already has this function.
100840         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100841         the case where the system already has this function. Correct invariants
100842         on BSD systems.
100843         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100844         BSD systems.
100846 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100848         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100849         proposed by Sven Verdoolaege.
100851         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100852         options.
100853         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100854         (usage and help tests): Update
100856 2007-04-29  Bruno Haible  <bruno@clisp.org>
100858         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100859         Print more information in case of failure. Disable a test on BeOS.
100861 2007-04-29  Bruno Haible  <bruno@clisp.org>
100863         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100864         This helps debugging on systems on which no gdb is available.
100866 2007-04-29  Bruno Haible  <bruno@clisp.org>
100868         * lib/freading.h: Improve comments.
100869         * lib/fwriting.h: Likewise.
100870         * tests/test-freading.c (main): Don't check freading immediately after
100871         repositioning. Needed for glibc.
100873 2007-04-29  Bruno Haible  <bruno@clisp.org>
100875         * lib/freading.c (freading): Trivial simplification.
100877 2007-04-28  Bruno Haible  <bruno@clisp.org>
100879         * tests/test-fwriting.c (main): Also test the interaction between
100880         fflush and fwriting.
100881         * modules/fwriting-tests (Depends-on): Add fflush.
100883         * tests/test-freading.c (main): Also test the interaction between
100884         fflush and freading.
100885         * modules/freading-tests (Depends-on): Add fflush.
100887 2007-04-28  Bruno Haible  <bruno@clisp.org>
100889         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100890         fseeko and ftello.
100891         Suggested by Eric Blake.
100893 2007-04-28  Jim Meyering  <jim@meyering.net>
100895         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100896         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100897         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100899 2007-04-27  Eric Blake  <ebb9@byu.net>
100901         * doc/headers/assert.texi (assert.h): Document assert module use.
100903 2007-04-27  Bruno Haible  <bruno@clisp.org>
100905         * doc/headers/*.texi: New files.
100906         * doc/gnulib.texi (Header File Substitutes): New chapter.
100907         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100908         dependencies.
100909         (standards.info ,standards.html, standards.dvi): Update dependencies.
100910         (mostlyclean, clean): New targets.
100912 2007-04-27  Bruno Haible  <bruno@clisp.org>
100914         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100915         * modules/sysexits (Files, Makefile.am): Update.
100917         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100918         * modules/sys_socket (Files, Makefile.am): Update.
100920         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100921         * modules/sys_stat (Files, Makefile.am): Update.
100923 2007-04-27  Eric Blake  <ebb9@byu.net>
100925         * lib/freading.h: Improve comments.
100926         * lib/fwriting.h: Likewise.
100927         * lib/fflush.c: Likewise.
100929         Fix closein for mingw.
100930         * modules/closein-tests: Add tests for closein.
100931         * tests/test-closein.c: New file.
100932         * tests/test-closein.sh: Likewise.
100933         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100934         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100936 2007-04-27  Bruno Haible  <bruno@clisp.org>
100938         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100939         version is < 6.
100940         * lib/math_.h [__DECC]: Likewise.
100941         * lib/stdio_.h [__DECC]: Likewise.
100942         * lib/stdlib_.h [__DECC]: Likewise.
100943         * lib/string_.h [__DECC]: Likewise.
100944         * lib/time_.h [__DECC]: Likewise.
100945         * lib/wchar_.h [__DECC]: Likewise.
100946         * lib/wctype_.h [__DECC]: Likewise.
100948 2007-04-27  Bruno Haible  <bruno@clisp.org>
100950         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100952 2007-04-27  Bruno Haible  <bruno@clisp.org>
100954         * lib/fflush.c: Add comments.
100955         * modules/fpurge-tests (Depends-on): Add fflush.
100956         * modules/freadable-tests (Depends-on): Likewise.
100957         * modules/fwritable-tests (Depends-on): Likewise.
100959 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100961         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100962         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100963         Report by Bruno Haible <bruno@clisp.org>.
100965 2007-04-26  Eric Blake  <ebb9@byu.net>
100967         Fix fflush on mingw.
100968         * modules/fflush (Depends-on): Add freading.
100969         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
100970         but unread data.
100972 2007-04-26  Eric Blake  <ebb9@byu.net>
100973         and Bruno Haible  <bruno@clisp.org>
100975         Implement freading and fwriting.
100976         * lib/freading.c: New file.
100977         * lib/freading.h: Likewise.
100978         * m4/freading.m4: Likewise.
100979         * modules/freading: Likewise.
100980         * modules/freading-tests: Likewise.
100981         * tests/test-freading.c: Likewise.
100982         * lib/fwriting.c: New file.
100983         * lib/fwriting.h: Likewise.
100984         * m4/fwriting.m4: Likewise.
100985         * modules/fwriting: Likewise.
100986         * modules/fwriting-tests: Likewise.
100987         * tests/test-fwriting.c: Likewise.
100988         * MODULES.html.sh (File stream based Input/Output): Mention them.
100990 2007-04-26  Bruno Haible  <bruno@clisp.org>
100992         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
100993         'long' when we assume it.
100994         Suggested by Eric Blake.
100996 2007-04-26  Bruno Haible  <bruno@clisp.org>
100998         Ensure fseeko, ftello are declared on glibc systems.
100999         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101000         * modules/fseeko (configure.ac-early): Likewise.
101001         * modules/ftello (configure.ac-early): Likewise.
101002         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101003         AC_FUNC_FSEEKO for this.
101004         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101005         (gl_CHECK_FSEEKO): Remove macro.
101007 2007-04-26  Bruno Haible  <bruno@clisp.org>
101009         * tests/test-fflush.c (main): Also check the ftell result after
101010         fflush and fseek/fseeko.
101011         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101012         file descriptor position cache in the stream.
101013         * lib/fseeko.c (rpl_fseeko): Likewise.
101015 2007-04-26  Bruno Haible  <bruno@clisp.org>
101017         * modules/fflush-tests (Depends-on): Add fseeko.
101019 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101020             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101022         * lib/argz_.h: ensure error_t definition is obtained in same
101023         mechanism system argz.h would have.
101024         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101025         argz facilities are known bad.  Err on the side of caution if
101026         cross-compiling.
101028 2007-04-25  Eric Blake  <ebb9@byu.net>
101030         * lib/fpurge.c (includes): Use stdlib.h for free.
101031         * tests/test-fflush.c (main): Also test fflush-fseeko.
101033 2007-04-25  Bruno Haible  <bruno@clisp.org>
101035         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101036         * lib/fseeko.c: New file.
101037         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101038         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101039         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101040         gl_FUNC_FSEEKO.
101041         (gl_FUNC_FSEEKO): Invoke it.
101042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101043         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101044         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101046 2007-04-25  Bruno Haible  <bruno@clisp.org>
101048         * modules/fflush (Depends-on): Add ftello.
101050 2007-04-25  Bruno Haible  <bruno@clisp.org>
101052         * modules/ftello-tests: New file.
101053         * tests/test-ftello.c: New file.
101055         * modules/ftello: New file.
101056         * m4/ftello.m4: New file.
101057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101058         HAVE_FTELLO.
101059         * lib/stdio_.h (ftello): New declaration.
101060         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101061         HAVE_FTELLO.
101063 2007-04-25  Bruno Haible  <bruno@clisp.org>
101065         * modules/fseeko-tests: New file.
101066         * tests/test-fseeko.c: New file.
101068         * modules/fseeko: New file.
101069         * m4/fseeko.m4: New file.
101070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101071         HAVE_FSEEKO.
101072         * lib/stdio_.h (fseeko): New declaration.
101073         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
101074         HAVE_FSEEKO.
101076 2007-04-25  Bruno Haible  <bruno@clisp.org>
101078         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
101080 2007-04-25  Bruno Haible  <bruno@clisp.org>
101082         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
101083         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
101084         * tests/test-unistd.c: Likewise.
101085         * tests/test-fcntl.c: Likewise.
101087 2007-04-23  Eric Blake  <ebb9@byu.net>
101089         * lib/fflush.c: Fix missing include.
101090         Reported by Bruno Haible.
101092 2007-04-23  Bruno Haible  <bruno@clisp.org>
101094         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
101095         Reported by Eric Blake.
101097 2007-04-23  Bruno Haible  <bruno@clisp.org>
101099         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
101101 2007-04-23  Bruno Haible  <bruno@clisp.org>
101103         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
101105 2007-04-23  Bruno Haible  <bruno@clisp.org>
101107         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
101108         Needed on HP-UX 11.
101110 2007-04-16  Eric Blake  <ebb9@byu.net>
101112         Make fflush rely on fpurge.
101113         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101114         open coding all variants.
101115         * modules/fflush (Depends-on): Add fpurge and unistd.
101116         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101117         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101119         Fix --with-tests compilation on cygwin.
101120         * modules/argmatch-tests (Makefile.am): List gnulib library first
101121         in LDADD.
101122         * modules/argp-tests (Makefile.am): Likewise.
101123         * modules/array-list-tests (Makefile.am): Likewise.
101124         * modules/array-oset-tests (Makefile.am): Likewise.
101125         * modules/avltree-list-tests (Makefile.am): Likewise.
101126         * modules/avltree-oset-tests (Makefile.am): Likewise.
101127         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101128         * modules/carray-list-tests (Makefile.am): Likewise.
101129         * modules/dirname-tests (Makefile.am): Likewise.
101130         * modules/frexp-tests (Makefile.am): Likewise.
101131         * modules/isnanl-tests (Makefile.am): Likewise.
101132         * modules/linked-list-tests (Makefile.am): Likewise.
101133         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101134         * modules/lock-tests (Makefile.am): Likewise.
101135         * modules/rbtree-list-tests (Makefile.am): Likewise.
101136         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101137         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101138         * modules/tls-tests (Makefile.am): Likewise.
101139         * modules/tsearch-tests (Makefile.am): Likewise.
101140         * modules/xvasprintf-tests (Makefile.am): Likewise.
101142         Fix fpurge for cygwin.
101143         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101144         value.
101145         * modules/fpurge-tests (Depends-on): Clean up trash.
101147 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101149         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101151         * m4/autobuild.m4: Re-indent.
101153 2007-04-13  Bruno Haible  <bruno@clisp.org>
101155         * modules/fpurge-tests: New file.
101156         * tests/test-fpurge.c: New file.
101158         * modules/fpurge: New file.
101159         * lib/fpurge.h: New file.
101160         * lib/fpurge.c: New file.
101161         * m4/fpurge.m4: New file.
101163 2007-04-13  Bruno Haible  <bruno@clisp.org>
101165         * modules/fbufmode-tests: New file.
101166         * tests/test-fbufmode.c: New file.
101168         * modules/fbufmode: New file.
101169         * lib/fbufmode.h: New file.
101170         * lib/fbufmode.c: New file.
101171         * m4/fbufmode.m4: New file.
101173 2007-04-13  Bruno Haible  <bruno@clisp.org>
101175         * modules/fwritable-tests: New file.
101176         * tests/test-fwritable.c: New file.
101178         * modules/fwritable: New file.
101179         * lib/fwritable.h: New file.
101180         * lib/fwritable.c: New file.
101181         * m4/fwritable.m4: New file.
101183 2007-04-13  Bruno Haible  <bruno@clisp.org>
101185         * modules/freadable-tests: New file.
101186         * tests/test-freadable.c: New file.
101188         * modules/freadable: New file.
101189         * lib/freadable.h: New file.
101190         * lib/freadable.c: New file.
101191         * m4/freadable.m4: New file.
101193 2007-04-13  Bruno Haible  <bruno@clisp.org>
101195         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101196         MOSTLYCLEANFILES.
101198 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101200         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101201         gzip bootstrap.conf to avoid dragging in i18n machinery.
101202         (gnulib_tool_option): Use it.
101204 2007-04-13  Bruno Haible  <bruno@clisp.org>
101206         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101207         %F directives.
101208         * tests/test-vasprintf-posix.c (test_function): Likewise.
101209         * tests/test-snprintf-posix.h (test_function): Likewise.
101210         * tests/test-sprintf-posix.h (test_function): Likewise.
101211         * tests/test-fprintf-posix.h (test_function): Likewise.
101212         * tests/test-printf-posix.h (test_function): Likewise.
101213         * tests/test-fprintf-posix.out: Likewise.
101215 2007-04-13  Bruno Haible  <bruno@clisp.org>
101217         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101218         * modules/tls-tests (configure.ac): Likewise.
101219         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101221 2007-04-13  Bruno Haible  <bruno@clisp.org>
101223         * lib/tls.c (glthread_tls_get): Fix return type.
101224         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101226 2007-04-12  Eric Blake  <ebb9@byu.net>
101228         * modules/gettime (Depends-on): Remove gettime.
101229         Reported by Dmitry V. Levin.
101231 2007-04-12  Bruno Haible  <bruno@clisp.org>
101233         * modules/fflush (Include): Mention <stdio.h>.
101234         * modules/strtoimax (Include): Mention <inttypes.h>.
101235         * modules/strtoumax (Include): Likewise.
101237 2007-04-12  Eric Blake  <ebb9@byu.net>
101239         * .cvsignore: New file.
101240         * .gitignore: Likewise.
101242 2007-04-12  Bruno Haible  <bruno@clisp.org>
101244         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101245         not before, since $(LDADD) often contains libgnu.a.
101246         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101247         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101248         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101249         Needed on Cygwin.
101251 2007-04-12  Eric Blake  <ebb9@byu.net>
101253         Work around glibc's failure to flush stdin on fclose.
101254         * lib/closein.c (close_stdin): Flush stdin before closing.
101256         Work around glibc's failure to reset seekable stdin on exit.
101257         * modules/closein: New module.
101258         * lib/closein.c: New file.
101259         * lib/closein.h: Likewise.
101260         * m4/closein.m4: Likewise.
101261         * MODULES.html.sh (File stream based Input/Output): Document it.
101263 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101265         * gnulib-tool: Rename generated 'autobuild' script to
101266         'do-autobuild' in --create-megatestdir output.
101268         * doc/gnulib.texi (Build robot for gnulib): Fix.
101270 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101272         * modules/sysexits (Depends-on): Add absolute-header.
101274 2007-04-12  Eric Blake  <ebb9@byu.net>
101276         No need to preserve errno on success.
101277         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101278         Reported by Bruno Haible.
101280 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101282         * MODULES.html.sh (Support for maintaining and releasing
101283         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101287         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101289 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101291         * modules/autobuild: New module.
101293         * m4/autobuild.m4: New file.
101295 2007-04-11  Bruno Haible  <bruno@clisp.org>
101297         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101298         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101302         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101303         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101305         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101306         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
101308         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101309         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101310         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
101311         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101312         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101314         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101315         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101317         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101318         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101320         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101321         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101325         Reported by Eric Blake.
101327 2007-04-11  Bruno Haible  <bruno@clisp.org>
101329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101331 2007-04-10  Bruno Haible  <bruno@clisp.org>
101333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101334         for NaN and Infinity. Needed on FreeBSD 6.1.
101335         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101336         regarding results for "%010a" of Infinity and NaN.
101337         * tests/test-vasprintf-posix.c (test_function): Likewise.
101338         * tests/test-snprintf-posix.h (test_function): Likewise.
101339         * tests/test-sprintf-posix.h (test_function): Likewise.
101340         * tests/test-fprintf-posix.h (test_function): Likewise.
101341         * tests/test-printf-posix.h (test_function): Likewise.
101342         * tests/test-fprintf-posix.out: Likewise.
101344 2007-04-10  Bruno Haible  <bruno@clisp.org>
101346         * modules/locale-tests: New file.
101347         * tests/test-locale.c: New file.
101349         * modules/locale: New file.
101350         * lib/locale_.h: New file.
101351         * m4/locale_h.m4: New file.
101353 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101354             Bruno Haible  <bruno@clisp.org>
101356         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101357         be determined, test for availability of the copysignf, copysign,
101358         copysignl functions.
101359         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101360         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101361         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101363 2007-04-09  Eric Blake  <ebb9@byu.net>
101365         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101366         * modules/stdio (Makefile.am): Support fflush.
101367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101368         * modules/fflush: New file.
101369         * lib/fflush.c: Likewise.
101370         * m4/fflush.m4: Likewise.
101371         * modules/fflush-tests: New test.
101372         * tests/test-fflush.c: Likewise.
101373         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101375 2007-04-06  Bruno Haible  <bruno@clisp.org>
101377         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101378         (VASNPRINTF): Use signbit for faster determination whether to print a
101379         minus sign.
101380         * modules/vasnprintf (Files): Remove lib/float+.h.
101381         * modules/fprintf-posix (Depends-on): Add signbit.
101382         * modules/snprintf-posix (Depends-on): Likewise.
101383         * modules/sprintf-posix (Depends-on): Likewise.
101384         * modules/vasnprintf-posix (Depends-on): Likewise.
101385         * modules/vasprintf-posix (Depends-on): Likewise.
101386         * modules/vfprintf-posix (Depends-on): Likewise.
101387         * modules/vsnprintf-posix (Depends-on): Likewise.
101388         * modules/vsprintf-posix (Depends-on): Likewise.
101390 2007-04-06  Bruno Haible  <bruno@clisp.org>
101392         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101393         * tests/test-frexpl.c (main): Likewise.
101394         * tests/test-ldexpl.c (main): Likewise.
101395         * modules/frexp-tests (Depends-on): Add signbit.
101396         * modules/frexpl-tests (Depdends-on): Likewise.
101397         * modules/ldexpl-tests (Depdends-on): Likewise.
101399 2007-04-06  Bruno Haible  <bruno@clisp.org>
101401         * modules/signbit-tests: New file.
101402         * tests/test-signbit.c: New file.
101404         * modules/signbit: New file.
101405         * lib/signbitf.c: New file.
101406         * lib/signbitd.c: New file.
101407         * lib/signbitl.c: New file.
101408         * m4/signbit.m4: New file.
101409         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101410         (signbit): New macro.
101411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101412         REPLACE_SIGNBIT.
101413         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101414         REPLACE_FREXPL into math.h.
101416 2007-04-06  Bruno Haible  <bruno@clisp.org>
101418         * modules/isnanf-nolibm-tests: New file.
101419         * tests/test-isnanf.c: New file.
101421         * modules/isnanf-nolibm: New file.
101422         * lib/isnanf.h: New file.
101423         * lib/isnanf.c: New file.
101424         * lib/isnan.c: Consider the USE_FLOAT macro.
101425         * m4/isnanf.m4: New file.
101427 2007-04-06  Bruno Haible  <bruno@clisp.org>
101429         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101430         (Link): New section.
101432         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101434 2007-04-06  Bruno Haible  <bruno@clisp.org>
101436         Assume the 'long double' type.
101437         * m4/longdouble.m4: Remove file.
101438         * config/srclist.txt: Don't mention longdouble.m4.
101439         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101440         * lib/float+.h: Likewise.
101441         * lib/frexp.c: Likewise.
101442         * lib/printf-args.h: Likewise.
101443         * lib/printf-args.c: Likewise.
101444         * lib/printf-frexp.c: Likewise.
101445         * lib/printf-parse.c: Likewise.
101446         * lib/vasnprintf.c: Likewise.
101447         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101448         * m4/intl.m4: Likewise.
101449         * m4/isnanl.m4: Likewise.
101450         * m4/printf.m4: Likewise.
101451         * m4/printf-frexpl.m4: Likewise.
101452         * m4/vasnprintf.m4: Likewise.
101453         * modules/allocsa (Files): Remove m4/longdouble.m4.
101454         * modules/gettext (Files): Likewise.
101455         * modules/relocatable-prog-wrapper (Files): Likewise.
101456         * modules/vasnprintf (Files): Likewise.
101457         * modules/isnanl (Files): Likewise.
101458         (Include): Simplify.
101459         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101460         (Include): Simplify.
101461         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101462         (Include): Simplify.
101463         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101464         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101465         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101466         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101467         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101468         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101469         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101471         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101473         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101475         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101476         * tests/test-isnanl.c: Likewise.
101477         * tests/test-snprintf-posix.h: Likewise.
101478         * tests/test-sprintf-posix.h: Likewise.
101479         * tests/test-vasnprintf-posix.c: Likewise.
101480         * tests/test-vasnprintf-posix2.c: Likewise.
101481         * tests/test-vasprintf-posix.c: Likewise.
101483 2007-04-06  Bruno Haible  <bruno@clisp.org>
101485         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101486         * lib/math_.h [__DECC]: Include the overridden include file through
101487         #include_next, outside the double-inclusion guard.
101488         * lib/stdio_.h [__DECC]: Likewise.
101489         * lib/stdlib_.h [__DECC]: Likewise.
101490         * lib/string_.h [__DECC]: Likewise.
101491         * lib/time_.h [__DECC]: Likewise.
101492         * lib/wchar_.h [__DECC]: Likewise.
101493         * lib/wctype_.h [__DECC]: Likewise.
101494         * lib/inttypes_.h [__DECC]: Likewise.
101495         Reported by Albert Chin <china@thewrittenword.com> in
101496         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101498 2007-04-04  Eric Blake  <ebb9@byu.net>
101500         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101501         1.5.x.
101503 2007-04-04  Bruno Haible  <bruno@clisp.org>
101505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101506         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101508 2007-04-04  Bruno Haible  <bruno@clisp.org>
101510         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101511         results for "%010a" of Infinity and NaN.
101512         * tests/test-vasprintf-posix.c (test_function): Likewise.
101513         * tests/test-snprintf-posix.h (test_function): Likewise.
101514         * tests/test-sprintf-posix.h (test_function): Likewise.
101515         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101516         * tests/test-printf-posix.h (test_function): Likewise.
101517         * tests/test-fprintf-posix.out: Update.
101518         Needed for FreeBSD 6.1.
101520 2007-04-04  Bruno Haible  <bruno@clisp.org>
101522         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101523         directly used by the gnulib modules nor by gnulib-tool.
101525 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101527         * DEPENDENCIES: Give overall description of version dependency
101528         desirability.  Use more-typical names for apps.
101529         Add shell, coreutils, diffutils, grep, tar, gzip.
101531 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101533         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101535 2007-04-04  Karl Berry  <karl@gnu.org>
101537         * MODULES.html.sh (func_module): missing '.
101539 2007-04-03  Bruno Haible  <bruno@clisp.org>
101541         * modules/argmatch-tests (Makefile.am): New variable
101542         test_argmatch_LDADD.
101543         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101544         * modules/array-list-tests (Makefile.am): New variable
101545         test_array_list_LDADD.
101546         * modules/array-oset-tests (Makefile.am): New variable
101547         test_array_oset_LDADD.
101548         * modules/avltree-list-tests (Makefile.am): New variable
101549         test_avltree_list_LDADD.
101550         * modules/avltree-oset-tests (Makefile.am): New variable
101551         test_avltree_oset_LDADD.
101552         * modules/avltreehash-list-tests (Makefile.am): New variable
101553         test_avltreehash_list_LDADD.
101554         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101555         test_canonicalize_lgpl_LDADD.
101556         * modules/carray-list-tests (Makefile.am): New variable
101557         test_carray_list_LDADD.
101558         * modules/dirname-tests (Makefile.am): New variable
101559         test_dirname_LDADD.
101560         * modules/linked-list-tests (Makefile.am): New variable
101561         test_linked_list_LDADD.
101562         * modules/linkedhash-list-tests (Makefile.am): New variable
101563         test_linkedhash_list_LDADD.
101564         * modules/rbtree-list-tests (Makefile.am): New variable
101565         test_rbtree_list_LDADD.
101566         * modules/rbtree-oset-tests (Makefile.am): New variable
101567         test_rbtree_oset_LDADD.
101568         * modules/rbtreehash-list-tests (Makefile.am): New variable
101569         test_rbtreehash_list_LDADD.
101570         * modules/xvasprintf-tests (Makefile.am): New variable
101571         test_xvasprintf_LDADD.
101572         Reported by Eric Blake.
101574 2007-04-03  Eric Blake  <ebb9@byu.net>
101576         * DEPENDENCIES: Weaken m4 requirements.
101578 2007-04-03  Bruno Haible  <bruno@clisp.org>
101580         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101581         * modules/isnanl-tests (configure.ac): Likewise.
101583 2007-04-03  Ben Pfaff  <blp@gnu.org>
101585         * modules/iconv_open: Add $(srcdir)/ to source directory
101586         references in Makefile fragments that call gperf, to fix VPATH
101587         builds.
101589 2007-04-03  Bruno Haible  <bruno@clisp.org>
101591         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101592         * lib/ldexpl.c: Undo last change.
101594 2007-04-03  Bruno Haible  <bruno@clisp.org>
101596         * modules/printf-frexpl (Depends-on): Undo last change.
101597         (Files): Add m4/ldexpl.m4.
101599 2007-04-03  Bruno Haible  <bruno@clisp.org>
101601         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101602         * modules/isnanl (Link): New section.
101604         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101605         * modules/frexp (Link): New section.
101607         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101608         * modules/frexpl (Link): New section.
101610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101611         * modules/ldexpl (Link): New section.
101613 2007-04-03  Bruno Haible  <bruno@clisp.org>
101615         * modules/TEMPLATE-EXTENDED: New file.
101616         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101618 2007-04-03  Bruno Haible  <bruno@clisp.org>
101620         * DEPENDENCIES: New file.
101621         Suggested by Simon Josefsson.
101623 2007-04-03  Bruno Haible  <bruno@clisp.org>
101625         * doc/gnulib.texi: Escape @.
101627 2007-04-03  James Youngman  <jay@gnu.org>
101628         and Paul Eggert  <eggert@cs.ucla.edu>
101630         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101631         birthtime on all systems that have birthtime, not just those which
101632         use st_birthtimensec rather than st_birthtim.  Putting zero in
101633         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101634         that the birth time is not available for files on an NFS mount.
101636 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101638         * modules/memxor: Move back from crypto/, suggested by Bruno.
101639         * modules/crypto/hmac-sha1: Fix memxor dependency.
101641         * modules/crypto/gc: Moved from ../.
101643 2007-04-02  Eric Blake  <ebb9@byu.net>
101645         * lib/ldexpl.c (includes): Avoid libm.
101647         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101649 2007-04-02  Bruno Haible  <bruno@clisp.org>
101651         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101652         on IRIX.
101654 2007-04-02  Bruno Haible  <bruno@clisp.org>
101656         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101657         x86 or x86_64 platforms running MacOS X.
101658         Reported by Ryan Schmidt <@ryandesign.com>.
101660 2007-04-02  Bruno Haible  <bruno@clisp.org>
101662         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101663         i386.
101665 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101667         * modules/crypto/arcfour: Moved from ../.
101668         * modules/crypto/arcfour-tests: Moved from ../.
101669         * modules/crypto/arctwo: Moved from ../.
101670         * modules/crypto/arctwo-tests: Moved from ../.
101671         * modules/crypto/des: Moved from ../.
101672         * modules/crypto/des-tests: Moved from ../.
101673         * modules/crypto/gc-arcfour: Moved from ../.
101674         * modules/crypto/gc-arcfour-tests: Moved from ../.
101675         * modules/crypto/gc-arctwo: Moved from ../.
101676         * modules/crypto/gc-arctwo-tests: Moved from ../.
101677         * modules/crypto/gc-des: Moved from ../.
101678         * modules/crypto/gc-des-tests: Moved from ../.
101679         * modules/crypto/gc-hmac-md5: Moved from ../.
101680         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101681         * modules/crypto/gc-hmac-sha1: Moved from ../.
101682         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101683         * modules/crypto/gc-md2: Moved from ../.
101684         * modules/crypto/gc-md2-tests: Moved from ../.
101685         * modules/crypto/gc-md4: Moved from ../.
101686         * modules/crypto/gc-md4-tests: Moved from ../.
101687         * modules/crypto/gc-md5: Moved from ../.
101688         * modules/crypto/gc-md5-tests: Moved from ../.
101689         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101690         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101691         * modules/crypto/gc-random: Moved from ../.
101692         * modules/crypto/gc-rijndael: Moved from ../.
101693         * modules/crypto/gc-rijndael-tests: Moved from ../.
101694         * modules/crypto/gc-sha1: Moved from ../.
101695         * modules/crypto/gc-sha1-tests: Moved from ../.
101696         * modules/crypto/gc-tests: Moved from ../.
101697         * modules/crypto/hmac-md5: Moved from ../.
101698         * modules/crypto/hmac-md5-tests: Moved from ../.
101699         * modules/crypto/hmac-sha1: Moved from ../.
101700         * modules/crypto/hmac-sha1-tests: Moved from ../.
101701         * modules/crypto/md2: Moved from ../.
101702         * modules/crypto/md2-tests: Moved from ../.
101703         * modules/crypto/md4: Moved from ../.
101704         * modules/crypto/md4-tests: Moved from ../.
101705         * modules/crypto/md5: Moved from ../.
101706         * modules/crypto/md5-tests: Moved from ../.
101707         * modules/crypto/memxor: Moved from ../.
101708         * modules/crypto/rijndael: Moved from ../.
101709         * modules/crypto/rijndael-tests: Moved from ../.
101710         * modules/crypto/sha1: Moved from ../.
101712 2007-03-30  James Youngman  <jay@gnu.org>
101714         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101715         rename() to change the ctime of a file (because ctime is unaffected
101716         by rename on jfs2 on AIX 5.1).
101717         (main): Start by doing cleanup, in case a previous run failed leaving
101718         test files behind.
101720 2007-03-31  Bruno Haible  <bruno@clisp.org>
101722         Support old proprietary implementations of iconv.
101723         * modules/iconv_open: New file.
101724         * lib/iconv_.h: New file.
101725         * m4/iconv_h.m4: New file.
101726         * lib/iconv_open.c: New file.
101727         * lib/iconv_open-aix.gperf: New file.
101728         * lib/iconv_open-hpux.gperf: New file.
101729         * lib/iconv_open-irix.gperf: New file.
101730         * lib/iconv_open-osf.gperf: New file.
101731         * m4/iconv_open.m4: New file.
101732         * modules/linebreak (Depends-on): Add iconv_open.
101733         * modules/striconv (Depends-on): Likewise.
101734         * modules/striconveh (Depends-on): Likewise.
101735         * modules/unicodeio (Depends-on): Likewise.
101736         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101737         (iconv_t)(-1).
101738         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101739         conversion if cd is (iconv_t)(-1).
101740         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101741         is not possible.
101743 2007-03-31  Bruno Haible  <bruno@clisp.org>
101745         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101746         work on Solaris either. Protect also second use of "autodetect_jp".
101748 2007-03-31  Bruno Haible  <bruno@clisp.org>
101750         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101751         the function is not present.
101753 2007-03-31  Bruno Haible  <bruno@clisp.org>
101755         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101756         the function is not present.
101758 2007-03-31  Bruno Haible  <bruno@clisp.org>
101760         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101761         a bug in HP-UX iconv_open().
101763 2007-03-31  Bruno Haible  <bruno@clisp.org>
101765         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101766         (Mathematics <math.h>): New section, add fpieee.
101767         (Input/output <stdio.h>): Add fseterr.
101768         (Mathematics <math.h>): New section, add printf-frexp.
101769         (Container data structures): Add sublist.
101770         (Core language properties): Add fpucw, inline.
101771         (Functions for greatest-width integer types <inttypes.h>): Add
101772         imaxabs, imaxdiv, inttypes.
101773         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101774         isnanl-nolibm, ldexp.
101775         (Mathematics <math.h>): New section, add printf-frexpl.
101776         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101777         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101778         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101779         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101780         (Unicode string functions): Add unistr/u*-mbtoucr.
101781         (Java): Add javacomp-script, javaexec-script.
101782         (C#): Add csharpcomp-script, csharpexec-script.
101783         (Support for building libraries and executables): Add havelib,
101784         relocatable-*.
101785         (Support for maintaining and releasing projects): Renamed from
101786         'Support for maintaining and release projects'. Add announce-gen.
101788 2007-03-31  Bruno Haible  <bruno@clisp.org>
101790         * README: Talk primarily about git.
101791         (git and CVS): Renamed from CVS.
101792         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101793         gnulib is available through git.
101794         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101796 2007-03-30  Bruno Haible  <bruno@clisp.org>
101798         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101799         * lib/poll_.h: Likewise.
101800         * lib/stat_.h: Likewise.
101801         * lib/sys_time_.h: Likewise.
101802         * lib/sysexit_.h: Likewise.
101803         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101804         * lib/stdbool_.h: Likewise.
101805         * lib/byteswap_.h: Add double-inclusion guard.
101807 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101809         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101811 2007-03-30  Karl Berry  <karl@gnu.org>
101813         * config/srclist-update: double space after USA in the license
101814         substitution, since that's how it's usually (?) written.
101816 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101818         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101819         reported by Bruno Haible.
101821 2007-03-29  Bruno Haible  <bruno@clisp.org>
101823         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101824         a bug in AIX iconv().
101826 2007-03-29  Bruno Haible  <bruno@clisp.org>
101828         * modules/ldexpl-tests: New file.
101829         * tests/test-ldexpl.c: New file.
101831 2007-03-29  Bruno Haible  <bruno@clisp.org>
101833         * lib/ldexpl.c: Include fpucw.h.
101834         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101835         multiplication.
101836         * modules/ldexpl (Depends-on): Add fpucw.
101838 2007-03-29  Bruno Haible  <bruno@clisp.org>
101840         * modules/ldexpl: New file.
101841         * m4/ldexpl.m4: New file.
101842         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101843         set.
101844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101845         REPLACE_LDEXPL.
101846         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101847         REPLACE_LDEXPL.
101848         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101849         gl_FUNC_LDEXPL_WORKS.
101850         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101851         * modules/mathl (Files): Remove lib/ldexpl.c.
101852         (Depends-on): Add ldexpl.
101854 2007-03-29  Bruno Haible  <bruno@clisp.org>
101856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101858 2007-03-29  Bruno Haible  <bruno@clisp.org>
101860         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101861         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101862         and possibly also HP-UX.
101863         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101864         work on AIX, IRIX, HP-UX, OSF/1.
101865         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101866         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101867         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101868         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101869         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101870         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101872 2007-03-29  Bruno Haible  <bruno@clisp.org>
101874         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101876 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101878         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101879         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101881 2007-03-29  Eric Blake  <ebb9@byu.net>
101883         * lib/acl-internal.h: Remove redundant include.
101884         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101885         Cygwin when a file is locked.
101887 2007-03-29  Bruno Haible  <bruno@clisp.org>
101889         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101890         file.
101891         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101893 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101896         try to remove a parent directory if the child couldn't be removed
101897         (except for the first rmdir, which could fail because the child
101898         doesn't exist).  Problem reported by Jeff Blaine in
101899         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101901 2007-03-28  Bruno Haible  <bruno@clisp.org>
101903         * lib/striconveh.c (utf8conv_carefully): New function.
101904         (mem_cd_iconveh_internal): Invoke it.
101906 2007-03-28  Bruno Haible  <bruno@clisp.org>
101908         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101909         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101910         input.
101911         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101912         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101913         unistr/u8-uctomb.
101915 2007-03-28  Bruno Haible  <bruno@clisp.org>
101917         * modules/unistr/u8-mbtoucr: New file.
101918         * lib/unistr/u8-mbtoucr.c: New file.
101919         * modules/unistr/u16-mbtoucr: New file.
101920         * lib/unistr/u16-mbtoucr.c: New file.
101921         * modules/unistr/u16-mbtoucr: New file.
101922         * lib/unistr/u16-mbtoucr.c: New file.
101923         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101925 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101926             Bruno Haible  <bruno@clisp.org>
101928         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101929         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101930         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101932         * m4/stdio_h.m4: Add stubs for vasprintf too.
101934         * modules/stdio: Support vasprintf in sed command.
101936         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101937         vasprintf.h.  Add stdio module indicator.
101939         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101940         vasprintf.h.
101942         * lib/vasprintf.h: File removed.
101944         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101945         * lib/vasprintf.c: Ditto.
101946         * lib/xvasprintf.c: Ditto.
101947         * tests/test-vasprintf-posix.c: Ditto.
101948         * tests/test-vasprintf.c: Ditto.
101950 2007-03-27  Bruno Haible  <bruno@clisp.org>
101952         Make vasnprintf multithread-safe.
101953         * lib/vasnprintf.c (decimal_point_char): New function.
101954         (VASNPRINTF): Use it.
101955         Suggested by Simon Josefsson.
101957 2007-03-27  Eric Blake  <ebb9@byu.net>
101959         Support sub-second birthtime on cygwin.
101960         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101961         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101962         (get_stat_birthtime): Also work with st_birthtim.
101964 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101966         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101967         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
101968         (get_stat_birthtime_ns): Do not try to use "spare" fields.
101969         (get_stat_birthtime_ns): Simplify compile-time tests.
101970         (get_stat_birthtime): Change the API to look like
101971         get_stat_mtime etc., except return a negative tv_nsec on error.
101972         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
101973         Don't check for "spare" fields.
101974         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
101975         or for struct stat.st_birthtime, as these tests aren't used.
101976         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
101978 2007-03-27  Bruno Haible  <bruno@clisp.org>
101980         * lib/stat-time.h: Include <sys/stat.h>.
101982 2007-03-27  James Youngman  <jay@gnu.org>
101984         * lib/stat-time.h (get_stat_birthtime): New function for
101985           retrieving st_birthtime as provided by UFS2 (hence *BSD).
101986         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
101987           and its variants.
101988         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
101989         * modules/stat-time-test: New file.
101990         * tests/test-stat-time.c: New test, devised by Bruno Haible.
101992 2007-03-26  Bruno Haible  <bruno@clisp.org>
101994         Better support of signalling NaNs.
101995         * lib/atanl.c: Include isnanl.h.
101996         (atanl): Perform test for NaN at the beginning of the function and
101997         through a call to isnanl.
101998         * lib/cosl.c: Include isnanl.h.
101999         (cosl): Perform test for NaN at the beginning of the function and
102000         through a call to isnanl.
102001         * lib/ldexpl.c: Include isnanl.h.
102002         (ldexpl): Perform test for NaN through a call to isnanl.
102003         * lib/logl.c: Include isnanl.h.
102004         (logl): Perform test for NaN at the beginning of the function and
102005         through a call to isnanl.
102006         * lib/sinl.c: Include isnanl.h.
102007         (sinl): Perform test for NaN at the beginning of the function and
102008         through a call to isnanl.
102009         * lib/sqrtl.c: Include isnanl.h.
102010         (sqrtl): Perform test for NaN at the beginning of the function and
102011         through a call to isnanl.
102012         * lib/tanl.c: Include isnanl.h.
102013         (tanl): Perform test for NaN at the beginning of the function and
102014         through a call to isnanl.
102015         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102016         * modules/mathl (Depends-on): Add isnanl.
102018 2007-03-26  Eric Blake  <ebb9@byu.net>
102020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102021         regression in logic sense of previous patch.
102023 2007-03-26  Bruno Haible  <bruno@clisp.org>
102025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102026         unportable shell command "if ! ...".
102027         Reported by Ralf Wildenhues.
102029 2007-03-25  Bruno Haible  <bruno@clisp.org>
102031         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102032         <sysexits.h> file, and only add EX_CONFIG.
102033         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102034         absolute file name and whether it is sufficient. Substitute also
102035         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102036         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102037         ABSOLUTE_SYSEXITS_H into sysexits.h.
102039 2007-03-25  Bruno Haible  <bruno@clisp.org>
102041         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102042         hints is NULL.
102044 2007-03-25  Bruno Haible  <bruno@clisp.org>
102046         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102047         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102049 2007-03-25  Bruno Haible  <bruno@clisp.org>
102051         * lib/vasnprintf.c: Include langinfo.h.
102052         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102053         multithread-safe.
102054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102063         Reported by Simon Josefsson.
102065 2007-03-25  Bruno Haible  <bruno@clisp.org>
102067         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102068         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102069         * modules/vasnprintf (Depends-on): Add stdint.
102071 2007-03-25  Bruno Haible  <bruno@clisp.org>
102073         * modules/fpieee: New file.
102074         * m4/fpieee.m4: New file.
102075         * modules/isnan-nolibm (Depends-on): Add fpieee.
102076         * modules/isnanl-nolibm (Depends-on): Add fpieee.
102077         * modules/isnanl (Depends-on): Add fpieee.
102079 2007-03-25  Bruno Haible  <bruno@clisp.org>
102081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
102083 2007-03-25  Bruno Haible  <bruno@clisp.org>
102085         Avoid test failures on IRIX 6.5.
102086         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
102087         (main): Use it.
102088         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
102089         macros.
102090         (main): Use them.
102092 2007-03-25  Bruno Haible  <bruno@clisp.org>
102094         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
102095         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
102096         exists but doesn't work.
102097         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
102098         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
102099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
102100         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
102101         math.h.
102103 2007-03-25  Bruno Haible  <bruno@clisp.org>
102105         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
102106         returns inf. Needed on IRIX 6.5.
102108 2007-03-25  Bruno Haible  <bruno@clisp.org>
102110         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102111         (main): Use isnanl instead of x != x idiom.
102112         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102114         * tests/test-frexp.c: Include isnan.h.
102115         (main): Use isnan instead of x != x idiom.
102116         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102118 2007-03-25  Bruno Haible  <bruno@clisp.org>
102120         * tests/test-frexp.c (NaN): New function/macro.
102121         (main): Use it instead of 0.0 / 0.0.
102122         * tests/test-isnan.c (NaN): New function/macro.
102123         (main): Use it instead of 0.0 / 0.0.
102124         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102125         (test_function): Use it instead of 0.0 / 0.0.
102126         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102127         (test_function): Use it instead of 0.0 / 0.0.
102128         * tests/test-snprintf-posix.h (NaN): New function/macro.
102129         (test_function): Use it instead of 0.0 / 0.0.
102130         * tests/test-sprintf-posix.h (NaN): New function/macro.
102131         (test_function): Use it instead of 0.0 / 0.0.
102132         * tests/test-fprintf-posix.h (NaN): New function/macro.
102133         (test_function): Use it instead of 0.0 / 0.0.
102134         * tests/test-printf-posix.h (NaN): New function/macro.
102135         (test_function): Use it instead of 0.0 / 0.0.
102137         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102139 2007-03-25  Bruno Haible  <bruno@clisp.org>
102141         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102143 2007-03-25  Bruno Haible  <bruno@clisp.org>
102145         * lib/regexec.c (merge_state_with_log): Make static.
102147 2007-03-25  Bruno Haible  <bruno@clisp.org>
102149         * lib/trigl.c (kernel_rem_pio2): Make static.
102151 2007-03-25  Bruno Haible  <bruno@clisp.org>
102153         * lib/sincosl.c (sincosl_table): Make static.
102155 2007-03-25  Bruno Haible  <bruno@clisp.org>
102157         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102158         if the compiler does not support C99.
102160 2007-03-25  Bruno Haible  <bruno@clisp.org>
102162         * modules/time (Makefile.am): Ensure all rule action lines start with a
102163         tab.
102165 2007-03-24  Bruno Haible  <bruno@clisp.org>
102167         * modules/tsearch-tests: New file.
102168         * tests/test-tsearch.sh: New file.
102169         * tests/test-tsearch.c: New file, mostly copied from glibc.
102171         * modules/search-tests: New file.
102172         * tests/test-search.c: New file.
102174         * modules/search: New file.
102175         * lib/search_.h: New file, incorporating lib/tsearch.h.
102176         * m4/search_h.m4: New file.
102177         * lib/tsearch.h: Remove file.
102178         * lib/tsearch.c: Include search.h instead of tsearch.h.
102179         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102180         HAVE_TSEARCH.
102181         * modules/tsearch (Files): Remove lib/tsearch.h.
102182         (Depends-on): Add search.
102183         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102184         (Include): Change tsearch.h into search.h.
102186 2007-03-24  Bruno Haible  <bruno@clisp.org>
102188         * modules/fpucw: New file.
102189         * lib/fpucw.h: New file.
102190         * lib/frexp.c: Include fpucw.h.
102191         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102192         (FUNC): Use them.
102193         * lib/printf-frexp.c: Include fpucw.h.
102194         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102195         (FUNC): Use them.
102196         * lib/vasnprintf.c: Include fpucw.h.
102197         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102198         'long double' calculations.
102199         * tests/test-frexpl.c: Include fpucw.h.
102200         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102201         * tests/test-printf-frexpl.c: Include fpucw.h.
102202         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102203         * modules/frexpl (Depends-on): Add fpucw.
102204         * modules/printf-frexpl (Depends-on): Likewise.
102205         * modules/fprintf-posix (Depends-on): Likewise.
102206         * modules/snprintf-posix (Depends-on): Likewise.
102207         * modules/sprintf-posix (Depends-on): Likewise.
102208         * modules/vasnprintf-posix (Depends-on): Likewise.
102209         * modules/vasprintf-posix (Depends-on): Likewise.
102210         * modules/vfprintf-posix (Depends-on): Likewise.
102211         * modules/vsnprintf-posix (Depends-on): Likewise.
102212         * modules/vsprintf-posix (Depends-on): Likewise.
102213         * modules/frexpl-tests (Depends-on): Likewise.
102214         * modules/printf-frexpl-tests (Depends-on): Likewise.
102216 2007-03-24  Bruno Haible  <bruno@clisp.org>
102218         * lib/float+.h: New file.
102219         * lib/isnan.c: Include float+.h.
102220         (SIZE): New macro.
102221         (FUNC): Compare only SIZE bytes of the value.
102222         * lib/vasnprintf.c: Include float+.h.
102223         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102224         SIZEOF_LDBL or SIZEOF_DBL bytes.
102225         * modules/isnan-nolibm (Files): Add lib/float+.h.
102226         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102227         * modules/isnanl (Files): Add lib/float+.h.
102228         * modules/vasnprintf (Files): Add lib/float+.h.
102230 2007-03-24  Bruno Haible  <bruno@clisp.org>
102232         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102233         include isnanl-nolibm.h.
102235 2007-03-24  Bruno Haible  <bruno@clisp.org>
102237         * tests/test-read-file.c (main): Don't produce spurious output for
102238         expected situations. Make the test fail if it encountered unexpected
102239         results.
102241 2007-03-24  Bruno Haible  <bruno@clisp.org>
102243         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102244         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102246 2007-03-24  Bruno Haible  <bruno@clisp.org>
102248         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102250 2007-03-24  Bruno Haible  <bruno@clisp.org>
102252         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102253         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102255         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102256         * modules/utf8-ucs4: Turn into a symbolic link to module
102257         unistr/u8-mbtouc.
102259         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102260         utf8-ucs4-unsafe.
102261         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102262         unistr/u8-mbtouc-unsafe.
102264         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102265         * modules/utf16-ucs4: Turn into a symbolic link to module
102266         unistr/u16-mbtouc.
102268         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102269         utf16-ucs4-unsafe.
102270         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102271         unistr/u16-mbtouc-unsafe.
102273         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102274         * modules/ucs4-utf8: Turn into a symbolic link to module
102275         unistr/u8-ubtomb.
102277         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102278         * modules/ucs4-utf16: Turn into a symbolic link to module
102279         unistr/u16-ubtomb.
102281 2007-03-24  Bruno Haible  <bruno@clisp.org>
102283         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102284         Enable the function only if HAVE_INLINE.
102285         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102286         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102287         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102288         Enable the function only if HAVE_INLINE.
102289         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102290         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102291         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102292         Enable the function only if HAVE_INLINE.
102293         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102294         Enable the function only if HAVE_INLINE.
102295         * modules/utf8-ucs4: Update.
102296         * modules/utf8-ucs4-unsafe: Update.
102297         * modules/utf16-ucs4: Update.
102298         * modules/utf16-ucs4-unsafe: Update.
102299         * modules/ucs4-utf8: Update.
102300         * modules/ucs4-utf16: Update.
102302 2007-03-24  Bruno Haible  <bruno@clisp.org>
102304         * lib/utf8-ucs4.h: Remove file.
102305         * lib/utf8-ucs4-unsafe.h: Remove file.
102306         * lib/utf16-ucs4.h: Remove file.
102307         * lib/utf16-ucs4-unsafe.h: Remove file.
102308         * lib/ucs4-utf8.h: Remove file.
102309         * lib/ucs4-utf16.h: Remove file.
102310         * lib/unistr.h: Include their previous contents.
102311         * m4/utf-ucs4.m4: Remove file.
102312         * m4/ucs4-utf.m4: Remove file.
102313         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102314         (Depends-on): Add unistr/base.
102315         (configure.ac): Remove gl_UTF_UCS4.
102316         (Makefile.am): Update.
102317         (Include): Change to unistr.h.
102318         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102319         (Depends-on): Add unistr/base.
102320         (configure.ac): Remove gl_UTF_UCS4.
102321         (Makefile.am): Update.
102322         (Include): Change to unistr.h.
102323         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102324         (Depends-on): Add unistr/base.
102325         (configure.ac): Remove gl_UTF_UCS4.
102326         (Makefile.am): Update.
102327         (Include): Change to unistr.h.
102328         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102329         (Depends-on): Add unistr/base.
102330         (configure.ac): Remove gl_UTF_UCS4.
102331         (Makefile.am): Update.
102332         (Include): Change to unistr.h.
102333         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102334         (Depends-on): Add unistr/base.
102335         (configure.ac): Remove gl_UCS4_UTF.
102336         (Makefile.am): Update.
102337         (Include): Change to unistr.h.
102338         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102339         (Depends-on): Add unistr/base.
102340         (configure.ac): Remove gl_UCS4_UTF.
102341         (Makefile.am): Update.
102342         (Include): Change to unistr.h.
102343         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102344         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102345         utf8-ucs4-unsafe.h.
102346         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102347         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102348         utf16-ucs4-unsafe.h.
102349         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102350         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102351         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102352         * lib/unistr/u8-strchr.c: Likewise.
102353         * lib/unistr/u8-strrchr.c: Likewise.
102354         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102355         * lib/unistr/u16-strchr.c: Likewise.
102356         * lib/unistr/u16-strrchr.c: Likewise.
102357         * lib/striconveh.c: Update.
102358         * lib/linebreak.c: Update.
102360 2007-03-24  Bruno Haible  <bruno@clisp.org>
102362         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102363         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102365 2007-03-22  Bruno Haible  <bruno@clisp.org>
102367         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102369 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102371         * MODULES.html.sh (File system functions): New module write-any-file.
102372         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102373         * m4/write-any-file.m4: New files.
102375 2007-03-23  Eric Blake  <ebb9@byu.net>
102377         * gnulib-tool: Rearrange space-tab sequences, since some editors
102378         like to eat them.
102380 2007-03-23  Eric Blake  <ebb9@byu.net>
102382         * lib/version-etc.c (version_etc_va): Update license wording to
102383         be more concise.  Recommended by Richard Stallman.
102385 2007-03-22  Bruno Haible  <bruno@clisp.org>
102387         * lib/poll.c (MSG_PEEK): New fallback definition.
102389 2007-03-22  Bruno Haible  <bruno@clisp.org>
102391         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102392         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102393         (main): Update.
102394         Fixes a compilation error on BeOS.
102396 2007-03-22  Bruno Haible  <bruno@clisp.org>
102398         * modules/frexpl-tests: New file.
102399         * tests/test-frexpl.c: New file.
102401         * modules/frexpl: New file.
102402         * m4/frexpl.m4: New file.
102403         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102404         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102406         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102407         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102408         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102410 2007-03-22  Bruno Haible  <bruno@clisp.org>
102412         * lib/frexpl.c: Share code with lib/frexp.c.
102413         * modules/mathl (Files): Add lib/frexp.c.
102414         (Depends-on): Add isnanl-nolibm.
102416 2007-03-22  Bruno Haible  <bruno@clisp.org>
102418         * modules/printf-frexp (Files): Add m4/frexp.m4.
102419         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102420         only if the found frexp function actually works.
102422 2007-03-22  Bruno Haible  <bruno@clisp.org>
102424         * lib/frexp.c: Remove older implementation that uses divisions.
102426 2007-03-21  Bruno Haible  <bruno@clisp.org>
102428         * modules/frexp-tests: New file.
102429         * tests/test-frexp.c: New file.
102431         * modules/frexp: New file.
102432         * lib/frexp.c: New file.
102433         * m4/frexp.m4: New file.
102434         * lib/math_.h (frexp): New declaration.
102435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102436         REPLACE_FREXP.
102437         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102439 2007-03-21  Bruno Haible  <bruno@clisp.org>
102441         * modules/isnanl-tests: New file.
102442         * tests/test-isnanl.c: New file.
102444         * modules/isnanl: New file.
102445         * lib/isnanl.h: New file.
102446         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102447         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102448         gl_FUNC_ISNANL_WORKS.
102449         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102450         New macros.
102452 2007-03-21  Bruno Haible  <bruno@clisp.org>
102454         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102455         lib/isnanl.h.
102456         (Include): Update.
102457         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102458         * lib/vasnprintf.c: Update.
102459         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102460         tests/test-isnanl.h, remove tests/test-isnanl.c.
102461         (Makefile.am): Update.
102462         * tests/test-isnanl-nolibm.c: New file.
102463         * tests/test-isnanl.h: New file.
102464         * tests/test-isnanl.c: Remove file.
102466 2007-03-21  Jim Meyering  <jim@meyering.net>
102468         When trying to open ".", treat ESTALE like EACCES.
102469         * lib/savewd.c (savewd_save): Resort to forking not just upon
102470         failure with EACCES, but also when errno is ESTALE.
102472 2007-03-20  Bruno Haible  <bruno@clisp.org>
102474         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102475         Needed on AIX 5.1. Reported by Matthew Woehlke.
102477 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102479         Suggestions by Bruno Haible:
102480         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102481         our own.
102482         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102483         * modules/acl (Depends-on): Add gettext.
102485 2007-03-19  Bruno Haible  <bruno@clisp.org>
102487         * modules/iconvme: Remove file.
102488         * lib/iconvme.h: Remove file.
102489         * lib/iconvme.c: Remove file.
102490         * m4/iconvme.m4: Remove file.
102492 2007-03-19  Bruno Haible  <bruno@clisp.org>
102494         * doc/relocatable-maint.texi: Break long shell script line.
102495         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102497 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102499         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102500         handle file_has_acl.
102501         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102502         * lib/acl.c: Move header inclusions and related macro defns into
102503         lib/acl-internal.h.
102504         (S_ISLNK): Remove defn, since that's now done for us.
102505         (file_has_acl): Move to lib/file-has-acl.c.
102506         Call acl_trivial if available.  This is the crucial part of the fix.
102507         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102508         shared within the library.  Rewrite a bit, partly to make it compatible
102509         with the GNU coding style.
102510         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102511         Remove unnecessary double-quotes.
102512         Don't test for acl_to_text; the build will catch that.
102513         Replace acl_entries if it doesn't exist and it is needed.
102514         Check for -lsec and acl_trivial (as used on Solaris 10).
102515         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102516         lib/file-has-acl.c.
102517         (Depends-on): Add sys_stat, for S_ISLNK.
102519 2007-03-19  Ben Pfaff  <blp@gnu.org>
102521         * doc/gnulib.texi: Fix typos.
102522         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102524 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102526         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102527         If size is zero here, buf must be zero.
102529 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102531         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102532         <bruno@clisp.org>.
102534 2007-03-18  Bruno Haible  <bruno@clisp.org>
102536         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102537         Suggested by Eric Blake.
102539 2007-03-18  Ben Pfaff  <blp@gnu.org>
102541         * doc/relocatable.texi: Recommend using as prefix a directory
102542         that does not exist and will never be created.  Based on
102543         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102544         and others.
102546 2007-03-17  Bruno Haible  <bruno@clisp.org>
102548         * lib/fchownat.c: Include lchown.h.
102550 2007-03-17  Bruno Haible  <bruno@clisp.org>
102552         Fix endless loop when the given allocated size was > INT_MAX.
102553         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102554         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102555         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102556         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102557         * lib/sprintf.c (sprintf): Likewise.
102559 2007-03-17  Bruno Haible  <bruno@clisp.org>
102561         * tests/test-argp-2.sh (func_compare): Output a context diff.
102563 2007-03-17  Bruno Haible  <bruno@clisp.org>
102565         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102566         locale's decimal-point character.
102568 2007-03-17  Bruno Haible  <bruno@clisp.org>
102570         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102571         before comparing it. Needed because on some platforms (e.g. x86) a
102572         'long double' occupies less bytes than sizeof (long double).
102574 2007-03-17  Bruno Haible  <bruno@clisp.org>
102576         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102577         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102578         * tests/test-getaddrinfo.c (simple): Likewise.
102579         * tests/test-read-file.c (main): Likewise.
102581 2007-03-17  Bruno Haible  <bruno@clisp.org>
102583         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102585 2007-03-17  Bruno Haible  <bruno@clisp.org>
102587         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102588         unused variable.
102590 2007-03-17  Bruno Haible  <bruno@clisp.org>
102592         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102593         * tests/test-c-strncasecmp.c: Likewise.
102595 2007-03-17  Bruno Haible  <bruno@clisp.org>
102597         * modules/stdlib (Depends-on): Add unistd.
102598         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102599         Needed for MacOS X 10.3.
102601 2007-03-17  Bruno Haible  <bruno@clisp.org>
102603         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102605 2007-03-17  Bruno Haible  <bruno@clisp.org>
102607         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102609 2007-03-17  Bruno Haible  <bruno@clisp.org>
102611         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102612         to reflect files copied from gnulib (with or without modifications).
102613         Suggested by Jim Meyering.
102615 2007-03-17  Eric Blake  <ebb9@byu.net>
102617         * NEWS: Document stdlib change from 2007-02-18.
102619 2007-03-17  Jim Meyering  <jim@meyering.net>
102621         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102622         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102623         someone uses a name containing shell meta-characters.
102624         Reported by Alfred M. Szmidt.
102626         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102628 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102630         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102631         and copy gettext configuration files only if configure.ac contains
102632         a use of AM_GNU_GETTEXT_VERSION.
102634 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102636         * build-aux/bootstrap (gnulib_name): New variable.
102637         (gnulib_tool_options): Use it.
102639 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102641         * tests/test-des.c: Use new namespace.
102643 2007-03-15  Bruno Haible  <bruno@clisp.org>
102645         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102646         Reported by James Youngman <jay@gnu.org>.
102648 2007-03-15  Bruno Haible  <bruno@clisp.org>
102650         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102651         declared prototype. Needed with cc on OSF/1 5.1.
102653 2007-03-15  Bruno Haible  <bruno@clisp.org>
102655         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102656         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102657         (struct gl_list_implementation): Add dispose_fn argument to the
102658         'create_empty', 'create' methods.
102659         (struct gl_list_impl_base): Add field 'dispose_fn'.
102660         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102661         argument.
102662         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102663         dispose_fn argument.
102664         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102665         dispose_fn on the dropped values.
102666         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102667         dispose_fn argument.
102668         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102669         dropped values.
102670         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102671         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102672         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102673         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102674         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102675         argument.
102676         (gl_tree_list_free): Call dispose_fn on the dropped values.
102677         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102678         the dropped values.
102679         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102680         Add dispose_fn argument.
102681         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102682         Call dispose_fn on the dropped values.
102683         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102684         Add dispose_fn argument.
102685         (gl_sublist_create): Initialize the 'dispose_fn' field.
102686         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102687         * tests/test-array_list.c (main): Update.
102688         * tests/test-carray_list.c (main): Update.
102689         * tests/test-avltree_list.c (main): Update.
102690         * tests/test-rbtree_list.c (main): Update.
102691         * tests/test-avltreehash_list.c (main): Update.
102692         * tests/test-rbtreehash_list.c (main): Update.
102693         * tests/test-linked_list.c (main): Update.
102694         * tests/test-linkedhash_list.c (main): Update.
102695         * tests/test-array_oset.c (main): Update.
102697 2007-03-15  Bruno Haible  <bruno@clisp.org>
102699         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102700         (gl_oset_create_empty): Add dispose_fn argument.
102701         (struct gl_oset_implementation): Add dispose_fn argument to
102702         'create_empty' method.
102703         (struct gl_oset_impl_base): Add dispose_fn field.
102704         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102705         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102706         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102707         values.
102708         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102709         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102710         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102711         dropped value.
102712         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102713         dropped value.
102714         * tests/test-array_oset.c (main): Update.
102715         * tests/test-avltree_oset.c (main): Update.
102716         * tests/test-rbtree_oset.c (main): Update.
102717         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102719 2007-03-13  Bruno Haible  <bruno@clisp.org>
102721         * tests/test-stdbool.c (i): Update after last patch.
102723 2007-03-12  Bruno Haible  <bruno@clisp.org>
102725         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102726         the iswprint macro. Needed on Solaris 2.5.1.
102728 2007-03-12  Bruno Haible  <bruno@clisp.org>
102730         * tests/test-printf-frexp.c (main): Declare x as volatile.
102732 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102734         * doc/gnulib.texi (Build robot for gnulib): New section.
102736 2007-03-12  Jim Meyering  <jim@meyering.net>
102738         * build-aux/bootstrap: New file.
102739         * build-aux/bootstrap.conf: New file, from coreutils.
102741 2007-03-11  Bruno Haible  <bruno@clisp.org>
102743         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102745 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102747         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102748         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102749         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102751 2007-03-11  Bruno Haible  <bruno@clisp.org>
102753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102754         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102756 2007-03-11  Bruno Haible  <bruno@clisp.org>
102758         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102759         formula. Needed for SunPRO C 5.0.
102761 2007-03-11  Bruno Haible  <bruno@clisp.org>
102763         * modules/long-options (Depends-on): Add getopt.
102765 2007-03-11  Bruno Haible  <bruno@clisp.org>
102767         * modules/modechange (Depends-on): Add stdbool.
102769 2007-03-11  Bruno Haible  <bruno@clisp.org>
102771         * modules/i-ring (Depends-on): Add stdbool.
102773 2007-03-11  Bruno Haible  <bruno@clisp.org>
102775         * modules/gc-des (Depends-on): Add stdbool.
102777 2007-03-11  Bruno Haible  <bruno@clisp.org>
102779         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102781 2007-03-11  Bruno Haible  <bruno@clisp.org>
102783         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102785 2007-03-11  Bruno Haible  <bruno@clisp.org>
102787         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102789 2007-03-11  Bruno Haible  <bruno@clisp.org>
102791         * lib/vasnprintf.c (sprintf): Undefine.
102793 2007-03-11  Bruno Haible  <bruno@clisp.org>
102795         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102796         initializers in SunPRO C and Compaq C compilers.
102798 2007-03-11  Bruno Haible  <bruno@clisp.org>
102800         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102801         decrementing code ANSI C compliant.
102803 2007-03-11  Bruno Haible  <bruno@clisp.org>
102805         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102806         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102808 2007-03-11  Bruno Haible  <bruno@clisp.org>
102810         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102811         <stdbool.h> substitute doesn't pass.
102813 2007-03-11  Bruno Haible  <bruno@clisp.org>
102815         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102817 2007-03-11  Bruno Haible  <bruno@clisp.org>
102819         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102820         script, for submission to autobuild.josefsson.org.
102822 2007-03-10  Bruno Haible  <bruno@clisp.org>
102824         * modules/canonicalize-lgpl-tests: New file.
102825         * tests/test-canonicalize-lgpl.sh: New file.
102826         * tests/test-canonicalize-lgpl.c: New file.
102828         * modules/c-strcase-tests: New file.
102829         * tests/test-c-strcase.sh: New file.
102830         * tests/test-c-strcasecmp.c: New file.
102831         * tests/test-c-strncasecmp.c: New file.
102833         * modules/atexit-tests: New file.
102834         * tests/test-atexit.sh: New file.
102835         * tests/test-atexit.c: New file.
102837 2007-03-10  Bruno Haible  <bruno@clisp.org>
102839         * tests/test-binary-io.sh: Use temporary filenames that are not so
102840         likely to clash with those of other tests (in a parallel make).
102841         * tests/test-binary-io.c: Likewise.
102843 2007-03-10  Bruno Haible  <bruno@clisp.org>
102845         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102846         fallback; use #error instead.
102847         Suggested by Simon Josefsson.
102849 2007-03-10  Bruno Haible  <bruno@clisp.org>
102851         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102852         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102853         first and the last.
102855 2007-03-10  Bruno Haible  <bruno@clisp.org>
102857         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102859 2007-03-10  Bruno Haible  <bruno@clisp.org>
102861         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102862         "make distcheck".
102863         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102864         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102865         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102867 2007-03-10  Bruno Haible  <bruno@clisp.org>
102869         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102870         variable.
102871         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102872         variable.
102874 2007-03-09  Eric Blake  <ebb9@byu.net>
102875         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102877         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102878         types are not being provided by gnulib.
102879         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102880         types are supported.
102882 2007-03-10  Bruno Haible  <bruno@clisp.org>
102884         * lib/stdio_.h (__attribute__): New macro.
102885         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102886         vsprintf): Specify __attribute__ __format__ for GCC.
102887         Suggested by Eric Blake.
102889 2007-03-09  Bruno Haible  <bruno@clisp.org>
102891         * modules/printf-posix-tests: New file.
102892         * tests/test-printf-posix.sh: New file.
102893         * tests/test-printf-posix.c: New file.
102895         * modules/printf-posix: New file.
102896         * lib/printf.c: New file.
102897         * m4/printf-posix-rpl.m4: New file.
102898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102899         REPLACE_PRINTF.
102900         * lib/stdio_.h (printf): New declaration.
102901         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102902         ____strfmon____): New macros.
102903         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102904         REPLACE_PRINTF.
102906 2007-03-09  Bruno Haible  <bruno@clisp.org>
102908         * tests/test-vasnprintf-posix2.sh: New file.
102909         * tests/test-vasnprintf-posix2.c: New file.
102910         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102911         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102912         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102914         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102915         a locale dependent decimal point, rather than always '.'.
102917 2007-03-09  Eric Blake  <ebb9@byu.net>
102919         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102920         spite of platforms like Tandem/NSK that define it to -1.
102922 2007-03-08  Bruno Haible  <bruno@clisp.org>
102924         * modules/vprintf-posix-tests: New file.
102925         * tests/test-vprintf-posix.sh: New file.
102926         * tests/test-vprintf-posix.c: New file.
102927         * tests/test-printf-posix.h: New file.
102929         * modules/vprintf-posix: New file.
102930         * lib/vprintf.c: New file.
102931         * m4/vprintf-posix.m4: New file.
102932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102933         REPLACE_VPRINTF.
102934         * lib/stdio_.h (vprintf): New declaration.
102935         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102936         REPLACE_VPRINTF.
102938 2007-03-08  Bruno Haible  <bruno@clisp.org>
102940         * modules/fprintf-posix-tests: New file.
102941         * tests/test-fprintf-posix.sh: New file.
102942         * tests/test-fprintf-posix.c: New file.
102944         * modules/fprintf-posix: New file.
102945         * lib/fprintf.c: New file.
102946         * m4/fprintf-posix.m4: New file.
102947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102948         REPLACE_FPRINTF.
102949         * lib/stdio_.h (fprintf): New declaration.
102950         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102951         REPLACE_FPRINTF.
102953 2007-03-08  Bruno Haible  <bruno@clisp.org>
102955         * modules/vfprintf-posix-tests: New file.
102956         * tests/test-vfprintf-posix.sh: New file.
102957         * tests/test-vfprintf-posix.c: New file.
102958         * tests/test-fprintf-posix.h: New file.
102959         * tests/test-fprintf-posix.out: New file.
102961         * modules/vfprintf-posix: New file.
102962         * lib/vfprintf.c: New file.
102963         * m4/vfprintf-posix.m4: New file.
102964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102965         REPLACE_VFPRINTF.
102966         * lib/stdio_.h (vfprintf): New declaration.
102967         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
102968         REPLACE_VFPRINTF.
102970 2007-03-08  Bruno Haible  <bruno@clisp.org>
102972         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
102974 2007-03-08  Bruno Haible  <bruno@clisp.org>
102976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
102977         instead of 'expr' invocations.
102978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102980         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102983         Suggested by Paul Eggert.
102985 2007-03-08  Bruno Haible  <bruno@clisp.org>
102987         * modules/fseterr-tests: New file.
102988         * tests/test-fseterr.c: New file.
102990         * modules/fseterr: New file.
102991         * lib/fseterr.h: New file.
102992         * lib/fseterr.c: New file.
102994 2007-03-08  Bruno Haible  <bruno@clisp.org>
102996         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
102997         * lib/getopt_.h: Likewise.
102998         * lib/mbswidth.h: Likewise.
102999         * lib/setenv.h: Likewise.
103000         * lib/vasnprintf.h: Likewise.
103001         * lib/vasprintf.h: Likewise.
103002         * lib/verror.h: Likewise.
103003         * lib/xsetenv.h: Likewise.
103004         * lib/xvasprintf.h: Likewise.
103006 2007-03-08  Jim Meyering  <jim@meyering.net>
103008         * users.txt: Add parted.
103010         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103012 2007-03-07  Bruno Haible  <bruno@clisp.org>
103014         * m4/printf.m4: Make the shell script snippets copy&pastable.
103016 2007-03-02  Bruno Haible  <bruno@clisp.org>
103018         * lib/netinet_in_.h: New file.
103019         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103020         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103021         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103022         (Depends-on): Add absolute-header.
103023         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103024         into netinet/in.h.
103026 2007-03-03  Bruno Haible  <bruno@clisp.org>
103028         * lib/sys_select_.h: New file.
103029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103030         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103031         * modules/sys_select (Files): Add lib/sys_select_.h.
103032         (Depends-on): Add absolute-header.
103033         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103034         into sys/select.h.
103036 2007-03-02  Bruno Haible  <bruno@clisp.org>
103038         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103039         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103040         values.
103041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103042         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103043         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103044         * modules/sys_socket (Depends-on): Add absolute-header.
103045         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103046         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103047         (Include): Remove requirement of inclusion of <sys/types.h>.
103049 2007-03-02  Bruno Haible  <bruno@clisp.org>
103051         * lib/byteswap_.h (bswap_32): Fix formula.
103053 2007-03-06  Bruno Haible  <bruno@clisp.org>
103055         * modules/sprintf-posix-tests: New file.
103056         * tests/test-sprintf-posix.c: New file.
103058         * modules/sprintf-posix: New file.
103059         * lib/sprintf.c: New file.
103060         * m4/sprintf-posix.m4: New file.
103061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103062         REPLACE_SPRINTF.
103063         * lib/stdio_.h (sprintf): New declaration.
103064         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103065         REPLACE_SPRINTF.
103067 2007-03-06  Bruno Haible  <bruno@clisp.org>
103069         * modules/vsprintf-posix-tests: New file.
103070         * tests/test-vsprintf-posix.c: New file.
103071         * tests/test-sprintf-posix.h: New file.
103073         * modules/vsprintf-posix: New file.
103074         * lib/vsprintf.c: New file.
103075         * m4/vsprintf-posix.m4: New file.
103076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
103077         REPLACE_VSPRINTF.
103078         * lib/stdio_.h (vsprintf): New declaration.
103079         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
103080         REPLACE_VSPRINTF.
103082 2007-03-06  Bruno Haible  <bruno@clisp.org>
103084         * modules/vsnprintf (Depend-on): Remove minmax.
103086 2007-03-06  Bruno Haible  <bruno@clisp.org>
103088         * modules/snprintf-posix-tests: New file.
103089         * tests/test-snprintf-posix.c: New file.
103091         * modules/snprintf-posix: New file.
103092         * m4/snprintf-posix.m4: New file.
103093         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
103094         gl_FUNC_SNPRINTF.
103095         (gl_FUNC_SNPRINTF): Invoke it.
103096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
103097         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
103098         is set.
103099         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
103101 2007-03-06  Bruno Haible  <bruno@clisp.org>
103103         * modules/vsnprintf-posix-tests: New file.
103104         * tests/test-vsnprintf-posix.c: New file.
103105         * tests/test-snprintf-posix.h: New file.
103107         * modules/vsnprintf-posix: New file.
103108         * m4/vsnprintf-posix.m4: New file.
103109         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103110         gl_FUNC_VSNPRINTF.
103111         (gl_FUNC_VSNPRINTF): Invoke it.
103112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103113         * lib/stdio_.h (vsnprintf): Define as a replacement if
103114         REPLACE_VSNPRINTF is set.
103115         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103117 2007-03-06  Bruno Haible  <bruno@clisp.org>
103119         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103122 2007-03-06  Bruno Haible  <bruno@clisp.org>
103124         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103125         (asinl): Declare also if HAVE_DECL_ASINL is set.
103126         (atanl): Declare also if HAVE_DECL_ATANL is set.
103127         (ceill): Declare also if HAVE_DECL_CEILL is set.
103128         (cosl): Declare also if HAVE_DECL_COSL is set.
103129         (expl): Declare also if HAVE_DECL_EXPL is set.
103130         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103131         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103132         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103133         (logl): Declare also if HAVE_DECL_LOGL is set.
103134         (sinl): Declare also if HAVE_DECL_SINL is set.
103135         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103136         (tanl): Declare also if HAVE_DECL_TANL is set.
103137         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103139         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103140         declaration of frexpl, ldexpl.
103141         * modules/printf-frexpl (Depends-on): Add math.
103142         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103144 2007-03-05  Bruno Haible  <bruno@clisp.org>
103146         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103147         frexpl and ldexpl are declared.
103148         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103150 2007-03-05  Bruno Haible  <bruno@clisp.org>
103152         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103153         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103155 2007-03-05  Bruno Haible  <bruno@clisp.org>
103157         * lib/stdio_.h: Include <stddef.h>.
103159 2007-03-05  Bruno Haible  <bruno@clisp.org>
103161         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103163 2007-03-05  Bruno Haible  <bruno@clisp.org>
103165         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103166         NetBSD 4, from Ralf Wildenhues.
103168 2007-03-04  Bruno Haible  <bruno@clisp.org>
103170         * lib/vasprintf.h: Update #if logic for the case when the functions
103171         exist but are overridden.
103173 2007-03-04  Bruno Haible  <bruno@clisp.org>
103175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103176         implementations: glibc-2.4 and MacOS X 10.3.
103177         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103178         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103179         * tests/test-vasprintf-posix.c (test_function): Likewise.
103181 2007-03-04  Bruno Haible  <bruno@clisp.org>
103183         * modules/vasprintf-posix-tests: New file.
103184         * tests/test-vasprintf-posix.c: New file.
103186         * modules/vasprintf-posix: New file.
103187         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103188         defined.
103189         * m4/vasprintf-posix.m4: New file.
103190         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103191         gl_FUNC_VASPRINTF.
103192         (gl_FUNC_VASPRINTF): Invoke it.
103193         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103194         here.
103195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103197 2007-03-04  Bruno Haible  <bruno@clisp.org>
103199         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103200         REPLACE_GETTIMEOFDAY.
103201         * modules/sys_time (Makefile.am): Likewise.
103202         * m4/sys_time_h.m4: Likewise.
103203         * m4/gettimeofday.m4: Likewise.
103205 2007-03-04  Bruno Haible  <bruno@clisp.org>
103207         * modules/vasnprintf-posix-tests: New file.
103208         * tests/test-vasnprintf-posix.c: New file.
103210         * modules/vasnprintf-posix: New file.
103211         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103212         printf-frexpl.h.
103213         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103214         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103215         REPLACE_VASNPRINTF is defined.
103216         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103217         gl_FUNC_VASNPRINTF.
103218         (gl_FUNC_VASNPRINTF): Invoke it.
103219         * m4/vasnprintf-posix.m4: New file.
103220         * m4/printf.m4: New file.
103222 2007-03-04  Bruno Haible  <bruno@clisp.org>
103224         Compile progreloc.c only if --enable-relocatable is specified.
103225         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103226         if --enable-relocatable was specified.
103227         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103228         lib_SOURCES.
103230 2007-03-04  Jim Meyering  <jim@meyering.net>
103232         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103233         Use it consistently, rather than enumerating errno constants.
103235 2007-03-04  Bruno Haible  <bruno@clisp.org>
103237         * modules/xvasprintf-tests: New file.
103238         * tests/test-xvasprintf.c: New file.
103240         * modules/vasprintf-tests: New file.
103241         * tests/test-vasprintf.c: New file.
103243         * modules/vasnprintf-tests: New file.
103244         * tests/test-vasnprintf.c: New file.
103246         * modules/vsnprintf-tests: New file.
103247         * tests/test-vsnprintf.c: New file.
103249         * modules/snprintf-tests: New file.
103250         * tests/test-snprintf.c: New file.
103252 2007-03-04  Bruno Haible  <bruno@clisp.org>
103254         Compile relocatable.c only if --enable-relocatable is specified.
103255         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103256         gl_RELOCATABLE_LIBRARY.
103257         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103258         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103259         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103260         gl_RELOCATABLE_LIBRARY.
103261         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103262         (Makefile.am): Remove lib_SOURCES.
103263         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103264         gl_RELOCATABLE_LIBRARY.
103265         (Makefile.am): Remove lib_SOURCES.
103266         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103267         always.
103268         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103269         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103271 2007-03-04  Bruno Haible  <bruno@clisp.org>
103273         * modules/argmatch-tests: New file.
103274         * tests/test-argmatch.c: New file.
103276         * tests/test-allocsa.c (main): Halve the number of loop runs.
103278         * modules/alloca-opt-tests: New file.
103279         * tests/test-alloca-opt.c: New file.
103281 2007-03-04  Jim Meyering  <jim@meyering.net>
103283         Work around difference between Linux ACLs and Solaris 10 ZFS.
103284         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103285         for EINVAL.
103287 2007-03-03  Bruno Haible  <bruno@clisp.org>
103289         * modules/relocatable-prog (Depends-on): Add back progreloc's
103290         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103292 2007-03-03  Bruno Haible  <bruno@clisp.org>
103294         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103295         * modules/relocatable-lib: New file.
103297 2007-03-03  Bruno Haible  <bruno@clisp.org>
103299         * modules/relocatable-prog: Renamed from modules/relocatable.
103300         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103302 2007-03-03  Bruno Haible  <bruno@clisp.org>
103304         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103305         m4/relocatable-lib.m4.
103306         (Depends-on): Remove 'relocatable'.
103307         (configure.ac): Add gl_RELOCATABLE_NOP.
103309 2007-03-03  Bruno Haible  <bruno@clisp.org>
103311         * modules/relocatable-prog-wrapper: New file.
103312         * modules/relocatable (Depends-on): Add it. Remove all other
103313         dependencies except progname.
103314         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103316         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103317         (gl_FUNC_STRERROR): Nop.
103318         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103320         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103321         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103323         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103324         (gl_FUNC_READLINK): Update.
103326         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103328 2007-03-03  Bruno Haible  <bruno@clisp.org>
103330         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103331         * modules/xreadlink (Depends-on): Add unistd.
103332         * modules/xreadlink-with-size (Depends-on): Likewise.
103334 2007-03-03  Bruno Haible  <bruno@clisp.org>
103336         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103337         extracted from gt_FUNC_SETENV.
103338         (gt_FUNC_SETENV): Remove macro.
103339         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103340         remove gt_FUNC_SETENV.
103342 2007-03-03  Bruno Haible  <bruno@clisp.org>
103344         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103345         ENABLE_RELOCATABLE here.
103346         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103348 2007-03-03  Bruno Haible  <bruno@clisp.org>
103350         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103351         * tests/test-rbtreehash_list.c: Include progname.h.
103352         (main): Call set_program_name.
103354         * modules/rbtree-oset-tests (Depends-on): Add progname.
103355         * tests/test-rbtree_oset.c: Include progname.h.
103356         (main): Call set_program_name.
103358         * modules/rbtree-list-tests (Depends-on): Add progname.
103359         * tests/test-rbtree_list.c: Include progname.h.
103360         (main): Call set_program_name.
103362         * modules/linked-list-tests (Depends-on): Add progname.
103363         * tests/test-linked_list.c: Include progname.h.
103364         (main): Call set_program_name.
103366 2007-03-03  Bruno Haible  <bruno@clisp.org>
103368         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103369         All uses of __restrict changed to _Restrict_.
103370         * lib/glob_.h (__restrict): Remove macro.
103372 2007-03-02  Bruno Haible  <bruno@clisp.org>
103374         * modules/gettext (configure.ac): Require gettext infrastructure
103375         from version 0.16.1.
103377 2007-03-02  Bruno Haible  <bruno@clisp.org>
103379         * modules/linkedhash-list-tests (Depends-on): Add progname.
103380         * tests/test-linkedhash_list.c: Include progname.h.
103381         (main): Call set_program_name.
103383         * modules/carray-list-tests (Depends-on): Add progname.
103384         * tests/test-carray_list.c: Include progname.h.
103385         (main): Call set_program_name.
103387         * modules/avltreehash-list-tests (Depends-on): Add progname.
103388         * tests/test-avltreehash_list.c: Include progname.h.
103389         (main): Call set_program_name.
103391         * modules/avltree-oset-tests (Depends-on): Add progname.
103392         * tests/test-avltree_oset.c: Include progname.h.
103393         (main): Call set_program_name.
103395         * modules/avltree-list-tests (Depends-on): Add progname.
103396         * tests/test-avltree_list.c: Include progname.h.
103397         (main): Call set_program_name.
103399         * modules/array-oset-tests (Depends-on): Add progname.
103400         * tests/test-array_oset.c: Include progname.h.
103401         (main): Call set_program_name.
103403         * modules/array-list-tests (Depends-on): Add progname.
103404         * tests/test-array_list.c: Include progname.h.
103405         (main): Call set_program_name.
103407         * modules/argp-tests (Depends-on): Add progname.
103408         * tests/test-argp.c: Include argp.h first. Include progname.h.
103409         (main): Call set_program_name.
103411 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103413         * doc/gnulib-tool.texi (Initial import): Reword description of
103414         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103415         limited effect even if defined after the first system include.
103417 2007-03-01  Bruno Haible  <bruno@clisp.org>
103419         * build-aux/config.libpath: Update to libtool-1.5.22.
103420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103422 2007-03-01  Bruno Haible  <bruno@clisp.org>
103424         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103425         foo_CFLAGS.
103426         Reported by Ralf Wildenhues.
103428 2007-03-01  Bruno Haible  <bruno@clisp.org>
103430         * build-aux/install-reloc: Remove object files left over by some
103431         compilers.
103432         Reported by Ralf Wildenhues.
103434 2007-03-01  Bruno Haible  <bruno@clisp.org>
103436         * build-aux/install-reloc: Break long lines.
103438 2007-03-01  Bruno Haible  <bruno@clisp.org>
103440         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103441         Reported by Ralf Wildenhues.
103443 2007-03-01  Bruno Haible  <bruno@clisp.org>
103445         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103446         include ordering constraints.
103448 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103450         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103451         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103452         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103453         as another example.
103454         * lib/time_.h: Fix misspelling.
103455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103456         Require gl_HEADER_TIME_H_DEFAULTS.
103457         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103458         * m4/time_r.m4 (gl_TIME_R): Likewise.
103459         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103461 2007-03-01  Bruno Haible  <bruno@clisp.org>
103463         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103464         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103466 2007-03-01  Jim Meyering  <jim@meyering.net>
103468         * modules/xreadlink (Maintainer): Add my name.
103469         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103471 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103472             Bruno Haible  <bruno@clisp.org>
103474         * build-aux/install-reloc: Compile also c-ctype.c.
103475         * build-aux/relocatable.sh.in: New file.
103476         * doc/relocatable.texi: New file.
103477         * doc/relocatable-maint.texi: New file.
103478         * doc/gnulib.texi: Include relocatable-maint.texi.
103479         * lib/progreloc.c: Include unistd.h unconditionally.
103480         * lib/relocwrapper.c: Include unistd.h unconditionally.
103481         Include c-ctype.h.
103482         (add_dotbin): Use c_tolower.
103483         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103484         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103485         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103486         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103487         to m4/relocatable-lib.m4.
103488         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103489         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103490         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103491         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103492         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103493         * modules/relocatable: New file.
103494         * modules/relocatable-lib: New file.
103495         * modules/relocatable-script: New file.
103497 2007-02-28  Bruno Haible  <bruno@clisp.org>
103499         Import --enable-relocatable infrastructure.
103500         * build-aux/config.libpath: New file, from GNU gettext.
103501         * build-aux/install-reloc: New file, from GNU gettext.
103502         * build-aux/reloc-ldflags: New file, from GNU gettext.
103503         * lib/relocatable.h: New file, from GNU gettext.
103504         * lib/relocatable.c: New file, from GNU gettext.
103505         * lib/relocwrapper.c: New file, from GNU gettext.
103506         * m4/relocatable.m4: New file, from GNU gettext.
103508 2007-02-28  Bruno Haible  <bruno@clisp.org>
103510         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103512         * modules/xreadlink: New file, from GNU gettext with modifications.
103513         * lib/xreadlink.c: New file, from GNU gettext.
103514         * lib/xreadlink.h: Add comments.
103515         (xreadlink): New declaration.
103517         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103518         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103519         lib/xreadlink-with-size.c.
103520         (configure.ac): Remove gl_XREADLINK invocation.
103521         (Makefile.am): Augment lib_SOURCES.
103522         * m4/xreadlink.m4: Remove file.
103523         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103524         (xreadlink_with_size): Renamed from xreadink.
103525         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103526         * modules/canonicalize (Depends-on): Replace xreadlink with
103527         xreadlink-with-size.
103528         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103530 2007-02-25  Jim Meyering  <jim@meyering.net>
103532         * build-aux/announce-gen: When complaining about excess arguments,
103533         list them.
103535 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103537         * README: Document signed integer overflow situation more
103538         accurately.
103540 2007-02-25  Bruno Haible  <bruno@clisp.org>
103542         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103543         'a' or 'A' conversion.
103545 2007-02-25  Bruno Haible  <bruno@clisp.org>
103547         * modules/filename: Renamed from modules/pathname.
103548         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103549         lib/concatpath.c with lib/concat-filename.c.
103550         (Makefile.am): Update.
103551         (Include): Replace pathname.h with filename.h.
103552         * lib/filename.h: Renamed from lib/pathname.h.
103553         (concatenated_filename): Renamed from concatenated_pathname.
103554         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103555         (concatenated_filename): Renamed from concatenated_pathname.
103556         * lib/findprog.c: Include filename.h instead of pathname.h.
103557         (find_in_path): Update.
103558         * lib/javacomp.c: Include filename.h instead of pathname.h.
103559         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103560         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103561         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103562         is_oldgcj_14_13_usable, is_javac_usable): Update.
103563         * lib/javaexec.c: Include filename.h instead of pathname.h.
103564         (execute_java_class): Update.
103565         * modules/findprog: Update.
103566         * modules/javacomp: Update.
103567         * modules/javaexec: Update.
103568         * MODULES.html.sh (File system functions): Add 'filename', remove
103569         'pathname'.
103571 2007-02-25  Bruno Haible  <bruno@clisp.org>
103573         * modules/printf-frexpl-tests: New file.
103574         * tests/test-printf-frexpl.c: New file.
103576         * modules/printf-frexpl: New file.
103577         * lib/printf-frexpl.h: New file.
103578         * lib/printf-frexpl.c: New file.
103579         * m4/printf-frexpl.m4: New file.
103581 2007-02-25  Bruno Haible  <bruno@clisp.org>
103583         * modules/printf-frexp-tests: New file.
103584         * tests/test-printf-frexp.c: New file.
103586         * modules/printf-frexp: New file.
103587         * lib/printf-frexp.h: New file.
103588         * lib/printf-frexp.c: New file.
103589         * m4/printf-frexp.m4: New file.
103591 2007-02-25  Bruno Haible  <bruno@clisp.org>
103593         Assume automake >= 1.10 for the tests.
103594         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103595         * modules/arctwo-tests: Likewise.
103596         * modules/argp-tests: Likewise.
103597         * modules/avltree-list-tests: Likewise.
103598         * modules/avltree-oset-tests: Likewise.
103599         * modules/avltreehash-list-tests: Likewise.
103600         * modules/carray-list-tests: Likewise.
103601         * modules/crc-tests: Likewise.
103602         * modules/des-tests: Likewise.
103603         * modules/gc-arcfour-tests: Likewise.
103604         * modules/gc-arctwo-tests: Likewise.
103605         * modules/gc-des-tests: Likewise.
103606         * modules/gc-hmac-md5-tests: Likewise.
103607         * modules/gc-hmac-sha1-tests: Likewise.
103608         * modules/gc-md2-tests: Likewise.
103609         * modules/gc-md4-tests: Likewise.
103610         * modules/gc-md5-tests: Likewise.
103611         * modules/gc-pbkdf2-sha1-tests: Likewise.
103612         * modules/gc-rijndael-tests: Likewise.
103613         * modules/gc-sha1-tests: Likewise.
103614         * modules/gc-tests: Likewise.
103615         * modules/getaddrinfo-tests: Likewise.
103616         * modules/hmac-md5-tests: Likewise.
103617         * modules/hmac-sha1-tests: Likewise.
103618         * modules/linked-list-tests: Likewise.
103619         * modules/linkedhash-list-tests: Likewise.
103620         * modules/lock-tests: Likewise.
103621         * modules/md2-tests: Likewise.
103622         * modules/md4-tests: Likewise.
103623         * modules/md5-tests: Likewise.
103624         * modules/rbtree-list-tests: Likewise.
103625         * modules/rbtree-oset-tests: Likewise.
103626         * modules/rbtreehash-list-tests: Likewise.
103627         * modules/read-file-tests: Likewise.
103628         * modules/rijndael-tests: Likewise.
103629         * modules/stdint-tests: Likewise.
103630         * modules/tls-tests: Likewise.
103632 2007-02-24  Bruno Haible  <bruno@clisp.org>
103634         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103635         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103636         function; instead check whether isnan with a double argument links.
103637         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103638         function; instead check whether isnan with a 'long double' argument
103639         links.
103640         Reported by Eric Blake <ebb9@byu.net>.
103642 2007-02-24  Bruno Haible  <bruno@clisp.org>
103644         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103645         defined.
103646         * lib/isnanl.c: Remove all code. Just include isnan.c.
103647         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103649 2007-02-25  Jim Meyering  <jim@meyering.net>
103651         Avoid conflicting types for 'unsetenv' on FreeBSD.
103652         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103653         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103654         in stdlib.h.
103656 2007-02-24  Bruno Haible  <bruno@clisp.org>
103658         * modules/isnanl-nolibm-tests: New file.
103659         * tests/test-isnanl.c: New file.
103661         * modules/isnanl-nolibm: New file.
103662         * lib/isnanl.h: New file.
103663         * lib/isnanl.c: New file.
103664         * m4/isnanl.m4: New file.
103666 2007-02-24  Bruno Haible  <bruno@clisp.org>
103668         * modules/isnan-nolibm-tests: New file.
103669         * tests/test-isnan.c: New file.
103671         * modules/isnan-nolibm: New file.
103672         * lib/isnan.h: New file.
103673         * lib/isnan.c: New file.
103674         * m4/isnan.m4: New file.
103676 2007-02-24  Bruno Haible  <bruno@clisp.org>
103678         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103679         assume that an exponent fits in 20 bits.
103681 2007-02-24  Jim Meyering  <jim@meyering.net>
103683         * m4/regex.m4: Update the description of the configure-time option,
103684         --without-included-regex, to state accurately what the defaults are,
103685         and perhaps to give people an idea why using this option is risky.
103687 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103690         loops on small arguments.  This attempts to avoid the problem
103691         Bruno Haible reported for AIX 4.3.2 in
103692         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103694 2007-02-23  Bruno Haible  <bruno@clisp.org>
103696         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103697         Needed for help2man.
103699 2007-02-23  Karl Berry  <karl@gnu.org>
103701         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103702         exists, foo.h should be cvs-ignored, not committed.
103704 2007-02-23  Eric Blake  <ebb9@byu.net>
103706         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103707         * lib/stat-time.h (includes): Likewise.
103708         * lib/utimecmp.c (includes): Likewise.
103709         * lib/utimens.h (includes): Likewise.
103710         * lib/getdate.y (includes): Also include "timespec.h" for use
103711         internal to the module.
103712         * modules/utimens (Depends-on): Revert yesterday's patch.
103713         * modules/nanosleep (Depends-on): Add missing dependency.
103715 2007-02-22  Bruno Haible  <bruno@clisp.org>
103717         * lib/glob.c: Don't include getlogin_r.h.
103719 2007-02-22  Jim Meyering  <jim@meyering.net>
103721         * modules/utimens (Depends-on): Add timespec, required for
103722         utimens.h's inclusion of timespec.h.
103724 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103726         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103727         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103728         Schwab in
103729         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103730         I'll try to think of a better way to fix the Solaris problem.
103732         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103733         like glibc; on Solaris 10, it fails with errno == EINVAL.
103734         POSIX says the behavior is unspecified if the first argument is NULL,
103735         so play it safe and never pass NULL to the system getcwd.
103737 2007-02-21  Jim Meyering  <jim@meyering.net>
103739         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103740         of gettimeofday.  It would conflict with the one now always
103741         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103742         an IRIX 6.5 build failure.
103744 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103746         Minor fixups to port to Solaris 10 with Sun C 5.8.
103747         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103748         * modules/getcwd (Depends-on): Add dirfd.
103749         * lib/putenv.c (putenv): #undef it.
103750         (rpl_putenv): New decl.
103751         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103753 2007-02-20  Bruno Haible  <bruno@clisp.org>
103755         * modules/stdio-tests: New file.
103756         * tests/test-stdio.c: New file.
103758         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103759         (Depends-on): Add stdio.
103760         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103761         (Include): Use <stdio.h> instead of vsnprintf.h.
103762         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103763         HAVE_DECL_VSNPRINTF.
103764         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103766         * modules/snprintf (Files): Remove lib/snprintf.h.
103767         (Depends-on): Add stdio.
103768         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103769         (Include): Use <stdio.h> instead of snprintf.h.
103770         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103771         HAVE_DECL_SNPRINTF.
103772         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103773         * lib/getaddrinfo.c: Likewise.
103775         * modules/stdio: New file.
103776         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103777         * lib/snprintf.h: Remove file.
103778         * lib/vsnprintf.h: Remove file.
103779         * lib/.cppi-disable: Remove snprintf.h.
103780         * m4/stdio_h.m4: New file.
103781         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103783 2007-02-20  Jim Meyering  <jim@meyering.net>
103785         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103786         used by e.g., mingw.  From Bruno Haible.
103788 2007-02-19  Bruno Haible  <bruno@clisp.org>
103790         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103791         warnings.
103792         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103794 2007-02-19  Bruno Haible  <bruno@clisp.org>
103796         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103797         from mingw users.
103799 2007-02-19  Bruno Haible  <bruno@clisp.org>
103801         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103802         warnings.
103803         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103805 2007-02-19  Jim Meyering  <jim@meyering.net>
103807         Don't use FD after a successful "fdopendir (fd)".
103808         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103809         Reset it by calling dirfd on the just-obtained DIR*.
103811         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103812         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103814 2007-02-18  Bruno Haible  <bruno@clisp.org>
103816         * lib/readlink.c: Include <unistd.h>.
103817         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103818         HAVE_READLINK.
103819         * modules/readlink (Depends-on): Add unistd.
103820         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103821         (Include): Add <unistd.h>.
103823         * lib/getlogin_r.h: Remove file.
103824         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103825         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103826         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103827         HAVE_DECL_GETLOGIN_R.
103828         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103829         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103830         (Include): Use <unistd.h> instead of getlogin_r.h.
103832         * lib/getcwd.h: Remove file.
103833         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103834         * lib/xgetcwd.c: Likewise.
103835         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103836         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103837         * modules/getcwd (Files): Remove lib/getcwd.h.
103838         (Depends-on): Add unistd.
103839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103840         (Include): Use <unistd.h> instad of getcwd.h.
103842         * lib/ftruncate.c: Include <unistd.h> first.
103843         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103844         Set HAVE_FTRUNCATE.
103845         * modules/ftruncate (Depends-on): Add unistd.
103846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103848         * lib/fchdir.c: Include <unistd.h> first.
103849         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103851         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103852         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103853         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103855         * lib/dup2.c: Include <unistd.h> first.
103856         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103857         HAVE_DUP2.
103858         * modules/dup2 (Depends-on): Add unistd.
103859         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103861         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103862         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103863         REPLACE_CHOWN. Don't define chown as a macro here.
103864         * modules/chown (Depends-on): Add unistd.
103865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103867         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103868         Add definition for GL_LINK_WARNING.
103869         (chown, dup2): New declarations.
103870         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103871         link warning.
103872         (ftruncate): New declaration.
103873         (getcwd): New declaration, taken from old getcwd.h.
103874         (getlogin_r): New declaration, taken from old getlogin_r.h.
103875         (readlink): New declaration.
103876         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103877         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103878         (gl_PREREQ_UNISTD): Remove macro.
103879         (gl_UNISTD_MODULE_INDICATOR): New macro.
103880         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103881         many new variables. Don't set UNISTD_H.
103882         * modules/unistd (Description): Change.
103883         (Depends-on): Add link-warning.
103884         (configure.ac): Update.
103885         (Makefile.am): Create unistd.h always. Substitute many new variables
103886         into it.
103888 2007-02-18  Bruno Haible  <bruno@clisp.org>
103890         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103891         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103892         HAVE_GETSUBOPT.
103893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103894         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103895         * lib/getsubopt.h: Remove file.
103896         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103897         (Depends-on): Add stdlib.
103898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103899         (Includes): Use <stdlib.h> instead of getsubopt.h.
103900         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103901         Set HAVE_GETSUBOPT.
103902         * lib/getsubopt.c: Don't include getsubopt.h.
103904 2007-02-18  Bruno Haible  <bruno@clisp.org>
103906         * modules/fchdir (Depends-on): Add dup2.
103908 2007-02-18  Bruno Haible  <bruno@clisp.org>
103910         * lib/stdlib_.h: Handle glibc's special invocation convention
103911         specially.
103913 2007-02-18  Bruno Haible  <bruno@clisp.org>
103915         * modules/stdlib-tests: New file.
103916         * tests/test-stdlib.c: New file.
103918         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103919         (Depends-on): Add stdlib.
103920         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103921         (Includes): Use <stdlib.h> instead of mkstemp.h.
103922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103923         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103924         * lib/mkstemp.c: Don't include mkstemp.h.
103925         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103926         * lib/stdlib--.h: Don't include mkstemp.h.
103928         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103929         (Depends-on): Add stdlib.
103930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103931         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103932         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103933         HAVE_MKDTEMP.
103934         * lib/mkdtemp.c: Don't include mkdtemp.h.
103935         * lib/clean-temp.c: Don't include mkdtemp.h.
103937         * modules/exit (Files): Remove lib/exit.h.
103938         (Depends-on): Add stdlib.
103939         (Makefile.am): Remove lib_SOURCES.
103940         (Include): Use <stdlib.h> instead of exit.h.
103941         * lib/argmatch.c: Don't include exit.h.
103942         * lib/execute.c: Likewise.
103943         * lib/pagealign_alloc.c: Likewise.
103944         * lib/pipe.c: Likewise.
103945         * lib/wait-process.c: Likewise.
103946         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103947         * lib/exitfail.c: Likewise.
103948         * lib/savewd.c: Likewise.
103949         * lib/xsetenv.c: Likewise.
103951         * modules/stdlib: New file.
103952         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103953         and extra comments about mkstemp().
103954         * lib/exit.h: Remove file.
103955         * lib/mkdtemp.h: Remove file.
103956         * lib/mkstemp.h: Remove file.
103957         * m4/stdlib_h.m4: New file.
103958         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103960 2007-02-18  Bruno Haible  <bruno@clisp.org>
103962         * modules/math-tests: New file.
103963         * tests/test-math.c: New file.
103965         * modules/math: New file.
103966         * modules/mathl (Files): Remove lib/mathl.h.
103967         (Depends-on): Add math.
103968         (Makefile.am): Don't mention mathl.h.
103969         (Include): Use <math.h> instead of mathl.h.
103970         * lib/math_.h: New file.
103971         * lib/mathl.h: Remove file.
103972         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
103973         mathl.h.
103974         * lib/asinl.c: Likewise.
103975         * lib/atanl.c: Likewise.
103976         * lib/ceill.c: Likewise.
103977         * lib/cosl.c: Likewise.
103978         * lib/expl.c: Likewise.
103979         * lib/floorl.c: Likewise.
103980         * lib/frexpl.c: Likewise.
103981         * lib/ldexpl.c: Likewise.
103982         * lib/logl.c: Likewise.
103983         * lib/sincosl.c: Likewise.
103984         * lib/sinl.c: Likewise.
103985         * lib/sqrtl.c: Likewise.
103986         * lib/tanl.c: Likewise.
103987         * lib/trigl.c: Likewise.
103988         * m4/math_h.m4: New file.
103989         * MODULES.html.sh (Mathematics): Add math.
103991 2007-02-17  Bruno Haible  <bruno@clisp.org>
103993         * modules/wctype-tests: New file.
103994         * tests/test-wctype.c: New file.
103996         * modules/wchar-tests: New file.
103997         * tests/test-wchar.c: New file.
103999         * modules/unistd-tests: New file.
104000         * tests/test-unistd.c: New file.
104002         * modules/time-tests: New file.
104003         * tests/test-time.c: New file.
104005         * modules/sysexits-tests: New file.
104006         * tests/test-sysexits.c: New file.
104008         * modules/sys_time-tests: New file.
104009         * tests/test-sys_time.c: New file.
104011         * modules/sys_stat-tests: New file.
104012         * tests/test-sys_stat.c: New file.
104014         * modules/sys_socket-tests: New file.
104015         * tests/test-sys_socket.c: New file.
104017         * modules/sys_select-tests: New file.
104018         * tests/test-sys_select.c: New file.
104020         * modules/string-tests: New file.
104021         * tests/test-string.c: New file.
104023         * modules/stdbool-tests: New file.
104024         * tests/test-stdbool.c: New file.
104026         * modules/netinet_in-tests: New file.
104027         * tests/test-netinet_in.c: New file.
104029         * modules/inttypes-tests: New file.
104030         * tests/test-inttypes.c: New file.
104032         * modules/fcntl-tests: New file.
104033         * tests/test-fcntl.c: New file.
104035         * modules/byteswap-tests: New file.
104036         * tests/test-byteswap.c: New file.
104038         * modules/arpa_inet-tests: New file.
104039         * tests/test-arpa_inet.c: New file.
104041 2007-02-17  Bruno Haible  <bruno@clisp.org>
104043         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104044         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104045         if the corresponding module is not enabled. Emit link warnings if
104046         the function is used nevertheless.
104047         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104048         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104049         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104050         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104051         * modules/inttypes (Depends-on): Add link-warning.
104052         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104053         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104054         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104055         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104056         * modules/imaxdiv (configure.ac): Likewise.
104057         * modules/strtoimax (configure.ac): Likewise.
104058         * modules/strtoumax (configure.ac): Likewise.
104060 2007-02-17  Bruno Haible  <bruno@clisp.org>
104062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104063         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104065         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104067 2007-02-17  Bruno Haible  <bruno@clisp.org>
104069         * modules/link-warning: New file.
104070         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104071         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104072         * modules/string (Depends-on): Add link-warning.
104073         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104074         string.h.
104075         * MODULES.html.sh (Support for building libraries and executables): Add
104076         link-warning.
104078 2007-02-17  Bruno Haible  <bruno@clisp.org>
104080         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
104081         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
104082         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
104083         long lines.
104085 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
104086             Bruno Haible  <bruno@clisp.org>
104088         * modules/tmpfile: New file.
104089         * lib/tmpfile.c: New file.
104090         * m4/tmpfile.m4: New file.
104091         * MODULES.html.sh (func_all_modules): New section "Input/output".
104093 2007-02-15  Bruno Haible  <bruno@clisp.org>
104095         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
104096         (supports_delete_on_close): New function.
104097         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
104099 2007-02-14  Bruno Haible  <bruno@clisp.org>
104101         * modules/mbspcasecmp-tests: New file.
104102         * tests/test-mbspcasecmp.sh: New file.
104103         * tests/test-mbspcasecmp.c: New file.
104105         New module mbspcasecmp.
104106         * modules/mbspcasecmp: New file.
104107         * lib/mbspcasecmp.c: New file.
104108         * lib/string_.h (strncasecmp): Change warning message.
104109         (mbspcasecmp): New declaration.
104110         * m4/mbspcasecmp.m4: New file.
104111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104112         GNULIB_MBSPCASECMP.
104113         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104114         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104116 2007-02-14  Bruno Haible  <bruno@clisp.org>
104118         * modules/mbsncasecmp-tests: New file.
104119         * tests/test-mbsncasecmp.sh: New file.
104120         * tests/test-mbsncasecmp.c: New file.
104122         New module mbsncasecmp.
104123         * modules/mbsncasecmp: New file.
104124         * lib/mbsncasecmp.c: New file.
104125         * lib/string_.h (mbsncasecmp): New declaration.
104126         * m4/mbsncasecmp.m4: New file.
104127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104128         GNULIB_MBSNCASECMP.
104129         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104130         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104132 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104134         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104135         Verify that it doesn't overlap with our flags.
104136         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104137         do not have the desired effect in multibyte locales; instead, use
104138         mbscasecmp.
104139         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104140         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104141         we don't require GNU fnmatch ourselves (if our users require it, they
104142         should do so explicitly).
104144         Fix regex code so it doesn't rely on strcasecmp.
104145         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104146         Otherwise, include gnulib's langinfo.h.
104147         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104148         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104149         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104150         * modules/regex (FILES): Remove m4/codeset.m4.
104151         (Depends-on): Add localcharset.  Remove strcase.
104153 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104155         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104156         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104158 2007-02-13  Bruno Haible  <bruno@clisp.org>
104160         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104163 2007-02-12  Bruno Haible  <bruno@clisp.org>
104165         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104166         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104167         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104168         time warning rather than a link error.
104170 2007-02-12  Bruno Haible  <bruno@clisp.org>
104172         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104173         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104176 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104178         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104179         args, not 2.
104181 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104183         New module 'time', so that apps can include <time.h> as per
104184         POSIX and GNU instead of separate include files like time_r.h
104185         and timegm.h.  This implementation tries out a simpler approach
104186         for replacing decls in standard include files (as compared to
104187         the string module), somewhat as an experiment.
104189         * config/srclist.txt: Comment out mktime.c for now.
104190         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104191         since it doesn't apply any more.  Use generic wording instead.
104192         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104193         'time'.
104194         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104195         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104196         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104197         Don't include <sys/types.h>; no longer needed since we assume C89.
104198         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104199         * lib/strftime.c: Likewise.
104200         * lib/time_r.c: Likewise.
104201         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104202         * lib/nanosleep.c: Include <time.h> first, to check interface.
104203         * lib/strptime.c: Likewise.
104204         * lib/time_r.c: Likewise.
104205         * lib/timegm.c: Likewise.
104206         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104207         needed.
104208         * lib/timegm.c: Don't include timegm.h; no longer needed.
104209         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104210         time.h now handles any problems in that area.
104211         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104212         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104213         that time.h defines struct timespec.
104214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104215         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104216         handles that.
104217         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104218         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104219         needed.  Set REPLACE_LOCALTIME.
104220         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104221         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104222         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104223         nanosleep; time_h.m4 now does that.  Don't require
104224         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104225         module handles this now.
104226         * modules/getdate (Depends-on): Remove timespec.  Add time.
104227         * modules/nanosleep (Depends-on): Likewise.
104228         * modules/stat-time (Depends-on): Likewise.
104229         * modules/nanosleep (Include): Include time.h, not timespec.h.
104230         * modules/strptime (Files): Remove lib/strptime.h.
104231         (Depends-on): Add extensions, time.
104232         (Include): Include time.h, not strptime.h.
104233         * modules/time_r (Files): Remove lib/time_r.h.
104234         (Depends-on): Add time.
104235         (Include): Include time.h, not time_r.h.
104236         * modules/timegm: Likewise.
104237         * modules/timespec (Description): Now does timespec-related decls
104238         of our own, instead of struct timespec itself.
104239         (Depends-on): Add time; remove extensions.
104240         (Maintainer): Add self.
104241         * modules/utimecmp (Depends-on): Add time; remove timespec.
104242         * modules/utimens (Depends-on): Likewise.
104243         * modules/xnanosleep (Depends-on): Likewise.
104245 2007-02-11  Bruno Haible  <bruno@clisp.org>
104247         * lib/c-strstr.c: Include allocsa.h.
104248         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104249         * lib/c-strcasestr.c: Include allocsa.h.
104250         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104251         * lib/strcasestr.c: Include allocsa.h.
104252         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104253         * lib/mbsstr.c: Include allocsa.h.
104254         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104255         allocsa/freesa instead of malloc/free.
104256         * lib/mbscasestr.c: Include allocsa.h.
104257         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104258         allocsa/freesa instead of malloc/free.
104259         * modules/c-strstr (Depends-on): Add allocsa.
104260         * modules/c-strcasestr (Depends-on): Likewise.
104261         * modules/strcasestr (Depends-on): Likewise.
104262         * modules/mbsstr (Depends-on): Likewise.
104263         * modules/mbscasestr (Depends-on): Likewise.
104265 2007-02-11  Bruno Haible  <bruno@clisp.org>
104267         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104269         * modules/mbsspn-tests: New file.
104270         * tests/test-mbsspn.sh: New file.
104271         * tests/test-mbsspn.c: New file.
104273 2007-02-11  Bruno Haible  <bruno@clisp.org>
104275         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104277         * modules/mbspbrk-tests: New file.
104278         * tests/test-mbspbrk.sh: New file.
104279         * tests/test-mbspbrk.c: New file.
104281 2007-02-11  Bruno Haible  <bruno@clisp.org>
104283         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104284         unneeded cast.
104286         * modules/mbscspn-tests: New file.
104287         * tests/test-mbscspn.sh: New file.
104288         * tests/test-mbscspn.c: New file.
104290 2007-02-11  Bruno Haible  <bruno@clisp.org>
104292         * modules/mbscasecmp-tests: New file.
104293         * tests/test-mbscasecmp.sh: New file.
104294         * tests/test-mbscasecmp.c: New file.
104296 2007-02-11  Bruno Haible  <bruno@clisp.org>
104298         Ensure O(n) worst-case complexity of mbscasestr.
104299         * lib/mbscasestr.c: Include stdbool.h.
104300         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104301         functions.
104302         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104303         the bookkeeping indicates that it's worth it.
104304         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104306         * modules/mbscasestr-tests: New file.
104307         * tests/test-mbscasestr1.c: New file.
104308         * tests/test-mbscasestr2.sh: New file.
104309         * tests/test-mbscasestr2.c: New file.
104310         * tests/test-mbscasestr3.sh: New file.
104311         * tests/test-mbscasestr3.c: New file.
104312         * tests/test-mbscasestr4.sh: New file.
104313         * tests/test-mbscasestr4.c: New file.
104314         * m4/locale-tr.m4: New file.
104316 2007-02-11  Bruno Haible  <bruno@clisp.org>
104318         Ensure O(n) worst-case complexity of mbsstr.
104319         * lib/mbsstr.c: Include stdbool.h.
104320         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104321         functions.
104322         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104323         bookkeeping indicates that it's worth it.
104324         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104326         * modules/mbsstr-tests: New file.
104327         * tests/test-mbsstr1.c: New file.
104328         * tests/test-mbsstr2.sh: New file.
104329         * tests/test-mbsstr2.c: New file.
104330         * tests/test-mbsstr3.sh: New file.
104331         * tests/test-mbsstr3.c: New file.
104332         * m4/locale-fr.m4: New file.
104334 2007-02-11  Bruno Haible  <bruno@clisp.org>
104336         * lib/mbsrchr.c (mbsrchr): Fix bug.
104338         * modules/mbsrchr-tests: New file.
104339         * tests/test-mbsrchr.sh: New file.
104340         * tests/test-mbsrchr.c: New file.
104342 2007-02-11  Bruno Haible  <bruno@clisp.org>
104344         * lib/mbschr.c (mbschr): Fix bug.
104346         * modules/mbschr-tests: New file.
104347         * tests/test-mbschr.sh: New file.
104348         * tests/test-mbschr.c: New file.
104349         * m4/locale-zh.m4: New file.
104351 2007-02-11  Bruno Haible  <bruno@clisp.org>
104353         Support for copying multibyte string iterators.
104354         * lib/mbiter.h: Include <string.h>.
104355         (mbiter_multi_copy): New function.
104356         (mbi_copy): New macro.
104357         * lib/mbuiter.h: Include <string.h>.
104358         (mbuiter_multi_copy): New function.
104359         (mbui_copy): New macro.
104361 2007-02-11  Bruno Haible  <bruno@clisp.org>
104363         New module mbslen.
104364         * modules/mbslen: New file.
104365         * lib/mbslen.c: New file.
104366         * lib/string_.h (mbslen): New declaration.
104367         * m4/mbslen.m4: New file.
104368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104369         GNULIB_MBSLEN.
104370         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104371         * MODULES.html.sh (Internationalization functions): Add mbslen.
104373 2007-02-11  Bruno Haible  <bruno@clisp.org>
104375         Ensure O(n) worst-case complexity of strcasestr substitute.
104376         * lib/strcasestr.c: Include stdbool.h.
104377         (knuth_morris_pratt): New function.
104378         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104379         bookkeeping indicates that it's worth it.
104380         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104382         * modules/strcasestr-tests: New file.
104383         * tests/test-strcasestr.c: New file.
104385 2007-02-11  Bruno Haible  <bruno@clisp.org>
104387         Ensure O(n) worst-case complexity of c_strcasestr.
104388         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104389         (knuth_morris_pratt): New function.
104390         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104391         the bookkeeping indicates that it's worth it.
104392         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104394         * modules/c-strcasestr-tests: New file.
104395         * tests/test-c-strcasestr.c: New file.
104397 2007-02-11  Bruno Haible  <bruno@clisp.org>
104399         Ensure O(n) worst-case complexity of c_strstr.
104400         * lib/c-strstr.c: Include stdbool.h, string.h.
104401         (knuth_morris_pratt): New function.
104402         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104403         bookkeeping indicates that it's worth it.
104404         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104406         * lib/c-strstr.c: Complete rewrite for maintainability.
104408         * modules/c-strstr-tests: New file.
104409         * tests/test-c-strstr.c: New file.
104411 2007-02-11  Bruno Haible  <bruno@clisp.org>
104413         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104414         5.2.1 and earlier, whereby \055 was treated just like the range
104415         delimiter '-'.
104416         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104418 2007-02-08  Bruno Haible  <bruno@clisp.org>
104420         * modules/regex (Depends-on): Add stdbool.
104421         Reported by Dalibor Topic <robilad@kaffe.org>.
104423 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104425         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104426         Prefer returning from main to exiting from it.
104427         Remove unnecessary parens after sizeof.
104429 2007-02-05  Bruno Haible  <bruno@clisp.org>
104431         New module mbssep.
104432         * modules/mbssep: New file.
104433         * lib/mbssep.c: New file.
104434         * lib/string_.h (strsep): Add a conditional link warning.
104435         (mbssep): New declaration.
104436         * m4/mbssep.m4: New file.
104437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104438         GNULIB_MBSSEP.
104439         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104440         * MODULES.html.sh (Internationalization functions): Add mbssep.
104442 2007-02-05  Bruno Haible  <bruno@clisp.org>
104444         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104445         Optimize search in case of 1 delimiter.
104447 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104449         * lib/acl.h: Include sys/types.h before sys/acl.h.
104451 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104453         Merge upstream fix for glibc bugzilla #3957:
104455         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104457         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104458         bit for RE_HAT_LISTS_NOT_NEWLINE.
104459         (build_charclass_op): Remove bogus comment.
104461 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104463         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104465 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104467         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104468         * lib/memmem.c [!defined _LIBC]: Include config.h.
104470 2007-02-04  Bruno Haible  <bruno@clisp.org>
104472         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104473         warning message.
104475 2007-02-04  Bruno Haible  <bruno@clisp.org>
104477         New module mbstok_r.
104478         * modules/mbstok_r: New file.
104479         * lib/mbstok_r.c: New file.
104480         * lib/string_.h (strtok_r): Change argument names to match the
104481         comments. Add a conditional link warning.
104482         (mbstok_r): New declaration.
104483         * m4/mbstok_r.m4: New file.
104484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104485         GNULIB_MBSTOK_R.
104486         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104487         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104489 2007-02-04  Bruno Haible  <bruno@clisp.org>
104491         New module mbsspn.
104492         * modules/mbsspn: New file.
104493         * lib/mbsspn.c: New file.
104494         * lib/string_.h (strspn): Add a conditional link warning.
104495         (mbsspn): New declaration.
104496         * m4/mbsspn.m4: New file.
104497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104498         GNULIB_MBSSPN.
104499         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104500         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104502 2007-02-04  Bruno Haible  <bruno@clisp.org>
104504         New module mbspbrk.
104505         * modules/mbspbrk: New file.
104506         * lib/mbspbrk.c: New file.
104507         * lib/string_.h (strpbrk): Add a conditional link warning.
104508         (mbspbrk): New declaration.
104509         * m4/mbspbrk.m4: New file.
104510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104511         GNULIB_MBSPBRK.
104512         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104513         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104515 2007-02-04  Bruno Haible  <bruno@clisp.org>
104517         New module mbscspn.
104518         * modules/mbscspn: New file.
104519         * lib/mbscspn.c: New file.
104520         * lib/string_.h (strcspn): Add a conditional link warning.
104521         (mbscspn): New declaration.
104522         * m4/mbscspn.m4: New file.
104523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104524         GNULIB_MBSCSPN.
104525         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104526         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104528 2007-02-04  Bruno Haible  <bruno@clisp.org>
104530         New module mbscasestr, reduced goal of strcasestr.
104531         * modules/mbscasestr: New file.
104532         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104533         (mbscasestr): Renamed from strcasestr.
104534         * lib/strcasestr.c: Don't include mbuiter.h.
104535         (strcasestr): Remove support for multibyte locales.
104536         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104537         Change the conditional link warning.
104538         (mbscasestr): New declaration.
104539         * m4/mbscasestr.m4: New file.
104540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104541         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104542         REPLACE_STRCASESTR.
104543         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104545         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104547         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104548         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104549         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104550         (Depends-on): Remove mbuiter.
104551         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104553 2007-02-04  Bruno Haible  <bruno@clisp.org>
104555         Simplify handling of strncasecmp.
104556         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104557         the conditional link warning.
104558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104559         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104560         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104561         * modules/strcase (configure.ac): Don't invoke
104562         gl_STRING_MODULE_INDICATOR.
104563         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104565 2007-02-04  Bruno Haible  <bruno@clisp.org>
104567         New module mbscasecmp, reduced goal of strcasecmp.
104568         * modules/mbscasecmp: New file.
104569         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104570         (mbscasecmp): Renamed from strcasecmp.
104571         * lib/strcasecmp.c: Don't include mbuiter.h.
104572         (strcasecmp): Remove support for multibyte locales.
104573         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104574         Change the conditional link warning.
104575         (mbscasecmp): New declaration.
104576         * m4/mbscasecmp.m4: New file.
104577         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104578         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104579         REPLACE_STRCASECMP.
104580         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104582         GNULIB_MBSCASECMP.
104583         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104584         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104585         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104586         (Depends-on): Remove mbuiter.
104587         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104589 2007-02-04  Bruno Haible  <bruno@clisp.org>
104591         New module mbsstr. Remove module strstr.
104592         * modules/mbsstr: New file.
104593         * modules/strstr: Remove file.
104594         * lib/mbsstr.c: Renamed from lib/strstr.c.
104595         (mbsstr): Renamed from strstr.
104596         * lib/string_.h (strstr): Remove declaration. Change the conditional
104597         link warning.
104598         (mbsstr): New declaration.
104599         * m4/mbsstr.m4: New file.
104600         * m4/strstr.m4: Remove file.
104601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104602         REPLACE_STRSTR.
104603         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104604         Don't initialize GNULIB_STRSTR.
104605         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104606         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104607         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104608         (Support for systems lacking ANSI C 89): Remove strstr.
104610 2007-02-04  Bruno Haible  <bruno@clisp.org>
104612         New module mbsrchr.
104613         * modules/mbsrchr: New file.
104614         * lib/mbsrchr.c: New file.
104615         * lib/string_.h (strrchr): Add a conditional link warning.
104616         (mbsrchr): New declaration.
104617         * m4/mbsrchr.m4: New file.
104618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104619         GNULIB_MBSRCHR.
104620         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104621         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104623 2007-02-04  Bruno Haible  <bruno@clisp.org>
104625         New module mbschr.
104626         * modules/mbschr: New file.
104627         * lib/mbschr.c: New file.
104628         * lib/string_.h (strchr): Add a conditional link warning.
104629         (mbschr): New declaration.
104630         * m4/mbschr.m4: New file.
104631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104632         GNULIB_MBSCHR.
104633         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104634         * MODULES.html.sh (Internationalization functions): Add mbschr.
104636 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104638         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104640         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104642 2007-02-04  Bruno Haible  <bruno@clisp.org>
104644         New module description section 'configure.ac-early'.
104645         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104646         (func_get_autoconf_early_snippet): New function.
104647         (func_import, func_create_testdir): Use it. Remove special cases for
104648         modules 'extensions' and 'lock'.
104649         * modules/extensions (configure.ac-early): Require
104650         gl_USE_SYSTEM_EXTENSIONS.
104651         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104653 2007-02-04  Bruno Haible  <bruno@clisp.org>
104655         Make use of gcj-4.3's -fsource and -ftarget option.
104656         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104657         and if so try the options -fsource and -ftarget.
104658         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104659         source_version, ftarget_option, target_version arguments.
104660         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104661         (is_envjavac_oldgcj_14_14_usable): Renamed from
104662         is_envjavac_gcj_14_14_usable.
104663         (is_envjavac_oldgcj_14_13_usable): Renamed from
104664         is_envjavac_gcj_14_13_usable.
104665         (is_gcj_present): Update.
104666         (is_gcj_43, is_gcj43_usable): New functions.
104667         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104668         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104669         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104670         try the options -fsource and -ftarget.
104672 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104674         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104675         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104676         larger value.
104678 2007-02-03  Jim Meyering  <jim@meyering.net>
104680         Give tools a better chance to allocate space for very large buffers.
104681         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104683         Make pwd and readlink work also when run with an unreadable parent dir
104684         on systems with openat support.
104685         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104686         provided getcwd function, even when we have openat support.
104687         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104689 2007-02-02  Bruno Haible  <bruno@clisp.org>
104691         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104692         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104693         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104694         portability problems if one of these functions is only used on specific
104695         platforms.
104696         Reported by Paul Eggert.
104698 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104700         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104701         is causing more trouble than it's curing.
104702         * lib/regex_internal.h (__mempcpy): Remove.
104703         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104704         (and make the code a tad smaller to boot).
104705         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104707 2007-02-02  Jim Meyering  <jim@meyering.net>
104709         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104710         section, not in the Makefile.am: one.
104712 2007-02-02  Eric Blake  <ebb9@byu.net>
104714         * lib/strchrnul.c: Always include config.h first.
104716         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104717         gnulib strstr is not necessary here.
104719 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104721         * m4/socklen.m4: Fix typo.
104723 2007-02-02  Eric Blake  <ebb9@byu.net>
104725         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104726         * modules/netinet_in (Makefile.am): Likewise.
104728 2007-02-01  Bruno Haible  <bruno@clisp.org>
104730         * lib/string_.h (GL_LINK_WARNING): New macro.
104731         (strcasecmp, strstr, strcasestr): If provided by the system,
104732         conditionally define as a macro that leads to a warning instead of to
104733         an error.
104734         (strncasecmp): Conditionally define as a macro that leads to a warning.
104736 2007-02-01  Karl Berry  <karl@gnu.org>
104738         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104740 2007-02-01  Bruno Haible  <bruno@clisp.org>
104742         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104743         renamings.
104745 2007-02-01  Eric Blake  <ebb9@byu.net>
104747         * modules/regex (Depends-on): Revert dependence on mempcpy.
104748         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104749         module's definition of mempcpy.
104750         Reported by Paul Eggert.
104752 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104754         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104755         the symbol XYZ before redefining it.  This fixes a problem with
104756         programs that don't use XYZ, when compiled on systems that define
104757         XYZ to something else.
104759 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104761         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104762         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104763         writeable to group or other and (2) is intended to have a special
104764         mode bit that is set or cleared.  In such a case, the directory
104765         should be neither group- nor other-writeable until the special
104766         mode bits are right.
104768 2007-01-31  Eric Blake  <ebb9@byu.net>
104770         * modules/mountlist (Depends-on): Add strstr.
104772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104773         bug.
104774         * modules/string (Makefile.am): Remove redundant replacement.
104775         * modules/regex (Depends-on): Add mempcpy.
104777 2007-01-31  Bruno Haible  <bruno@clisp.org>
104779         New module description field 'Link'.
104780         * gnulib-tool (func_usage): Document --extract-link-directive.
104781         (sed_extract_prog): Recognize 'Link' directive.
104782         (func_get_link_directive): New function.
104783         (func_import): Show summary of link directives.
104784         Handle --extract-link-directive option.
104785         * modules/acl (Link): New section.
104786         * modules/clock-time (Link): New section.
104787         * modules/euidaccess (Link): New section.
104788         * modules/gettext (Link): New section.
104789         * modules/iconv (Link): New section.
104790         * modules/lock (Link): New section.
104791         * modules/nanosleep (Link): New section.
104792         * modules/readline (Link): New section.
104794 2007-01-27  Bruno Haible  <bruno@clisp.org>
104796         Enforce the use of gnulib modules for unportable <string.h> functions.
104797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104798         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104799         (gl_HEADER_STRING_H_BODY): Require it.
104800         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104801         the symbol XYZ to one that gives a link error.
104802         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104803         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104804         * modules/mempcpy (configure.ac): Likewise.
104805         * modules/memrchr (configure.ac): Likewise.
104806         * modules/stpcpy (configure.ac): Likewise.
104807         * modules/stpncpy (configure.ac): Likewise.
104808         * modules/strcase (configure.ac): Likewise.
104809         * modules/strcasestr (configure.ac): Likewise.
104810         * modules/strchrnul (configure.ac): Likewise.
104811         * modules/strdup (configure.ac): Likewise.
104812         * modules/strndup (configure.ac): Likewise.
104813         * modules/strnlen (configure.ac): Likewise.
104814         * modules/strpbrk (configure.ac): Likewise.
104815         * modules/strsep (configure.ac): Likewise.
104816         * modules/strstr (configure.ac): Likewise.
104817         * modules/strtok_r (configure.ac): Likewise.
104819 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104821         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104823 2007-01-30  Jim Meyering  <jim@meyering.net>
104825         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104827 2007-01-29  Bruno Haible  <bruno@clisp.org>
104829         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104830         * lib/execute.c: Likewise.
104831         * lib/pipe.c: Likewise.
104832         * lib/printf-args.h: Likewise.
104833         * lib/printf-args.c: Likewise.
104834         * lib/printf-parse.c: Likewise.
104835         * lib/vasnprintf.c: Likewise.
104837 2007-01-29  Eric Blake  <ebb9@byu.net>
104839         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104840         declaration.
104842 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104844         * lib/strptime.h (strptime): Use 'restrict' for args where
104845         POSIX requires this.
104846         * lib/strptime.c (strptime): Likewise.
104847         Change license notice from LGPL to GPL, since gnulib-tool will
104848         change this as needed.
104849         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104850         defined.
104851         Include "strptime.h" first, to check interface.
104852         Do not #undef _LIBC and _NL_CURRENT.
104853         Do not include <stdlib.h>; no longer needed.
104854         Include "time_r.h" and declare ptime_locale_status
104855         only if _LIBC is not defined.
104856         (__P): Remove unused macro.
104857         (match_string): Bring back glibc version, but use it only if _LIBC
104858         is defined.
104859         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104860         Remove unnecessary assertion and abort() call.
104861         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104862         * m4/strptime.m4: Fix serial number comment.
104863         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104864         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104865         (Depends-on): Add time_r.
104867 2007-01-29  Bruno Haible  <bruno@clisp.org>
104869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104870         strptime.
104871         * modules/strptime (Depends-on): Add stdbool.
104872         * lib/strptime.h: Include <time.h> always. Add comments.
104874 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104876         * modules/strptime: New file.
104877         * lib/strptime.h: New file.
104878         * lib/strptime.c: New file.
104879         * m4/strptime.m4: New file.
104881 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104883         * MODULES.html.sh: New module mpsort.
104884         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104886         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104887         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104888         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104889         All uses changed.
104890         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104891         All uses changed.
104892         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104893         to _Restrict_.
104894         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104895         the parameter matches the prototype.
104897 2007-01-28  Jim Meyering  <jim@meyering.net>
104899         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104900         sys/time.h here, reverting that part of the previous patch:
104901         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104903 2007-01-28  Bruno Haible  <bruno@clisp.org>
104905         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104906         value of $(SYS_TIME_H).
104907         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104908         remove it conditionally, too. [added by Jim Meyering]
104909         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104910         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104911         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104912         GETTIMEOFDAY_REPLACEMENT to 1.
104914 2007-01-28  Bruno Haible  <bruno@clisp.org>
104916         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104917         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104919         Set UNISTD_H instead of UNISTD_H2.
104920         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104922 2007-01-28  Bruno Haible  <bruno@clisp.org>
104924         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104925         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104927 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104929         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104930         (func_create_testdir): Ensure C locale for `grep' and `tr'
104931         character ranges.
104932         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104933         ACLOCAL_AMFLAGS parsing state machine.
104935 2007-01-27  Bruno Haible  <bruno@clisp.org>
104937         * modules/unistr/base: Update.
104939 2007-01-27  Bruno Haible  <bruno@clisp.org>
104941         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104942         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104943         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104944         modules/unistr/u32-mbtouc.
104945         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104946         * lib/unistr.h: Update.
104947         * lib/linebreak.c: Update.
104948         * modules/unistr/u32-mbtouc: Renamed from
104949         modules/unistr/u32-mbtouc-safe.
104950         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104951         * lib/unistr.h: Update.
104952         * lib/unistr/u32-to-u8.c: Update.
104953         * lib/unistr/u32-to-u16.c: Update.
104955 2007-01-27  Bruno Haible  <bruno@clisp.org>
104957         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104958         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104959         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104960         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104961         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104962         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104963         modules/unistr/u16-mbtouc.
104964         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104965         * lib/unistr.h: Update.
104966         * lib/linebreak.c: Update.
104967         * modules/linebreak: Update.
104968         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
104969         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
104970         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
104971         * modules/unistr/u16-mbtouc: Renamed from
104972         modules/unistr/u16-mbtouc-safe.
104973         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
104974         * lib/unistr.h: Update.
104975         * lib/unistr/u16-to-u8.c: Update.
104976         * modules/unistr/u16-to-u8: Update.
104977         * lib/unistr/u16-to-u32.c: Update.
104978         * modules/unistr/u16-to-u32: Update.
104980 2007-01-27  Bruno Haible  <bruno@clisp.org>
104982         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
104983         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
104984         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
104985         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
104986         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104987         * modules/unistr/u8-mbtouc-unsafe: Renamed from
104988         modules/unistr/u8-mbtouc.
104989         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
104990         * lib/unistr.h: Update.
104991         * lib/striconveh.c: Update.
104992         * modules/striconveh: Update.
104993         * lib/linebreak.c: Update.
104994         * modules/linebreak: Update.
104995         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
104996         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
104997         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
104998         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
104999         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105000         * lib/unistr.h: Update.
105001         * lib/striconveh.c: Update.
105002         * modules/striconveh: Update.
105003         * lib/unistr/u8-to-u16.c: Update.
105004         * modules/unistr/u8-to-u16: Update.
105005         * lib/unistr/u8-to-u32.c: Update.
105006         * modules/unistr/u8-to-u32: Update.
105008 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105010         Sync from Libtool.
105011         * lib/argz.c: Do not include strings.h nor memory.h, include
105012         string.h unconditionally.  Patch by Simon Josefsson.
105014 2007-01-27  Bruno Haible  <bruno@clisp.org>
105016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105017         from gl_HEADER_STRING_H_BODY.
105018         (gl_HEADER_STRING_H_BODY): Require it.
105019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105020         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105021         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105022         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105024         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105027         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105029         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105030         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105031         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105032         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105033         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105035 2007-01-27  Bruno Haible  <bruno@clisp.org>
105037         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105038         check_PROGRAMS into noinst_PROGRAMS.
105039         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105040         check_PROGRAMS in this case.
105041         (func_import): Set for_test to false.
105042         (func_create_testdir): Set for_test to true.
105044 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105045             Bruno Haible  <bruno@clisp.org>
105047         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105048         (Depends-on): Add string.
105049         (Includes): Use <string.h> instead of strcasestr.h.
105050         * modules/string (Makefile.am): Also substitute the value of
105051         REPLACE_STRCASESTR.
105052         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105053         assume strcasestr is declared in <string.h> not <strings.h>. Also
105054         set REPLACE_STRCASESTR.
105055         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105056         REPLACE_STRCASESTR.
105057         * lib/strcasestr.h: Remove file.
105058         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105059         * lib/string_.h (strcasestr): New declaration.
105061 2007-01-27  Bruno Haible  <bruno@clisp.org>
105063         * lib/string_.h: Use 'extern'.
105065 2007-01-27  Jim Meyering  <jim@meyering.net>
105067         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105068         of set-but-not-used local, "q".
105070         * lib/mempcpy.c: Include <config.h> before <string.h>.
105071         This fixes a compilation error on HP-UX, due to the system's
105072         "restrict"-using mempcpy prototype.
105074 2007-01-26  Bruno Haible  <bruno@clisp.org>
105076         Small optimization.
105077         * lib/javacomp.c: Include c-strstr.h.
105078          (is_envjavac_gcj): Use c_strstr instead of strstr.
105079         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
105081 2007-01-26  Bruno Haible  <bruno@clisp.org>
105083         * MODULES.html.sh (Unicode string functions): Add the new modules.
105085         * modules/uniconv/u32-strconv-to-locale: New file.
105086         * lib/uniconv/u32-strconv-to-locale.c: New file.
105088         * modules/uniconv/u16-strconv-to-locale: New file.
105089         * lib/uniconv/u16-strconv-to-locale.c: New file.
105091         * modules/uniconv/u8-strconv-to-locale: New file.
105092         * lib/uniconv/u8-strconv-to-locale.c: New file.
105094         * modules/uniconv/u32-strconv-from-locale: New file.
105095         * lib/uniconv/u32-strconv-from-locale.c: New file.
105097         * modules/uniconv/u16-strconv-from-locale: New file.
105098         * lib/uniconv/u16-strconv-from-locale.c: New file.
105100         * modules/uniconv/u8-strconv-from-locale: New file.
105101         * lib/uniconv/u8-strconv-from-locale.c: New file.
105103         * modules/uniconv/u32-strconv-to-enc: New file.
105104         * lib/uniconv/u32-strconv-to-enc.c: New file.
105105         * modules/uniconv/u32-strconv-to-enc-tests: New file.
105106         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
105108         * modules/uniconv/u16-strconv-to-enc: New file.
105109         * lib/uniconv/u16-strconv-to-enc.c: New file.
105110         * lib/uniconv/u-strconv-to-enc.h: New file.
105111         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105112         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105114         * modules/uniconv/u8-strconv-to-enc: New file.
105115         * lib/uniconv/u8-strconv-to-enc.c: New file.
105116         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105117         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105119         * modules/uniconv/u32-strconv-from-enc: New file.
105120         * lib/uniconv/u32-strconv-from-enc.c: New file.
105121         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105122         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105124         * modules/uniconv/u16-strconv-from-enc: New file.
105125         * lib/uniconv/u16-strconv-from-enc.c: New file.
105126         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105127         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105129         * modules/uniconv/u8-strconv-from-enc: New file.
105130         * lib/uniconv/u8-strconv-from-enc.c: New file.
105131         * lib/uniconv/u-strconv-from-enc.h: New file.
105132         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105133         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105135         * modules/uniconv/u32-conv-from-enc: New file.
105136         * lib/uniconv/u32-conv-from-enc.c: New file.
105137         * modules/uniconv/u32-conv-from-enc-tests: New file.
105138         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105140         * modules/uniconv/u16-conv-from-enc: New file.
105141         * lib/uniconv/u16-conv-from-enc.c: New file.
105142         * lib/uniconv/u-conv-from-enc.h: New file.
105143         * modules/uniconv/u16-conv-from-enc-tests: New file.
105144         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105146         * modules/uniconv/u8-conv-from-enc: New file.
105147         * lib/uniconv/u8-conv-from-enc.c: New file.
105148         * modules/uniconv/u8-conv-from-enc-tests: New file.
105149         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105151         * modules/uniconv/base: New file.
105152         * lib/uniconv.h: New file.
105154 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105156         * doc/gnulib-tool.texi (Initial import): Update to match current
105157         behavior with strdup module.
105158         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105159         * lib/memmem.h: Remove; all uses removed.  This is now done
105160         by <string.h>.
105161         * lib/mempcpy.h: Likewise.
105162         * lib/memrchr.h: Likewise.
105163         * lib/stpcpy.h: Likewise.
105164         * lib/stpncpy.h: Likewise.
105165         * lib/strcase.h: Likewise.
105166         * lib/strchrnul.h: Likewise.
105167         * lib/strdup.h: Likewise.
105168         * lib/strndup.h: Likewise.
105169         * lib/strnlen.h: Likewise.
105170         * lib/strpbrk.h: Likewise.
105171         * lib/strsep.h: Likewise.
105172         * lib/strstr.h: Likewise.
105173         * lib/strtok_r.h: Likewise.
105174         * lib/string_.h: New file.
105175         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105176         Rely on <string.h> instead.
105177         * lib/canon-host.c: Likewise.
105178         * lib/chdir-long.c: Likewise.
105179         * lib/concatpath.c: Likewise.
105180         * lib/exclude.c: Likewise.
105181         * lib/fchdir.c: Likewise.
105182         * lib/getaddrinfo.c: Likewise.
105183         * lib/getcwd.c: Likewise.
105184         * lib/getsubopt.c: Likewise.
105185         * lib/glob.c: Likewise.
105186         * lib/hard-locale.c: Likewise.
105187         * lib/iconvme.c: Likewise.
105188         * lib/javacomp.c: Likewise.
105189         * lib/mempcpy.c: Likewise.
105190         * lib/memrchr.c: Likewise.
105191         * lib/regex_internal.h: Likewise.
105192         * lib/stpncpy.c: Likewise.
105193         * lib/strcasecmp.c: Likewise.
105194         * lib/strchrnul.c: Likewise.
105195         * lib/strdup.c: Likewise.
105196         * lib/striconv.c: Likewise.
105197         * lib/striconveh.c: Likewise.
105198         * lib/striconveha.c: Likewise.
105199         * lib/strncasecmp.c: Likewise.
105200         * lib/strndup.c: Likewise.
105201         * lib/strnlen.c: Likewise.
105202         * lib/strsep.c: Likewise.
105203         * lib/strstr.c: Likewise.
105204         * lib/strtok_r.c: Likewise.
105205         * lib/userspec.c: Likewise.
105206         * lib/w32spawn.h: Likewise.
105207         * lib/xstrndup.c: Likewise.
105208         * lib/mountlist.c (strstr): Remove decl.
105209         * m4/string_h.m4: New file.
105210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105211         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105212         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105213         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105214         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105215         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105216         Set REPLACE_STRCASECMP if necessary.
105217         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105218         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105219         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105220         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105221         HAVE_DECL_STRDUP if necessary.
105222         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105223         since gl_FUNC_STRNDUP does that now.
105224         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105225         Check for decl here...
105226         (gl_PREREQ_STRNLEN): ... not here.
105227         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105228         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105229         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105230         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105231         necessary.
105232         * modules/string: New file.
105233         * modules/memmem (Files): Remove special-purpose include file.
105234         (Depends-on): Add string.
105235         (Include): Include <string.h>, not the removed file.
105236         * modules/mempcpy: Likewise.
105237         * modules/memrchr: Likewise.
105238         * modules/stpcpy: Likewise.
105239         * modules/stpncpy: Likewise.
105240         * modules/strcase: Likewise.
105241         * modules/strchrnul: Likewise.
105242         * modules/strdup: Likewise.
105243         * modules/strndup: Likewise.
105244         * modules/strnlen: Likewise.
105245         * modules/strpbrk: Likewise.
105246         * modules/strsep: Likewise.
105247         * modules/strstr: Likewise.
105248         * modules/strtok_r: Likewise.
105249         * tests/test-dirname.c: Don't include "strdup.h", since
105250         <string.h> now suffices.
105251         * tests/test-memmem.c: Don't include "memmem.h", since
105252         <string.h> now suffices.
105254 2007-01-25  Bruno Haible  <bruno@clisp.org>
105256         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105257         *resultp is 0.
105259         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105260         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105261         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105262         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105264         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105265         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105266         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105267         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105268         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105269         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105271 2007-01-24  Bruno Haible  <bruno@clisp.org>
105273         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105274         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105275         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105276         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105277         gl_FUNC_FTS_CORE.
105278         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105279         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105280         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105281         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105282         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105283         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105284         gl_FUNC_FCHOWNAT.
105285         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105286         gl_FUNC_STRFTIME.
105287         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105288         Reported by Ralf Wildenhues.
105290 2007-01-24  Bruno Haible  <bruno@clisp.org>
105292         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105293         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105294         gl_GETADDRINFO.
105295         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105296         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105297         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105299 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105301         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105302         Don't use 'exit'; just return from 'main'.
105303         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105305         * lib/fnmatch_.h: Readjust white space and comments to match
105306         glibc, to avoid spurious diffs.
105308 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105310         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105311         2004-12-01 change by Jakub Jelinek, since this code won't compile
105312         if !LIBC.  Problem reported by Bob Proulx.
105314 2007-01-23  Bruno Haible  <bruno@clisp.org>
105316         * lib/striconveh.c: Include c-strcaseeq.h.
105317         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105318         * modules/striconveh (Depends-on): Add c-strcaseeq.
105320 2007-01-23  Bruno Haible  <bruno@clisp.org>
105322         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105324         * modules/c-strcaseeq: New file.
105325         * lib/c-strcaseeq.h: New file.
105327         * modules/streq: New file.
105328         * lib/streq.h: New file.
105330 2007-01-23  Bruno Haible  <bruno@clisp.org>
105332         * modules/striconveha-tests: New file.
105333         * tests/test-striconveha.c: New file.
105335         * lib/striconveha.h: Include <stdbool.h>.
105336         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105337         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105338         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105339         (mem_iconveha): New function.
105340         (str_iconveha_notranslit): Renamed from str_iconveha.
105341         (str_iconveha): New function.
105342         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105343         c-strcase.
105345 2007-01-23  Bruno Haible  <bruno@clisp.org>
105347         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105348         encodings without forgiving before trying any encoding with handler.
105349         (str_iconveha): Try all encodings without forgiving before trying any
105350         encoding with handler.
105352 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105354         Import the following changes from libc.
105356         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105358         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105360         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105362         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105363         normal_bracket label.
105365         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105367         [BZ #361]
105368         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105369         to normal_bracket after fetching the next character.
105371 2007-01-22  Bruno Haible  <bruno@clisp.org>
105373         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105374         argument.
105375         * lib/striconveh.c (iconv_carefully_1): New function.
105376         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105377         argument.
105378         (str_cd_iconveh): Update.
105379         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105380         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105381         * tests/test-striconveh.c (MAGIC): New macro.
105382         (new_offsets): New function.
105383         (main): Test call with and without offsets.
105385 2007-01-22  Bruno Haible  <bruno@clisp.org>
105387         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105388         * modules/sys_select (Makefile.am): Likewise.
105389         * modules/sys_socket (Makefile.am): Likewise.
105390         * modules/sys_time (Makefile.am): Likewise.
105392 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105394         * modules/gettimeofday (License): Change from GPL to LGPL, since
105395         gettimeofday is a library function.
105397 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105399         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105401 2007-01-21  Bruno Haible  <bruno@clisp.org>
105403         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105405 2007-01-21  Bruno Haible  <bruno@clisp.org>
105407         * modules/striconveha: New file.
105408         * lib/striconveha.h: New file.
105409         * lib/striconveha.c: New file.
105410         * MODULES.html.sh (Internationalization functions): Add striconveha.
105411         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105412         string.
105413         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105415 2007-01-21  Bruno Haible  <bruno@clisp.org>
105417         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105418         * lib/striconveh.c (str_iconveh): Likewise.
105420 2007-01-21  Bruno Haible  <bruno@clisp.org>
105422         * lib/striconveh.h (mem_iconveh): New declaration.
105423         * lib/striconveh.c (mem_iconveh): New function.
105424         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105426 2007-01-21  Bruno Haible  <bruno@clisp.org>
105428         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105430         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105431         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105432         original result buffer.
105433         (str_cd_iconveh): Update.
105434         * tests/test-striconveh.c (main): Update.
105436         * lib/striconv.h (mem_cd_iconv): Change specification.
105437         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105438         result buffer.
105439         (str_cd_iconv): Update.
105440         * tests/test-striconv.c (main): Update.
105442 2007-01-21  Bruno Haible  <bruno@clisp.org>
105444         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105446 2007-01-20  Jim Meyering  <jim@meyering.net>
105448         * lib/userspec.c (parse_with_separator): If a user or group string
105449         starts with "+", skip the corresponding name-to-ID look-up, since
105450         such a look-up must fail: user and group names may not include "+".
105452 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105454         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105455         since we now assume the sys_time module.
105456         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105457         check for sys/time.h; no longer needed.
105458         * modules/poll (Depends-on): Depend on sys_time.
105460 2007-01-18  Bruno Haible  <bruno@clisp.org>
105462         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105463         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105465         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105466         gettimeofday.
105468         * tests/test-gettimeofday.c: Include <time.h>.
105469         (dummy): Remove variable.
105471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105472         gl_HEADER_SYS_TIME_H.
105473         (gl_HEADER_SYS_TIME_H): New macro.
105475         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105476         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105478         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105479         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105481         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105482         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105483         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105484         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105485         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105487         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105488         last change; it caused a compilation error when cross-compiling to
105489         Cygwin.
105491 2007-01-18  Jim Meyering  <jim@meyering.net>
105493         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105494         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105495         than the race-prone "test -d sys || mkdir sys".
105496         (configure.ac): Use AC_PROG_MKDIR_P.
105497         * modules/sys_select: Likewise.
105498         * modules/sys_socket: Likewise.
105499         * modules/sys_time: Likewise.
105501 2007-01-18  Eric Blake  <ebb9@byu.net>
105503         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105504         replace gettimeofday.
105505         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105506         name, to avoid infinite recursion.
105508 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105510         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105511         module sys_time.
105512         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105513         assume timespec.h defines struct timeval.
105514         * lib/settime.c: Likewise.
105515         * lib/utimens.c: Likewise.
105516         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105517         since we now assume the gettimeofday module.
105518         * lib/tempname.c (__gen_tempname): Likewise.
105519         * lib/gettimeofday.h: Remove.
105520         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105521         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105522         Include <time.h>, for 'time()'.
105523         (localtime_buffer_addr): Also use this workaround if
105524         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105525         to simplify the uses.  All uses changed.
105526         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105527         that #undef is inside {}, and 'const' follows type name consistently.
105528         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105529         (gettimeofday): Do not use the maximum possible value for
105530         tv->tv_usec, since that might break usages other than ls.c.
105531         Instead, we'll leave ls.c alone.  This undoes today's patch
105532         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105533         we've never observed the problem but might as well keep the
105534         canary.
105535         * lib/nanosleep.c: Include timespec.h first, for interface check.
105536         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105537         now assume the sys_time module.
105538         * lib/tempname.c: Likewise.
105539         * lib/timespec.h: Likewise.
105540         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105541         needed.
105542         * lib/strftime.c: Likewise.
105543         * lib/timespec.h: Likewise.
105544         * lib/posixtm.c: Include posixtm.h first, for interface check.
105545         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105546         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105547         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105548         * lib/sys_time_.h: New file.
105549         * lib/timespec.h (struct timespec): Use long int, not long.
105550         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105551         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105552         Remove obsolescent call to AC_HEADER_TIME.
105553         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105555         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105556         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105557         Likewise.
105558         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105559         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105561         into the sys_time module.  Check for gettimeofday just once.
105562         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105563         for gettimeofday signature to just check the signature.  Merely
105564         compile it, since linking doesn't test signature.  Improve test for
105565         whether gettimeofday.o is actually needed.
105566         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105567         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105568         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105569         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105570         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105571         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105572         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105573         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105574         than worrying about sys/time.h.
105575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105576         Don't bother worrying about TIME_WITH_SYS_TIME.
105577         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105578         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105579         * m4/sys_time_h.m4: New file.
105580         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105581         Don't include sys/time.h.  Return from main rather than exiting.
105582         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105583         all uses changed.
105584         * modules/gethrxtime (Depends-on): Add sys_time.
105585         * modules/gettime (Depends-on): Likewise.
105586         * modules/gettimeofday (Depends-on): Likewise.
105587         * modules/nanosleep (Depends-on): Likewise.
105588         * modules/settime (Depends-on): Likewise.
105589         * modules/tempname (Depends-on): Likewise.
105590         * modules/utimens (Depends-on): Likewise.
105591         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105592         (Include): Change back to <sys/time.h>.
105593         (Maintainer): Add self.
105594         * modules/sys_time: New file.
105595         * modules/tempname (Depends-on): Add gettimeofday.
105596         * tests/test-gettimeofday.c: Include <sys/time.h>
105597         rather than gettimeofday.h.
105599 2007-01-17  Bruno Haible  <bruno@clisp.org>
105601         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105602         the license default to GPL.
105603         (func_create_testdir): Don't complain if a module is LGPL and its
105604         tests module depends on GPLed modules.
105606 2007-01-17  Bruno Haible  <bruno@clisp.org>
105608         * lib/gettimeofday.c (gettimeofday): Add code for the case
105609         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105610         maximum possible value for tv->tv_usec, rather than the minimum one.
105612 2005-10-08  Martin Lambers  <marlam@marlam.de>
105613 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105614 2007-01-16  Bruno Haible  <bruno@clisp.org>
105616         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105617         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105618         gl_FUNC_GETTIMEOFDAY.
105619         (Include): Add gettimeofday.h.
105620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105621         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105622         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105623         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105624         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105625         * lib/gettimeofday.h: New file.
105626         * lib/gettimeofday.c: Include <sys/timeb.h>.
105627         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105628         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105629         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105630         fall back on time().
105632         * tests/test-gettimeofday.c: New file.
105633         * modules/gettimeofday-tests: New file.
105635 2007-01-16  Eric Blake  <ebb9@byu.net>
105637         * modules/fnmatch (Depends-on): Depend on wchar.
105638         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105639         * m4/fnmatch.m4: Likewise.
105640         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105641         * m4/mbchar.m4: Likewise.
105642         * modules/mbswidth (Depends-on): Depend on wchar.
105643         * lib/mbswidth.c: Assume <wchar.h>.
105644         * m4/mbswidth.m4: Likewise.
105645         * modules/quotearg (Depends-on): Depend on wchar.
105646         * lib/quotearg.c: Assume <wchar.h>.
105647         * m4/quotearg.m4: Likewise.
105648         * modules/regex (Depends-on): Depend on wchar.
105649         * lib/regex_internal.h: Assume <wchar.h>.
105650         * m4/regex.m4: Likewise.
105651         * modules/stdint (Depends-on): Depend on wchar.
105652         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105653         * m4/stdint.m4: Likewise.
105654         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105655         * modules/strftime (Depends-on): Depend on wchar.
105656         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105657         * modules/strtol (Depends-on): Depend on wchar.
105658         * lib/strtol.c: Assume <wchar.h>.
105659         * modules/wcwidth (Depends-on): Depend on wchar.
105660         * lib/wcwidth.h: Assume <wchar.h>.
105661         * m4/wcwidth.m4: Likewise.
105663 2007-01-16  Bruno Haible  <bruno@clisp.org>
105665         * modules/csharpexec-script: New, created from...
105666         * modules/csharpexec: ... this.
105668 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105670         * modules/javaexec-script: New, created from...
105671         * modules/javaexec: ... this.
105673 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105675         * modules/poll (Dependencies): Add sys_select.
105677 2007-01-15  Jim Meyering  <jim@meyering.net>
105679         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105680         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105681         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105682         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105684 2007-01-15  Bruno Haible  <bruno@clisp.org>
105686         * modules/striconveh: New file.
105687         * lib/striconveh.h: New file.
105688         * lib/striconveh.c: New file.
105689         * MODULES.html.sh (Internationalization functions): Add striconveh.
105691         * modules/striconveh-tests: New file.
105692         * tests/test-striconveh.c: New file.
105694 2007-01-15  Bruno Haible  <bruno@clisp.org>
105696         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105697         not from GNU libiconv or GNU libc.
105699 2007-01-15  Bruno Haible  <bruno@clisp.org>
105701         * doc/gnulib-intro.texi (Copyright): Explain the different license
105702         terms for module descriptions, autoconf macros, tests, documentation.
105704 2007-01-14  Bruno Haible  <bruno@clisp.org>
105706         * modules/striconv-tests: New file.
105707         * tests/test-striconv.c: New file.
105709 2007-01-14  Bruno Haible  <bruno@clisp.org>
105711         * modules/iconv-tests: New file.
105712         * tests/test-iconv.c: New file.
105714 2007-01-14  Bruno Haible  <bruno@clisp.org>
105716         * gnulib-tool (func_get_license): For test modules, use the license of
105717         the main module.
105719 2007-01-14  Bruno Haible  <bruno@clisp.org>
105721         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105722         if iconv is found to exist.
105724 2007-01-14  Bruno Haible  <bruno@clisp.org>
105726         * modules/c-ctype-tests: New file.
105727         * tests/test-c-ctype.c: New file.
105729 2007-01-14  Bruno Haible  <bruno@clisp.org>
105731         * modules/binary-io-tests: New file.
105732         * tests/test-binary-io.sh: New file.
105733         * tests/test-binary-io.c: New file.
105735 2007-01-14  Bruno Haible  <bruno@clisp.org>
105737         * modules/array-oset-tests: New file.
105738         * tests/test-array_oset.c: New file.
105740 2007-01-14  Bruno Haible  <bruno@clisp.org>
105742         * modules/array-list-tests: New file.
105743         * tests/test-array_list.c: New file.
105745 2007-01-14  Bruno Haible  <bruno@clisp.org>
105747         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105748         and make.
105749         Reported by Simon Josefsson in
105750         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105752 2007-01-14  Bruno Haible  <bruno@clisp.org>
105754         * modules/allocsa-tests: New file.
105755         * tests/test-allocsa.c: New file.
105757 2007-01-14  Bruno Haible  <bruno@clisp.org>
105759         * modules/fchdir (Depends-on): Add absolute-header.
105760         * modules/unistd (Depends-on): Likewise.
105762 2006-12-30  Bruno Haible  <bruno@clisp.org>
105764         * modules/fchdir: New file.
105765         * modules/unistd (Files): Add lib/unistd_.h.
105766         (Makefile.am): Generate unistd.h from unistd_.h.
105767         * lib/fchdir.c: New file.
105768         * lib/dirent_.h: New file.
105769         * lib/unistd_.h: New file.
105770         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105771         * m4/fchdir.m4: New file.
105772         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105773         (gl_HEADER_UNISTD): Invoke it.
105774         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105775         function.
105776         * lib/backupfile.c (opendir, closedir): Undefine.
105777         * lib/chown.c (open, close): Undefine.
105778         * lib/clean-temp.c (open, close): Undefine.
105779         * lib/copy-file.c (open, close): Undefine.
105780         * lib/execute.c (open, close): Undefine.
105781         * lib/fsusage.c (open, close): Undefine.
105782         * lib/gc-gnulib.c (open, close): Undefine.
105783         * lib/getcwd.c (opendir, closedir): Undefine.
105784         * lib/glob.c (opendir, closedir): Undefine.
105785         * lib/javacomp.c (open, close): Undefine.
105786         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105787         * lib/openat-proc.c (open, close): Undefine.
105788         * lib/pagealign_alloc.c (open, close): Undefine.
105789         * lib/pipe.c (open, close): Undefine.
105790         * lib/progreloc.c (open, close): Undefine.
105791         * lib/savedir.c (opendir, closedir): Undefine.
105792         * lib/utime.c (open, close): Undefine.
105793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105795 2007-01-10  Bruno Haible  <bruno@clisp.org>
105797         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105799 2007-01-12  Eric Blake  <ebb9@byu.net>
105801         Provide a robust <wchar.h>.  Further simplifications are now
105802         possible in other modules, but not included here.
105803         * modules/wchar: New module.
105804         * m4/wchar.m4: New file.
105805         * lib/wchar_.h: Likewise.
105806         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105807         of the new module.
105808         * MODULES.html.sh (Extended multibyte and wide character utilities):
105809         New section.
105811 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105813         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105814         to a reasonable default for memory allocation.
105815         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105816         file system that reports garbage st_size values for symlinks.
105817         Problem reported by Liyang Hu.
105819 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105821         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105822         Emacs .#* auto-save files).
105824 2007-01-11  Bruno Haible  <bruno@clisp.org>
105826         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105827         directory.
105829 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105831         Use @...@ consistently in lib/wctype_.h.
105832         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105833         on it being set to 1 or 0.
105834         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105835         go back to AC_SUBSTing it.
105836         * modules/wctype (Makefile.am): Undo previous change.
105838 2007-01-10  Eric Blake  <ebb9@byu.net>
105840         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105841         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105842         * modules/wctype (Makefile.am): Likewise.
105843         Reported by Chris McGuire.
105845 2007-01-10  Jim Meyering  <jim@meyering.net>
105847         fts.c: a small readability/maintainability improvement
105848         * lib/fts.c (fts_read): Make this code slightly more readable and
105849         maintainable by hoisting the "sp->fts_cur = p" assignments to
105850         immediately follow the statements that set P.  Derived from
105851         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105853 2007-01-10  Eric Blake  <ebb9@byu.net>
105855         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105856         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105858         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105859         Reported by Chris McGuire.
105861 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105863         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105864         in sed script.
105866 2007-01-09  Bruno Haible  <bruno@clisp.org>
105868         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105869         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105870         variables.
105871         (func_module): Use them.
105873 2007-01-09  Bruno Haible  <bruno@clisp.org>
105875         * modules/unistr/base: New file.
105876         * lib/unistr.h: New file.
105878         * modules/unistr/u8-to-u16: New file.
105879         * lib/unistr/u8-to-u16.c: New file.
105881         * modules/unistr/u8-to-u32: New file.
105882         * lib/unistr/u8-to-u32.c: New file.
105884         * modules/unistr/u16-to-u8: New file.
105885         * lib/unistr/u16-to-u8.c: New file.
105887         * modules/unistr/u16-to-u32: New file.
105888         * lib/unistr/u16-to-u32.c: New file.
105890         * modules/unistr/u32-to-u8: New file.
105891         * lib/unistr/u32-to-u8.c: New file.
105893         * modules/unistr/u32-to-u16: New file.
105894         * lib/unistr/u32-to-u16.c: New file.
105896         * modules/unistr/u8-check: New file.
105897         * modules/unistr/u16-check: New file.
105898         * modules/unistr/u32-check: New file.
105899         * lib/unistr/u8-check.c: New file.
105900         * lib/unistr/u16-check.c: New file.
105901         * lib/unistr/u32-check.c: New file.
105903         * modules/unistr/u8-chr: New file.
105904         * modules/unistr/u16-chr: New file.
105905         * modules/unistr/u32-chr: New file.
105906         * lib/unistr/u8-chr.c: New file.
105907         * lib/unistr/u16-chr.c: New file.
105908         * lib/unistr/u32-chr.c: New file.
105910         * modules/unistr/u8-cmp: New file.
105911         * modules/unistr/u16-cmp: New file.
105912         * modules/unistr/u32-cmp: New file.
105913         * lib/unistr/u8-cmp.c: New file.
105914         * lib/unistr/u16-cmp.c: New file.
105915         * lib/unistr/u32-cmp.c: New file.
105917         * modules/unistr/u8-cpy: New file.
105918         * modules/unistr/u16-cpy: New file.
105919         * modules/unistr/u32-cpy: New file.
105920         * lib/unistr/u8-cpy.c: New file.
105921         * lib/unistr/u16-cpy.c: New file.
105922         * lib/unistr/u32-cpy.c: New file.
105923         * lib/unistr/u-cpy.h: New file.
105925         * modules/unistr/u8-cpy-alloc: New file.
105926         * modules/unistr/u16-cpy-alloc: New file.
105927         * modules/unistr/u32-cpy-alloc: New file.
105928         * lib/unistr/u8-cpy-alloc.c: New file.
105929         * lib/unistr/u16-cpy-alloc.c: New file.
105930         * lib/unistr/u32-cpy-alloc.c: New file.
105931         * lib/unistr/u-cpy-alloc.h: New file.
105933         * modules/unistr/u8-endswith: New file.
105934         * modules/unistr/u16-endswith: New file.
105935         * modules/unistr/u32-endswith: New file.
105936         * lib/unistr/u8-endswith.c: New file.
105937         * lib/unistr/u16-endswith.c: New file.
105938         * lib/unistr/u32-endswith.c: New file.
105939         * lib/unistr/u-endswith.h: New file.
105941         * modules/unistr/u8-mblen: New file.
105942         * modules/unistr/u16-mblen: New file.
105943         * modules/unistr/u32-mblen: New file.
105944         * lib/unistr/u8-mblen.c: New file.
105945         * lib/unistr/u16-mblen.c: New file.
105946         * lib/unistr/u32-mblen.c: New file.
105948         * modules/unistr/u8-mbtouc: New file.
105949         * modules/unistr/u16-mbtouc: New file.
105950         * modules/unistr/u32-mbtouc: New file.
105951         * lib/unistr/u8-mbtouc.c: New file.
105952         * lib/unistr/u16-mbtouc.c: New file.
105953         * lib/unistr/u32-mbtouc.c: New file.
105955         * modules/unistr/u8-mbtouc-safe: New file.
105956         * modules/unistr/u16-mbtouc-safe: New file.
105957         * modules/unistr/u32-mbtouc-safe: New file.
105958         * lib/unistr/u8-mbtouc-safe.c: New file.
105959         * lib/unistr/u16-mbtouc-safe.c: New file.
105960         * lib/unistr/u32-mbtouc-safe.c: New file.
105962         * modules/unistr/u8-move: New file.
105963         * modules/unistr/u16-move: New file.
105964         * modules/unistr/u32-move: New file.
105965         * lib/unistr/u8-move.c: New file.
105966         * lib/unistr/u16-move.c: New file.
105967         * lib/unistr/u32-move.c: New file.
105968         * lib/unistr/u-move.h: New file.
105970         * modules/unistr/u8-next: New file.
105971         * modules/unistr/u16-next: New file.
105972         * modules/unistr/u32-next: New file.
105973         * lib/unistr/u8-next.c: New file.
105974         * lib/unistr/u16-next.c: New file.
105975         * lib/unistr/u32-next.c: New file.
105977         * modules/unistr/u8-prev: New file.
105978         * modules/unistr/u16-prev: New file.
105979         * modules/unistr/u32-prev: New file.
105980         * lib/unistr/u8-prev.c: New file.
105981         * lib/unistr/u16-prev.c: New file.
105982         * lib/unistr/u32-prev.c: New file.
105984         * modules/unistr/u8-set: New file.
105985         * modules/unistr/u16-set: New file.
105986         * modules/unistr/u32-set: New file.
105987         * lib/unistr/u8-set.c: New file.
105988         * lib/unistr/u16-set.c: New file.
105989         * lib/unistr/u32-set.c: New file.
105990         * lib/unistr/u-set.h: New file.
105992         * modules/unistr/u8-startswith: New file.
105993         * modules/unistr/u16-startswith: New file.
105994         * modules/unistr/u32-startswith: New file.
105995         * lib/unistr/u8-startswith.c: New file.
105996         * lib/unistr/u16-startswith.c: New file.
105997         * lib/unistr/u32-startswith.c: New file.
105998         * lib/unistr/u-startswith.h: New file.
106000         * modules/unistr/u8-stpcpy: New file.
106001         * modules/unistr/u16-stpcpy: New file.
106002         * modules/unistr/u32-stpcpy: New file.
106003         * lib/unistr/u8-stpcpy.c: New file.
106004         * lib/unistr/u16-stpcpy.c: New file.
106005         * lib/unistr/u32-stpcpy.c: New file.
106006         * lib/unistr/u-stpcpy.h: New file.
106008         * modules/unistr/u8-stpncpy: New file.
106009         * modules/unistr/u16-stpncpy: New file.
106010         * modules/unistr/u32-stpncpy: New file.
106011         * lib/unistr/u8-stpncpy.c: New file.
106012         * lib/unistr/u16-stpncpy.c: New file.
106013         * lib/unistr/u32-stpncpy.c: New file.
106014         * lib/unistr/u-stpncpy.h: New file.
106016         * modules/unistr/u8-strcat: New file.
106017         * modules/unistr/u16-strcat: New file.
106018         * modules/unistr/u32-strcat: New file.
106019         * lib/unistr/u8-strcat.c: New file.
106020         * lib/unistr/u16-strcat.c: New file.
106021         * lib/unistr/u32-strcat.c: New file.
106022         * lib/unistr/u-strcat.h: New file.
106024         * modules/unistr/u8-strchr: New file.
106025         * modules/unistr/u16-strchr: New file.
106026         * modules/unistr/u32-strchr: New file.
106027         * lib/unistr/u8-strchr.c: New file.
106028         * lib/unistr/u16-strchr.c: New file.
106029         * lib/unistr/u32-strchr.c: New file.
106031         * modules/unistr/u8-strcmp: New file.
106032         * modules/unistr/u16-strcmp: New file.
106033         * modules/unistr/u32-strcmp: New file.
106034         * lib/unistr/u8-strcmp.c: New file.
106035         * lib/unistr/u16-strcmp.c: New file.
106036         * lib/unistr/u32-strcmp.c: New file.
106038         * modules/unistr/u8-strcpy: New file.
106039         * modules/unistr/u16-strcpy: New file.
106040         * modules/unistr/u32-strcpy: New file.
106041         * lib/unistr/u8-strcpy.c: New file.
106042         * lib/unistr/u16-strcpy.c: New file.
106043         * lib/unistr/u32-strcpy.c: New file.
106044         * lib/unistr/u-strcpy.h: New file.
106046         * modules/unistr/u8-strcspn: New file.
106047         * modules/unistr/u16-strcspn: New file.
106048         * modules/unistr/u32-strcspn: New file.
106049         * lib/unistr/u8-strcspn.c: New file.
106050         * lib/unistr/u16-strcspn.c: New file.
106051         * lib/unistr/u32-strcspn.c: New file.
106052         * lib/unistr/u-strcspn.h: New file.
106054         * modules/unistr/u8-strdup: New file.
106055         * modules/unistr/u16-strdup: New file.
106056         * modules/unistr/u32-strdup: New file.
106057         * lib/unistr/u8-strdup.c: New file.
106058         * lib/unistr/u16-strdup.c: New file.
106059         * lib/unistr/u32-strdup.c: New file.
106060         * lib/unistr/u-strdup.h: New file.
106062         * modules/unistr/u8-strlen: New file.
106063         * modules/unistr/u16-strlen: New file.
106064         * modules/unistr/u32-strlen: New file.
106065         * lib/unistr/u8-strlen.c: New file.
106066         * lib/unistr/u16-strlen.c: New file.
106067         * lib/unistr/u32-strlen.c: New file.
106068         * lib/unistr/u-strlen.h: New file.
106070         * modules/unistr/u8-strmblen: New file.
106071         * modules/unistr/u16-strmblen: New file.
106072         * modules/unistr/u32-strmblen: New file.
106073         * lib/unistr/u8-strmblen.c: New file.
106074         * lib/unistr/u16-strmblen.c: New file.
106075         * lib/unistr/u32-strmblen.c: New file.
106077         * modules/unistr/u8-strmbtouc: New file.
106078         * modules/unistr/u16-strmbtouc: New file.
106079         * modules/unistr/u32-strmbtouc: New file.
106080         * lib/unistr/u8-strmbtouc.c: New file.
106081         * lib/unistr/u16-strmbtouc.c: New file.
106082         * lib/unistr/u32-strmbtouc.c: New file.
106084         * modules/unistr/u8-strncat: New file.
106085         * modules/unistr/u16-strncat: New file.
106086         * modules/unistr/u32-strncat: New file.
106087         * lib/unistr/u8-strncat.c: New file.
106088         * lib/unistr/u16-strncat.c: New file.
106089         * lib/unistr/u32-strncat.c: New file.
106090         * lib/unistr/u-strncat.h: New file.
106092         * modules/unistr/u8-strncmp: New file.
106093         * modules/unistr/u16-strncmp: New file.
106094         * modules/unistr/u32-strncmp: New file.
106095         * lib/unistr/u8-strncmp.c: New file.
106096         * lib/unistr/u16-strncmp.c: New file.
106097         * lib/unistr/u32-strncmp.c: New file.
106099         * modules/unistr/u8-strncpy: New file.
106100         * modules/unistr/u16-strncpy: New file.
106101         * modules/unistr/u32-strncpy: New file.
106102         * lib/unistr/u8-strncpy.c: New file.
106103         * lib/unistr/u16-strncpy.c: New file.
106104         * lib/unistr/u32-strncpy.c: New file.
106105         * lib/unistr/u-strncpy.h: New file.
106107         * modules/unistr/u8-strnlen: New file.
106108         * modules/unistr/u16-strnlen: New file.
106109         * modules/unistr/u32-strnlen: New file.
106110         * lib/unistr/u8-strnlen.c: New file.
106111         * lib/unistr/u16-strnlen.c: New file.
106112         * lib/unistr/u32-strnlen.c: New file.
106113         * lib/unistr/u-strnlen.h: New file.
106115         * modules/unistr/u8-strpbrk: New file.
106116         * modules/unistr/u16-strpbrk: New file.
106117         * modules/unistr/u32-strpbrk: New file.
106118         * lib/unistr/u8-strpbrk.c: New file.
106119         * lib/unistr/u16-strpbrk.c: New file.
106120         * lib/unistr/u32-strpbrk.c: New file.
106121         * lib/unistr/u-strpbrk.h: New file.
106123         * modules/unistr/u8-strrchr: New file.
106124         * modules/unistr/u16-strrchr: New file.
106125         * modules/unistr/u32-strrchr: New file.
106126         * lib/unistr/u8-strrchr.c: New file.
106127         * lib/unistr/u16-strrchr.c: New file.
106128         * lib/unistr/u32-strrchr.c: New file.
106130         * modules/unistr/u8-strspn: New file.
106131         * modules/unistr/u16-strspn: New file.
106132         * modules/unistr/u32-strspn: New file.
106133         * lib/unistr/u8-strspn.c: New file.
106134         * lib/unistr/u16-strspn.c: New file.
106135         * lib/unistr/u32-strspn.c: New file.
106136         * lib/unistr/u-strspn.h: New file.
106138         * modules/unistr/u8-strstr: New file.
106139         * modules/unistr/u16-strstr: New file.
106140         * modules/unistr/u32-strstr: New file.
106141         * lib/unistr/u8-strstr.c: New file.
106142         * lib/unistr/u16-strstr.c: New file.
106143         * lib/unistr/u32-strstr.c: New file.
106144         * lib/unistr/u-strstr.h: New file.
106146         * modules/unistr/u8-strtok: New file.
106147         * modules/unistr/u16-strtok: New file.
106148         * modules/unistr/u32-strtok: New file.
106149         * lib/unistr/u8-strtok.c: New file.
106150         * lib/unistr/u16-strtok.c: New file.
106151         * lib/unistr/u32-strtok.c: New file.
106152         * lib/unistr/u-strtok.h: New file.
106154         * modules/unistr/u8-uctomb: New file.
106155         * modules/unistr/u16-uctomb: New file.
106156         * modules/unistr/u32-uctomb: New file.
106157         * lib/unistr/u8-uctomb.c: New file.
106158         * lib/unistr/u16-uctomb.c: New file.
106159         * lib/unistr/u32-uctomb.c: New file.
106161         * MODULES.html.sh (Unicode string functions): Add the new modules.
106163 2007-01-08  Bruno Haible  <bruno@clisp.org>
106165         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106166         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106167         subdirectories.
106169 2007-01-08  Karl Berry  <karl@gnu.org>
106171         * doc/error.texi: mention that main() fns must set program_name
106172         when progname is used.
106174 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106176         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106177         WCTYPE_H is empty, for the benefit of builds from non-distclean
106178         directories.  Problem reported by Eric Blake in
106179         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106181 2007-01-08  Bruno Haible  <bruno@clisp.org>
106183         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106184         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106185         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106186         PROVIDE_CANONICALIZE_FILENAME_MODE.
106187         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106189 2007-01-08  Bruno Haible  <bruno@clisp.org>
106191         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106192         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106193         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106194         * lib/fts.c: Likewise.
106195         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106197 2006-12-25  Bruno Haible  <bruno@clisp.org>
106199         * modules/utf8-ucs4-safe: New file.
106200         * lib/utf8-ucs4-safe.h: New file.
106201         * lib/unistr/utf8-ucs4-safe.c: New file.
106203         * modules/utf16-ucs4-safe: New file.
106204         * lib/utf16-ucs4-safe.h: New file.
106205         * lib/unistr/utf16-ucs4-safe.c: New file.
106207         * MODULES.html.sh (Unicode string functions): Add the new modules.
106209 2007-01-08  Bruno Haible  <bruno@clisp.org>
106211         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106212         (Depends-on): Add unitypes.
106213         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106214         (u8_mbtouc_aux): Move out to separate file.
106215         (u8_mbtouc): Use ucs4_t, uint8_t types.
106216         * lib/unistr/utf8-ucs4.c: New file.
106218         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106219         (Depends-on): Add unitypes.
106220         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106221         (u16_mbtouc_aux): Move out to separate file.
106222         (u16_mbtouc): Use ucs4_t, uint16_t types.
106223         * lib/unistr/utf16-ucs4.c: New file.
106225         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106226         (Depends-on): Add unitypes.
106227         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106228         (u8_uctomb_aux): Move out to separate file.
106229         (u8_uctomb): Use ucs4_t, uint8_t types.
106230         * lib/unistr/ucs4-utf8.c: New file.
106232         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106233         (Depends-on): Add unitypes.
106234         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106235         (u16_uctomb_aux): Move out to separate file.
106236         (u16_uctomb): Use ucs4_t, uint16_t types.
106237         * lib/unistr/ucs4-utf16.c: New file.
106239 2006-12-25  Bruno Haible  <bruno@clisp.org>
106241         * modules/unitypes: New file.
106242         * lib/unitypes.h: New file.
106243         * MODULES.html.sh (func_all_modules): New section "Unicode string
106244         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106245         this section. Add unitypes.
106247 2007-01-08  Bruno Haible  <bruno@clisp.org>
106249         Avoid variable names that conflict with those from libtool.
106250         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106251         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106252         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106253         library_names_spec to acl_library_names_spec, hardcode_* to
106254         acl_hardcode_*.
106255         Reported by Ralf Wildenhues.
106257 2007-01-08  Bruno Haible  <bruno@clisp.org>
106259         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106260         definition.
106261         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106262         definition.
106263         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106264         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106265         definition.
106266         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106267         definition.
106268         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106269         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106270         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106271         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106272         definition.
106273         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106274         definition.
106275         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106276         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106277         GC_USE_<algorithm>.
106278         * lib/gc-libgcrypt.c: Likewise.
106279         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106280         * modules/gc-arctwo (configure.ac): Likewise.
106281         * modules/gc-des (configure.ac): Likewise.
106282         * modules/gc-hmac-md5 (configure.ac): Likewise.
106283         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106284         * modules/gc-md2 (configure.ac): Likewise.
106285         * modules/gc-md4 (configure.ac): Likewise.
106286         * modules/gc-md5 (configure.ac): Likewise.
106287         * modules/gc-random (configure.ac): Likewise.
106288         * modules/gc-rijndael (configure.ac): Likewise.
106289         * modules/gc-sha1 (configure.ac): Likewise.
106291 2007-01-08  Bruno Haible  <bruno@clisp.org>
106293         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106294         macro definition.
106295         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106296         definition.
106297         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106298         definition.
106299         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106300         * modules/fcntl-safer (configure.ac): Likewise.
106301         * modules/fopen-safer (configure.ac): Likewise.
106302         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106303         GNULIB_FWRITEERROR macro definition.
106305 2007-01-08  Bruno Haible  <bruno@clisp.org>
106307         * m4/gnulib-common.m4: New file.
106308         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106309         (func_get_filelist): Add m4/gnulib-common.m4.
106311 2007-01-08  Bruno Haible  <bruno@clisp.org>
106313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106314         command.
106316 2007-01-08  Jim Meyering  <jim@meyering.net>
106318         Use a more robust test for a "can't happen" condition.
106319         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106320         narrowed the st_size value.  Presuming the "can't happen" condition
106321         is true, that narrowing could conceivably convert an invalid st_size
106322         value into a valid one.  Instead, use a change based on Matthew
106323         Woehlke's original patch.
106325         Slight readability improvement: use an assert-like macro
106326         in place of literal "abort ()" uses.
106327         * lib/fts.c (fts_assert): Define.
106328         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106329         Use this macro instead of a bare 'abort'.
106331 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106333         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106334         simply work around them.
106335         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106336         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106337         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106338         declaring.
106339         Don't bother to define as macros, since the standard doesn't require it.
106340         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106341         longer worry about IRIX 5.3.
106342         (HAVE_WCTYPE_CTMP_BUG): Remove.
106344 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106346         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106347         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106348         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106349         Problems reported by Georg Schwarz for IRIX 5.3.
106351         * gnulib-tool (autoconf_minversion): Take the maximum version number
106352         found, not the minimum.  Problem reported by James Youngman.
106354 2007-01-03  Karl Berry  <karl@gnu.org>
106356         * doc/error.texi: new file, explaining interaction with progname.
106357         * doc/gnulib.texi: include it.  Update copyright.
106359 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106361         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106362         AC_CANONICAL_HOST, to improve autobuild outputs.
106364 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106365             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106367         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106368         sockets, server sockets, and other file descriptors.  Count errors
106369         to compute the return value.  Reorder the code a bit to be easier
106370         to follow.  Don't set event bits that were not requested (except
106371         POLLERR and POLLHUP).
106373 2007-01-01  Bruno Haible  <bruno@clisp.org>
106375         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106377 2007-01-03  Jim Meyering  <jim@meyering.net>
106379         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106381 2007-01-02  Bruno Haible  <bruno@clisp.org>
106383         * modules/settime (Include): Require timespec.h.
106384         * modules/nanosleep (Include): Likewise.
106386 2007-01-01  Bruno Haible  <bruno@clisp.org>
106388         * gnulib-tool (func_emit_copyright_notice): Bump year.
106389         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106391 2007-01-01  Bruno Haible  <bruno@clisp.org>
106393         Improve support for OpenBSD.
106394         * build-aux/config.rpath (libname_spec): Export.
106395         (library_names_spec): New variable. Export.
106396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106397         library_names_spec from the config.rpath output. Locate shared library
106398         through the name pattern in library_names_spec.
106400 2007-01-01  Eric Blake  <ebb9@byu.net>
106402         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106404 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106406         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106407         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106408         assume the C locale, and avoid an "eval" that could cause trouble.
106409         Problem with SORT reported by Bob Proulx.
106411         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106412         Define.  Trivial patch from Henning Nielsen Lund, originally
106413         sent to bug-grep@gnu.org today.
106415 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106417         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106418         struct stat.  Problem reported by Henning Nielsen Lund.
106419         * lib/acl.c: Include acl.h first, to check interface.  Don't
106420         bother to include sys/types.h and sys/stat.h again.
106422 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106424         Import the following change from libc; problem reported by
106425         Sven Verdoolaege.
106427         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106429         [BZ #1373]
106430         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106432 2006-12-28  Jim Meyering  <jim@meyering.net>
106434         * build-aux/announce-gen: Do not assume that the package
106435         builds any of tar.gz, tar.bz2, and .xdelta files.
106436         Suggestion from Simon Josefsson.
106438 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106440         * modules/announce-gen: New file.
106442 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106444         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106445         handles its gotchas now.
106446         * lib/mbswidth.c: Likewise.
106447         * lib/wcwidth.h: Likewise.
106448         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106449         and iswcntrl; the wctype module does this stuff now.
106450         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106452         * modules/mbchar (Depends-on): Add wctype.
106453         * modules/mbswidth (Depends-on): Likewise.
106454         * modules/wcwidth (Depends-on): Likewise.
106456 2006-12-27  Eric Blake  <ebb9@byu.net>
106458         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106459         module uses more than what <wctype.h> is required to provide.
106461 2006-12-26  Eric Blake  <ebb9@byu.net>
106463         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106465 2006-12-26  Eric Blake  <ebb9@byu.net>
106467         * modules/absolute-header: New module.
106468         * modules/fcntl (Depends-on): Depend on it.
106469         * modules/inttypes (Depends-on): Likewise.
106470         * modules/stdint (Depends-on): Likewise.
106471         * modules/sys_stat (Depends-on): Likewise.
106472         * modules/wctype (Depends-on): Likewise.
106473         * MODULES.html.sh (Support for building libraries and
106474         executables): Document it.
106476 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106478         * gnulib-tool (SED): Remove, undoing previous change.
106479         The problem was that it broke coreutils on Solaris, because
106480         "sed --posix" leaked into a makefile.
106481         (sed): New alias, if 'alias' and GNU sed.
106483 2006-12-24  Jim Meyering  <jim@meyering.net>
106485         Work around an fchownat bug in glibc-2.4:
106486         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106487         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106488         in spite of the -P option.
106489         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106490         New macros.
106491         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106492         * modules/openat (Files): Add lib/fchownat.c.
106493         * lib/openat.c (fchownat): Don't define here.  Move to...
106494         * lib/fchownat.c: ...this new file.
106496 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106498         Fix bug reported by Bruno Haible in
106499         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106500         where quotearg.c didn't compile on Mac OS X 10.2 because it
106501         lacks <wchar.h> and wint_t.
106502         * lib/wctype_.h (__wctype_wint_t): New type.
106503         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106504         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106505         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106506         Arg is now of type __wctype_wint_t, not wint_t.
106507         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106508         substitute HAVE_WINT_T.
106509         * modules/wctype (Files): Add m4/wint_t.m4.
106510         (wctype.h): Substitute HAVE_WINT_T.
106512 2006-12-23  Bruno Haible  <bruno@clisp.org>
106514         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106516 2006-12-23  Bruno Haible  <bruno@clisp.org>
106518         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106519         S_ISLNK.
106520         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106521         mingw.
106523 2006-12-22  Bruno Haible  <bruno@clisp.org>
106525         * lib/copy-file.c: Include acl.h.
106526         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106527         Close the file descriptors only after being done with copy_acl.
106528         * modules/copy-file (Depends-on): Add acl.
106530 2006-12-22  Bruno Haible  <bruno@clisp.org>
106532         * gnulib-tool (SED): New variable.
106533         Use $SED instead of sed everywhere.
106535 2006-12-22  Bruno Haible  <bruno@clisp.org>
106537         * modules/no-c++: New file.
106538         * m4/no-c++.m4: New file.
106539         * MODULES.html.sh (Support for building libraries and executables):
106540         Add no-c++.
106542 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106544         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106545         Include <limits.h>, and use its INT_MAX to rewrite the
106546         j loop so that it does not overflow 'int'.  Problem reported by
106547         Ralf Wildenhues in
106548         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106549         Play it safe by shifting left by 1 rather than multiplying by 2,
106550         as GCC is less likely to optimize this away when the value
106551         is signed (when it assumes overflow leads to undefined behavior).
106552         Also, don't assume time_t uses two's complement.
106554 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106556         * MODULES.html.sh: New module wctype.
106557         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106558         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106559         <wctype.h>, since the new wctype module should fix this.
106560         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106561         the wctype module should arrange for it.
106562         * lib/regex_internal.h: Likewise.
106563         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106564         since the wctype module should handle this now.
106565         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106566         * modules/fnmatch (Depends-on): Add wctype.
106567         * modules/quotearg (Depends-on): Likewise.
106568         * modules/regex (Depends-on): Likewise.
106570 2006-12-19  Bruno Haible  <bruno@clisp.org>
106572         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106573         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106575 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106577         * modules/savewd (Depends-on): Fix dependency on fcntl.
106579 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106581         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106582         conforms to C99, rather than relying on the user's environment
106583         setting of STDINT_H.
106585 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106586         and Eric Blake  <ebb9@byu.net>
106588         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106589         This is more consistent with the other defines here.
106590         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106591         Port to z/OS.  Problem reported by Paul Gilmartin.
106592         Change local vars to use gl_ prefix rather than ac_.
106593         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106594         with other defines.
106595         * modules/double-slash-root: New module.
106596         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106597         (Depends-on): Add double-slash-root.
106598         * MODULES.html.sh (File system functions): Mention new module.
106600 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106602         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106603         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106604         This is for the benefit of gzip, which doesn't do i18n.
106606 2006-12-12  Jim Meyering  <jim@meyering.net>
106608         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106609         Reported by Andreas Schwab <schwab@suse.de>.
106611 2006-12-12  Bruno Haible  <bruno@clisp.org>
106613         Merge these changes.
106614         2006-09-05  Bruno Haible  <bruno@clisp.org>
106615         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106616         iconv_alloc succeeded.
106617         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106618         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106619         test for " && dest " at the end - dest is always != NULL there. Call
106620         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106621         with 2xNULL arguments, also to flush the state storage. Handle the
106622         IRIX iconv behaviour. Realloc the final result, to throw away unused
106623         memory.
106625 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106627         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106628         and fchmodat unconditionally, since glibc 2.4 has them.
106629         Problem reported by Arkadiusz Miskiewicz.
106631 2006-12-10  Bruno Haible  <bruno@clisp.org>
106633         * gnulib-tool (func_import): Show the include files only for those
106634         modules that are copied and specified.
106635         Reported by Karl Berry.
106637 2006-12-08  Jim Meyering  <jim@meyering.net>
106639         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106640         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106642         * build-aux/announce-gen: Add two new options, both optional:
106643         --bootstrap-tools=TOOL_LIST
106644               a comma-separated list of tools, e.g.,
106645               autoconf,automake,bison,gnulib
106646         --gnulib-snapshot-date=DATE
106647               if gnulib is in the bootstrap tool list,
106648               then report this as the snapshot date.
106649               If not specified, use the current date/time.
106650               If you specify a date here, be sure it's UTC.
106652 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106654         * tests/test-argp-2.sh: Fix test to match actual output.
106655         (func_compare): Fix sed script to be portable.
106657 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106659         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106660         workaround for this case.  It is not autoconfigured now; offhand
106661         it's hard to see how to autoconfigure it.
106663 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106665         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106666         a directory that is about to be chowned.  Such a directory's
106667         initial file permissions should permit the owner only and this
106668         should not be changed until after the chown, since the group and
106669         other bits would be incorrect if they granted permission before
106670         the chown.
106672         Fix porting problem for iswctype reported by Georg Schwarz in:
106673         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106674         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106675         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106676         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106677         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106679 2006-12-03  Jim Meyering  <jim@meyering.net>
106681         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106682         p->fts_statp may not yet be defined.
106683         (fts_read): Instead, set it in the caller, once p->fts_statp is
106684         sure to be defined, and corresponds to a top-level directory.
106685         This bug made du -x fail.  Here's the coreutils test case:
106686         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106687         Reported by Mike Frysinger.
106689 2006-12-01  Jim Meyering  <jim@meyering.net>
106691         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106692         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106693         Reported by Simon Josefsson.
106695 2006-11-30  Jim Meyering  <jim@meyering.net>
106697         * m4/warning.m4: Use the all-permissive copyright notice
106698         recommended by RMS (rather than LGPL).
106699         * m4/vararrays.m4: Likewise.
106700         * m4/flexmember.m4: Likewise.
106702 2006-11-29  Bruno Haible  <bruno@clisp.org>
106704         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106705         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106706         using +=.
106707         Reported by Simon Josefsson <simon@josefsson.org>.
106709 2006-11-28  James Youngman  <jay@gnu.org>
106711         * README: Advise users that they might find the bug-gnulib@gnu.org
106712         and autotools-announce@gnu.org mailing lists useful.
106714 2006-11-28  Bruno Haible  <bruno@clisp.org>
106716         * m4/ptrdiff_max.m4: Remove file.
106718 2006-11-21  Bruno Haible  <bruno@clisp.org>
106720         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106721         _AC_COMPUTE_INT.
106722         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106723         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106724         _AC_COMPUTE_INT.
106725         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106726         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106727         _AC_COMPUTE_INT.
106728         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106730 2006-11-28  Jim Meyering  <jim@meyering.net>
106732         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106733         warning from "gcc -Wshadow" about shadowing the builtin.
106735 2006-11-27  Bruno Haible  <bruno@clisp.org>
106737         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106738         _AC_COMPUTE_INT.
106739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106741 2006-11-27  Bruno Haible  <bruno@clisp.org>
106742             Paul Eggert  <eggert@cs.ucla.edu>
106744         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106746 2006-11-26  Bruno Haible  <bruno@clisp.org>
106748         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106749         noinst_LTLIBRARIES.
106751 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106752             Bruno Haible  <bruno@clisp.org>
106754         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106755         if compiling with "gcc -ansi".
106757 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106759         Fix some incompatibilities with gcc -ansi -pedantic.
106760         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106761         if compiling pedantically with GCC, unless it's C99 or later.
106762         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106763         it mishandles gcc -ansi -pedantic as well.
106764         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106765         if gcc -pedantic.
106766         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106767         initializers for struct if -pedantic, unless it's C99 or later.
106769 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106771         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106772         Don't close an fd more than once. Identical atimes indicate
106773         success, not failure.
106775 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106777         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106779 2006-11-23  Jim Meyering  <jim@meyering.net>
106781         * build-aux/announce-gen: New file.  From coreutils.
106783 2006-11-22  Jim Meyering  <jim@meyering.net>
106785         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106786         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106787         (fts_read): Use a temporary to narrow the overused st_size member
106788         before using it in a switch statement.  Reported by Matthew Woehlke.
106790         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106791         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106793 2006-11-20  Bruno Haible  <bruno@clisp.org>
106795         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106796         changequote instead of pairs of brackets.
106797         Reported by Andreas Schwab <schwab@suse.de>.
106799 2006-11-21  Jim Meyering  <jim@meyering.net>
106801         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106802         so as to remain compatible with older compilers.
106803         Patch from Michael Deutschmann.
106805 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106807         * MODULES.html.sh (File system functions): Add openat.
106809         * lib/openat.h (rpl_fstatat): New macro, if
106810         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106811         (fstatat): Define to rpl_fstatat under the same conditions,
106812         unless COMPILING_FSTATAT.
106813         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106814         seems to have the bug.
106815         * lib/fstatat.c: New file.
106816         * modules/openat (Files): Add it.
106818 2006-11-20  Bruno Haible  <bruno@clisp.org>
106820         * Makefile: New file.
106822 2006-11-20  Jim Meyering  <jim@meyering.net>
106824         The beginnings of syntax-related checks for gnulib.
106825         * lib/Makefile: New file.
106826         * lib/t-idcache: New script.  Ensure that the two halves of
106827         idcache.c stay in sync.
106829         * lib/idcache.c: Adjust comments in user- and group- portions to
106830         be more accurate, and to be consistent with one another.
106832 2006-11-20  Jim Meyering  <jim@meyering.net>
106834         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106835         continue using the flexible array member (thus, this module performs
106836         half as many malloc calls), with the addition that...
106837         (getgroup, getuser): Consistently record a non-match via an empty
106838         "name" string, and map an empty string match to a NULL return value.
106839         * modules/idcache (Depends-on): Re-add flexmember.
106841         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106842         (getuidbyname, getgroup, getgidbyname): Likewise.
106844         Use cleaner syntax: NULL rather than 0.
106845         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106847 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106849         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106850         It mishandled the case where the group was missing.
106851         Problem reported by Greg Schafer.
106852         * modules/idcache: Likewise.
106854 2006-11-18  Jim Meyering  <jim@meyering.net>
106856         * check-module (%exempt_header): Add exception for some
106857         conditionally-included headers.
106859         * modules/i-ring (Depends-on): Add verify.
106860         (License): Change to LGPL.
106862 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106864         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106865         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106866         and inttostr.h.  Use snprintf rather than uinttostr, so that
106867         LGPLed code doesn't depend on GPLed.
106869 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106871         * modules/inline (License): Change from GPL to LGPL.
106873 2006-11-17  Jim Meyering  <jim@meyering.net>
106875         * modules/d-type (License): Switch to LGPL.
106877 2006-11-15  Bruno Haible  <bruno@clisp.org>
106879         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106881 2006-11-15  Eric Blake  <ebb9@byu.net>
106883         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106884         the module dependency.
106886 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106887             Bruno Haible  <bruno@clisp.org>
106889         * gnulib-tool (func_create_testdir): Add license consistency check.
106891 2006-11-15  Eric Blake  <ebb9@byu.net>
106893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106894         random "(cached)" in configure output.
106896 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106898         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106899         test for conforming inttypes.h is both announced and cached.
106901         * MODULES.html.sh (seen_modules, seen_files): New variables.
106902         (func_module): Rewrite to use a few less gnulib-tool and sed
106903         invocations.  Avoid a couple of quadratic algorithms for ...
106904         (missed_modules, missed_files): ... these, with ...
106905         (func_append, func_tmpdir): ... these new functions, from
106906         gnulib-tool.  Analogously, install traps for cleanup.
106908         * tests/test-gc.c (main): Remove unused variables.
106909         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106911 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106913         * modules/inttostr (License): Change to LGPL.
106915 2006-11-14  Eric Blake  <ebb9@byu.net>
106917         * modules/tempname (License): Change to LGPL.
106919 2006-11-14  Eric Blake  <ebb9@byu.net>
106921         * doc/functions.texi (Function Portability): *printf functions on
106922         Cygwin now understand all POSIX size specifiers.
106924 2006-11-14  Bruno Haible  <bruno@clisp.org>
106926         * modules/c-ctype (License): Change to LGPL.
106928 2006-11-12  Bruno Haible  <bruno@clisp.org>
106930         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106931         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106932         for GNOME libraries, for which the include files are installed in
106933         subdirectories of $prefix/include.
106935 2006-11-12  Bruno Haible  <bruno@clisp.org>
106937         * m4/lib-link.m4: Require at least autoconf-2.54.
106938         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106939         name to underscores for the --with option.
106941 2006-11-13  Bruno Haible  <bruno@clisp.org>
106943         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106944         the tests directory.
106945         Reported by Ralf Wildenhues.
106947 2006-11-13  Bruno Haible  <bruno@clisp.org>
106949         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106950         (func_emit_initmacro_end): Undo the override here.
106951         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106952         Works around the famous automake error in coreutils.
106954 2006-11-13  Eric Blake  <ebb9@byu.net>
106956         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106957         element, not its node.
106959 2006-11-12  Bruno Haible  <bruno@clisp.org>
106961         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106962         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106964 2006-11-12  Bruno Haible  <bruno@clisp.org>
106966         * gnulib-tool: New option --local-symlink.
106967         (func_usage): Document it.
106968         (lsymbolic): New variable.
106969         (func_import, func_create_testdir): If --symlink was not specified,
106970         test whether --local-symlink was specified and the file comes from
106971         the local_gnulib_dir.
106973 2006-11-12  Bruno Haible  <bruno@clisp.org>
106975         * gnulib-tool (func_ln): New function.
106976         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
106978 2006-11-12  Bruno Haible  <bruno@clisp.org>
106980         Finish support for source files in subdirectories.
106981         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
106982         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
106983         AUTOMAKE_OPTIONS.
106984         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
106986 2006-11-12  Bruno Haible  <bruno@clisp.org>
106988         * gnulib-tool (func_get_automake_snippet): Synthesize also an
106989         EXTRA_lib_SOURCES augmentation.
106990         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
106992 2006-11-12  Jim Meyering  <jim@meyering.net>
106994         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
106995         file descriptors.  This also averts a failure on systems with
106996         native openat support when a traversed directory lacks "x" access.
106997         * lib/fts_.h: Include "i-ring.h"
106998         (struct FTS) [fts_fd_ring]: New member.
106999         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107000         (FCHDIR): Add parentheses.
107001         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107002         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107003         When descending, rather than simply closing the previous
107004         fts_cwd_fd value, push that file descriptor onto the ring.
107005         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107006         (fts_open): Initialize the new fd_ring member.
107007         (fts_close): Clear the ring.
107008         (fts_safe_changedir): When possible, use our new fd_ring to skip
107009         the diropen and fstat and dev/ino comparison that would normally
107010         accompany a virtual `chdir ("..")'.
107012         * modules/fts (Depends-on): Add i-ring.
107013         * modules/i-ring: New module.
107014         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107015         * m4/i-ring.m4: New file.
107017 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107019         * gnulib-tool (func_create_testdir): Fix replacement of
107020         `build-aux' in configure.ac.  Run autotools in gltests
107021         subdirectory.
107022         (func_create_testdir, func_create_megatestdir, test): There is
107023         no need for '--force' in most autotool invocations in a new
107024         tree.  Actually fail the whole test if any of the tools, or the
107025         configure or make stages fail.
107027         Sync from Automake.
107028         * build-aux/gnupload: Revert last change.  Add pointer to upload
107029         instructions of the GNU Maintenance Instructions.
107030         Suggestion by Karl Berry.
107032 2006-11-10  Jim Meyering  <jim@meyering.net>
107034         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107036 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107038         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107039         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107040         (bind_textdomain_codeset) [! ENABLE_NLS]:
107041         Evaluate all the arguments.  That way, callers get compatible behavior
107042         if the arguments have side effects.  Also, it avoids some GCC
107043         diagnostics in some cases; Joel E. Denny reported problems when Bison
107044         was configured with --enable-gcc-warnigs.
107046 2006-11-10  Jim Meyering  <jim@meyering.net>
107048         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107049         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107050         account.
107052 2006-11-10  Jim Meyering  <jim@meyering.net>
107054         * modules/inline: New file/module.
107055         * modules/xalloc (Files): Remove m4/inline.m4.
107056         (Depends-on): Add inline, instead.
107057         * modules/oset: Likewise.
107058         * modules/list: Likewise.
107060 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107062         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107063         Problem reported by Matthew Woehlke.
107065 2006-11-09  Bruno Haible  <bruno@clisp.org>
107067         * lib/tempname.c (gen_tempname): Remove variant that invokes
107068         __gen_tempname.
107069         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107070         __gen_tempname.
107072 2006-11-08  Bruno Haible  <bruno@clisp.org>
107074         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
107075         to 'yes' instead of 'cross-compiling'.
107077 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
107079         * lib/quotearg.h (quotearg_free): New decl.
107080         * lib/quotearg.c (quotearg_free): New function.
107081         (slot0, nslots, slotvec0, slotvec):
107082         Now file-scope so that quotearg_free can get at them.
107084 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107086         Sync from Automake.
107087         * build-aux/gnupload: Add missing 'gnu' to example URL.
107088         Report by Karl Berry.
107090 2006-11-08  Bruno Haible  <bruno@clisp.org>
107092         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
107093         Suggested by Paul Eggert.
107095 2006-11-08  Jim Meyering  <jim@meyering.net>
107097         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
107098         It's already included if !_LIBC.
107099         (fts_safe_changedir): Add a comment.
107101 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
107104         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
107105         Matthew Woehlke.
107107         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
107108         definitions up, to avoid colliding with change below.
107109         (static_inline) [HAVE_INLINE]: New macro.
107110         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107111         Provide extern decls when !HAVE_INLINE.  Do not define unless
107112         static_inline is defined, either by us or by xmalloc.c.  Use
107113         static_inline rather than static inline.
107114         (XCALLOC): Optimize sizeof(T) = 1 case.
107115         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107117 2006-11-07  Bruno Haible  <bruno@clisp.org>
107119         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107120         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107121         AC_C_INLINE.
107122         * modules/xalloc (Files): Add m4/inline.m4.
107124 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107126         * README: Fix typo.
107127         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107128         (Miscellanous Notes): ...from this.
107130 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107132         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107133         Mention that offsetof should be used instead of sizeof.
107134         From Bruno Haible.
107136 2006-11-07  Bruno Haible  <bruno@clisp.org>
107138         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107140 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107142         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107143         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107144         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107145         (gl_tree_add_before, gl_tree_add_after):
107146         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107147         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107148         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107149         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107150         (gl_linked_add_after, gl_linked_add_at): Likewise.
107151         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107152         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107153         (gl_tree_add_before, gl_tree_add_after): Likewise.
107154         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107155         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107156         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107158 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107160         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107162 2006-11-06  Bruno Haible  <bruno@clisp.org>
107164         * m4/inline.m4: New file.
107165         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107166         * modules/list (Files): Add m4/inline.m4.
107167         * modules/oset (Files): Likewise.
107169 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107171         * lib/idcache.c: Include <stddef.h>, for offsetof.
107172         (struct userid.name): Change from char * to a flexible array member.
107173         All uses changed.
107174         * modules/idcache (Depends-on): Add flexmember.
107176         * MODULES.html.sh (Core language properties): New module flexmember.
107177         * modules/flexmember, m4/flexmember.m4: New files.
107179         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107180         inline functions that are identical with the old xnmalloc_inline,
107181         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107182         that we can avoid some unnecessary integer multiplications and
107183         divisions in the common case where the element size is known at
107184         compile time.
107185         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107186         needed.
107187         (xnboundedmalloc): Remove.
107188         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107189         arguments, for consistency with rest of this header.
107190         (xcharalloc): Rewrite using XNMALLOC.
107191         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107192         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107193         versions have been moved to lib/xalloc.h and renamed to be the
107194         non-*_inline versions.
107195         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107196         and xnrealloc functions, since those functions are now inline and
107197         now call us.
107198         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107199         renaming described above.
107200         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107201         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107202         captures the dependency in AC_C_INLINE.
107204         New module canonicalize-lgpl, proposed by Charles Wilson in
107205         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107206         with a few small changes afterwards.
107207         * MODULES.html.sh (File system functions): New module
107208         canonicalize-lgpl.
107209         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107210         and canonicalize_file_name.
107211         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107212         * modules/canonicalize-lgpl: New files.
107214 2006-11-05  Bruno Haible  <bruno@clisp.org>
107216         * gnulib-tool (func_import, func_create_testdir): Create directories
107217         also for files in subdirectories of lib/.
107219 2006-11-05  Bruno Haible  <bruno@clisp.org>
107221         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107222         ANSI C compliant.
107224 2006-11-03  Bruno Haible  <bruno@clisp.org>
107226         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107227         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107228         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107229         (xnboundedmalloc): New inline function.
107230         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107231         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107232         xmalloc.
107233         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107234         xmalloc.
107235         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107236         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107237         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107238         xmalloc.
107239         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107240         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107241         xmalloc.
107242         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107243         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107244         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107245         xmalloc.
107246         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107247         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107248         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107249         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107250         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107251         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107252         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107254 2006-11-03  Bruno Haible  <bruno@clisp.org>
107256         * lib/c-ctype.h [C++]: Define functions without name mangling.
107257         * lib/fwriteerror.h [C++]: Likewise.
107258         * lib/gcd.h [C++]: Likewise.
107259         * lib/linebreak.h [C++]: Likewise.
107261 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107263         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107264         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107265         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107266         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107267         Check for functions and headers just once.
107268         Check for declaration of canonicalize_file_name.
107269         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107271 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107273         * gnulib-tool (func_import): Fix typo in actioncmd.
107275 2006-11-02  Bruno Haible  <bruno@clisp.org>
107277         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107278         newline sequence in the Makefile.am snippet as a space, like "make"
107279         does.
107280         Reported by Roger Persson <perrog@gmail.com>.
107282 2006-11-01  Bruno Haible  <bruno@clisp.org>
107284         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107285         already declared in <string.h>.
107286         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107288 2006-11-01  Bruno Haible  <bruno@clisp.org>
107290         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107291         * lib/strcase.h: Include <string.h>.
107292         (strcasecmp): Define to rpl_strcasecmp here.
107294 2006-11-01  Bruno Haible  <bruno@clisp.org>
107296         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107298 2006-11-01  Eric Blake  <ebb9@byu.net>
107300         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107304 2006-10-29  Bruno Haible  <bruno@clisp.org>
107306         Make it compile in C++ mode.
107307         * lib/full-write.c (full_rw): Add a cast.
107309 2006-11-01  Bruno Haible  <bruno@clisp.org>
107311         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107312         be POSIX compliant.
107313         Reported by Roger Persson <perrog@gmail.com>.
107315 2006-11-01  Eric Blake  <ebb9@byu.net>
107317         * lib/getopt_.h: Fix comments.
107319 2006-10-31  Eric Blake  <ebb9@byu.net>
107321         * modules/tmpdir (Depends-on): Add sys_stat.
107322         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107323         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107324         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107325         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107326         tempname.
107328 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107330         Avoid some C++ diagnostics reported by Bruno Haible.
107331         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107332         xmalloc.
107333         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107334         (struct slotvec): Move to top level.
107335         (quotearg_n_options): Rewrite to avoid xmalloc.
107336         * lib/xalloc.h (xcharalloc): New function.
107337         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107338         [defined __cplusplus]: Add function template that provides result
107339         type propagation.  This part of the change is from Bruno Haible.
107341 2006-10-29  Bruno Haible  <bruno@clisp.org>
107343         Make it compile in C++ mode.
107344         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107345         * lib/strnlen1.c (strnlen1): Cast memchr result.
107346         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107347         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107348         (create_temp_dir): Rename local variable 'template'.
107349         (compile_csharp_using_sscli): Add cast.
107350         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107351         * lib/findprog.c (find_in_path): Likewise.
107352         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107353         * lib/wait-process.c (register_slave_subprocess): Likewise.
107355 2006-10-22  Bruno Haible  <bruno@clisp.org>
107357         * modules/tsearch: New file.
107358         * lib/tsearch.h: New file.
107359         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107360         * m4/tsearch.m4: New file.
107361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107363 2006-10-29  Eric Blake  <ebb9@byu.net>
107365         * lib/arcfour.c: Assume config.h.
107366         * lib/arctwo.c: Likewise.
107367         * lib/base64.c: Likewise.
107368         * lib/check-version.c: Likewise.
107369         * lib/crc.c: Likewise.
107370         * lib/des.c: Likewise.
107371         * lib/gc-gnulib.c: Likewise.
107372         * lib/gc-libgcrypt.c: Likewise.
107373         * lib/gc-pbkdf2-sha1.c: Likewise.
107374         * lib/getaddrinfo.c: Likewise.
107375         * lib/getdelim.c: Likewise.
107376         * lib/getline.c: Likewise.
107377         * lib/hmac-md5.c: Likewise.
107378         * lib/hmac-sha1.c: Likewise.
107379         * lib/iconvme.c: Likewise.
107380         * lib/md2.c: Likewise.
107381         * lib/md4.c: Likewise.
107382         * lib/memxor.c: Likewise.
107383         * lib/read-file.c: Likewise.
107384         * lib/readline.c: Likewise.
107385         * lib/rijndael-alg-fst.c: Likewise.
107386         * lib/rijndael-api-fst.c: Likewise.
107387         * lib/xgetdomainname.c: Likewise.
107389 2006-10-28  Eric Blake  <ebb9@byu.net>
107391         * lib/xstrndup.c: Assume config.h.
107393 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107395         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107396         stat-macros.h is now for our own macros, whereas stat_h is for
107397         macros in the <sys/stat.h> name space.
107398         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107399         (STAT_MACROS_H): Remove.
107400         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107401         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107402         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107403         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107404         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107405         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107406         Move these macros to ...
107407         * lib/stat_.h: here.  Don't include stat-macros.h.
107408         * lib/canonicalize.c: Don't include stat-macros.h.
107409         * lib/chown.c: Likewise.
107410         * lib/euidaccess.c: Likewise.
107411         * lib/file-type.c: Likewise.
107412         * lib/filemode.c: Likewise.
107413         * lib/glob.c: Likewise.
107414         * lib/isapipe.c: Likewise.
107415         * lib/lchown.c: Likewise.
107416         * lib/lstat.c: Likewise.
107417         * lib/mkdir-p.c: Likewise.
107418         * lib/rmdir.c: Likewise.
107419         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107420         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107421         unless mkdir isn't declared, to speed up 'configure'.
107422         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107423         would define all the S_* symbols.
107424         * modules/canonicalize (Depends-on):
107425         Depend on sys_stat, not stat-macros.
107426         * modules/chown: Likewise.
107427         * modules/euidaccess: Likewise.
107428         * modules/filemode: Likewise.
107429         * modules/file-type: Likewise.
107430         * modules/glob: Likewise.
107431         * modules/isapipe: Likewise.
107432         * modules/lchown: Likewise.
107433         * modules/lstat: Likewise.
107434         * modules/mkancesdirs: Likewise.
107435         * modules/rmdir: Likewise.
107436         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107437         * modules/modechange: Likewise.
107438         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107439         (configure.ac): Remove gl_STAT_MACROS.
107440         * modules/sys_stat (Depends-on): Remove stat-macros.
107442 2006-10-27  Bruno Haible  <bruno@clisp.org>
107444         * m4/signed.m4: Remove file.
107445         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107446         invocation.
107447         * modules/vasnprintf (Files): Remove m4/signed.m4.
107449 2006-10-27  Bruno Haible  <bruno@clisp.org>
107451         Update to GNU gettext 0.16.
107452         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107453         m4/inttypes-h.m4, m4/signed.m4.
107454         * m4/gettext.m4: Update to GNU gettext 0.16.
107455         * m4/intl.m4: New file, from GNU gettext.
107456         * m4/intldir.m4: New file, from GNU gettext.
107457         * config/srclist.txt: Update
107459 2006-10-27  Eric Blake  <ebb9@byu.net>
107461         * MODULES.html.sh: Document tempname.
107462         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107463         dependencies.
107464         (Files): Move lib/tempname.c...
107465         * modules/tempname: ...to this new module.
107466         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107467         (gl_PREREQ_TEMPNAME): Move...
107468         * m4/tempname.m4: ...to this new file.
107469         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107470         * modules/sys_stat (Depends-on): Add stat-macros.
107471         * lib/stat_.h (includes): Pick up stat macros.
107472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107473         if stat macros are broken.
107474         * lib/tempname.c (includes): No need to include "stat-macros.h".
107475         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107476         (direxists, __path_search) [!_LIBC]: Don't compile these in
107477         gnulib; the tmpdir module covers that.
107478         * lib/tempname.h: New file.
107480 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107482         * COPYING: Explain how gnulib-tool converts licence headers.
107483         Almost all wording by Eric Blake.
107485 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107487         * lib/mbchar.h (is_basic_table): Make read-only.
107488         * lib/mbchar.c (is_basic_table): Likewise.
107489         Reported by John Darrington.
107491 2006-10-25  Bruno Haible  <bruno@clisp.org>
107493         * lib/progname.h (set_program_name): Undefine before defining.
107495 2006-10-25  Bruno Haible  <bruno@clisp.org>
107497         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107498         false for non-gcc C++ compilers.
107499         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107501 2006-10-24  Bruno Haible  <bruno@clisp.org>
107503         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107504         iconv implementations like Irix iconv.
107506 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107508         * modules/vararrays: New file.
107509         * m4/vararrays.m4: New file, taken from diffutils.
107510         * MODULES.html.sh: New module vararrays.
107512 2006-10-24  Karl Berry  <karl@gnu.org>
107514         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107515         Don't call GNU Unix.
107517 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107519         * users.txt: Add Libtool.
107521         Sync from Libtool:
107523         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107525         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107526         to gnulib's policy of including config.h unconditionally.
107528 2006-10-24  Bruno Haible  <bruno@clisp.org>
107530         * modules/wcwidth (Files): Add m4/wint_t.m4.
107531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107532         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107534 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107536         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107537         to pacify GCC with some -W flags enabled.  Problem reported by
107538         Bruno Haible.
107540 2006-10-24  Jim Meyering  <jim@meyering.net>
107542         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107543         Reported by Karl Berry.
107545 2006-10-23  Bruno Haible  <bruno@clisp.org>
107547         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107549 2006-10-24  Bruno Haible  <bruno@clisp.org>
107551         * lib/gl_list.h: Use C comment style, not C++ comment style.
107553 2006-10-23  Eric Blake  <ebb9@byu.net>
107555         * lib/getaddrinfo.c (includes): Add missing include.
107557 2006-10-23  Bruno Haible  <bruno@clisp.org>
107558             Paul Eggert  <eggert@cs.ucla.edu>
107560         Ability to rename obstack_free.
107561         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107562         obstack_free.
107563         (obstack_free): Invoke the __obstack_free macro.
107564         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107566 2006-10-23  Bruno Haible  <bruno@clisp.org>
107567             Paul Eggert  <eggert@cs.ucla.edu>
107569         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107570         __argc, __argv from the declaration. (They are defined as macros on
107571         mingw.)
107573 2006-10-22  Bruno Haible  <bruno@clisp.org>
107575         * doc/gnulib-intro.texi: New file.
107576         * doc/gnulib.texi: Include it.
107578 2006-10-21  Bruno Haible  <bruno@clisp.org>
107580         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107581         "Introduction", "Miscellanous Notes", "Particular Modules".
107583 2006-10-21  Bruno Haible  <bruno@clisp.org>
107585         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107586         Change mostlyclean-local rule to avoid sh syntax error from bash
107587         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107589 2006-10-23  Jim Meyering  <jim@meyering.net>
107591         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107592         in place of snprintf.
107594         * modules/inttostr (Files): Add lib/uinttostr.c.
107595         * lib/uinttostr.c (inttostr): New file/function.
107596         * lib/inttostr.h (uinttostr): Declare.
107597         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107598         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107599         Add uinttostr.
107600         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107602 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107604         * lib/canonicalize.c (ELOOP): Define if not already defined.
107605         Problem reported by Bruno Haible in
107606         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107608 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107610         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107611         Problem reported by Perry Smith and Ville Laurikari.
107613         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107614         uses.
107616 2006-10-19  Bruno Haible  <bruno@clisp.org>
107618         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107619         for mingw.
107621 2006-10-19  Bruno Haible  <bruno@clisp.org>
107623         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107624         Needed for mingw.
107626 2006-10-19  Bruno Haible  <bruno@clisp.org>
107628         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107630 2006-10-19  Bruno Haible  <bruno@clisp.org>
107632         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107633         it.
107635 2006-10-19  Bruno Haible  <bruno@clisp.org>
107637         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107638         invocation.
107640 2006-10-19  Bruno Haible  <bruno@clisp.org>
107642         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107643         mountlist by default.
107645 2006-10-16  Bruno Haible  <bruno@clisp.org>
107647         * lib/c-strstr.c: Include c-strstr.h.
107649 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107651         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107652         in a slash.
107654 2006-10-18  Bruno Haible  <bruno@clisp.org>
107656         * lib/lock.h [C++]: Wrap definitions in extern "C".
107658 2006-10-18  Bruno Haible  <bruno@clisp.org>
107660         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107661         gl_LIBOBJS list.
107663 2006-10-18  Bruno Haible  <bruno@clisp.org>
107665         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107667 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107669         * lib/xstrtol.h: Include gettext.h.
107670         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107671         Problem reported by Eric Blake.
107672         * modules/xstrtol (Depends-on): Add gettext-h.
107674 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107676         * lib/strftime.c (advance): New macro.
107677         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107678         incomplete type, so you can't add 0 to it.  Problem and patch
107679         reported by Eelco Dolstra for dietlibc.
107681 2006-10-18  Jim Meyering  <jim@meyering.net>
107683         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107684         type for a local, and rename it: s/up/user_proc/.
107686 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107688         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107689         READ_UTMP_USER_PROCESS.
107690         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107692 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107694         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107695         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107697 2006-10-17  Eric Blake  <ebb9@byu.net>
107699         * lib/sigprocmask.c (sigprocmask): Fix typo.
107701         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107703         * modules/clean-temp (Makefile.am): Don't add to make output...
107704         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107705         config.h.
107707 2006-10-17  Bruno Haible  <bruno@clisp.org>
107709         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107710         differently if DEFAULT_TEXT_DOMAIN is set.
107712 2006-10-16  Bruno Haible  <bruno@clisp.org>
107714         * lib/clean-temp.c: Include fwriteerror.h.
107716 2006-10-16  Bruno Haible  <bruno@clisp.org>
107718         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107720 2006-10-16  Bruno Haible  <bruno@clisp.org>
107722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107723         * lib/sigprocmask.h: Include <sys/types.h>.
107724         (sigset_t): Use the system's definition if present.
107726 2006-10-17  Eric Blake  <ebb9@byu.net>
107728         * lib/xvasprintf.c (includes): Assume config.h.
107729         * lib/xasprintf.c (includes): Likewise.
107731 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107733         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107734         at least as wide as intmax_t.
107736 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107738         (Imported from Automake.)
107739         * build-aux/gnupload: Update to version 1.1 of directive file.
107741 2006-10-16  Eric Blake  <ebb9@byu.net>
107743         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107744         match Automake 1.10a.
107746 2006-10-14  Bruno Haible  <bruno@clisp.org>
107748         * modules/sigprocmask: New file.
107749         * lib/sigprocmask.h: New file.
107750         * lib/sigprocmask.c: New file.
107751         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107752         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107753         request sigprocmask.o.
107754         (gl_PREREQ_SIGPROCMASK): New macro.
107755         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107756         (Depends-on): Add sigprocmask.
107757         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107758         gt_SIGNALBLOCKING. Test for 'raise' only once.
107759         * lib/fatal-signal.c: Include sigprocmask.h.
107760         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107761         unblock_fatal_signals): Define always.
107762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107763         sigprocmask.
107765 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107767         Sync from Automake.
107768         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107769         which incorrectly sets the mode of an existing destination
107770         directory.  In some cases the unpatched install-sh could do the
107771         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107772         system.  We hope this is rare in practice, but it's clearly worth
107773         fixing.  Problem reported by Alex Unleashed in
107774         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107775         Also, don't bother to check for -m bugs unless we're using -m;
107776         suggested by Stepan Kasal.
107778 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107780         Sync from Automake.
107781         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107782         `-c' flag, so they appear at the same position as in %FASTDEP%
107783         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107784         which ignores unknown options only after the first non-option.
107785         Bug report against M4 by Nelson H. F. Beebe.
107787 2006-10-13  Jim Meyering  <jim@meyering.net>
107789         Fix a bug in yesterday's change.
107790         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107791         p->fts_statp->st_dev would be used uninitialized.
107792         Ensures that we always call fts_stat on the very first entry.
107793         Miklos Szeredi reported that find -xdev stopped working.
107795 2006-10-12  Bruno Haible  <bruno@clisp.org>
107797         * gnulib-tool (func_get_automake_snippet): Append an automatically
107798         computed EXTRA_DIST augmentation.
107799         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107800         * modules/alloca-opt (Makefile.am): Likewise.
107801         * modules/allocsa (Makefile.am): Likewise.
107802         * modules/arcfour (Makefile.am): Likewise.
107803         * modules/arctwo (Makefile.am): Likewise.
107804         * modules/argmatch (Makefile.am): Likewise.
107805         * modules/argz (Makefile.am): Likewise.
107806         * modules/atexit (Makefile.am): Likewise.
107807         * modules/backupfile (Makefile.am): Likewise.
107808         * modules/byteswap (Makefile.am): Likewise.
107809         * modules/c-strtod (Makefile.am): Likewise.
107810         * modules/c-strtold (Makefile.am): Likewise.
107811         * modules/calloc (Makefile.am): Likewise.
107812         * modules/canon-host (Makefile.am): Likewise.
107813         * modules/canonicalize (Makefile.am): Likewise.
107814         * modules/chdir-long (Makefile.am): Likewise.
107815         * modules/chdir-safer (Makefile.am): Likewise.
107816         * modules/check-version (Makefile.am): Likewise.
107817         * modules/chown (Makefile.am): Likewise.
107818         * modules/cloexec (Makefile.am): Likewise.
107819         * modules/close-stream (Makefile.am): Likewise.
107820         * modules/closeout (Makefile.am): Likewise.
107821         * modules/crc (Makefile.am): Likewise.
107822         * modules/csharpexec (Makefile.am): Likewise.
107823         * modules/cycle-check (Makefile.am): Likewise.
107824         * modules/des (Makefile.am): Likewise.
107825         * modules/dev-ino (Makefile.am): Likewise.
107826         * modules/dirfd (Makefile.am): Likewise.
107827         * modules/dirname (Makefile.am): Likewise.
107828         * modules/dup2 (Makefile.am): Likewise.
107829         * modules/eealloc (Makefile.am): Likewise.
107830         * modules/error (Makefile.am): Likewise.
107831         * modules/euidaccess (Makefile.am): Likewise.
107832         * modules/exclude (Makefile.am): Likewise.
107833         * modules/exitfail (Makefile.am): Likewise.
107834         * modules/fcntl-safer (Makefile.am): Likewise.
107835         * modules/fcntl (Makefile.am): Likewise.
107836         * modules/file-type (Makefile.am): Likewise.
107837         * modules/fileblocks (Makefile.am): Likewise.
107838         * modules/filemode (Makefile.am): Likewise.
107839         * modules/filenamecat (Makefile.am): Likewise.
107840         * modules/fnmatch (Makefile.am): Likewise.
107841         * modules/fopen-safer (Makefile.am): Likewise.
107842         * modules/fpending (Makefile.am): Likewise.
107843         * modules/fprintftime (Makefile.am): Likewise.
107844         * modules/free (Makefile.am): Likewise.
107845         * modules/fsusage (Makefile.am): Likewise.
107846         * modules/ftruncate (Makefile.am): Likewise.
107847         * modules/fts (Makefile.am): Likewise.
107848         * modules/gc-arcfour (Makefile.am): Likewise.
107849         * modules/gc-des (Makefile.am): Likewise.
107850         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107851         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107852         * modules/gc-md4 (Makefile.am): Likewise.
107853         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107854         * modules/gc-sha1 (Makefile.am): Likewise.
107855         * modules/gc (Makefile.am): Likewise.
107856         * modules/getaddrinfo (Makefile.am): Likewise.
107857         * modules/getcwd (Makefile.am): Likewise.
107858         * modules/getdelim (Makefile.am): Likewise.
107859         * modules/getdomainname (Makefile.am): Likewise.
107860         * modules/getgroups (Makefile.am): Likewise.
107861         * modules/gethostname (Makefile.am): Likewise.
107862         * modules/gethrxtime (Makefile.am): Likewise.
107863         * modules/getline (Makefile.am): Likewise.
107864         * modules/getloadavg (Makefile.am): Likewise.
107865         * modules/getlogin_r (Makefile.am): Likewise.
107866         * modules/getndelim2 (Makefile.am): Likewise.
107867         * modules/getopt (Makefile.am): Likewise.
107868         * modules/getpagesize (Makefile.am): Likewise.
107869         * modules/getpass-gnu (Makefile.am): Likewise.
107870         * modules/getpass (Makefile.am): Likewise.
107871         * modules/getsubopt (Makefile.am): Likewise.
107872         * modules/gettime (Makefile.am): Likewise.
107873         * modules/gettimeofday (Makefile.am): Likewise.
107874         * modules/getugroups (Makefile.am): Likewise.
107875         * modules/getusershell (Makefile.am): Likewise.
107876         * modules/glob (Makefile.am): Likewise.
107877         * modules/group-member (Makefile.am): Likewise.
107878         * modules/hard-locale (Makefile.am): Likewise.
107879         * modules/hash (Makefile.am): Likewise.
107880         * modules/hmac-md5 (Makefile.am): Likewise.
107881         * modules/hmac-sha1 (Makefile.am): Likewise.
107882         * modules/human (Makefile.am): Likewise.
107883         * modules/idcache (Makefile.am): Likewise.
107884         * modules/imaxabs (Makefile.am): Likewise.
107885         * modules/imaxdiv (Makefile.am): Likewise.
107886         * modules/inet_ntop (Makefile.am): Likewise.
107887         * modules/inet_pton (Makefile.am): Likewise.
107888         * modules/intprops (Makefile.am): Likewise.
107889         * modules/inttostr (Makefile.am): Likewise.
107890         * modules/inttypes (Makefile.am): Likewise.
107891         * modules/isapipe (Makefile.am): Likewise.
107892         * modules/javaversion (Makefile.am): Likewise.
107893         * modules/lchmod (Makefile.am): Likewise.
107894         * modules/lchown (Makefile.am): Likewise.
107895         * modules/localcharset (Makefile.am): Likewise.
107896         * modules/long-options (Makefile.am): Likewise.
107897         * modules/lstat (Makefile.am): Likewise.
107898         * modules/malloc (Makefile.am): Likewise.
107899         * modules/mathl (Makefile.am): Likewise.
107900         * modules/mbchar (Makefile.am): Likewise.
107901         * modules/md2 (Makefile.am): Likewise.
107902         * modules/md4 (Makefile.am): Likewise.
107903         * modules/md5 (Makefile.am): Likewise.
107904         * modules/memcasecmp (Makefile.am): Likewise.
107905         * modules/memchr (Makefile.am): Likewise.
107906         * modules/memcmp (Makefile.am): Likewise.
107907         * modules/memcoll (Makefile.am): Likewise.
107908         * modules/memcpy (Makefile.am): Likewise.
107909         * modules/memmem (Makefile.am): Likewise.
107910         * modules/memmove (Makefile.am): Likewise.
107911         * modules/mempcpy (Makefile.am): Likewise.
107912         * modules/memrchr (Makefile.am): Likewise.
107913         * modules/memset (Makefile.am): Likewise.
107914         * modules/memxor (Makefile.am): Likewise.
107915         * modules/mkancesdirs (Makefile.am): Likewise.
107916         * modules/mkdir-p (Makefile.am): Likewise.
107917         * modules/mkdir (Makefile.am): Likewise.
107918         * modules/mkdtemp (Makefile.am): Likewise.
107919         * modules/mkstemp (Makefile.am): Likewise.
107920         * modules/mktime (Makefile.am): Likewise.
107921         * modules/modechange (Makefile.am): Likewise.
107922         * modules/mountlist (Makefile.am): Likewise.
107923         * modules/nanosleep (Makefile.am): Likewise.
107924         * modules/obstack (Makefile.am): Likewise.
107925         * modules/openat (Makefile.am): Likewise.
107926         * modules/pagealign_alloc (Makefile.am): Likewise.
107927         * modules/pathmax (Makefile.am): Likewise.
107928         * modules/physmem (Makefile.am): Likewise.
107929         * modules/poll (Makefile.am): Likewise.
107930         * modules/posixtm (Makefile.am): Likewise.
107931         * modules/posixver (Makefile.am): Likewise.
107932         * modules/putenv (Makefile.am): Likewise.
107933         * modules/quote (Makefile.am): Likewise.
107934         * modules/quotearg (Makefile.am): Likewise.
107935         * modules/raise (Makefile.am): Likewise.
107936         * modules/read-file (Makefile.am): Likewise.
107937         * modules/readline (Makefile.am): Likewise.
107938         * modules/readlink (Makefile.am): Likewise.
107939         * modules/readtokens (Makefile.am): Likewise.
107940         * modules/readutmp (Makefile.am): Likewise.
107941         * modules/realloc (Makefile.am): Likewise.
107942         * modules/regex (Makefile.am): Likewise.
107943         * modules/rename-dest-slash (Makefile.am): Likewise.
107944         * modules/rename (Makefile.am): Likewise.
107945         * modules/rijndael (Makefile.am): Likewise.
107946         * modules/rmdir (Makefile.am): Likewise.
107947         * modules/rpmatch (Makefile.am): Likewise.
107948         * modules/safe-read (Makefile.am): Likewise.
107949         * modules/safe-write (Makefile.am): Likewise.
107950         * modules/same-inode (Makefile.am): Likewise.
107951         * modules/same (Makefile.am): Likewise.
107952         * modules/save-cwd (Makefile.am): Likewise.
107953         * modules/savedir (Makefile.am): Likewise.
107954         * modules/setenv (Makefile.am): Likewise.
107955         * modules/settime (Makefile.am): Likewise.
107956         * modules/sha1 (Makefile.am): Likewise.
107957         * modules/sig2str (Makefile.am): Likewise.
107958         * modules/snprintf (Makefile.am): Likewise.
107959         * modules/stat-macros (Makefile.am): Likewise.
107960         * modules/stat-time (Makefile.am): Likewise.
107961         * modules/stdbool (Makefile.am): Likewise.
107962         * modules/stdint (Makefile.am): Likewise.
107963         * modules/stdlib-safer (Makefile.am): Likewise.
107964         * modules/stpcpy (Makefile.am): Likewise.
107965         * modules/stpncpy (Makefile.am): Likewise.
107966         * modules/strcase (Makefile.am): Likewise.
107967         * modules/strcasestr (Makefile.am): Likewise.
107968         * modules/strchrnul (Makefile.am): Likewise.
107969         * modules/strcspn (Makefile.am): Likewise.
107970         * modules/strdup (Makefile.am): Likewise.
107971         * modules/strerror (Makefile.am): Likewise.
107972         * modules/strftime (Makefile.am): Likewise.
107973         * modules/strndup (Makefile.am): Likewise.
107974         * modules/strnlen (Makefile.am): Likewise.
107975         * modules/strpbrk (Makefile.am): Likewise.
107976         * modules/strsep (Makefile.am): Likewise.
107977         * modules/strstr (Makefile.am): Likewise.
107978         * modules/strtod (Makefile.am): Likewise.
107979         * modules/strtoimax (Makefile.am): Likewise.
107980         * modules/strtok_r (Makefile.am): Likewise.
107981         * modules/strtol (Makefile.am): Likewise.
107982         * modules/strtoll (Makefile.am): Likewise.
107983         * modules/strtoul (Makefile.am): Likewise.
107984         * modules/strtoull (Makefile.am): Likewise.
107985         * modules/strtoumax (Makefile.am): Likewise.
107986         * modules/strverscmp (Makefile.am): Likewise.
107987         * modules/sys_socket (Makefile.am): Likewise.
107988         * modules/sys_stat (Makefile.am): Likewise.
107989         * modules/sysexits (Makefile.am): Likewise.
107990         * modules/time_r (Makefile.am): Likewise.
107991         * modules/timegm (Makefile.am): Likewise.
107992         * modules/timespec (Makefile.am): Likewise.
107993         * modules/tmpfile-safer (Makefile.am): Likewise.
107994         * modules/trim (Makefile.am): Likewise.
107995         * modules/unistd-safer (Makefile.am): Likewise.
107996         * modules/unlinkdir (Makefile.am): Likewise.
107997         * modules/unlocked-io (Makefile.am): Likewise.
107998         * modules/userspec (Makefile.am): Likewise.
107999         * modules/utime (Makefile.am): Likewise.
108000         * modules/utimecmp (Makefile.am): Likewise.
108001         * modules/utimens (Makefile.am): Likewise.
108002         * modules/vasnprintf (Makefile.am): Likewise.
108003         * modules/vasprintf (Makefile.am): Likewise.
108004         * modules/vsnprintf (Makefile.am): Likewise.
108005         * modules/xalloc (Makefile.am): Likewise.
108006         * modules/xgetcwd (Makefile.am): Likewise.
108007         * modules/xnanosleep (Makefile.am): Likewise.
108008         * modules/xreadlink (Makefile.am): Likewise.
108009         * modules/xstrtod (Makefile.am): Likewise.
108010         * modules/xstrtol (Makefile.am): Likewise.
108011         * modules/xstrtold (Makefile.am): Likewise.
108012         * modules/yesno (Makefile.am): Likewise.
108013         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108015 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108017         * modules/error (Makefile.am): Distribute files through
108018         EXTRA_DIST, not lib_SOURCES.
108020 2006-10-12  Eric Blake  <ebb9@byu.net>
108022         * modules/error (Makefile.am): Distribute files in /lib.
108023         * modules/obstack (Makefile.am): Likewise.
108025 2006-10-12  Bruno Haible  <bruno@clisp.org>
108027         * modules/acl (Makefile.am): Distribute all files in lib/ through
108028         EXTRA_DIST.
108029         * modules/arcfour (Makefile.am): Likewise.
108030         * modules/arctwo (Makefile.am): Likewise.
108031         * modules/argmatch (Makefile.am): Likewise.
108032         * modules/argz (Makefile.am): Likewise.
108033         * modules/atexit (Makefile.am): Likewise.
108034         * modules/backupfile (Makefile.am): Likewise.
108035         * modules/c-strtod (Makefile.am): Likewise.
108036         * modules/c-strtold (Makefile.am): Likewise.
108037         * modules/calloc (Makefile.am): Likewise.
108038         * modules/canon-host (Makefile.am): Likewise.
108039         * modules/canonicalize (Makefile.am): Likewise.
108040         * modules/chdir-long (Makefile.am): Likewise.
108041         * modules/chdir-safer (Makefile.am): Likewise.
108042         * modules/check-version (Makefile.am): Likewise.
108043         * modules/chown (Makefile.am): Likewise.
108044         * modules/cloexec (Makefile.am): Likewise.
108045         * modules/close-stream (Makefile.am): Likewise.
108046         * modules/closeout (Makefile.am): Likewise.
108047         * modules/crc (Makefile.am): Likewise.
108048         * modules/cycle-check (Makefile.am): Likewise.
108049         * modules/des (Makefile.am): Likewise.
108050         * modules/dirfd (Makefile.am): Likewise.
108051         * modules/dirname (Makefile.am): Likewise.
108052         * modules/dup2 (Makefile.am): Likewise.
108053         * modules/euidaccess (Makefile.am): Likewise.
108054         * modules/exclude (Makefile.am): Likewise.
108055         * modules/exitfail (Makefile.am): Likewise.
108056         * modules/fcntl-safer (Makefile.am): Likewise.
108057         * modules/file-type (Makefile.am): Likewise.
108058         * modules/fileblocks (Makefile.am): Likewise.
108059         * modules/filemode (Makefile.am): Likewise.
108060         * modules/filenamecat (Makefile.am): Likewise.
108061         * modules/fnmatch (Makefile.am): Likewise.
108062         * modules/fopen-safer (Makefile.am): Likewise.
108063         * modules/fpending (Makefile.am): Likewise.
108064         * modules/fprintftime (Makefile.am): Likewise.
108065         * modules/free (Makefile.am): Likewise.
108066         * modules/fsusage (Makefile.am): Likewise.
108067         * modules/ftruncate (Makefile.am): Likewise.
108068         * modules/fts (Makefile.am): Likewise.
108069         * modules/gc (Makefile.am): Likewise.
108070         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108071         * modules/getaddrinfo (Makefile.am): Likewise.
108072         * modules/getcwd (Makefile.am): Likewise.
108073         * modules/getdelim (Makefile.am): Likewise.
108074         * modules/getdomainname (Makefile.am): Likewise.
108075         * modules/getgroups (Makefile.am): Likewise.
108076         * modules/gethostname (Makefile.am): Likewise.
108077         * modules/gethrxtime (Makefile.am): Likewise.
108078         * modules/getline (Makefile.am): Likewise.
108079         * modules/getloadavg (Makefile.am): Likewise.
108080         * modules/getlogin_r (Makefile.am): Likewise.
108081         * modules/getopt (Makefile.am): Likewise.
108082         * modules/getpass (Makefile.am): Likewise.
108083         * modules/getpass-gnu (Makefile.am): Likewise.
108084         * modules/getsubopt (Makefile.am): Likewise.
108085         * modules/gettime (Makefile.am): Likewise.
108086         * modules/gettimeofday (Makefile.am): Likewise.
108087         * modules/getugroups (Makefile.am): Likewise.
108088         * modules/getusershell (Makefile.am): Likewise.
108089         * modules/glob (Makefile.am): Likewise.
108090         * modules/group-member (Makefile.am): Likewise.
108091         * modules/hard-locale (Makefile.am): Likewise.
108092         * modules/hash (Makefile.am): Likewise.
108093         * modules/hmac-md5 (Makefile.am): Likewise.
108094         * modules/hmac-sha1 (Makefile.am): Likewise.
108095         * modules/human (Makefile.am): Likewise.
108096         * modules/idcache (Makefile.am): Likewise.
108097         * modules/imaxabs (Makefile.am): Likewise.
108098         * modules/imaxdiv (Makefile.am): Likewise.
108099         * modules/inet_ntop (Makefile.am): Likewise.
108100         * modules/inet_pton (Makefile.am): Likewise.
108101         * modules/inttostr (Makefile.am): Likewise.
108102         * modules/isapipe (Makefile.am): Likewise.
108103         * modules/lchown (Makefile.am): Likewise.
108104         * modules/long-options (Makefile.am): Likewise.
108105         * modules/lstat (Makefile.am): Likewise.
108106         * modules/malloc (Makefile.am): Likewise.
108107         * modules/mathl (Makefile.am): Likewise.
108108         * modules/mbchar (Makefile.am): Likewise.
108109         * modules/md2 (Makefile.am): Likewise.
108110         * modules/md4 (Makefile.am): Likewise.
108111         * modules/md5 (Makefile.am): Likewise.
108112         * modules/memcasecmp (Makefile.am): Likewise.
108113         * modules/memchr (Makefile.am): Likewise.
108114         * modules/memcmp (Makefile.am): Likewise.
108115         * modules/memcoll (Makefile.am): Likewise.
108116         * modules/memcpy (Makefile.am): Likewise.
108117         * modules/memmem (Makefile.am): Likewise.
108118         * modules/memmove (Makefile.am): Likewise.
108119         * modules/mempcpy (Makefile.am): Likewise.
108120         * modules/memrchr (Makefile.am): Likewise.
108121         * modules/memset (Makefile.am): Likewise.
108122         * modules/memxor (Makefile.am): Likewise.
108123         * modules/mkancesdirs (Makefile.am): Likewise.
108124         * modules/mkdir (Makefile.am): Likewise.
108125         * modules/mkdir-p (Makefile.am): Likewise.
108126         * modules/mkdtemp (Makefile.am): Likewise.
108127         * modules/mkstemp (Makefile.am): Likewise.
108128         * modules/mktime (Makefile.am): Likewise.
108129         * modules/modechange (Makefile.am): Likewise.
108130         * modules/mountlist (Makefile.am): Likewise.
108131         * modules/nanosleep (Makefile.am): Likewise.
108132         * modules/openat (Makefile.am): Likewise.
108133         * modules/pagealign_alloc (Makefile.am): Likewise.
108134         * modules/physmem (Makefile.am): Likewise.
108135         * modules/poll (Makefile.am): Likewise.
108136         * modules/posixtm (Makefile.am): Likewise.
108137         * modules/posixver (Makefile.am): Likewise.
108138         * modules/putenv (Makefile.am): Likewise.
108139         * modules/quote (Makefile.am): Likewise.
108140         * modules/quotearg (Makefile.am): Likewise.
108141         * modules/raise (Makefile.am): Likewise.
108142         * modules/read-file (Makefile.am): Likewise.
108143         * modules/readline (Makefile.am): Likewise.
108144         * modules/readlink (Makefile.am): Likewise.
108145         * modules/readtokens (Makefile.am): Likewise.
108146         * modules/readutmp (Makefile.am): Likewise.
108147         * modules/realloc (Makefile.am): Likewise.
108148         * modules/regex (Makefile.am): Likewise.
108149         * modules/rename (Makefile.am): Likewise.
108150         * modules/rename-dest-slash (Makefile.am): Likewise.
108151         * modules/rijndael (Makefile.am): Likewise.
108152         * modules/rmdir (Makefile.am): Likewise.
108153         * modules/rpmatch (Makefile.am): Likewise.
108154         * modules/safe-read (Makefile.am): Likewise.
108155         * modules/safe-write (Makefile.am): Likewise.
108156         * modules/same (Makefile.am): Likewise.
108157         * modules/save-cwd (Makefile.am): Likewise.
108158         * modules/savedir (Makefile.am): Likewise.
108159         * modules/setenv (Makefile.am): Likewise.
108160         * modules/settime (Makefile.am): Likewise.
108161         * modules/sha1 (Makefile.am): Likewise.
108162         * modules/sig2str (Makefile.am): Likewise.
108163         * modules/snprintf (Makefile.am): Likewise.
108164         * modules/stdlib-safer (Makefile.am): Likewise.
108165         * modules/stpcpy (Makefile.am): Likewise.
108166         * modules/stpncpy (Makefile.am): Likewise.
108167         * modules/strcase (Makefile.am): Likewise.
108168         * modules/strcasestr (Makefile.am): Likewise.
108169         * modules/strchrnul (Makefile.am): Likewise.
108170         * modules/strcspn (Makefile.am): Likewise.
108171         * modules/strdup (Makefile.am): Likewise.
108172         * modules/strerror (Makefile.am): Likewise.
108173         * modules/strftime (Makefile.am): Likewise.
108174         * modules/strndup (Makefile.am): Likewise.
108175         * modules/strnlen (Makefile.am): Likewise.
108176         * modules/strpbrk (Makefile.am): Likewise.
108177         * modules/strsep (Makefile.am): Likewise.
108178         * modules/strstr (Makefile.am): Likewise.
108179         * modules/strtod (Makefile.am): Likewise.
108180         * modules/strtoimax (Makefile.am): Likewise.
108181         * modules/strtok_r (Makefile.am): Likewise.
108182         * modules/strtol (Makefile.am): Likewise.
108183         * modules/strtoll (Makefile.am): Likewise.
108184         * modules/strtoul (Makefile.am): Likewise.
108185         * modules/strtoull (Makefile.am): Likewise.
108186         * modules/strtoumax (Makefile.am): Likewise.
108187         * modules/strverscmp (Makefile.am): Likewise.
108188         * modules/time_r (Makefile.am): Likewise.
108189         * modules/timegm (Makefile.am): Likewise.
108190         * modules/tmpfile-safer (Makefile.am): Likewise.
108191         * modules/unistd-safer (Makefile.am): Likewise.
108192         * modules/unlinkdir (Makefile.am): Likewise.
108193         * modules/userspec (Makefile.am): Likewise.
108194         * modules/utime (Makefile.am): Likewise.
108195         * modules/utimecmp (Makefile.am): Likewise.
108196         * modules/utimens (Makefile.am): Likewise.
108197         * modules/vasnprintf (Makefile.am): Likewise.
108198         * modules/vasprintf (Makefile.am): Likewise.
108199         * modules/vsnprintf (Makefile.am): Likewise.
108200         * modules/xalloc (Makefile.am): Likewise.
108201         * modules/xgetcwd (Makefile.am): Likewise.
108202         * modules/xnanosleep (Makefile.am): Likewise.
108203         * modules/xreadlink (Makefile.am): Likewise.
108204         * modules/xstrtod (Makefile.am): Likewise.
108205         * modules/xstrtol (Makefile.am): Likewise.
108206         * modules/xstrtold (Makefile.am): Likewise.
108207         * modules/yesno (Makefile.am): Likewise.
108209 2006-10-12  Jim Meyering  <jim@meyering.net>
108211         * m4/getloadavg.m4: Revert the change below.
108213         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108214         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108215         fail with a symlink, which is what coreutils' ./bootstrap now
108216         creates by default.
108218 2006-10-12  Bruno Haible  <bruno@clisp.org>
108220         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108221         mingw.
108222         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108223         MSVC and mingw explicitly.
108225 2006-10-11  Simon Josefsson  <jas@extundo.com>
108226             Bruno Haible  <bruno@clisp.org>
108228         Add support for multiple gnulib-tool invocations in the scope of a
108229         single configure.ac file.
108230         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108231         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108232         with the same contents as the _LIBADD variable.
108233         (func_emit_initmacro_start, func_emit_initmacro_end,
108234         func_emit_initmacro_done): New functions.
108235         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108236         gl_LIBOBJS and gl_LTLIBOBJS.
108238 2006-10-11  Bruno Haible  <bruno@clisp.org>
108240         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108241         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108242         autoreconf. Instead, invoke autopoint explicitly but move back the
108243         *.m4 files from gnulib.
108245 2006-10-11  Bruno Haible  <bruno@clisp.org>
108247         * gnulib-tool (func_usage): Make module names after --create-testdir
108248         optional.
108249         (func_create_testdir): If no module was specified, use nearly all
108250         modules.
108252 2006-10-12  Jim Meyering  <jim@meyering.net>
108254         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108255         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108256         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108257         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108258         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108259         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108260         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108261         (fts_set_stat_required): New function.
108262         (fts_open): Defer the calls to fts_stat, if possible or requested.
108263         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108264         into fts_stat itself.
108265         (fts_read): Perform any required (deferred) fts_stat call.
108266         (fts_build): Likewise, for the directory we're about to open and read.
108267         In the readdir loop, carefully decide whether each entry will require
108268         an eventual call to fts_stat, using dirent.d_type info if available.
108269         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108270         a command line argument into this function.  Update all callers.
108271         Map a return value of FTS_DOT to FTS_D for a command line argument.
108272         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108273         Thanks to Miklos Szeredi for his tenacity and for the initial
108274         bug report about "find" failing on a FUSE-based file system.
108276         * lib/fts.c (fts_open): Use consistent indentation.
108278 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108280         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108281         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108282         reported by Jim Meyering.  All uses of cache variables renamed
108283         to match Autoconf's.
108284         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108285         the other one.
108287         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108288         Fix misspelling in diagnostic.
108290 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108292         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108293         defined.  Problem reported by Matthew Woehlke.
108295         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108296         Add support for Tandem NonStop R series.
108297         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108298         Use new macro.
108300         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108301         (has_trailing_slash): Omit size arg; all callers changed.
108302         Omit 'inline', since it doesn't help performance and we'd
108303         need to configure it.
108304         Don't count //, ///, etc. as having a trailing slash.
108305         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108306         (rpl_rename_dest_slash): On failure, use rename's errno rather
108307         than (in some cases) an incorrect or junk errno.
108308         Simplify code by removing need to compute length; this does
108309         cause it to make two passes instead of one over the file name,
108310         but it's worth it.
108312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108313         change, since Autoconf's version may no longer be appropriate now
108314         that we are using CVS Autoconf's version.  Add support for Tandem.
108316 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108317             Bruno Haible  <bruno@clisp.org>
108319         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108320         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108321         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108322         gl_AC_TYPE_LONG_LONG.
108324         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108325         instead of HAVE_LONG_LONG.
108326         * lib/printf-args.c (printf_fetchargs): Likewise.
108327         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108328         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108330         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108331         gl_AC_TYPE_LONG_LONG.
108333 2006-10-11  Bruno Haible  <bruno@clisp.org>
108335         * m4/longlong.m4: Add comments.
108336         * m4/ulonglong.m4: Likewise.
108338 2006-10-10  Bruno Haible  <bruno@clisp.org>
108340         Make it possible to #define stpcpy, strdup to aliases.
108341         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108342         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108344 2006-10-10  Bruno Haible  <bruno@clisp.org>
108346         Make it possible to #define gcd to an alias.
108347         * lib/gcd.c: Include config.h.
108349 2006-10-10  Bruno Haible  <bruno@clisp.org>
108351         Make it possible to #define c_isascii to an alias.
108352         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108353         defined. Undefine the macros before defining them, to avoid gcc
108354         warnings.
108355         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108356         define NO_C_CTYPE_MACROS early.
108358 2006-10-10  Bruno Haible  <bruno@clisp.org>
108360         Make it possible to #define set_program_name to an alias.
108361         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108362         ENABLE_RELOCATABLE early.
108364 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108366         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108367         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108368         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108369         More generally, don't assume that 64-bit signed int is available
108370         if unsigned int is, and vice versa.
108371         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108372         unsigned symbols, not on their signed counterparts.
108373         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108374         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108375         (UINT64_C, UINTMAX_C):
108376         Likewise.
108377         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108378         unsigned counterparts.
108379         (Have_long_long, Unsigned): New macros.
108380         (Int): Renamed from INT.
108381         (strtoimax): Use the new macros.
108382         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108383         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108384         * modules/inttypes (inttypes.h): Substitute
108385         HAVE_UNSIGNED_LONG_LONG_INT.
108386         * modules/stdint (stdint.h): Likewise.
108387         (Files): Add m4/ulonglong.m4.
108389 2006-10-10  Bruno Haible  <bruno@clisp.org>
108391         Fix a gcc -Wshadow warning.
108392         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108393         to 'bucket'.
108394         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108395         gl_linked_indexof_from_to): Likewise.
108396         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108397         Likewise.
108398         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108399         Likewise.
108400         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108401         Reported by Eric Blake.
108403 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108405         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108406         for NetBSD.  Problem reported by Bruno Haible.
108408 2006-10-09  Jim Meyering  <jim@meyering.net>
108410         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108411         Patch from Bruno Haible.
108413 2006-10-09  Jim Meyering  <jim@meyering.net>
108415         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108416         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108417         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108419 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108421         Don't include <config.h> twice; this doesn't work in some cases,
108422         e.g., when config.h has "#define intmax_t long long int" and
108423         we include <config.h>, <inttypes.h>, <config.h> in that order.
108424         Problem reported by Matthew Woehlke in:
108425         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108426         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108427         * lib/fts-cycle.c: Don't include config.h.
108428         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108429         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108430         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108431         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108432         inttypes.h.
108433         * lib/xstrtoumax.c: Likewise.
108434         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108435         __strtol and the like, so that this module is more like its siblings.
108436         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108437         Remove; no longer needed now that we assume gnulib inttypes.h.
108439 2006-10-08  Bruno Haible  <bruno@clisp.org>
108441         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108442         option.
108444 2006-10-07  Jim Meyering  <jim@meyering.net>
108446         * modules/inttypes (inttypes.h): Revert what seems to have been
108447         an inadvertent part of today's change: use "|", not "/" in the
108448         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108450 2006-10-07  Bruno Haible  <bruno@clisp.org>
108452         * modules/sublist: New file.
108454 2006-10-07  Bruno Haible  <bruno@clisp.org>
108456         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108457         * modules/argz (argz.h): Likewise.
108458         * modules/arpa_inet (arpa/inet.h): Likewise.
108459         * modules/byteswap (byteswap.h): Likewise.
108460         * modules/configmake (configmake.h): Likewise.
108461         * modules/fcntl (fcntl.h): Likewise.
108462         * modules/fnmatch (fnmatch.h): Likewise.
108463         * modules/getopt (getopt.h): Likewise.
108464         * modules/glob (glob.h): Likewise.
108465         * modules/inttypes (inttypes.h): Likewise.
108466         * modules/netinet_in (netinet/in.h): Likewise.
108467         * modules/poll (poll.h): Likewise.
108468         * modules/stdbool (stdbool.h): Likewise.
108469         * modules/stdint (stdint.h): Likewise.
108470         * modules/sys_select (sys/select.h): Likewise.
108471         * modules/sys_socket (sys/socket.h): Likewise.
108472         * modules/sys_stat (sys/stat.h): Likewise.
108473         * modules/sysexits (sysexits.h): Likewise.
108474         * modules/unistd (unistd.h): Likewise.
108475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108476         Add a "DO NOT EDIT" comment to the generated file.
108477         (func_import): Likewise for gnulib-comp.m4.
108479 2006-10-07  Bruno Haible  <bruno@clisp.org>
108481         * lib/gl_sublist.h: New file.
108482         * lib/gl_sublist.c: New file.
108484 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108486         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108487         name (relative to the original working directory) and the file
108488         name component (relative to the temporary working directory).  All
108489         callers changed.
108490         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108491         * lib/mkdir-p.c (make_dir_parents): Likewise.
108492         * lib/mkdir-p.h (make_dir_parents): Likewise.
108494 2006-10-06  Eric Blake  <ebb9@byu.net>
108496         Define several macros for use by the clean-temp module.
108497         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108499         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108501         * lib/clean-temp.h (close_stream_temp): New declaration.
108502         * lib/clean-temp.c (includes): Pull in headers according to what
108503         other modules are in use.
108504         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108506 2006-10-06  Bruno Haible  <bruno@clisp.org>
108508         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108509         instead of fopen, fwriteerror.
108511 2006-10-06  Bruno Haible  <bruno@clisp.org>
108513         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108514         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108515         int.
108516         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108517         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108518         Return an error indicator.
108519         Suggested by Eric Blake.
108521 2006-10-06  Bruno Haible  <bruno@clisp.org>
108523         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108524         Reported by Eric Blake.
108526 2006-10-06  Bruno Haible  <bruno@clisp.org>
108528         * modules/closeout (Description): Mention stderr too.
108530 2006-10-06  Bruno Haible  <bruno@clisp.org>
108531         and Paul Eggert  <eggert@cs.ucla.edu>
108533         * lib/closeout.c (close_stdout): Also close stderr.
108534         * lib/closeout.h: Update comment.
108536 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108538         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108539         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108540         * lib/dirchownmod.c: Include lchown.h.
108541         * lib/lchown.c: Don't include files that lchown.h now includes.
108542         Don't declare chown, since lchown.h now does that.
108543         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108544         (lchown): Define to rpl_chown if lchown is declared but
108545         does not exist.  Declare using a prototype if lchown is not
108546         declared.  Add a copyright notice.
108547         * lib/mkstemp.h: Include <unistd.h>.
108548         * lib/openat.c: Include lchown.h.
108550         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108551         we now test for that separately.
108552         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108553         rather than O_NOFOLLOW, when testing whether it's possible to
108554         avoid a race condition reliably.
108555         * lib/savewd.c (savewd_chdir): Likewise.
108557         Remove macros that are no longer needed now that stdint.h is
108558         reliable.
108559         * lib/fsusage.c (UINTMAX_MAX): Remove.
108560         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108561         * lib/utimecmp.c (SIZE_MAX): Remove.
108563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108565         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108566         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108567         O_NOATIME works.
108569 2006-10-05  Bruno Haible  <bruno@clisp.org>
108571         * lib/gl_list.h (gl_sortedlist_search_from_to,
108572         gl_sortedlist_indexof_from_to): New declarations.
108573         (gl_list_implementation): New fields sortedlist_search_from_to,
108574         sortedlist_indexof_from_to.
108575         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108576         inline functions.
108577         * lib/gl_list.c (gl_sortedlist_search_from_to,
108578         gl_sortedlist_indexof_from_to): New functions.
108579         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108580         function.
108581         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108582         (gl_array_sortedlist_search_from_to): New function.
108583         (gl_array_list_implementation): Update.
108584         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108585         function.
108586         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108587         (gl_carray_sortedlist_search_from_to): New function.
108588         (gl_carray_list_implementation): Update.
108589         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108590         gl_linked_sortedlist_indexof_from_to): New functions.
108591         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108592         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108593         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108594         gl_tree_sortedlist_indexof_from_to): New functions.
108595         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108596         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108597         Update.
108598         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108599         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108600         Update.
108602 2006-10-05  Bruno Haible  <bruno@clisp.org>
108604         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108605         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108606         (struct gl_list_implementation): Add fields search_from_to,
108607         indexof_from_to. Remove fields search, indexof.
108608         (gl_list_search): Use the search_from_to method.
108609         (gl_list_search_from, gl_list_search_from_to): New functions.
108610         (gl_list_indexof): Use the indexof_from_to method.
108611         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108612         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108613         (gl_list_search_from, gl_list_search_from_to): New functions.
108614         (gl_list_indexof): Use the indexof_from_to method.
108615         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108616         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108617         gl_array_indexof. Add start_index, end_index arguments.
108618         (gl_array_search_from_to): Renamed from gl_array_search. Add
108619         start_index, end_index arguments.
108620         (gl_array_remove, gl_array_list_implementation): Update.
108621         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108622         gl_carray_indexof. Add start_index, end_index arguments.
108623         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108624         start_index, end_index arguments.
108625         (gl_carray_remove, gl_carray_list_implementation): Update.
108626         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108627         gl_linked_search. Add start_index, end_index arguments.
108628         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108629         start_index, end_index arguments.
108630         (gl_linked_remove): Update.
108631         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108632         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108633         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108634         field to 'size_t'.
108635         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108636         gl_tree_search. Add start_index, end_index arguments.
108637         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108638         start_index, end_index arguments.
108639         (gl_tree_remove): Update.
108640         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108641         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108642         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108643         function.
108644         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108645         gl_tree_search. Add start_index, end_index arguments.
108646         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108647         start_index, end_index arguments.
108648         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108649         Update.
108650         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108652 2006-10-05  Bruno Haible  <bruno@clisp.org>
108654         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108656         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108657         fwriteerror_temp): New declarations.
108658         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108659         (descriptors): New variable.
108660         (cleanup): First, close the descriptors.
108661         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108662         fclose_temp, fwriteerror_temp): New functions.
108664 2006-10-04  Jim Meyering  <jim@meyering.net>
108666         * lib/fts.c (fts_open): Tiny comment change.
108668 2006-10-04  Bruno Haible  <bruno@clisp.org>
108670         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108671         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108672         gl_LOCK_BODY.
108673         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108674         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108675         gl_LOCK_EARLY_BODY.
108676         (gl_LOCK): Require gl_LOCK_BODY.
108678 2006-10-04  Bruno Haible  <bruno@clisp.org>
108680         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108681         (gl_oset_search_atleast): New declaration.
108682         (struct gl_oset_implementation): Add field 'search_atleast'.
108683         (gl_oset_search_atleast): New inline function.
108684         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108685         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108686         (gl_array_oset_implementation): Update.
108687         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108688         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108689         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108691 2006-10-04  Bruno Haible  <bruno@clisp.org>
108693         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108695 2006-10-03  Bruno Haible  <bruno@clisp.org>
108697         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108698         from gl_avltreehash_list_implementation.
108700 2006-10-03  Bruno Haible  <bruno@clisp.org>
108702         * lib/gl_oset.c (gl_oset_add): Fix return type.
108704 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108706         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108708 2006-10-02  Eric Blake  <ebb9@byu.net>
108710         * modules/strnlen (Depends-on): Add extensions.
108712 2006-10-02  Eric Blake  <ebb9@byu.net>
108714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108715         definition in 2.60+.
108717 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108719         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108720         checks.
108722 2006-10-02  Bruno Haible  <bruno@clisp.org>
108724         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108725         to the AUTOMAKE_OPTIONS.
108726         Reported by Jim Meyering.
108728 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108730         Work around bug in Solaris 10 /proc file system:
108731         /proc/self/fd/NNN/.. isn't the parent directory of
108732         the directory whose file descriptor is NNN.  This needs to
108733         be worked around at run time, not compile time, since a
108734         program might be built on Solaris 8, where things work, and
108735         run on Solaris 10.
108736         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108737         to use the following interface instead:
108738         (OPENAT_BUFFER_SIZE): New macro.
108739         (openat_proc_name): New function.
108740         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108741         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108742         Likewise.
108743         * lib/openat-proc.c: New file.
108744         * modules/openat (Files): Add lib/openat-proc.c.
108745         (Depends-on): Add same-inode, stdbool.
108746         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108748 2006-09-29  Bruno Haible  <bruno@clisp.org>
108750         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108751         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108752         argument. Set stdout_closed before testing for ferror, not after.
108753         (fwriteerror, fwriteerror_no_ebadf): New functions.
108755 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108757         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108759 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108761         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108762         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108764 2006-09-28  Jim Meyering  <jim@meyering.net>
108766         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108767         Include <unistd.h>.
108769 2006-09-28  Bruno Haible  <bruno@clisp.org>
108771         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108772         * modules/linkedhash-list (Depends-on): Likewise.
108773         * modules/rbtreehash-list (Depends-on): Likewise.
108775 2006-09-28  Bruno Haible  <bruno@clisp.org>
108777         * lib/strndup.h: Simplify the redefinition of strndup.
108778         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108781 2006-09-28  Bruno Haible  <bruno@clisp.org>
108783         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108784         * lib/gl_linkedhash_list.c: Likewise.
108785         * lib/gl_rbtreehash_list.c: Likewise.
108787 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108789         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108790         getaddrinfo.
108792         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108793         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108794         it causes <stdio_ext.h> to cause a compile-time error.
108795         Problem reported by Nelson H. F. Beebe.
108796         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108797         of HAVE_DECL___PENDING.
108799         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108801         declaration.
108803 2006-09-27  Jim Meyering  <jim@meyering.net>
108805         This file could end up with a definition for a function
108806         named __strndup, rather than rpl_strndup on a system with
108807         incomplete weak_alias support.
108808         * lib/strndup.c (strndup): Rename from __strndup.
108809         Remove #defines that used to map __strndup to strndup.
108810         Don't use K&R prototypes.
108811         Remove LIBC-related code, since this file is not sync'd with glibc.
108812         * lib/strndup.h: Revamp, accordingly.
108813         * m4/strndup.m4: Modernize.
108815 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108817         * modules/savewd (Depends-on): Add 'raise'.
108818         * lib/savewd.c: Include <signal.h>, for 'raise'.
108820 2006-09-26  Jim Meyering  <jim@meyering.net>
108822         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108823         when we detect Darwin 8.7.0's acl_get_file bug.
108824         Rearrange to perform the new (below) run-test while $LIBS
108825         contains any acl-related library.  Set USE_ACL at the end.
108826         (gl_ACL_GET_FILE): New function.
108828 2006-09-26  Eric Blake  <ebb9@byu.net>
108830         * lib/verror.c: Include <config.h> unconditionally.
108832 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108834         * modules/clock-time (Maintainer): Add self.
108835         * modules/getlogin_r (Depends-on): Add extensions.
108837 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108839         * modules/clock-time: New module.
108840         * modules/nanosleep (Depends-on): Add clock-time.
108841         * modules/gethrxtime (Depends-on): Likewise.
108842         * modules/gettime (Depends-on): Likewise.
108843         * modules/settime (Depends-on): Likewise.
108845         * modules/fts-lgpl: Depend on openat.
108846         * modules/mkancesdirs: Depend on savewd.
108847         * modules/mkdir-p: Likewise.
108849 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108851         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108853         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108854         `gl_have_arbitrary_file_name_length_limit' to
108855         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108856         actually works between configure runs.
108858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108859             Bruno Haible  <bruno@clisp.org>
108861         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108863 2006-09-25  Jim Meyering  <jim@meyering.net>
108865         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108866         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108868 2006-09-25  Eric Blake  <ebb9@byu.net>
108870         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108871         exec's in 2006-09-18 patch when shuffling fds.
108873 2006-09-25  Bruno Haible  <bruno@clisp.org>
108875         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108876         Reported by Jim Meyering.
108878 2006-09-24  Jim Meyering  <jim@meyering.net>
108880         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108881         compare a pointer against a literal "0".  That caused failures with
108882         at least HP-UX's hpcc.
108884 2006-09-22  Simon Josefsson  <jas@extundo.com>
108886         * modules/gc-sha1:
108887         * modules/gc-md4:
108888         * modules/gc-hmac-sha1:
108889         * modules/gc-hmac-md5:
108890         * modules/gc-des:
108891         * modules/gc-arcfour: Distribute more files.
108893 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108895         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108896         (gl_linked_iterator_from_to): Initialize struct completely.
108897         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108898         (gl_tree_iterator_from_to): Likewise
108899         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108900         * lib/gl_array_list.c [lint] (gl_array_iterator)
108901         (gl_array_iterator_from_to): Likewise.
108902         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108903         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108904         (gl_carray_iterator_from_to): Likewise.
108906         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108907         * lib/md4.c (md4_process_block): Remove unused variable.
108908         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108909         parentheses for clarity.
108911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108913         * modules/bison-i18n (Depends-on): Add gettext.
108915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108917         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108918         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108919         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108920         also add missing comma that caused broken test.
108921         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108922         stdlib.h, for `abort'.
108923         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108924         variables.
108925         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108926         include unistd.h if present, for `rmdir'.
108927         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108928         variables.
108929         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108930         in the process include standard headers for prototypes.
108931         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108932         gets declared on GNU/Linux.
108933         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108934         unistd.h, for `rmdir'.
108935         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108937         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108938         always true.
108939         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108941         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108943 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108945         * gnulib-tool (func_version): Create output all at once.  This
108946         may help avoid triggering unnecessary SIGPIPEs, and at any
108947         rate it doesn't hurt.
108949 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108950             Bruno Haible  <bruno@clisp.org>
108952         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108953         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108954         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108956         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108957         (gl_FUNC_VASPRINTF): Invoke it.
108959 2006-09-22  Bruno Haible  <bruno@clisp.org>
108961         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108962         getloadavg.c as first argument.
108964 2006-09-22  Bruno Haible  <bruno@clisp.org>
108966         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108967         at the beginning of the gl_INIT macro.
108968         * modules/getloadavg (configure.ac): Pass $gl_source_base to
108969         gl_GETLOADAVG.
108971 2006-09-22  Bruno Haible  <bruno@clisp.org>
108973         * gnulib-tool (func_create_megatestdir): Don't include the config-h
108974         module.
108975         Suggested by Ralf Wildenhues.
108977 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108979         Import this patch from libc:
108981         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
108983         * lib/regex_internal.c (re_string_reconstruct): Handle
108984         offset < pstr->valid_raw_len && pstr->offsets_needed case.
108985         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
108986         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
108987         re_string_context_at.
108989         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
108990         now requires it.
108991         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
108992         gl_REGEX now does it for us.
108993         (gl_REGEX): Add test taken from
108994         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
108996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
108997         Check that large offsets work.  Modernize Autoconf usages.
108998         Prefer "yes" to mean a good thing rather than a bad.
108999         Don't put "#define mkstemp" in config.h, as this might interfere
109000         with standard system headers that "#define mkstemp mkstemp64".
109002         * modules/mkstemp (Depends-on): Add extensions, so that
109003         mkstemp is visible on some platforms.
109004         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109005         (Include): Change to "mkstemp.h" from <stdlib.h>.
109006         (Files): Add mkstemp.h.
109008         * lib/mkstemp.h: New file, since some standard headers
109009         #define mkstemp.
109010         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109011         Include "mkstemp.h".
109012         Make the _LIBC code resemble glibc original more,
109013         e.g., use K&R style.
109014         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109015         (mkstemp): Remove, since mkstemp.h does this for us.
109016         * lib/stdlib--.h: Include mkstemp.h.
109018         Import this patch from libc:
109020         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109022         * lib/tempname.c (__gen_tempname): Change attempts_min
109023         into a macro.  Use preprocessor to decide how to initialize
109024         attempts [Coverity CID 67].
109026 2006-09-20  Bruno Haible  <bruno@clisp.org>
109028         * lib/mkdtemp.c: Import from libc.
109029         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109030                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109031                 attempts_min into a macro.  Use preprocessor to decide how to
109032                 initialize attempts [Coverity CID 67].
109033         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109034                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109035                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109037 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109039         * gnulib-tool (func_exit): New function, to allow to pass the
109040         exit status portably through the trap.  Use everywhere.
109041         (--help, --version): Signal a write error.
109042         (trap): catch SIGPIPE, for write errors.
109043         Exit at the end of the trap, with the correct exit status.
109045 2006-09-19  Karl Berry  <karl@gnu.org>
109047         * doc/gnulib.texi: note about the license texinfo files.
109049 2006-09-19  Eric Blake  <ebb9@byu.net>
109051         * gnulib-tool: Avoid space-tab.
109053 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109055         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109056         that prevented coreutils 6.1 from building.  Problem reported
109057         by Petter Reinholdtsen.
109059 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109061         * gnulib-tool (avoidlist): Fix typo that broke options like
109062         --avoid=lock that are used by coreutils bootstrap.
109064 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109066         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109067         more systematically.
109069 2006-09-18  Jim Meyering  <jim@meyering.net>
109071         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109073 2006-09-18  Bruno Haible  <bruno@clisp.org>
109075         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
109077 2006-09-18  Bruno Haible  <bruno@clisp.org>
109079         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
109080         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
109081         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
109082         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
109083         * m4/gettext.m4: Require autoconf >= 2.52.
109084         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
109085         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
109086         of gl_cv_header_inttypes_h.
109088 2006-09-18  Bruno Haible  <bruno@clisp.org>
109090         * lib/javaversion.c: Include configmake.h.
109092 2006-09-18  Bruno Haible  <bruno@clisp.org>
109094         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
109095         avoid that the while loops be executed in a subshell.
109097 2006-09-18  Bruno Haible  <bruno@clisp.org>
109099         * MODULES.html.sh (func_module): Break long lines.
109100         Suggested by Bruce Korb <bkorb@gnu.org>.
109102 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109104         Speed up by a factor of 1.12.
109105         * gnulib-tool (nl): New variable.
109106         (func_import): Rewrite include directive extraction to only read each
109107         directive once.
109109 2006-09-17  Bruno Haible  <bruno@clisp.org>
109111         * modules/javaversion (Makefile.am): Remove DEFS setting.
109112         (Depends-on): Add configmake, for PKGDATADIR definition.
109114 2006-09-17  Bruno Haible  <bruno@clisp.org>
109116         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109118 2006-09-17  Bruno Haible  <bruno@clisp.org>
109120         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109121         (func_modules_transitive_closure, func_modules_add_dummy,
109122         func_modules_to_filelist, func_import, func_create_testdir,
109123         func_create_megatestdir, ...): Use it wherever possible.
109124         Suggested by Ralf Wildenhues.
109126 2006-09-16  Karl Berry  <karl@gnu.org>
109128         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109129         to avoid sectioning errors.
109130         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109131         [ifinfo]: blank line after @center-ed titles.
109132         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109133         Spell FSF address consistently with others.
109134         (These changes approved by rms.)
109136 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109138         Speed up by a factor of 1.61.
109139         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109140         already checked module names again.
109142 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109144         Speed up by a factor of 1.13.
109145         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109146         for new_files, and the input to func_add_or_update.
109148 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109150         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109151         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109153 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109155         * modules/mkancesdirs (Depends-on): Add fcntl.
109156         * modules/savewd: New file.
109157         * MODULES.html.sh (File system functions): Add savewd.
109159         * modules/configmake (Makefile.am): Add support for the
109160         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109162 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109164         * m4/savewd.m4: New file.
109166 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109168         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109169         (dirchownmod): New arg FD.  All callers changed.
109170         Use FD rather than opening the directory ourself, as opening is
109171         now the caller's responsibility.
109172         * lib/dirchownmod.h: Likewise.
109173         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109174         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109175         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109176         (test_dir): Remove.
109177         (mkancesdirs): Return length of prefix of FILE that has already
109178         been made, or -2 if there is a child doing the work.  Redo
109179         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109180         ".", and treat ".." specially since it might stray back into
109181         already-created areas.  Use a subprocess if necessary.  New arg
109182         WD; all users changed.  MAKE_DIR function should now return 1
109183         if it creates a directory that is not readable.  Return -2 if
109184         a child process is spun off.
109185         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109186         Adjust signature to match code.
109187         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109188         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109189         all users changed.
109190         * lib/savewd.c, lib/savewd.h: New files.
109192 2006-09-15  Jim Meyering  <jim@meyering.net>
109194         * modules/rename-dest-slash: New module.
109195         * MODULES.html.sh (posix_compat): Add it here.
109197         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109199 2006-09-15  Jim Meyering  <jim@meyering.net>
109201         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109202         file.
109204         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109206 2006-09-15  Jim Meyering  <jim@meyering.net>
109208         * lib/rename-dest-slash.c (has_trailing_slash): Use
109209         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109210         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109211         test before testing whether SRC is a directory.
109212         Suggestions from Bruno Haible.
109214         Avoid a warning about an unused variable.
109215         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109216         into the #ifdef block where it's used.
109218         * lib/rename-dest-slash.c: New file.
109220 2006-09-14  Bruno Haible  <bruno@clisp.org>
109222         * lib/allocsa.c: Include <config.h> unconditionally.
109223         * lib/asnprintf.c: Likewise.
109224         * lib/asprintf.c: Likewise.
109225         * lib/c-strcasecmp.c: Likewise.
109226         * lib/c-strcasestr.c: Likewise.
109227         * lib/c-strncasecmp.c: Likewise.
109228         * lib/c-strstr.c: Likewise.
109229         * lib/classpath.c: Likewise.
109230         * lib/clean-temp.c: Likewise.
109231         * lib/concatpath.c: Likewise.
109232         * lib/copy-file.c: Likewise.
109233         * lib/csharpcomp.c: Likewise.
109234         * lib/csharpexec.c: Likewise.
109235         * lib/execute.c: Likewise.
109236         * lib/fatal-signal.c: Likewise.
109237         * lib/findprog.c: Likewise.
109238         * lib/fwriteerror.c: Likewise.
109239         * lib/gl_array_list.c: Likewise.
109240         * lib/gl_array_oset.c: Likewise.
109241         * lib/gl_avltree_list.c: Likewise.
109242         * lib/gl_avltree_oset.c: Likewise.
109243         * lib/gl_avltreehash_list.c: Likewise.
109244         * lib/gl_carray_list.c: Likewise.
109245         * lib/gl_linked_list.c: Likewise.
109246         * lib/gl_linkedhash_list.c: Likewise.
109247         * lib/gl_list.c: Likewise.
109248         * lib/gl_oset.c: Likewise.
109249         * lib/gl_rbtree_list.c: Likewise.
109250         * lib/gl_rbtree_oset.c: Likewise.
109251         * lib/gl_rbtreehash_list.c: Likewise.
109252         * lib/imaxabs.c: Likewise.
109253         * lib/imaxdiv.c: Likewise.
109254         * lib/javacomp.c: Likewise.
109255         * lib/javaexec.c: Likewise.
109256         * lib/javaversion.c: Likewise.
109257         * lib/linebreak.c: Likewise.
109258         * lib/localcharset.c: Likewise.
109259         * lib/lock.c: Likewise.
109260         * lib/mbchar.c: Likewise.
109261         * lib/mbswidth.c: Likewise.
109262         * lib/mkdtemp.c: Likewise.
109263         * lib/pipe.c: Likewise.
109264         * lib/printf-args.c: Likewise.
109265         * lib/printf-parse.c: Likewise.
109266         * lib/progname.c: Likewise.
109267         * lib/progreloc.c: Likewise.
109268         * lib/readlink.c: Likewise.
109269         * lib/sh-quote.c: Likewise.
109270         * lib/stpcpy.c: Likewise.
109271         * lib/stpncpy.c: Likewise.
109272         * lib/strcasecmp.c: Likewise.
109273         * lib/strcasestr.c: Likewise.
109274         * lib/strcspn.c: Likewise.
109275         * lib/striconv.c: Likewise.
109276         * lib/strncasecmp.c: Likewise.
109277         * lib/strnlen1.c: Likewise.
109278         * lib/strstr.c: Likewise.
109279         * lib/strtok_r.c: Likewise.
109280         * lib/tls.c: Likewise.
109281         * lib/tmpdir.c: Likewise.
109282         * lib/unicodeio.c: Likewise.
109283         * lib/unsetenv.c: Likewise.
109284         * lib/vasnprintf.c: Likewise.
109285         * lib/vasprintf.c: Likewise.
109286         * lib/wait-process.c: Likewise.
109287         * lib/xallocsa.c: Likewise.
109288         * lib/xsetenv.c: Likewise.
109289         * lib/xstriconv.c: Likewise.
109291 2006-09-13  Simon Josefsson  <jas@extundo.com>
109293         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109294         that internally, suggested by Ralf Wildenhues
109295         <Ralf.Wildenhues@gmx.de>.
109297 2006-09-13  Simon Josefsson  <jas@extundo.com>
109299         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109300         @LIBOBJS@.
109301         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109303 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109305         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109306         longer worry about uses that don't define HAVE_CONFIG_H.
109307         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109308         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109309         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109310         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109311         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109312         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109313         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109314         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109315         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109316         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109317         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109318         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109319         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109320         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109321         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109322         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109323         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109324         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109325         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109326         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109327         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109328         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109329         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109330         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109331         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109332         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109333         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109334         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109335         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109336         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109337         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109338         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109339         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109340         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109341         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109342         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109343         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109344         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109345         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109346         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109347         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109348         Likewise.
109350 2006-09-13  Eric Blake  <ebb9@byu.net>
109352         * lib/getopt.c: Fix typo in last commit.
109354 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109356         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109357         dgettext.
109359 2006-09-12  Jim Meyering  <jim@meyering.net>
109361         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109362         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109363         Reported by Nelson H. F. Beebe.
109365 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109367         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109368         program_invocation_name and program_invocation_short_name are
109369         initialized.
109370         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109371         and program_invocation_short_name to argp.h, so they are visible
109372         to user programs.
109373         * lib/argp.h: Likewise
109375 2006-09-10  Bruno Haible  <bruno@clisp.org>
109377         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109378         m4/inttypes_h.m4, m4/uintmax_t.m4.
109380 2006-09-10  Bruno Haible  <bruno@clisp.org>
109382         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109383         gl_AC_TYPE_UINTMAX_T.
109385 2006-09-10  Bruno Haible  <bruno@clisp.org>
109387         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109389 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109391         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109392         convention.  Text proposed by Bruno Haible.
109393         (struct argp_option): Document the use of N_() wrappers.
109395         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109396         '\v', and translate the two parts separately, instead of feeding
109397         the whole string to gettext.  This allows to exclude
109398         '\v' from the strings visible to the translator by writing doc
109399         strings as N_("..") "\v" N_("..").
109401 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109403         * config/srclist.txt: Undo latest change; the bug was fixed.
109405 2006-09-09  Bruno Haible  <bruno@clisp.org>
109407         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109408         assignments if building a library without libtool.
109409         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109410         in func_emit_lib_Makefile_am.
109411         (func_import): When building a static library libfoo.a, arrange to
109412         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109413         (func_create_testdir): Likewise.
109414         * modules/gc (configure.ac, Makefile.am): If building statically,
109415         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109416         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109417         * modules/striconv (configure.ac, Makefile.am): Likewise.
109418         Based on a suggestion by Ralf Wildenhues.
109420 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109422         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109423         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109424         Also:
109426         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109427         Add year_2050_test to catch glibc bug 2821
109428         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109430         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109431         Prefer #ifdef to #if.
109433         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109434         Return from 'main' instead of calling 'exit'.
109436 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109438         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109439         returned the maximum time_t value rather than (time_t) -1.
109440         Problem originally reported by William Bardwell
109441         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109443         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109444         Moved to here ...
109445         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109446         ... from here.
109448 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109450         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109451         2821 is fixed.
109453 2006-09-08  Jim Meyering  <jim@meyering.net>
109455         Don't make generated files read-only.  That would bother too many
109456         people.  However, do retain the ability to work when targets are
109457         read-only: remove the destination and temporary files before writing
109458         them (when generated via sed or echo), or by using the -f option for
109459         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109460         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109461         * modules/byteswap, modules/configmake, modules/fcntl:
109462         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109463         * modules/localcharset, modules/netinet_in, modules/poll:
109464         * modules/stdbool, modules/stdint, modules/sys_select:
109465         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109467 2006-09-08  Jim Meyering  <jim@meyering.net>
109469         Avoid new build failure on FreeBSD 6.0.
109470         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109471         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109472         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109474 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109476         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109478 2006-09-07  Jim Meyering  <jim@meyering.net>
109480         Fix global typo in last change: use chmod u-w, not chmod u-x.
109481         Spotted by Paul Eggert and Bruce Korb.
109482         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109483         * modules/byteswap, modules/configmake, modules/fcntl:
109484         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109485         * modules/localcharset, modules/netinet_in, modules/poll:
109486         * modules/stdbool, modules/stdint, modules/sys_select:
109487         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109489 2006-09-06  Jim Meyering  <jim@meyering.net>
109491         Make generated files be read-only.
109492         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109493         Ensure that each generated file is now read-only.
109494         * modules/argz: Likewise.
109495         * modules/arpa_inet: Likewise.
109496         * modules/byteswap: Likewise.
109497         * modules/configmake: Likewise.
109498         * modules/fcntl: Likewise.
109499         * modules/fnmatch: Likewise.
109500         * modules/getopt: Likewise.
109501         * modules/glob: Likewise.
109502         * modules/inttypes: Likewise.
109503         * modules/netinet_in: Likewise.
109504         * modules/poll: Likewise.
109505         * modules/stdbool: Likewise.
109506         * modules/stdint: Likewise.
109507         * modules/sys_select: Likewise.
109508         * modules/sys_socket: Likewise.
109509         * modules/sys_stat: Likewise.
109510         * modules/sysexits: Likewise.
109511         * modules/localcharset: Same as above, but continue using temporary
109512         file named "t-$@" (why different?) rather than the "$@-t" used
109513         everywhere else.
109515         * modules/sysexits (Makefile.am): Replace literal occurrences
109516         of "sysexit.h" more readable, and more consistent, "$@".
109518 2006-09-06  Bruno Haible  <bruno@clisp.org>
109520         * modules/striconv: New file.
109521         * modules/xstriconv: New file.
109522         * MODULES.html.sh (Internationalization functions): Add striconv,
109523         xstriconv.
109525 2006-09-06  Bruno Haible  <bruno@clisp.org>
109527         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109528         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109529         not using libtool correctly.
109531 2006-09-06  Bruno Haible  <bruno@clisp.org>
109533         * lib/striconv.h: New file.
109534         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109535         iconvstring.c.
109536         * lib/xstriconv.h: New file.
109537         * lib/xstriconv.c: New file.
109539 2006-09-06  Bruno Haible  <bruno@clisp.org>
109541         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109542         lib_..._LDFLAGS.
109544 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109546         * lib/argz_.h: Sync from Libtool.
109548         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109549                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109551         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109553 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109555         * modules/trim: New file.
109557 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109559         * lib/trim.h: New file.
109560         * lib/trim.c: New file.
109562 2006-09-05  Bruno Haible  <bruno@clisp.org>
109564         * MODULES.html.sh (String handling): Add trim.
109566 2006-09-04  Karl Berry  <karl@gnu.org>
109568         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109569         until next release.
109571 2006-09-03  Bruno Haible  <bruno@clisp.org>
109573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109574         correctly.
109576 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109578         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109579         not gl_GETLOADAVG.  Omit unneeded semicolons.
109580         Problems reported by Ralf Wildenhues in
109581         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109582         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109583         at the end, which is the usual gnulib style.
109585         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109586         of doing all the work ourselves.
109587         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109588         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109590 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109592         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109593         Problem reported by Ralf Wildenhues in
109594         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109596         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109597         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109599 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109601         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109602         yesterday's patch by changing test -n to test -z.
109604 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109606         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109607         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109608         the former is now obsolescent.
109610         * modules/chdir-long (Depends-on): Add fcntl.
109612 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109614         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109615         obsolescent, and programs should use gnulib instead.
109616         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109617         but with prefixes changed.
109619 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109621         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109622         or stdbool.h, because they might not exist while configuring.
109624         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109625         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109626         does that for us.
109627         (O_DIRECTORY): Remove.
109629 2006-08-31  Eric Blake  <ebb9@byu.net>
109631         * gnulib-tool: Don't let emacs change spaces to TAB.
109633 2006-08-31  Bruno Haible  <bruno@clisp.org>
109635         * gnulib-tool: When calling func_import more than once, do it in a
109636         subshell.
109637         Reported by Eric Blake <ebb9@byu.net>.
109639 2006-08-31  Bruno Haible  <bruno@clisp.org>
109641         * gnulib-tool (nl): Remove variable.
109642         (sed_transform_lib_file): Use more robust test for config-h module.
109643         (func_import): Fix typo in 2006-08-25 patch.
109645 2006-08-31  Bruno Haible  <bruno@clisp.org>
109647         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109648         specified, augment Makefile.am variables instead of assigning them.
109650 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109652         Work around a bug in both the Linux and SunOS 64-bit kernels:
109653         nanosleep mishandles sleeps for longer than 2**31 seconds.
109654         Problem reported by Frank v Waveren in
109655         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109656         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109657         Check for nanosleep bug.
109658         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109660 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109662         Work around a bug in both the Linux and SunOS 64-bit kernels:
109663         nanosleep mishandles sleeps for longer than 2**31 seconds.
109664         Problem reported by Frank v Waveren in
109665         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109666         * lib/nanosleep.c (BILLION): New constant.
109667         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109668         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109669         implementation.
109671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109673         * modules/nanosleep (Depends-on): Add gettime.
109675 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109676         and Simon Josefsson  <jas@extundo.com>
109677         and Oskar Liljeblad  <oskar@osk.mine.nu>
109679         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109680         * gnulib-tool (func_import): New license type 'unmodifiable license
109681         text'.
109682         * modules/fdl: Use it.  Longer description.
109683         * module/gpl, module/lgpl: New files.
109685 2006-08-30  Jim Meyering  <jim@meyering.net>
109687         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109688         shadowing the parameter.
109690 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109692         Sync from Libtool:
109694         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109696         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109697         sharing with gnulib.  Report by Eric Blake.
109699 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109701         * modules/isapipe: New file.
109702         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109704 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109706         * modules/configmake (Makefile.am): Add a comment, and omit
109707         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109708         by Bruno Haible.
109710 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109712         * m4/isapipe.m4: New file.
109714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109716         * lib/isapipe.c, lib/isapipe.h: New files.
109718 2006-08-29  Jim Meyering  <jim@meyering.net>
109720         * modules/configmake (Makefile.am): Make configmake.h depend on
109721         Makefile.  Otherwise, a stale configmake.h could hang around.
109723 2006-08-29  Eric Blake  <ebb9@byu.net>
109725         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109726         resolution of upstream bug 3044.
109728 2006-08-29  Bruno Haible  <bruno@clisp.org>
109730         * modules/localcharset (Depends-on): Add configmake.
109731         (Makefile.am): Remove setting of LIBDIR through DEFS.
109733 2006-08-29  Bruno Haible  <bruno@clisp.org>
109735         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109736         defined.
109738 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109740         * modules/fcntl: New file.
109741         * modules/chdir-safer (Depends-on): Add fcntl.
109742         * modules/fts: Likewise.
109743         * modules/mkdir-p: Likewise.
109745         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109746         This undoes the most recent change, since we're now addressing the
109747         problem in a different way.
109749         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109750         into output, since the output might be called Makefile.am even
109751         if $makefile_name is something different.
109752         (func_import): Use $makefile_am rather than
109753         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109754         empty.
109756         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109758 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109760         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109761         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109762         recent change to stdint.m4, since we're now addressing the problem in a
109763         different way.
109765 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109767         * m4/fcntl_h.m4: New file.
109769 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109771         * lib/fcntl_.h: New file.
109772         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109773         the fcntl module.
109774         * lib/dirchownmod.c: Likewise.
109775         * lib/fts.c: Likewise.
109777         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109778         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109779         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109780         just before including <inttypes.h>, to avoid circular inclusion.
109782 2006-08-28  Jim Meyering  <jim@meyering.net>
109784         * doc/visibility.texi: Actually read and correct the grammar of the
109785         sentence affected by yesterday's change.
109787 2006-08-28  Eric Blake  <ebb9@byu.net>
109789         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109790         needs wrapper.
109792 2006-08-28  Eric Blake  <ebb9@byu.net>
109794         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109796 2006-08-28  Eric Blake  <ebb9@byu.net>
109798         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109800 2006-08-28  Bruno Haible  <bruno@clisp.org>
109802         * modules/c-strstr: New file, from GNU gettext.
109803         * MODULES.html.sh (String handling): Add c-strstr.
109805 2006-08-28  Bruno Haible  <bruno@clisp.org>
109807         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109808         macros.
109809         Reported by Eric Blake.
109811 2006-08-28  Bruno Haible  <bruno@clisp.org>
109813         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109814         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109815         * lib/vasprintf.c: Include errno.h, limits.h.
109816         (EOVERFLOW): New fallback definition.
109817         (vasprintf): Test here whether the string length is > INT_MAX.
109818         * lib/vsnprintf.c: Include errno.h, limits.h.
109819         (EOVERFLOW): New fallback definition.
109820         (vsnprintf): Fix bug when generated string was too long for the buffer.
109821         Test here whether the string length is > INT_MAX.
109823 2006-08-28  Bruno Haible  <bruno@clisp.org>
109825         * lib/inttypes_.h (SCNX*): Remove definitions.
109826         Reported by Eric Blake.
109828 2006-08-28  Bruno Haible  <bruno@clisp.org>
109830         * lib/c-strstr.h: New file, from GNU gettext.
109831         * lib/c-strstr.c: New file, from GNU gettext.
109833 2006-08-28  Bruno Haible  <bruno@clisp.org>
109835         * gnulib-tool: Reorder some statements.
109837 2006-08-28  Bruno Haible  <bruno@clisp.org>
109839         * gnulib-tool: New option --makefile-name.
109840         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109841         $makefile_name.
109842         (func_import): Write $makefile_name to the cache file, and read it from
109843         there unless explicitly specified. Use $makefile_name as file name
109844         instead of Makefile.am. Adjust the recommendations accordingly.
109846 2006-08-28  Bruno Haible  <bruno@clisp.org>
109848         * gnulib-tool (func_verify_module): Check against misapplying patch.
109850 2006-08-28  Bruno Haible  <bruno@clisp.org>
109852         * gnulib-tool (func_relativize, func_relconcat): New functions.
109853         Give an error if --local-dir is given with --update.
109854         Remove trailing slashes from $local_gnulib_dir.
109855         (func_import): Store the relativized $local_gnulib_dir in
109856         gnulib-cache.m4, and read it from there if not specified explicitly.
109858 2006-08-28  Bruno Haible  <bruno@clisp.org>
109860         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109861         is the current directory. Respect also $local_gnulib_dir.
109863 2006-08-28  Bruno Haible  <bruno@clisp.org>
109864             Simon Josefsson  <jas@extundo.com>
109866         BeOS portability.
109867         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109869 2006-08-27  Jim Meyering  <jim@meyering.net>
109871         * doc/visibility.texi: Remove duplicate word: "pointer".
109873 2006-08-26  Bruno Haible  <bruno@clisp.org>
109875         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109876         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109877         (Makefile.am): Create inttypes.h from inttypes_.h.
109878         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109880         * modules/imaxabs: New file.
109882         * modules/imaxdiv: New file.
109884 2006-08-26  Bruno Haible  <bruno@clisp.org>
109886         * m4/inttypes.m4: New file.
109887         * m4/_inttypes_h.m4: Remove file.
109888         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109889         PRI_MACROS_BROKEN.
109890         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109892         * m4/imaxabs.m4: New file.
109894         * m4/imaxdiv.m4: New file.
109896 2006-08-26  Bruno Haible  <bruno@clisp.org>
109898         * lib/inttypes_.h: New file.
109899         * lib/inttypes.h: Remove file.
109900         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109902         * lib/imaxabs.c: New file.
109904         * lib/imaxdiv.c: New file.
109906 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109908         New config-h module, so that "make" output needn't be cluttered
109909         by -DHAVE_CONFIG_H.
109910         * MODULES.html.sh (Support for building libraries and executables):
109911         Add config-h.
109912         * modules/config-h: New file.
109913         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109914         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109915         the config-h module is used.
109917         New configmake module, so that "make" output needn't be cluttered
109918         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109919         * MODULES.html.sh (Support for building libraries and executables):
109920         Add configmake.
109921         * modules/configmake: New file.
109923 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109925         * m4/config-h.m4: New file.
109927 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109929         * config/srclist.txt: Add elisp-comp.
109931 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109933         * MODULES.html.sh (Support for building libraries and executables):
109934         Add elisp-comp.
109935         * build-aux/elisp-comp: New file.
109936         * modules/elisp-comp: New file.
109938 2006-08-24  Bruno Haible  <bruno@clisp.org>
109940         * gnulib-tool (func_create_testdir): Use non-default values of
109941         sourcebase and m4base.
109943 2006-08-24  Bruno Haible  <bruno@clisp.org>
109945         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109946         HTML structure.
109948 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109950         * modules/openat (Depends-on): Add lchown.
109952 2006-08-23  Bruno Haible  <bruno@clisp.org>
109954         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109955         of gl_LOCK_EARLY instead of gl_LOCK.
109957 2006-08-23  Bruno Haible  <bruno@clisp.org>
109959         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109960         on OSF/1 to no.
109961         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109963 2006-08-23  Bruno Haible  <bruno@clisp.org>
109965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109966         as unusable.
109968         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
109969         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
109970         (gl_LOCK): New macro.
109972 2006-08-22  Simon Josefsson  <jas@extundo.com>
109974         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
109975         to md5 module.
109977 2006-08-22  Simon Josefsson  <jas@extundo.com>
109979         * MODULES.html.sh: Add "Support for maintaining and release
109980         projects".
109982         * build-aux/gnupload: New file, from coreutils.
109984 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109986         Avoid the need for AC_LIBSOURCES in m4 macros.
109987         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
109988         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
109989         * modules/check-version (EXTRA_DIST): Add check-version.h.
109990         * modules/crc (EXTRA_DIST): Add crc.h.
109991         * modules/des (EXTRA_DIST): Add des.h.
109992         * modules/gc (EXTRA_DIST): Add gc.h.
109993         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
109994         * modules/getline (EXTRA_DIST): Add getline.h.
109995         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
109996         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
109997         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
109998         * modules/md2 (EXTRA_DIST): Add md2.h.
109999         * modules/md4 (EXTRA_DIST): Add md4.h.
110000         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110001         * modules/read-file (EXTRA_DIST): Add read-file.h.
110002         * modules/readline (EXTRA_DIST): Add readline.h.
110003         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110004         rijndael-api-fst.h.
110006 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110008         * m4/rijndael.m4 (gl_ARCFOUR):
110009         * m4/arctwo.m4 (gl_ARCTWO):
110010         * m4/check-version.m4 (gl_CHECK_VERSION):
110011         * m4/crc.m4 (gl_CRC):
110012         * m4/des.m4 (gl_DES):
110013         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110014         * m4/gc.m4 (gl_GC):
110015         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110016         * m4/getline.m4 (gl_FUNC_GETLINE):
110017         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110018         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110019         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110020         * m4/md2.m4 (gl_MD2):
110021         * m4/md4.m4 (gl_MD4):
110022         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110023         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110024         * m4/readline.m4 (gl_FUNC_READLINE):
110025         * m4/rijndael.m4 (gl_RIJNDAEL):
110026         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110027         to get the necessary .h files and whatnot.
110029 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110031         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110032         gnulib rather than the other way around.
110033         * config/srclistvars.sh (COREUTILS): Remove.
110035 2006-08-22  Jim Meyering  <jim@meyering.net>
110037         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110039         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110041 2006-08-22  Eric Blake  <ebb9@byu.net>
110043         * modules/regexprops-generic: New file.
110044         * MODULES.html.sh (Support for building documentation): List it.
110046 2006-08-22  Eric Blake  <ebb9@byu.net>
110048         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110049         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110050         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110051         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110053 2006-08-22  Bruno Haible  <bruno@clisp.org>
110055         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110056         and lib_LTLIBRARIES like the other lib_* variables.
110058 2006-08-22  Bruno Haible  <bruno@clisp.org>
110060         * build-aux/x-to-1.in: New file, from GNU gettext.
110062 2006-08-22  Bruno Haible  <bruno@clisp.org>
110064         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110065         <utmpx.h> exists.
110067 2006-08-22  Bruno Haible  <bruno@clisp.org>
110069         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110070         <utmpx.h> exists.
110072 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110074         BeOS portability.
110075         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
110076         exist.
110077         Problem reported by Bruno Haible.
110079 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110081         Avoid the need for AC_LIBSOURCES in m4 macros.
110082         * modules/acl (EXTRA_DIST): Add acl.h.
110083         * modules/argmatch (Files): Add m4/argmatch.m4.
110084         (configure.ac): Add gl_ARGMATCH.
110085         (EXTRA_DIST): Renamed from lib_SOURCES, for
110086         consistency with the other modules.  Remove argmatch.c.
110087         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
110088         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
110089         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
110090         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
110091         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
110092         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
110093         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
110094         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
110095         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
110096         * modules/closeout (EXTRA_DIST): Add closeout.h.
110097         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
110098         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
110099         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
110100         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
110101         dirname.h; remove basename.c and stripslash.c.
110102         * modules/exclude (EXTRA_DIST): Add exclude.h.
110103         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
110104         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
110105         * modules/file-type (EXTRA_DIST): Add file-type.h.
110106         * modules/filemode (EXTRA_DIST): Add filemode.h.
110107         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
110108         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110109         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110110         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110111         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110112         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110113         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110114         * modules/getdate (EXTRA_DIST): Add getdate.c.
110115         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110116         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110117         * modules/getpass (EXTRA_DIST): Add getpass.h.
110118         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110119         * modules/group-member (EXTRA_DIST): Add group-member.h.
110120         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110121         * modules/hash (EXTRA_DIST): Add hash.h.
110122         * modules/human (EXTRA_DIST): Add human.h.
110123         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110124         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110125         * modules/lchown (EXTRA_DIST): Add lchown.h.
110126         * modules/long-options (EXTRA_DIST): Add long-options.h.
110127         * modules/lstat (EXTRA_DIST): Add lstat.h.
110128         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110129         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110130         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110131         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110132         * modules/memxor (EXTRA_DIST): Add memxor.h.
110133         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110134         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110135         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110136         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110137         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110138         * modules/physmem (EXTRA_DIST): Add physmem.h.
110139         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110140         * modules/posixver (EXTRA_DIST): Add posixver.h.
110141         * modules/quote (EXTRA_DIST): Add quote.h.
110142         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110143         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110144         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110145         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110146         regex_internal.h regexec.c.
110147         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110148         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110149         * modules/same (EXTRA_DIST): Add same.h.
110150         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110151         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110152         * modules/savedir (EXTRA_DIST): Add savedir.h.
110153         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110154         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110155         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110156         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110157         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110158         * modules/strdup (EXTRA_DIST): Add strdup.h.
110159         * modules/strftime (EXTRA_DIST): Add strftime.h.
110160         * modules/strndup (EXTRA_DIST): Add strndup.h.
110161         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110162         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110163         * modules/time_r (EXTRA_DIST): Add time_r.h.
110164         * modules/timespec (EXTRA_DIST): Add timespec.h.
110165         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110166         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110167         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110168         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110169         * modules/userspec (EXTRA_DIST): Add userspec.h.
110170         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110171         * modules/utimens (EXTRA_DIST): Add utimens.h.
110172         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110173         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110174         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110175         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110176         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110177         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110178         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110179         * modules/yesno (EXTRA_DIST): Add yesno.h.
110181 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110183         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110185         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110186         * m4/dev-ino.m4, same-inode.m4: Remove.
110188         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110189         * m4/acl.m4 (AC_FUNC_ACL):
110190         * m4/backupfile.m4 (gl_BACKUPFILE):
110191         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110192         * m4/canon-host.m4 (gl_CANON_HOST):
110193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110194         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110195         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110196         * m4/cloexec.m4 (gl_CLOEXEC):
110197         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110198         * m4/closeout.m4 (gl_CLOSEOUT):
110199         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110200         * m4/dirname.m4 (gl_DIRNAME):
110201         * m4/exclude.m4 (gl_EXCLUDE):
110202         * m4/exitfail.m4 (gl_EXITFAIL):
110203         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110204         * m4/file-type.m4 (gl_FILE_TYPE):
110205         * m4/filemode.m4 (gl_FILEMODE):
110206         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110207         * m4/fpending.m4 (gl_FUNC_FPENDING):
110208         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110209         * m4/fts.m4 (gl_FUNC_FTS):
110210         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110211         * m4/getdate.m4 (gl_GETDATE):
110212         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110213         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110214         * m4/getpass.m4 (gl_FUNC_GETPASS):
110215         * m4/gettime.m4 (gl_GETTIME):
110216         * m4/getugroups.m4 (gl_GETUGROUPS):
110217         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110218         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110219         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110220         * m4/hash.m4 (gl_HASH):
110221         * m4/idcache.m4 (gl_IDCACHE):
110222         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110223         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110224         * m4/long-options.m4 (gl_LONG_OPTIONS):
110225         * m4/lstat.m4 (gl_FUNC_LSTAT):
110226         * m4/md5.m4 (gl_MD5):
110227         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110228         * m4/memcoll.m4 (gl_MEMCOLL):
110229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110230         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110231         * m4/memxor.m4 (gl_MEMXOR):
110232         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110233         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110234         * m4/modechange.m4 (gl_MODECHANGE):
110235         * m4/mountlist.m4 (gl_MOUNTLIST):
110236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110237         * m4/openat.m4 (gl_FUNC_OPENAT):
110238         * m4/pathmax.m4 (gl_PATHMAX):
110239         * m4/physmem.m4 (gl_PHYSMEM):
110240         * m4/posixtm.m4 (gl_POSIXTM):
110241         * m4/posixver.m4 (gl_POSIXVER):
110242         * m4/quote.m4 (gl_QUOTE):
110243         * m4/quotearg.m4 (gl_QUOTEARG):
110244         * m4/readtokens.m4 (gl_READTOKENS):
110245         * m4/readutmp.m4 (gl_READUTMP):
110246         * m4/regex.m4 (gl_REGEX):
110247         * m4/safe-read.m4 (gl_SAFE_READ):
110248         * m4/safe-write.m4 (gl_SAFE_WRITE):
110249         * m4/same.m4 (gl_SAME):
110250         * m4/save-cwd.m4 (gl_SAVE_CWD):
110251         * m4/savedir.m4 (gl_SAVEDIR):
110252         * m4/settime.m4 (gl_SETTIME):
110253         * m4/sha1.m4 (gl_SHA1):
110254         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110255         * m4/stat-macros.m4 (gl_STAT_MACROS):
110256         * m4/stat-time.m4 (gl_STAT_TIME):
110257         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110258         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110259         * m4/strdup.m4 (gl_FUNC_STRDUP):
110260         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110261         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110262         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110263         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110264         * m4/time_r.m4 (gl_TIME_R):
110265         * m4/timespec.m4 (gl_TIMESPEC):
110266         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110267         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110268         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110269         * m4/userspec.m4 (gl_USERSPEC):
110270         * m4/utimecmp.m4 (gl_UTIMECMP):
110271         * m4/utimens.m4 (gl_UTIMENS):
110272         * m4/xalloc.m4 (gl_XALLOC):
110273         * m4/xgetcwd.m4 (gl_XGETCWD):
110274         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110275         * m4/xreadlink.m4 (gl_XREADLINK):
110276         * m4/xstrtod.m4 (gl_XSTRTOD):
110277         * m4/yesno.m4 (gl_YESNO):
110278         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110279         to get the necessary .h files and whatnot.
110281 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110282             Bruno Haible  <bruno@clisp.org>
110284         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110285         /bin/sh understanding of '!' conditional negation.
110287 2006-08-21  Jim Meyering  <jim@meyering.net>
110289         * modules/openat (Depends-on): Really alphabetize.
110291         * modules/acl (Depends-on): Add error and quote.
110293         * check-module (find_included_lib_files): Add at-func.c to the
110294         ok-to-include-more-than-once white list.
110296         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110298 2006-08-21  Bruno Haible  <bruno@clisp.org>
110300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110301         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110302         Reported by Martin Lambers <marlam@marlam.de>.
110304 2006-08-21  Bruno Haible  <bruno@clisp.org>
110306         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110307         specify an installation location, don't emit a noinst_LIBRARIES or
110308         noinst_LTLIBRARIES assignment.
110310 2006-08-21  Bruno Haible  <bruno@clisp.org>
110312         BeOS portability.
110313         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110314         BeOS has mbrtowc() but no <wctype.h>.
110316 2006-08-21  Bruno Haible  <bruno@clisp.org>
110318         BeOS portability.
110319         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110320         exist.
110322 2006-08-21  Bruno Haible  <bruno@clisp.org>
110324         BeOS portability.
110325         * lib/mbchar.h: Include <wctype.h> only if it exists.
110327 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110329         Remove files that are no longer needed by their respective modules.
110330         * m4/obstack.m4: Remove.
110331         * m4/strerror_r.m4: Remove.
110332         * m4/uint32_t.m4: Remove.
110333         * m4/uintptr_t.m4: Remove.
110334         * m4/ullong_max.m4: Remove.
110335         * m4/xstrtoimax.m4: Remove.
110336         * m4/xstrtoumax.m4: Remove.
110338         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110339         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110340         dependencies now capture this.
110342         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110343         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110344         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110345         * m4/human.m4 (gl_HUMAN): Likewise.
110346         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110347         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110349         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110351         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110352         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110353         stdint.
110354         * m4/human.m4 (gl_HUMAN): Likewise.
110355         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110356         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110357         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110358         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110359         * m4/xstrtol (gl_XSTRTOL): Likewise.
110361         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110362         AC_TYPE_LONG_LONG_INT.
110363         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110364         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110365         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110366         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110368         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110369         on stdbool.
110371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110372         (gl_PREREQ_XSTRTOUL): Remove.
110374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110376         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110377         mode.
110379 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110381         Add and change modules to make it easier for coreutils to use
110382         gnulib-tool.
110383         * modules/backupfile (Files): Remove m4/d-ino.m4.
110384         (Depends-on): Add d-ino.
110385         * modules/cycle-check (Depends-on): Add stdint.
110386         (lib_SOURCES): Add cycle-check.h.
110387         * modules/d-ino: New module.
110388         * modules/d-type: New module.
110389         * modules/error (Files): Remove m4/strerror_r.m4.
110390         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110391         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110392         m4/inttypes_h.m4, m4/uintmax_t.m4.
110393         (Depends-on): Add stdint.
110394         (lib_SOURCES): Add fsusage.h.
110395         * modules/getcwd (Files): Remove d-ino.m4.
110396         (Depends-on): Add d-ino.
110397         * modules/getndelim2 (Depends-on): Add stdint.
110398         * modules/glob (Files): Remove m4/d-type.m4.
110399         (Depends-on): Add d-type.
110400         * modules/host-os: New module.
110401         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110402         m4/inttypes_h.m4, m4/uintmax_t.m4.
110403         * Depends-on: Add stdint.
110404         (lib_SOURCES): Add human.h.
110405         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110406         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110407         m4/uintmax_t.m4, m4/ulonglong.m4.
110408         (Depends-on): Add stdint.
110409         (EXTRA_DIST): Add inttostr.h.
110410         * modules/lchmod: New module.
110411         * modules/link-follow: New module.
110412         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110413         (Depends-on): Add lchmod.
110414         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110415         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110416         (Depends-on): Add stdint.
110417         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110418         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110419         (Depends-on): Add stdint.
110420         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110421         * modules/perl: New module.
110422         * modules/regex (Depends-on): Add stdint.
110423         * modules/rmdir-errno: New module.
110424         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110425         m4/intmax_t.m4.
110426         (Depends-on): Add stdint.
110427         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110428         m4/uintmax_t.m4.
110429         (Depends-on): Add stdint.
110430         * modules/unlink-busy: New module.
110431         * modules/utimecmp (Depends-on): Add stdint.
110432         * modules/uptime: New module.
110433         * modules/winsz-ioctl: New module.
110434         * modules/winsz-termios: New module.
110435         * modules/xnanosleep (Depends-on): Add nanosleep.
110436         * modules/ullong_max: Remove.
110437         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110438         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110439         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110440         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110441         (Depends-on): Add inttypes.
110442         (lib_SOURCES): Add xstrtol.h.
110443         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110444         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110445         * MODULES.html.sh: Move 'assert' into the assert section.
110446         Move 'dummy' into the linking section.
110447         Remove ullong_max.
110448         Add section for compatibility checks for POSIX:2001 functions,
110449         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110450         winsz-ioctl, and winsz-termios into it.
110451         Add lchmod.
110452         Add top-level Misc section and put host-os, perl, and uptime
110453         into it.
110455 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110457         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110458         now assume the stdint module.  Do not include inttypes.h.
110459         * lib/fsusage.h: Likewise.
110460         * lib/getndelim2.c: Likewise.
110461         * lib/human.h: Likewise.
110462         * lib/inttostr.h: Likewise.
110463         * lib/obstack.c: Likewise.
110464         * lib/regex_internal.h: Likewise.
110465         * lib/tempname.c: Likewise.
110466         * lib/utimecmp.c: Likewise.
110467         * lib/xstrtol.h: Likewise.
110469         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110471         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110472         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110473         * lib/xtime.h: Likewise.
110475 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110477         * modules/openat (Files): Add lib/fchmodat.c.
110478         Fixes problem reported by Jay Youngman.
110480 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110482         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110483         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110485 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110486             Bruno Haible  <bruno@clisp.org>
110488         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110489         and is a script that invokes bison. Tighten the code. Add comments.
110491 2006-08-18  Jim Meyering  <jim@meyering.net>
110493         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110494         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110495         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110496         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110498 2006-08-18  Bruno Haible  <bruno@clisp.org>
110500         * modules/bison-i18n: New file.
110501         * MODULES.html.sh (Internationalization functions): Add it.
110503 2006-08-18  Bruno Haible  <bruno@clisp.org>
110505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110506         sys/statvfs.h. When getmntinfo was found, check its declaration and
110507         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110509 2006-08-18  Bruno Haible  <bruno@clisp.org>
110511         * m4/bison-i18n.m4: New file, from bison.
110513 2006-08-18  Bruno Haible  <bruno@clisp.org>
110515         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110516         (ME_DUMMY): Treat "kernfs" as a dummy.
110517         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110519 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110521         Update from coreutils.
110523         2006-08-15  Jim Meyering  <jim@meyering.net>
110525         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110527         2006-01-17  Jim Meyering  <jim@meyering.net>
110529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110531         2006-01-11  Jim Meyering  <jim@meyering.net>
110533         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110534         Check for the lchmod function.
110536 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110538         Update from coreutils.
110540         * lib/__fpending.h: Add copyright notice.
110541         * lib/fprintftime.h: Likewise.
110542         * lib/savedir.c: Use (C) in copyright notice.
110543         * lib/savedir.h: Likewise.
110545         2006-08-15  Jim Meyering  <jim@meyering.net>
110547         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110548         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110549         in support of the EXPECTED_ERRNO macro.
110550         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110551         definitions.  Instead, define the appropriate symbols and include
110552         "at-func.c".
110553         * lib/mkdirat.c (mkdirat): Likewise.
110554         * lib/fchmodat.c (fchmodat): Likewise.
110555         (ENOSYS): Remove definition.
110556         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110557         it.  Don't include "unistd--.h" -- it wasn't ever used.
110559         2006-01-17  Jim Meyering  <jim@meyering.net>
110561         Rewrite fts.c not to change the current working directory,
110562         by using openat, fstatat, fdopendir, etc..
110564         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110565         (HAVE_OPENAT_SUPPORT): Define.
110566         [_LIBC] (fchdir): Don't undef or define; no longer used.
110567         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110568         Now, this `function' always succeeds, and consumes its file descriptor
110569         parameter -- so callers must not close such FDs.  Update callers.
110570         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110571         (diropen): Add parameter, SP.  Adjust all callers.
110572         Implement using diropen_fd, rather than open.
110573         (fts_open): Initialize new member, fts_cwd_fd.
110574         Remove fts_rft-setting code.
110575         (fts_close): Close fts_cwd_fd, if necessary.
110576         (__opendir2): Define in terms of opendir or opendirat,
110577         depending on whether the FST_NOCHDIR flag is set.
110578         (fts_build): Since fts_safe_changedir consumes its FD, and since
110579         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110580         and close the dup'd file descriptor upon failure.
110581         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110582         (fts_safe_changedir): Tweak semantics to reflect that this function
110583         now calls cwd_advance_fd and hence consumes its FD argument.
110584         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110585         [struct FTS] (fts_rft): Remove now-unused member.
110586         [struct FTS] (fts_cycle.state): Improve comment.
110588         * lib/openat.c (openat_needs_fchdir): New function.
110589         * lib/openat.h (openat_needs_fchdir): Declare it.
110591 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110593         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110594         Problem and fix reported by Pádraig Brady in
110595         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110597 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110599         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110601 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110603         * lib/memcoll.c (memcoll): Optimize for the common case where the
110604         arguments are bytewise equal.
110606 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110608         * doc/regexprops-generic.texi: Add a copyright notice.
110610 2006-08-15  Bruno Haible  <bruno@clisp.org>
110612         * modules/tmpdir (License): Change to LGPL.
110614 2006-08-15  Bruno Haible  <bruno@clisp.org>
110616         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110617         module.
110619 2006-08-14  Simon Josefsson  <jas@extundo.com>
110621         * config/srclist.txt: Add gnupload.
110623 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110625         Change copyright notice from LGPL 2 to GPL 2, since that's the
110626         standard form used in the gnulib repository.
110627         * tests/test-lock.c: Likewise.
110628         * tests/test-stdint.c: Likewise.
110629         * tests/test-tls.c: Likewise.
110631         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110632         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110633         Add copyright notice.
110635         * check-module: Add copyright notice.  Output a copyright
110636         notice if "--version" is specified.
110637         * modules/COPYING: New file.
110638         * tests/test-getaddrinfo.c: Add copyright notice.
110639         * tests/test-verify.c: Likewise.
110641 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110643         Change copyright notice from LGPL 2 to GPL 2, since that's the
110644         standard form used in the gnulib repository.
110645         * lib/lock.c: LGPL -> GPL.
110646         * lib/lock.h: Likewise.
110647         * lib/strnlen1.c: Likewise.
110648         * lib/strnlen1.h: Likewise.
110649         * lib/tls.c: Likewise.
110650         * lib/tls.h: Likewise.
110651         * lib/tmpdir.c: Likewise.
110653         * lib/TODO: Remove; this belongs only in coreutils.
110655 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110657         Add copyright notices to long-enough files that lack them, since
110658         otherwise the files aren't clearly free.  Use the same notice that
110659         getdate.texi already uses.
110660         * doc/alloca-opt.texi: Add copyright notice.
110661         * doc/alloca.texi: Likewise.
110662         * doc/ctime.texi: Likewise.
110663         * doc/functions.texi: Likewise.
110664         * doc/gcd.texi: Likewise.
110665         * doc/gnulib-tool.texi: Likewise.
110666         * doc/inet_ntoa.texi: Likewise.
110667         * doc/visibility.texi: Likewise.
110669         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110670         * doc/quote.texi: Add copyright notice.
110672         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110673         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110674         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110675         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110676         is now obsolete, and give a pointer to the Sun list.
110677         Add copyright notice.
110679 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110681         * config/srclistvars.sh: Add copyright notice.
110683 2006-08-14  Eric Blake  <ebb9@byu.net>
110685         Import the following change from libc:
110687         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110689         Upstream bug 2997.
110690         * lib/misc/error.c: Add space between program name and message if file
110691         name is missing.
110693 2006-08-12  Karl Berry  <karl@gnu.org>
110695         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110696         remove, these originate in gnulib now.
110698 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110700         * doc/Makefile (standards.info standards.html standards.dvi):
110701         Also depend on make-stds.texi.
110703 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110705         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110706         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110708         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110709         in wchar_t.  Problem reported by Eric Blake.
110711         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110712         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110713         Also, help the compiler to keep LEN in a register.
110715 2006-08-11  Eric Blake  <ebb9@byu.net>
110717         * users.txt: Sort.  Add tar.
110719 2006-08-11  Bruno Haible  <bruno@clisp.org>
110721         * users.txt: New file.
110723 2006-08-11  Bruno Haible  <bruno@clisp.org>
110725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110726         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110728 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110730         * modules/snprintf (Depends-on): Remove minmax.
110731         (Maintainer): Add self and Bruno.
110733 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110735         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110736         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110737         (EOVERFLOW): Define if the system does not.
110738         Do not include "minmax.h"; it wasn't used.
110739         (snprintf): Don't assume size_t promotes to an unsigned type.
110740         Fix bug when generated string was too long for the buffer: the
110741         buffer's contents are supposed to be the initial prefix of the
110742         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110743         exceeds INT_MAX; do the check ourselves.
110745         Import the following changes from libc:
110747         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110749         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110750         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110751         set wc to the byte which couldn't be converted.
110752         (re_string_reconstruct): Don't clear valid_raw_len before calling
110753         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110754         tip_context using re_string_context_at.
110756         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110758         * lib/posix/regex.h: g++ still cannot handled [restrict].
110760         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110762         * lib/posix/regex.h: Remove special handling for VMS.
110764 2006-08-10  Jim Meyering  <jim@meyering.net>
110766         * modules/same-inode: New module.
110767         * modules/dev-ino: New module.
110768         * modules/cycle-check: Depend on these modules, rather than simply
110769         including their .h files.
110770         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110771         required via m4/cycle-check.m4.
110772         * modules/same: Depend on new same-inode module, rather than
110773         including same-inode.h.
110774         * modules/chdir-safer: New file.
110776         * modules/chown (Depends-on): Add stat-macros.
110778 2006-08-10  Jim Meyering  <jim@meyering.net>
110780         * m4/cycle-check.m4: New file.
110781         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110782         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110784 2006-08-10  Eric Blake  <ebb9@byu.net>
110786         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110787         in from original proposal.
110789 2006-08-10  Eric Blake  <ebb9@byu.net>
110790         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110792         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110793         namespace.
110795 2006-08-10  Bruno Haible  <bruno@clisp.org>
110797         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110798         as well.
110800 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110802         Sync from coreutils.
110804         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110806         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110807         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110809 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110811         * modules/restrict: Remove; no longer needed now that we assume
110812         Autoconf 2.59 or later.
110813         * MODULES.html.sh: Remove 'restrict'.
110814         * modules/argp (Depends-on): Remove 'restrict'.
110815         * modules/base64 (Depends-on): Likewise.
110816         * modules/gc (Depends-on): Likewise.
110817         * modules/getaddrinfo (Depends-on): Likewise.
110818         * modules/glob (Depends-on): Likewise.
110819         * modules/inet_ntop (Depends-on): Likewise.
110820         * modules/inet_pton (Depends-on): Likewise.
110821         * modules/memxor (Depends-on): Likewise.
110822         * modules/regex (Depends-on): Likewise.
110823         * modules/strtok_r (Depends-on): Likewise.
110824         * modules/time_r (Depends-on): Likewise.
110826 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110828         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110829         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110830         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110831         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110832         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110833         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110834         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110835         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110837         Merge from coreutils.
110838         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110839         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110840         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110841         * m4/time_r.m4 (gl_TIME_R): Likewise.
110843 2006-08-09  Karl Berry  <karl@gnu.org>
110845         * config/srclist.txt: no more gettext-tools, per Bruno.
110847 2006-08-08  Eric Blake  <ebb9@byu.net>
110849         * modules/verror: New module.
110850         * MODULES.html.sh: Document it.
110852 2006-08-08  Eric Blake  <ebb9@byu.net>
110854         * lib/verror.h, lib/verror.c: New files.
110856 2006-08-08  Eric Blake  <ebb9@byu.net>
110858         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110859         verror_at_line output complies with GNU Coding Standards even when
110860         file is NULL.
110862 2006-08-07  Bruno Haible  <bruno@clisp.org>
110864         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110865         versions of AIX.
110866         Reported by Ralf Wildenhues.
110868 2006-08-07  Bruno Haible  <bruno@clisp.org>
110870         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110871         in an AC_DEFUN. Needed so that the autoconf snippets can use
110872         AC_REQUIRE.
110874 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110877         Initialize pkgdata_DATA.
110878         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110879         overriding it.
110881 2006-08-06  Eric Blake  <ebb9@byu.net>
110883         * lib/error.h: Fold in some upstream changes from glibc.
110884         * lib/error.c: Likewise.
110886 2006-08-04  Bruno Haible  <bruno@clisp.org>
110888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110889         Make the mostlyclean-local rule depend on mostlyclean-generic.
110890         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110892 2006-07-31  Bruno Haible  <bruno@clisp.org>
110894         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110895         <stdlib.h>, <string.h>.
110897 2006-07-30  Bruno Haible  <bruno@clisp.org>
110899         * modules/readlink (License): Change to LGPL.
110901 2006-07-30  Bruno Haible  <bruno@clisp.org>
110903         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110904         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110905         set PKGDATADIR to point to it.
110907 2006-07-30  Bruno Haible  <bruno@clisp.org>
110909         * modules/csharpexec (configure.ac): Comment out macro invocation.
110910         * modules/javaexec (configure.ac): Likewise.
110911         * modules/javacomp-script (configure.ac): Likewise.
110913         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110915 2006-07-30  Bruno Haible  <bruno@clisp.org>
110917         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110918         linked-list.
110920 2006-07-30  Bruno Haible  <bruno@clisp.org>
110922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110924 2006-07-30  Bruno Haible  <bruno@clisp.org>
110926         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110927         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110928         get removed.
110930 2006-07-29  Bruno Haible  <bruno@clisp.org>
110932         Make it possible for gnulib-tool to work with locally modified or
110933         augmented gnulib repositories.
110934         * gnulib-tool (func_usage): Document --local-dir option.
110935         (local_gnulib_dir): New variable.
110936         Handle --local-dir option.
110937         (func_lookup_file): New function.
110938         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110939         (func_get_description, func_get_filelist, func_get_description,
110940         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110941         func_get_automake_snippet, func_get_include_directive,
110942         func_get_license, func_get_maintainer): Use func_lookup_file.
110943         (func_import, func_create_testdir): Use func_lookup_file.
110945 2006-07-29  Bruno Haible  <bruno@clisp.org>
110947         * modules/setenv (Depends-on): Add unistd.
110949 2006-07-29  Bruno Haible  <bruno@clisp.org>
110951         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110953 2006-07-29  Bruno Haible  <bruno@clisp.org>
110955         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110957 2006-07-29  Bruno Haible  <bruno@clisp.org>
110959         * gnulib-tool (import, update): If there is no Makefile.am, look at
110960         aclocal.m4, instead of bailing out.
110962 2006-07-29  Bruno Haible  <bruno@clisp.org>
110964         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110965         Categorize the options by when they are useful.
110967 2006-07-29  Bruno Haible  <bruno@clisp.org>
110969         * gnulib-tool (func_usage): Document option --no-libtool.
110970         Handle option --no-libtool.
110971         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
110972         for changed semantics of $libtool variable.
110973         (func_import): Likewise. If libtool is not used, show this through
110974         an option --no-libtool.
110975         (func_create_testdir): Update.
110977 2006-07-29  Bruno Haible  <bruno@clisp.org>
110979         * gnulib-tool (func_import): Extend error message about missing
110980         --doc-base.
110982 2006-07-29  Bruno Haible  <bruno@clisp.org>
110984         * gnulib-tool (func_import): Don't create the $docbase directory if
110985         there is no file to store there.
110987 2006-07-29  Bruno Haible  <bruno@clisp.org>
110989         * gnulib-tool (autoconf_minversion): If a --dir option is given and
110990         relevant, look for configure.ac there, not in the current directory.
110991         Also use a simple search for AC_PREREQ, not "autoconf --trace".
110993 2006-07-29  Bruno Haible  <bruno@clisp.org>
110995         * gnulib-tool (SORT): New variable.
110996         (func_usage): Undocument --assume-autoconf option.
110997         Remove --assume-autoconf option handling.
110998         (autoconf_minversion): Determine from the contents of configure.ac.
110999         (func_import): Remove autoconf_minversion handling.
111000         Suggested by Eric Blake.
111002 2006-07-29  Bruno Haible  <bruno@clisp.org>
111004         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111006 2006-07-29  Bruno Haible  <bruno@clisp.org>
111008         * config/srclist.txt (*setenv.[ch]): Remove rules.
111010 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111012         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111014 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111016         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111017         arpa/inet.h.
111019 2006-07-28  Simon Josefsson  <jas@extundo.com>
111021         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111022         * modules/inet_pton (Depends-on): Likewise.
111024 2006-07-28  Simon Josefsson  <jas@extundo.com>
111026         * m4/netinet_in_h.m4: New file.
111028 2006-07-28  Simon Josefsson  <jas@extundo.com>
111030         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111031         #include's.
111033 2006-07-28  Simon Josefsson  <jas@extundo.com>
111035         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111036         #include's.
111038 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111040         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111041         setgid on directories only if they set these bits.
111042         * lib/modechange.h: Remove obsolete comment about masks.
111044 2006-07-28  Eric Blake  <ebb9@byu.net>
111046         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111047         macro expansion.
111049 2006-07-28  Bruno Haible  <bruno@clisp.org>
111051         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111053 2006-07-28  Bruno Haible  <bruno@clisp.org>
111055         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111057 2006-07-28  Bruno Haible  <bruno@clisp.org>
111059         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111060         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111061         Define fallbacks.
111062         Avoids link error on FreeBSD 4.x.
111063         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111065         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111066         encoding.
111067         * lib/mbswidth.c (iswcntrl): Likewise.
111069 2006-07-27  Bruno Haible  <bruno@clisp.org>
111071         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111072         test.
111074 2006-07-27  Bruno Haible  <bruno@clisp.org>
111076         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
111077         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
111078         defined.
111080 2006-07-26  Eric Blake  <ebb9@byu.net>
111082         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
111084 2006-07-26  Eric Blake  <ebb9@byu.net>
111086         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
111087         like mingw that lack mkstemp.
111088         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
111089         avoid compilation warning on mingw.
111091 2006-07-26  Bruno Haible  <bruno@clisp.org>
111093         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
111094         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
111095         INT_FAST*_MIN, INTPTR_MIN.
111097 2006-07-25  Bruno Haible  <bruno@clisp.org>
111099         * modules/version-etc (Depends-on): Add stdarg.
111101 2006-07-25  Bruno Haible  <bruno@clisp.org>
111103         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
111104         complex commands.
111106 2006-07-25  Bruno Haible  <bruno@clisp.org>
111108         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111109         defined in <stdarg.h> or config.h.
111111 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111114         (gl_STDIO_SAFER): Remove.
111116 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111118         * MODULES.html.sh (File stream based Input/Output):
111119         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111120         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111121         * modules/fopen-safer, modules/tmpfile-safer: New files.
111122         * modules/stdio-safer: Remove.
111124 2006-07-24  Bruno Haible  <bruno@clisp.org>
111126         * modules/tmpdir: New file.
111127         * MODULES.html.sh (File system functions): Add it.
111129 2006-07-24  Bruno Haible  <bruno@clisp.org>
111131         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111132         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111134 2006-07-24  Bruno Haible  <bruno@clisp.org>
111136         * modules/clean-temp: New file.
111138 2006-07-24  Bruno Haible  <bruno@clisp.org>
111140         * m4/tmpdir.m4: New file, from GNU gettext.
111142 2006-07-24  Bruno Haible  <bruno@clisp.org>
111144         * lib/tmpdir.h: New file, from GNU gettext.
111145         * lib/tmpdir.c: New file, from GNU gettext.
111147 2006-07-24  Bruno Haible  <bruno@clisp.org>
111149         * lib/clean-temp.h: New file, from GNU gettext.
111150         * lib/clean-temp.c: New file, from GNU gettext.
111152 2006-07-23  Eric Blake  <ebb9@byu.net>
111154         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111155         (Depends-on): Add binary-io.
111157 2006-07-23  Eric Blake  <ebb9@byu.net>
111159         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111161 2006-07-23  Eric Blake  <ebb9@byu.net>
111163         * lib/tmpfile-safer.c: New file.
111164         * lib/stdio-safer.h (fopen_safer): Add prototype.
111165         * lib/stdio--.h (tmpfile): Make safer.
111167 2006-07-23  Bruno Haible  <bruno@clisp.org>
111169         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111170         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111171         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111172         gl_linked_remove_at): Use it.
111174 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111175         and Simon Josefsson <jas@extundo.com>
111177         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111179         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111181 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111183         * modules/close-stream: New file.
111184         * modules/closeout (Description): Make it clear that it exits
111185         with a diagnostic on error.
111186         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111187         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111189 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111191         * m4/close-stream.m4: New file.
111193 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111195         * lib/close-stream.c, lib/close-stream.h: New files.
111197 2006-07-22  Bruno Haible  <bruno@clisp.org>
111199         Merge from GNU gettext 0.15.
111201         2006-05-01  Bruno Haible  <bruno@clisp.org>
111203                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111205         2006-07-22  Bruno Haible  <bruno@clisp.org>
111207                 * modules/javaversion: New file.
111208                 * MODULES.html.sh (Java): Add javaversion.
111210         2006-03-12  Bruno Haible  <bruno@clisp.org>
111212                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111214         2005-12-04  Bruno Haible  <bruno@clisp.org>
111216                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111217                 (untested).
111219         2006-06-21  Bruno Haible  <bruno@clisp.org>
111221                 Avoid warnings from recent versions of mcs.
111222                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111223                 -o, -L, -r any more. Use options documented since mcs-1.0
111224                 instead. Similarly for -g.
111226         2005-12-04  Bruno Haible  <bruno@clisp.org>
111228                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111229                 .resources, not .resource.
111231         2005-07-09  Bruno Haible  <bruno@clisp.org>
111233                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111234                 add a .dll suffix.
111235                 Reported by Mark Junker <mjscod@gmx.de>.
111237         2006-07-22  Bruno Haible  <bruno@clisp.org>
111239                 * modules/gettext: Upgrade to gettext-0.15.
111240                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111241                 m4/visibility.m4.
111242                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111244 2006-07-22  Bruno Haible  <bruno@clisp.org>
111246         Merge from GNU gettext 0.15.
111248         2006-03-25  Bruno Haible  <bruno@clisp.org>
111250                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111252         2006-07-21  Bruno Haible  <bruno@clisp.org>
111254                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111255                 "1.1".
111257         2006-05-09  Bruno Haible  <bruno@clisp.org>
111259                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111260                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111261                 for the conftestver execution.
111263         2006-05-01  Bruno Haible  <bruno@clisp.org>
111265                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111266                 optional target-version argument. Verify that the compiler
111267                 groks source of the specified source-version, or add -source
111268                 option as necessary. Verify that the compiler produces
111269                 bytecode in the specified target-version, or add -target and
111270                 -source options as necessary. Make the result of the test
111271                 available as variable CONF_JAVAC. Also log error output in
111272                 config.log.
111274         2006-03-11  Bruno Haible  <bruno@clisp.org>
111276                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111278         2006-05-09  Bruno Haible  <bruno@clisp.org>
111280                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111281                 CLASSPATH_SEPARATOR to a semicolon.
111283         2006-03-12  Bruno Haible  <bruno@clisp.org>
111285                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111286                 available as variable CONF_JAVA, for subsequent autoconf
111287                 tests. Also log error output in config.log.
111289         2006-07-19  Bruno Haible  <bruno@clisp.org>
111291                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111292                 that getline works on glibc2 systems. Needed to avoid trouble
111293                 in relocatable.c.
111294                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111296         2005-12-04  Bruno Haible  <bruno@clisp.org>
111298                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111299                 launcher (untested).
111301         2005-12-04  Bruno Haible  <bruno@clisp.org>
111303                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111305         2006-07-22  Bruno Haible  <bruno@clisp.org>
111307                 * gettext.m4: Update from GNU gettext-0.15.
111308                 * nls.m4: Likewise.
111309                 * po.m4: Likewise.
111310                 * inttypes-pri.m4: Likewise.
111311                 * inttypes-h.m4: Renamed from inttypes.m4.
111312                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111314 2006-07-22  Bruno Haible  <bruno@clisp.org>
111316         Merge from GNU gettext 0.15.
111318         2005-07-05  Bruno Haible  <bruno@clisp.org>
111320                 * printf-args.c (printf_fetchargs): Work around broken
111321                 definition of wint_t on mingw.
111323         2005-02-12  Bruno Haible  <bruno@clisp.org>
111325                 * xallocsa.h: Add extern "C" for C++.
111327         2006-05-17  Bruno Haible  <bruno@clisp.org>
111329                 Cygwin portability.
111330                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111332         2006-04-30  Bruno Haible  <bruno@clisp.org>
111334                 * progreloc.c: Include <mach-o/dyld.h> if available.
111335                 (find_executable): Use _NSGetExecutablePath when possible.
111337         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111339                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111340                 function.
111342         2005-12-29  Bruno Haible  <bruno@clisp.org>
111344                 * progreloc.c (set_program_name_and_installdir): Fix
111345                 compilation error.
111347         2005-12-04  Bruno Haible  <bruno@clisp.org>
111349                 Cygwin portability.
111350                 * progreloc.c: Include <windows.h> also on Cygwin.
111351                 (find_executable): Add support for Cygwin.
111352                 (set_program_name_and_installdir): Handle also platforms with
111353                 nonempty EXEEXT.
111355         2006-07-11  Bruno Haible  <bruno@clisp.org>
111357                 * javacomp.c: Fix a comment.
111358                 Reported by Jim Meyering.
111360         2006-04-30  Bruno Haible  <bruno@clisp.org>
111362                 * javacomp.h (compile_java_class): Add source_version,
111363                 target_version arguments.
111364                 * javacomp.c: Rewritten to choose only a compiler that
111365                 respects the specified source_version and target_version.
111367         2006-06-27  Bruno Haible  <bruno@clisp.org>
111369                 Assume correct S_ISDIR macro.
111370                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111372         2006-07-22  Bruno Haible  <bruno@clisp.org>
111374                 * javaversion.h: New file, from GNU gettext.
111375                 * javaversion.c: New file, from GNU gettext.
111376                 * javaversion.java: New file, from GNU gettext.
111377                 * javaversion.class: New file, from GNU gettext.
111379         2006-05-17  Bruno Haible  <bruno@clisp.org>
111381                 Cygwin portability.
111382                 * javaexec.c (execute_java_class): Test for jview program
111383                 also on Cygwin.
111385         2006-04-09  Bruno Haible  <bruno@clisp.org>
111387                 * fatal-signal.c: Don't include string.h.
111388                 (at_fatal_signal): Use a copying loop instead of memcpy.
111390         2005-12-04  Bruno Haible  <bruno@clisp.org>
111392                 * csharpexec.c: Add support for 'clix' launcher (untested).
111393                 (execute_csharp_using_sscli): New function.
111394                 (execute_csharp_program): Call it.
111396         2006-06-21  Bruno Haible  <bruno@clisp.org>
111398                 Avoid warnings from recent versions of mcs.
111399                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111400                 -o, -L, -r any more. Use options documented since mcs-1.0
111401                 instead. Similarly for -g.
111403         2005-07-09  Bruno Haible  <bruno@clisp.org>
111405                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111406                 add a .dll suffix.
111407                 Reported by Mark Junker <mjscod@gmx.de>.
111409         2006-06-17  Bruno Haible  <bruno@clisp.org>
111411                 * config.charset: Update for NetBSD 3.0.
111413         2006-05-17  Bruno Haible  <bruno@clisp.org>
111415                 Cygwin portability.
111416                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111418         2006-05-16  Bruno Haible  <bruno@clisp.org>
111420                 * localcharset.c [CYGWIN]: Include <windows.h>.
111421                 (get_charset_aliases): For Cygwin, return the same CPxxx
111422                 aliases list as under WIN32.
111423                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111424                 the environment variables. Fall back to GetACP().
111426         2006-04-05  Bruno Haible  <bruno@clisp.org>
111428                 * config.charset: Update Juan Manuel Guerrero's address.
111430         2005-02-12  Bruno Haible  <bruno@clisp.org>
111432                 * allocsa.h: Add extern "C" for C++.
111434         2005-02-10  Bruno Haible  <bruno@clisp.org>
111436                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111437                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111439         2006-07-22  Bruno Haible  <bruno@clisp.org>
111441                 * gettext.h: Update to GNU gettext-0.15.
111443 2006-07-22  Bruno Haible  <bruno@clisp.org>
111445         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111446         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111447         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111449 2006-07-21  Eric Blake  <ebb9@byu.net>
111451         * modules/stdlib-safer: New file.
111452         * MODULES.html.sh (File stream based Input/Output): Add
111453         stdlib-safer.
111455 2006-07-21  Eric Blake  <ebb9@byu.net>
111457         * lib/stdlib-safer.h: New file from coreutils, required by
111458         stdlib--.h.
111460 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111462         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111464 2006-07-20  Bruno Haible  <bruno@clisp.org>
111466         * gnulib-tool: Recognize new option --assume-autoconf.
111467         (autoconf_minversion): New variable.
111468         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111470 2006-07-20  Bruno Haible  <bruno@clisp.org>
111472         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111474 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111476         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111477         Reindent and repaginate.
111479 2006-07-19  Derek Price  <derek@ximbiot.com>
111481         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111482         Correct grammar.
111484 2006-07-17  Bruno Haible  <bruno@clisp.org>
111486         * modules/list: New file.
111487         * modules/array-list: New file.
111488         * modules/carray-list, modules/carray-list-tests: New files.
111489         * modules/linked-list, modules/linked-list-tests: New files.
111490         * modules/avltree-list, modules/avltree-list-tests: New files.
111491         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111492         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111493         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111494         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111495         * modules/oset: New file.
111496         * modules/array-oset: New file.
111497         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111498         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111499         * tests/test-carray_list.c: New file.
111500         * tests/test-linked_list.c: New file.
111501         * tests/test-avltree_list.c: New file.
111502         * tests/test-rbtree_list.c: New file.
111503         * tests/test-linkedhash_list.c: New file.
111504         * tests/test-avltreehash_list.c: New file.
111505         * tests/test-rbtreehash_list.c: New file.
111506         * tests/test-avltree_oset.c: New file.
111507         * tests/test-rbtree_oset.c: New file.
111508         * MODULES.html.sh (Container data structures): New section.
111510 2006-07-17  Bruno Haible  <bruno@clisp.org>
111512         * m4/gl_list.m4: New file.
111514 2006-07-17  Bruno Haible  <bruno@clisp.org>
111516         * lib/gl_list.h: New file.
111517         * lib/gl_list.c: New file.
111518         * lib/gl_array_list.h: New file.
111519         * lib/gl_array_list.c: New file.
111520         * lib/gl_carray_list.h: New file.
111521         * lib/gl_carray_list.c: New file.
111522         * lib/gl_linked_list.h: New file.
111523         * lib/gl_linked_list.c: New file.
111524         * lib/gl_anylinked_list1.h: New file.
111525         * lib/gl_anylinked_list2.h: New file.
111526         * lib/gl_avltree_list.h: New file.
111527         * lib/gl_avltree_list.c: New file.
111528         * lib/gl_anyavltree_list1.h: New file.
111529         * lib/gl_anyavltree_list2.h: New file.
111530         * lib/gl_rbtree_list.h: New file.
111531         * lib/gl_rbtree_list.c: New file.
111532         * lib/gl_anyrbtree_list1.h: New file.
111533         * lib/gl_anyrbtree_list2.h: New file.
111534         * lib/gl_anytree_list1.h: New file.
111535         * lib/gl_anytree_list2.h: New file.
111536         * lib/gl_linkedhash_list.h: New file.
111537         * lib/gl_linkedhash_list.c: New file.
111538         * lib/gl_anyhash_list1.h: New file.
111539         * lib/gl_anyhash_list2.h: New file.
111540         * lib/gl_avltreehash_list.h: New file.
111541         * lib/gl_avltreehash_list.c: New file.
111542         * lib/gl_rbtreehash_list.h: New file.
111543         * lib/gl_rbtreehash_list.c: New file.
111544         * lib/gl_anytreehash_list1.h: New file.
111545         * lib/gl_anytreehash_list2.h: New file.
111547         * lib/gl_oset.h: New file.
111548         * lib/gl_oset.c: New file.
111549         * lib/gl_array_oset.h: New file.
111550         * lib/gl_array_oset.c: New file.
111551         * lib/gl_avltree_oset.h: New file.
111552         * lib/gl_avltree_oset.c: New file.
111553         * lib/gl_rbtree_oset.h: New file.
111554         * lib/gl_rbtree_oset.c: New file.
111555         * lib/gl_anytree_oset.h: New file.
111557 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111559         * m4/mkancesdirs.m4: New file.
111560         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111561         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111562         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111563         it.
111565 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111567         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111568         * lib/mkancesdirs.h: New files.
111569         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111570         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111571         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111572         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111573         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111574         callers changed.  Revamp internals significantly, by not
111575         attempting to create directories that are temporarily more
111576         permissive than the final results.  Do not attempt to use
111577         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111578         This removes some race conditions, fixes some bugs, and simplifies
111579         things.  Use new dirchownmod function to do owner and mode changes.
111580         * lib/mkdir-p.h: Likewise.
111581         * lib/modechange.c (octal_to_mode): New function.
111582         (struct mode_change): New member mentioned.
111583         (make_node_op_equals): New arg mentioned.  All callers changed.
111584         (mode_compile): Keep track of which mode bits the user has explicitly
111585         mentioned.
111586         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111587         New arg PMODE_BITS, to keep track of which mode bits the user
111588         mentioned; it treats S_ISUID and S_ISGID speciall.
111589         All callers changed.
111590         * lib/modechange.h: Likewise.
111592 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111594         * MODULES.html.sh: Add mkancestors.
111595         * modules/mkancesdirs: New module.
111596         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111597         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111598         The chdir-safer and afs files are now orphans; I'll remove them
111599         unless someone speaks up.
111600         Add lib/dirchownmod.c, lib/dirchownmod.h.
111601         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111602         Add lchown, mkancesdirs.
111603         (Maintainer): Add self.
111605 2006-07-15  Karl Berry  <karl@gnu.org>
111607         * gnulib-tool: help message wording/arrangement.
111609 2006-07-14  Simon Josefsson  <jas@extundo.com>
111611         * doc/gnulib.texi (Libtool and Windows): New section.
111613 2006-07-12  Simon Josefsson  <jas@extundo.com>
111615         * modules/gendocs (License): Fix license, approved by Karl.
111617 2006-07-12  Eric Blake  <ebb9@byu.net>
111619         * MODULES.html.sh: Add gendocs.
111621 2006-07-11  Eric Blake  <ebb9@byu.net>
111623         * modules/fdl: New module, to install doc/fdl.texi.
111624         * MODULES.html.sh: Add new section for documentation modules.
111625         * gnulib-tool: Avoid space-tab.
111626         (--doc-base): New option, to manage files from doc.
111628 2006-07-11  Eric Blake  <ebb9@byu.net>
111630         * m4/absolute-header.m4: Fix comments to match recent change.
111632 2006-07-11  Eric Blake  <ebb9@byu.net>
111634         * gnulib-tool: List --doc-base before --tests-base.
111636 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111638         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111640 2006-07-11  Bruno Haible  <bruno@clisp.org>
111642         * README: Mention where to put documentation.
111644 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111646         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111648 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111651         to stdint.m4.
111653 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111655         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111656         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111657         "no/such/file/stdint.h" when there is no such file, so that
111658         the resulting C code can be parsed by dodgy compilers.
111659         Problems reported by Bob Proulx.
111661 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111663         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111664         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111665         macros into the GNU _D_EXACT_NAMLEN.
111666         * lib/savedir.c:  Likewise.
111667         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111669 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111670         and Paul Eggert  <eggert@cs.ucla.edu>
111672         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111673         * m4/savedir.m4:
111674         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111675         macros into the GNU _D_EXACT_NAMLEN.
111677 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111680         around the absolute name, to work around a problem with the HP-UX
111681         11.23 native C compiler, reported by Bob Proulx.
111683 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111685         * doc/maintain.texi, make-stds.texi: Sync from
111686         <http://savannah.gnu.org/projects/gnustandards>.
111688 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111690         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111692 2006-07-09  Jim Meyering  <jim@meyering.net>
111694         * m4/glob.m4: Remove a doubled word in a comment.
111696 2006-07-09  Jim Meyering  <jim@meyering.net>
111698         * lib/argp-pv.c: Remove a doubled word in a comment.
111699         * lib/check-version.c (check_version): Likewise.
111700         * lib/javacomp.c (compile_java_class): Likewise.
111702 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111704         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111705         for the benefit of people using Autoconf 2.60.  If you want to
111706         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111707         (or m4/onceonly.m4, if pre-2.57) manually.
111709 2006-07-08  Jim Meyering  <jim@meyering.net>
111711         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111712         comment.
111713         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111714         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111715         comment.
111717 2006-07-08  Jim Meyering  <jim@meyering.net>
111719         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111721 2006-07-07  Simon Josefsson  <jas@extundo.com>
111723         * tests/test-crc.c: Change expected crc value, the test vector
111724         were probably computed using the old broken crc.c?
111726 2006-07-06  Simon Josefsson  <jas@extundo.com>
111728         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111729         now the canonical place for the M4 file).
111731         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111732         from the sys_socket dependency now.
111734         * modules/inet_pton (Files): Ditto.
111736         * modules/inet_ntop (Files): Ditto.
111738 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111740         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111741         not gl_PREREQ_GETUSERSHELL.
111743 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111745         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111746         with only one argument, for Autoconf 2.60.
111747         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111748         expand to nothing, so add a shell command to avoid syntax error.
111749         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111751 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111753         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111755 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111757         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111758         no longer needed.  Check for isblank decl.
111759         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111760         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111761         of existence.
111763 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111765         * lib/getloadavg.c: Use __VMS, not VMS.
111766         * lib/getopt.c: Likewise.
111767         * lib/getpagesize.h: Likewise.
111768         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111769         and probably does not work.
111771 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111773         * lib/.cppi-disable: Add wcwidth.
111774         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111775         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111776         (ISGRAPH): Remove.  All uses changed to isgraph.
111777         (FOLD) [!defined _LIBC]: Remove special case.
111778         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111779         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111780         HAVE_ISBLANK.
111781         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111782         case.
111784 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111786         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111787         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111788         brackets.  Other minor changes to suppress some compiler
111789         warnings.
111791 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111792         and Paul Eggert  <eggert@cs.ucla.edu>
111794         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111795         of invoking obsolescent AC_HEADER_DIRENT macro.
111796         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111797         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111798         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111800         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111801         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111802         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111803         * m4/readdir.m4: Remove; no longer needed.
111805 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111806         and Paul Eggert  <eggert@cs.ucla.edu>
111808         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111809         Don't worry about this obsolete case any more.
111810         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111811         directories.
111812         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111813         worry about this obsolete case any more.
111814         * lib/fts.c: Likewise.
111815         * lib/getcwd.c: Likewise.
111816         * lib/glob.h: Likewise.
111817         * lib/savedir.c: Likewise.
111819 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111821         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111822         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111823         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111824         needed.
111825         All uses removed.
111826         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111827         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111828         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111829         needed.
111830         * m4/getdate.m4 (gl_GETDATE): Likewise.
111831         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111832         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111833         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111834         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111835         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111836         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111837         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111838         needed.
111840 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111842         * lib/memcasecmp.c: Include <limits.h>.
111843         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111844         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111845         Don't assume isdigit succeeds only on '0' through '9'.
111847 2006-07-05  Eric Blake  <ebb9@byu.net>
111849         * modules/getaddrinfo (Depends-on): Add snprintf.
111851 2006-07-05  Eric Blake  <ebb9@byu.net>
111853         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111854         to avoid 'header present but could not be compiled' on cygwin.
111856 2006-07-05  Eric Blake  <ebb9@byu.net>
111858         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111859         missing from netdb.h.
111860         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111862 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111864         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111865         no longer needed.
111866         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111867         * m4/getdate.m4 (gl_GETDATE): Likewise.
111868         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111869         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111870         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111871         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111874 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111876         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111877         All uses of is_space replaced by isspace.
111878         * lib/exit.h: Don't talk about STDC_HEADERS.
111879         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111880         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111881         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111882         replaced by isprint etc.
111883         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111884         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111885         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111886         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111887         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111888         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111890 2006-07-05  Bruno Haible  <bruno@clisp.org>
111892         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111893         the function exists, before testing against AIX.
111894         Reported by Martin Lambers <marlam@marlam.de>.
111896 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111898         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111899         From Mark D. Baushke.
111901 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111904         to the absolute name, not just one, to bypass Sun C 5.8's
111905         "warning: #include of /usr/include/... may be non-portable".
111907 2006-07-04  Eric Blake  <ebb9@byu.net>
111909         * modules/dirname-tests: New test module.
111910         * tests/test-dirname.c: New file, replacing dirname.c
111911         TEST_DIRNAME section that was recently deleted.
111913 2006-07-04  Bruno Haible  <bruno@clisp.org>
111915         Assume ANSI C header files and <ctype.h> functions.
111916         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111917         (mbsnwidth): Use isprint, iscntrl instead.
111919 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111921         Merge from coreutils.
111922         * MODULES.html.sh: Add xstrtold.
111923         * modules/xstrtold: New file.
111924         * modules/cycle-check (Files): Add lib/same-inode.h.
111925         * modules/dirname (Files): Add m4/double-slash-root.m4.
111926         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111927         * modules/mkdir-p (Files): Add lib/same-inode.h.
111928         * modules/same (Files): Add lib/same-inode.h.
111930 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111932         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111933         This is to keep the terminology clean; POSIX talks about
111934         "absolute pathnames", not "full pathnames", but the GNU
111935         Coding Standards say to use "path" for something else;
111936         so use "absolute" to keep both sides happy.
111937         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111938         Set gl_absolute_header, not gl_full_header_path.
111939         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111940         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111941         All uses changed.
111943         Merge from coreutils.
111945         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111947         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111948         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111949         want to require the building of c-strtod.o.
111950         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111951         needs -lm directly.
111952         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111954         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111956         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111957         --as-needed option if available.  Problem reported by Albert Chin in
111958         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111959         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111960         cc merely issues a bunch of annoying warnings for --as-needed
111961         (this problem was reported by Bob Proulx).  Also, try linking with
111962         -lm to detect a bug in binutils 2.16 (this problem was reported
111963         by Ralf Wildenhues).
111965         2006-06-18  Jim Meyering  <jim@meyering.net>
111967         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
111968         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
111969         macro.
111970         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
111971         also check for glibc-2.4's abort-inducing bug.
111973         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
111974         Low-probability clean-up should be to use rmdir to get rid of
111975         the just-created directory, not unlink.
111977         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
111978         configure fail, and request a bug report to inform us about it.
111979         Add a comment that, barring reports to the contrary, in 2007 we'll
111980         assume ftruncate is universally available.
111982         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111984         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
111986         2006-03-12  Jim Meyering  <jim@meyering.net>
111988         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
111989         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
111990         * m4/same.m4 (gl_SAME): Likewise.
111991         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
111993         2006-03-11  Eric Blake  <ebb9@byu.net>
111995         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
111996         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
111997         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
111998         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112000 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112002         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112003         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112004         reported by Mark D. Baushke, one in
112005         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112007         Merge from coreutils.
112009         * lib/.cppi-disable: Add stdint_.h.
112010         * lib/.cvsignore: Add stdint.h.
112012         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112014         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112015         both double and long double versions.
112016         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112017         * lib/xstrtold.c: New file.
112018         * lib/xstrtod.h (xstrtold): New decl.
112020         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112022         * lib/filemode.c (setst): Remove.
112023         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112024         (arguably) clearer, and the generated code is a bit smaller on my
112025         Debian GNU/Linux stable x86 host.
112027         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112029         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112030         Assume that filemode.h includes sys/types.h and sys/stat.h.
112031         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112032         (ftypelet): Reorder to put common cases first, for efficiency.
112033         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112034         to do 'M'.
112035         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112036         of 10, for compatibility with FreeBSD.  All callers changed.
112037         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112038         types that can't be deduced solely from st_mode.  First arg is now a
112039         const pointer.
112040         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112041         (strmode): Renamed from mode_string.
112042         (filemodestring): New decl.
112043         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112044         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112045         needed.
112046         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112048         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112050         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112051         fsusage.h now does that.  Include fsusage.h first, to test interface.
112052         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112053         at most one method (the old code could have generated decls that
112054         didn't conform to C89, not that this was ever exercised).
112055         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112057         2006-03-19  Jim Meyering  <jim@meyering.net>
112059         Work even in a chroot where d_ino values for entries in "/"
112060         don't match the stat.st_ino values for the same names.
112061         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112062         number, iterate through all entries again, using lstat instead.
112063         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112064         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112066         * lib/getcwd.c (__getcwd): Clarify a comment.
112067         Use memcpy in place of a call to strcpy.
112069         2006-03-12  Jim Meyering  <jim@meyering.net>
112071         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112072         matches that of the current directory (which we're about to chdir ".."
112073         out of), then save the dev-ino of the parent, instead.
112075         * lib/same-inode.h (SAME_INODE): New file/macro.
112076         * lib/chdir-safer.c (SAME_INODE): Remove definition.
112077         Include "same-inode.h", instead.
112078         * lib/same.c: Likewise.
112079         * lib/cycle-check.h: Include "same-inode.h".
112080         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
112081         * lib/cycle-check.c (SAME_INODE): Remove definition.
112082         * lib/root-dev-ino.h: Include "same-inode.h".
112084         2006-03-11  Eric Blake  <ebb9@byu.net>
112086         * lib/same.c (same_name): s/base_name/last_component/
112087         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
112088         * lib/filenamecat.c (file_name_concat): Likewise.
112090         2006-03-11  Eric Blake  <ebb9@byu.net>,
112091                     Paul Eggert  <eggert@cs.ucla.edu>
112093         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
112094         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
112095         drive prefix.
112096         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
112097         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
112098         (last_component): New method.
112099         * lib/dirname.c (dir_len): Determine when drive letters need a
112100         subsequent slash.  Preserve // when it is special.
112101         (dir_name): Don't append dot when drive letter is absolute.
112102         [TEST_DIRNAME]: Move into a full-blown gnulib test.
112103         * lib/basename.c (base_name): New semantics - malloc the result.
112104         Preserve // when it is special.  Preserve relative files that look
112105         like drive letters.
112106         (base_len): Preserve // when it is special.
112107         (last_component): New method, similar to old base_name semantics.
112108         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112109         base_name.  Strip redundant slashes from ///.
112111 2006-07-03  Jim Meyering  <jim@meyering.net>
112113         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112114         macro is used before the first cycle_check call.
112116 2006-07-03  Eric Blake  <ebb9@byu.net>
112118         * modules/dirname (Depends-on): Add xstrndup.
112120 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112122         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112123         test cases, so that config.log is a bit easier to follow.
112125 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112127         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112128         both are 64 bits, since this seems to be the tradition, and this
112129         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112130         we ever run into a host that prefers long long to long in this
112131         case, we'll need another configure-time test.  Problem reported by
112132         Jim Meyering.
112134 2006-07-02  Eric Blake  <ebb9@byu.net>
112136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112138 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112140         * modules/inttypes (Depends-on): No longer depends on stdint.
112141         * modules/stdint (Description): Say more about assumptions.
112142         Say that the fast types might differ.  Say macros are used.
112143         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112144         (Makefile.am): Revise list of substituted symbols to match
112145         new stdint.m4.
112146         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112147         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112148         * tests/test-stdint.c (verify_same_types)
112149         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112150         the code conforms to C99/C89.
112151         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112152         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112154 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112156         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112157         but fix a bug, by requiring at least 64 bits.
112158         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112159         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112160         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112161         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112163         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112164         changes.  Make 2.59 a prerequisite.  Check and substitute for
112165         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112166         inttypes.h.  Do not use special include files; just use the
112167         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112168         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112169         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112170         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112171         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112172         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112173         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112174         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112175         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112176         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112177         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112178         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112179         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112180         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112181         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112182         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112183         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112184         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112185         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112186         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112187         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112188         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112189         not check for things that C99 does not require, e.g., int8_t.  If
112190         a test isn't needed unless <stdint.h> isn't working, and is
112191         unlikely to be needed for any other reason, then don't do it
112192         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112193         size_t, since we assume C89 freestanding at least.  Do not check
112194         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112195         the right thing even if the types are not defined.  Instead use:
112196         (gl_STDINT_TYPE_PROPERTIES): New macro.
112197         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112198         testing whether <sys/types.h> clashes, as Autoconf does this for
112199         us now.  All uses removed.
112200         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112201         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112202         (gl_CHECK_TYPE_SAME):
112203         Remove; no longer needed.
112204         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112205         exists, since we'll return 0 anyway in that case.
112206         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112208 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112210         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112211         possible collision with system files.
112212         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112213         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112214         WCHAR_MIN and WCHAR_MAX in this case.
112215         (<stddef.h>): Do not include; no longer needed.
112216         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112217         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112218         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112219         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112220         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112221         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112222         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112223         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112224         !defined(__c99))]: Include in this case too, since it's harmless
112225         now.
112226         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112227         dangerous to do so.
112228         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112229         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112230         (_STDINT_MIN, _STDINT_MAX): New macros.
112231         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112232         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112233         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112234         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112235         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112236         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112237         macros, not typedefs; this simplifies things quite a bit.
112238         Use long int for all types narrower than int64_t.
112239         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112240         Define in terms of long long int or int64_t or long int,
112241         not int64_t or int32_t.  This saves some compile-time testing.
112242         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112243         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112244         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112245         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112246         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112247         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112248         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112249         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112250         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112251         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112252         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112253         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112254         undef any previous version and define our own version, for
112255         simplicity and consistency with the new macros for types.
112256         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112257         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112258         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112259         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112260         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112261         @WINT_T_SUFFIX@ to keep things simple here.
112262         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112263         Simplify by assuming typical 8/16/32/64 host, since we're
112264         already doing that elsewhere anyway.
112265         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112266         and assume long long int is 64 bits if available.  This
112267         speeds up 'configure'.
112269 2006-07-01  Eric Blake  <ebb9@byu.net>
112271         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112272         Reported by Andreas Buening.
112274 2006-07-01  Eric Blake  <ebb9@byu.net>
112276         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112278 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112280         * lib/getaddrinfo.c: fixed typo
112282 2006-06-29  Jim Meyering  <jim@meyering.net>
112284         * modules/strftime (Maintainer): Add my name, since with the
112285         FPRINTFTIME changes strftime.c has forked from glibc.
112287 2006-06-29  Eric Blake  <ebb9@byu.net>
112289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112291 2006-06-29  Eric Blake  <ebb9@byu.net>
112293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112295 2006-06-29  Eric Blake  <ebb9@byu.net>
112297         * lib/stat_.h: New file.
112299 2006-06-29  Eric Blake  <ebb9@byu.net>
112301         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112302         unused static function.
112304 2006-06-29  Eric Blake  <ebb9@byu.net>
112306         * doc/functions.texi (Function Portability): Document missing lstat
112307         on mingw.
112309 2006-06-29  Eric Blake  <ebb9@byu.net>
112311         * MODULES.html.sh: Add sys_stat.
112312         * modules/sys_stat: New module.
112313         * modules/mkstemp (Depends-on): Add sys_stat.
112315 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112317         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112319 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112321         * m4/c-bs-a.m4: Removed.
112323 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112325         * lib/strftime.c: Assume strftime() exists.
112327 2006-06-29  Derek Price  <derek@ximbiot.com>
112329         * modules/c-bs-a: Removed - \a is C89.
112330         * MODULES.html.sh: Remove c-bs-a.
112332 2006-06-29  Bruno Haible  <bruno@clisp.org>
112334         * modules/wcwidth (License): Change to LGPL.
112336 2006-06-28  Simon Josefsson  <jas@extundo.com>
112338         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112339         on _WIN32.
112341         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112342         getnameinfo.
112344 2006-06-28  Simon Josefsson  <jas@extundo.com>
112346         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112348 2006-06-28  Simon Josefsson  <jas@extundo.com>
112350         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112351         functions there.  It will succeed on Windows XP, but on Windows
112352         2000 and (presumably) earlier, it will fail, and use the internal
112353         re-implementation.
112354         (use_win32_p): New function.
112355         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112356         Support AI_NUMERICSERV to disable getservbyname.
112357         (getnameinfo): New function, only supports
112358         NI_NUMERICHOST|NI_NUMERICSERV for now.
112360         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112361         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112362         getnameinfo.
112364 2006-06-28  Eric Blake  <ebb9@byu.net>
112366         * modules/wcwidth: New file.
112367         * modules/mbchar (Depends-on): Add wcwidth.
112368         * modules/mbswidth (Depends-on): Add wcwidth.
112369         * MODULES.html.sh: Add wcwidth.
112371 2006-06-28  Eric Blake  <ebb9@byu.net>
112373         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112376 2006-06-28  Eric Blake  <ebb9@byu.net>
112378         * lib/xvasprintf.h: Fix comments.
112380 2006-06-28  Eric Blake  <ebb9@byu.net>
112382         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112383         * lib/mbswidth.c (wcwidth): Move from here...
112384         * lib/wcwidth.h: ...to this new file.
112386 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112388         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112390         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112391         it's obsolete.
112392         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112394 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112396         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112397         Autoconf 2.60 says this stuff was obsolete.
112399 2006-06-28  Bruno Haible  <bruno@clisp.org>
112401         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112403 2006-06-28  Bruno Haible  <bruno@clisp.org>
112405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112406         gt_TYPE_WCHAR_T.
112408 2006-06-28  Bruno Haible  <bruno@clisp.org>
112410         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112411         declaration for wcwidth.
112412         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112414 2006-06-28  Bruno Haible  <bruno@clisp.org>
112416         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112417         (mkdir): Define using _mkdir.
112419 2006-06-28  Bruno Haible  <bruno@clisp.org>
112421         * lib/getaddrinfo.h: Fix POSIX URL.
112422         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112423         _WIN32.
112424         (use_win32_p): Make static.
112425         (getaddrinfo): Reject service name if it is empty or does not consist
112426         solely of decimal digits, or if its value is > 65535.
112427         (getnameinfo): Remove useless casts.
112429 2006-06-27  Simon Josefsson  <jas@extundo.com>
112431         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112432         Eggert and Martin Lambers.
112434 2006-06-27  Simon Josefsson  <jas@extundo.com>
112436         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112437         Eggert and Martin Lambers.
112439 2006-06-27  Bruno Haible  <bruno@clisp.org>
112441         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112442         result to 0, not to empty.
112443         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112445 2006-06-27  Bruno Haible  <bruno@clisp.org>
112447         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112449 2006-06-26  Simon Josefsson  <jas@extundo.com>
112451         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112452         present.
112454 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112456         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112457         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112458         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112460 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112462         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112464 2006-06-26  Bruno Haible  <bruno@clisp.org>
112466         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112468 2006-06-26  Bruno Haible  <bruno@clisp.org>
112470         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112472 2006-06-26  Bruno Haible  <bruno@clisp.org>
112474         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112475         SGI C compiler in pre-C99 mode.
112476         Suggested by Mark D. Baushke and Larry Jones.
112478 2006-06-26  Bruno Haible  <bruno@clisp.org>
112480         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112481         WCHAR_MAX.
112482         Reported by Mark D. Baushke and Larry Jones.
112484 2006-06-26  Bruno Haible  <bruno@clisp.org>
112486         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112487         in pre-C99 mode.
112488         Suggested by Mark D. Baushke and Larry Jones.
112490 2006-06-23  Simon Josefsson  <jas@extundo.com>
112491             Bruno Haible  <bruno@clisp.org>
112493         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112494         Emit mostlyclean-local rule.
112495         (func_emit_tests_Makefile_am): Likewise.
112496         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112498 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112500         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112502 2006-06-23  Bruno Haible  <bruno@clisp.org>
112504         * tests/test-stdint.c: Update to match ISO C 99 Technical
112505         Corrigendum 1.
112507 2006-06-23  Bruno Haible  <bruno@clisp.org>
112509         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112511 2006-06-23  Bruno Haible  <bruno@clisp.org>
112513         * lib/stdint_.h: Treat IRIX like OpenBSD.
112515 2006-06-23  Bruno Haible  <bruno@clisp.org>
112517         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112518         ISO C 99 Technical Corrigendum 1.
112520 2006-06-22  Simon Josefsson  <jas@extundo.com>
112522         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112523         MinGW.
112525 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112527         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112528         needed.  Some compiler complained about some of them.  Problem reported
112529         by Larry Jones in
112530         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112532 2006-06-21  Simon Josefsson  <jas@extundo.com>
112534         * tests/test-getaddrinfo.c: New file.
112536         * modules/getaddrinfo-tests: New file.
112538         * MODULES.html.sh: Add inet_pton.
112540         * modules/inet_pton: New file.
112542 2006-06-21  Simon Josefsson  <jas@extundo.com>
112544         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112545         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112546         of using the (limited) gnulib implementation on Windows XP.
112548         * m4/inet_pton.m4: New file.
112550 2006-06-21  Simon Josefsson  <jas@extundo.com>
112552         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112553         variable.
112555         * lib/socket_.h: Don't define WINVER.
112557         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112558         slightly modified to work in gnulib.
112560 2006-06-21  Simon Josefsson  <jas@extundo.com>
112562         * doc/gnulib.texi (Windows sockets): Add.
112564 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112566         * lib/read-file.c (fread_file): Start with buffer allocation of
112567         0 bytes rather than 1 byte; this simplifies the code.
112568         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112569         code to free buffer and save/restore errno.
112570         (internal_read_file): Remove unused local.
112572 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112574         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112575         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112576         Problem reported by Denis Excoffier in
112577         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112579 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112581         * modules/sys_socket, modules/socklen: Include sys/types since
112582         FreeBSD 4.x's sys/socket.h needs it.
112584 2006-06-19  Simon Josefsson  <jas@extundo.com>
112586         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112588 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112590         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112592 2006-06-19  Bruno Haible  <bruno@clisp.org>
112594         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112595         and FULL_PATH_INTTYPES_H in angle brackets.
112596         Reported by Mark D. Baushke <mdb@gnu.org>.
112598 2006-06-17  Eric Blake  <ebb9@byu.net>
112600         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112601         errno.
112603 2006-06-17  Bruno Haible  <bruno@clisp.org>
112605         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112606         <sys/inttypes.h>.
112608 2006-06-17  Bruno Haible  <bruno@clisp.org>
112610         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112611         whether errno is declared. Assume <errno.h> declares errno.
112613 2006-06-17  Bruno Haible  <bruno@clisp.org>
112615         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112617 2006-06-17  Bruno Haible  <bruno@clisp.org>
112619         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112620         problem on Solaris 2.5.1.
112622 2006-06-16  Eric Blake  <ebb9@byu.net>
112624         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112625         * lib/unicodeio.c [!defined errno]: Likewise.
112626         * lib/strtol.c [!defined errno]: Likewise.
112627         * lib/strtod.c [!defined errno]: Likewise.
112629 2006-06-15  Eric Blake  <ebb9@byu.net>
112631         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112633 2006-06-15  Eric Blake  <ebb9@byu.net>
112635         * config/srclist.txt (ssize_t.m4): Lose sync.
112637 2006-06-15  Bruno Haible  <bruno@clisp.org>
112639         * modules/stdint (Files): Include m4/full-header-path.m4,
112640         m4/size_max.m4, m4/wchar_t.m4.
112641         (Makefile.am): Many more substitutions.
112642         * modules/stdint-tests: New file.
112643         * tests/test-stdint.c: New file.
112645 2006-06-15  Bruno Haible  <bruno@clisp.org>
112647         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112648         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112649         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112650         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112651         gl_CHECK_TYPE_SAME): New macros.
112653 2006-06-15  Bruno Haible  <bruno@clisp.org>
112655         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112657 2006-06-15  Bruno Haible  <bruno@clisp.org>
112659         * lib/stdint_.h: Rewritten to be fully auto-configured.
112660         Fixes bug on HP-UX/IA64.
112662 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112664         * lib/getdate.y (__attribute__): Don't define if already defined.
112665         Problem reported by Larry Jones.
112666         * lib/utimens.c (__attribute__): Likewise.
112668 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112670         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112671         reported by Andreas Schwab.
112673 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112674             Bruno Haible  <bruno@clisp.org>
112676         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112677         check for the declaration of strnlen and a run test that exposes the
112678         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112679         rpl_strndup.
112681 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112682             Bruno Haible  <bruno@clisp.org>
112684         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112686 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112688         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112689         compile test, for Tru64 4.0D.
112691 2006-05-28  Karl Berry  <karl@gnu.org>
112693         * config/srclist.txt (printf-args.c): lose sync.
112695 2006-05-26  Martin Lambers  <marlam@marlam.de>
112697         * lib/getpass.c: Updates the test for the native W32 API, and adds
112698         missing includes, thus fixing compilation warnings.
112700 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112702         * lib/exclude.c (exclude_fnmatch): New function.
112703         (excluded_file_name): Call exclude_fnmatch.
112704         * lib/exclude.h (excluded_file_name): New prototype
112706 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112708         * lib/tempname.c (small_open, large_open): New macros.
112709         (__open, __open64) [!_LIBC]: Remove.
112710         (__gen_tempname): Use small_open and large_open instead of __open
112711         and __open64.  This fixes a portability bug on HP-UX 11.11i
112712         reported by Simon Wing-Tang in
112713         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112715 2006-05-24  Bruno Haible  <bruno@clisp.org>
112717         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112718         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112719         Reported by Thorsten Maerz <torte@netztorte.de> via
112720         Aaron Stone <aaron@serendipity.cx>.
112722 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112725         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112726         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112727         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112728         not really conditional on the cache.
112729         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112731 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112733         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112734         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112735         (my_usleep): Don't mishandle maximum value.
112737 2006-05-19  Jim Meyering  <jim@meyering.net>
112739         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112741 2006-05-17  Bruno Haible  <bruno@clisp.org>
112743         Cygwin portability.
112744         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112746 2006-05-17  Bruno Haible  <bruno@clisp.org>
112748         * lib/stdint_.h: Fix recognition of Cygwin.
112750 2006-05-15  Bruno Haible  <bruno@clisp.org>
112752         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112753         on libtool patch by Ralf Wildenhues.
112755 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112757         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112758         test for C99 conformance; (bool) 0.5 is an integer constant
112759         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112760         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112762 2006-05-11  Simon Josefsson  <jas@extundo.com>
112764         * m4/xvasprintf.m4: Fix obvious typo.
112766 2006-05-11  Jim Meyering  <jim@meyering.net>
112768         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112769         James Lemley.
112771 2006-05-10  Simon Josefsson  <jas@extundo.com>
112773         * lib/md4.c: Typo fix, update copyright years.
112774         (K1, K2): Don't use L because it turn computations into 64-bit on
112775         64-bit platforms.
112777 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112779         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112780         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112781         unwanted sign propagation, e.g., on hosts with 64-bit int.
112782         There still are some problems with reeelly weird theoretical hosts
112783         (e.g., 33-bit int) but it's not worth worrying about now.
112784         * lib/sha1.c (rol): Likewise.
112785         (K1, K2, K3, K4): Remove unnecessary L suffix.
112787 2006-05-10  Bruno Haible  <bruno@clisp.org>
112789         * lib/des.c: Cast to avoid warnings.
112791 2006-05-09  Bruno Haible  <bruno@clisp.org>
112793         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112794         (Depends-on): Depend also on xsize, stdarg.
112795         (configure.ac): Add gl_XVASPRINTF.
112797 2006-05-09  Bruno Haible  <bruno@clisp.org>
112799         * m4/xvasprintf.m4: New file.
112801 2006-05-09  Bruno Haible  <bruno@clisp.org>
112803         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112804         (EOVERFLOW): Define fallback value.
112805         (xstrcat): New function.
112806         (xvasprintf): Recognize the special case of a string concatenation.
112808 2006-05-08  Eric Blake  <ebb9@byu.net>
112810         * gnulib-tool (func_version): Base copyright year on CVS date.
112811         (func_emit_copyright_notice): New function.
112812         (func_emit_lib_Makefile_am): Use it.
112813         (func_emit_tests_Makefile_am): Likewise.
112814         (func_import): Likewise.
112816 2006-05-08  Bruno Haible  <bruno@clisp.org>
112818         * modules/stdarg: New file.
112819         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112821 2006-05-08  Bruno Haible  <bruno@clisp.org>
112823         * m4/stdarg.m4: New file, from GNU gettext.
112825 2006-05-08  Bruno Haible  <bruno@clisp.org>
112827         * config/srclist.txt (build-aux/config.rpath): different from latest
112828         release.
112830 2006-05-08  Bruno Haible  <bruno@clisp.org>
112832         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112834 2006-05-05  Jim Meyering  <jim@meyering.net>
112836         * m4/warning.m4: New file, derived from bison's file by the same name.
112838 2006-05-03  Bruno Haible  <bruno@clisp.org>
112840         * lib/stdint_.h: Shorter URL.
112841         * lib/inttypes.h: Likewise.
112843 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112845         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112847 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112849         * lib/verify.h: Document the internals better.  Most of this change
112850         was written by Bruno Haible.
112852 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112854         * doc/verify.texi: New file, partly based on a proposal by
112855         Bruno Haible.
112857 2006-05-02  Bruno Haible  <bruno@clisp.org>
112859         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112860         test from here...
112861         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112863 2006-04-29  Bruno Haible  <bruno@clisp.org>
112865         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112866         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112868 2006-04-29  Bruno Haible  <bruno@clisp.org>
112870         * gnulib-tool: Make --update option actually work.
112872 2006-04-29  Bruno Haible  <bruno@clisp.org>
112874         * doc/gcd.texi: New file.
112875         * doc/gnulib.texi: Include it.
112877 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112879         * lib/getdate.y (get_date): When adding relative date, start with the
112880         initial time, not with the result of the first mktime call.
112882 2006-04-25  Bruno Haible  <bruno@clisp.org>
112884         * gnulib-tool (func_import): Output the include directives in three
112885         blocks, sorted separately.
112886         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112888 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112890         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112891         to define main with arguments, for C++.  Reported by Eric Blake.
112892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112893         Prefer 'int main ()' to 'int main (void)', for C++.
112894         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112896         for 'main', for C99 and C++.
112898 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112901         Don't assume that exit status -1 is valid.
112902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112903         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112904         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112905         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112906         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112907         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112908         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112909         functions can be used without declaring them, or that you can
112910         exit with status -1.
112911         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112913 2006-04-24  Karl Berry  <karl@gnu.org>
112915         * config/srclist.txt (longdouble.m4): sync lost.
112917 2006-04-24  Eric Blake  <ebb9@byu.net>
112919         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112921 2006-04-24  Bruno Haible  <bruno@clisp.org>
112923         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112924         poll() implementation in AIX.
112925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112927 2006-04-24  Bruno Haible  <bruno@clisp.org>
112929         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112930         assigned exactly once.
112932 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112933             Bruno Haible  <bruno@clisp.org>
112935         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112936         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112937         for AM_CPPFLAGS.
112939 2006-04-23  Bruno Haible  <bruno@clisp.org>
112941         * modules/copy-file: Depend on unistd.
112942         * modules/execute: Likewise.
112943         * modules/fatal-signal: Likewise.
112944         * modules/findprog: Likewise.
112945         * modules/mkdtemp : Likewise.
112946         * modules/pipe: Likewise.
112947         * modules/wait-process: Likewise.
112949 2006-04-23  Bruno Haible  <bruno@clisp.org>
112951         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112952         condition was already detected.
112953         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112955 2006-04-23  Bruno Haible  <bruno@clisp.org>
112957         * lib/copy-file.c: Include <unistd.h> unconditionally.
112958         * lib/execute.c: Likewise.
112959         * lib/fatal-signal.c: Likewise.
112960         * lib/findprog.c: Likewise.
112961         * lib/mkdtemp.c: Likewise.
112962         * lib/pipe.h: Likewise.
112963         * lib/pipe.c: Likewise.
112964         * lib/wait-process.h: Likewise.
112966 2006-04-23  Bruno Haible  <bruno@clisp.org>
112968         * gnulib-tool (func_usage): Fix --import description. Document
112969         --update.
112970         (func_import): Create temporary file in a temporary directory, if
112971         --dry-run is specified. Silence errors from 'grep' when there are no
112972         m4 files in $m4dir.
112973         (func_create_testdir): Silence errors from 'grep' when there are no
112974         m4 files in $m4dir.
112975         Reported by Karl Berry <karl@freefriends.org>.
112977 2006-04-20  Bruno Haible  <bruno@clisp.org>
112979         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
112980         one argument, so that the code will be portable to Autoconf 2.60.
112981         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
112982         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112983         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
112985 2006-04-19  Derek Price  <derek@ximbiot.com>
112986             Eric Blake  <ebb9@byu.net>
112988         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
112989         rather than "/full/path.h".  Update comment to match.  Shorten &
112990         generalize m4_translit call via AS_TR_CPP.
112992 2006-04-19  Derek Price  <derek@ximbiot.com>
112993             Eric Blake  <ebb9@byu.net>
112995         * lib/inttypes.h: Correct grammar in comment.
112997 2006-04-18  Derek Price  <derek@ximbiot.com>
112998             Paul Eggert  <eggert@cs.ucla.edu>
113000         * modules/inttypes: New file.
113001         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113003 2006-04-18  Derek Price  <derek@ximbiot.com>
113004             Paul Eggert  <eggert@cs.ucla.edu>
113006         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113007         New files.
113009 2006-04-18  Derek Price  <derek@ximbiot.com>
113010             Paul Eggert  <eggert@cs.ucla.edu>
113012         * lib/inttypes.h: New file.
113013         * lib/strtoimax.c: Assume <inttypes.h>.
113015 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113017         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113018         isn't mounted.  Problem reported by Kir Kolyshkin.
113020 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113022         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113023         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113024         Derek R. Price.
113025         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113026         implementation.
113028 2006-04-12  Eric Blake  <ebb9@byu.net>
113030         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113031         is now done automatically by the corresponding Autoconf macro.
113033 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113035         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113036         time_r.h.
113038 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113040         Merge regex changes from libc, removing some of our
113041         POSIX-conformance changes that were rejected and redoing them in a
113042         less-intrusive way.
113044         * lib/regcomp.c (re_compile_internal, init_dfa):
113045         Length arg is now size_t, not Idx.  All uses changed.
113046         (peek_token): Forward decl now says internal_function.
113047         (__re_error_msgid, __re_error_msgid_idx):
113048         Now static rather than extern with attribute_hidden.
113049         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113050         For some reason libc prefers K&R style defns for external functions.
113051         (regerror) [!defined _LIBC]: Likewise.
113052         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113053         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113054         (build_range_exp, build_collating_symbol):
113055         Use K&R-style defn.
113056         (re_compile_fastmap): Use '\0' to memset, not 0.
113057         (utf8_sb_map): Make the calculations more obvious.
113058         (init_dfa, parse_bracket_exp, build_charclass_op):
113059         Call calloc and cast result, as glibc does.
113060         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113061         (build_range_exp, build_collating_symbol):
113062         Now internal functions.
113064         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113066         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113067         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113068         Don't depend on VMS; depend on __VMS instead, for POSIX
113069         namespace cleanness.
113070         (regoff_t): Define to ssize_t, not long int.
113072         Remove the REG_ macros named below.  Instead, make the old names
113073         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
113074         __USE_GNU_REGEX.
113075         (REG_BACKSLASH_ESCAPE_IN_LISTS):
113076         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
113077         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
113078         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
113079         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
113080         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
113081         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
113082         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
113083         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
113084         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
113085         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
113086         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
113087         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
113088         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
113089         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
113090         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
113091         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
113092         (REG_NREGS):
113093         Remove.  All uses replaced by the old RE_* names.
113094         (RE_BACKSLASH_ESCAPE_IN_LISTS):
113095         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
113096         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
113097         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
113098         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
113099         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
113100         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
113101         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
113102         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
113103         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
113104         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
113105         Don't bother having these macros be independent of each others'
113106         values, since they no longer exist in the POSIX name space.
113108         Rename the following member names back to their old names,
113109         unless !__USE_GNU_REGEX.  All uses changed back.
113110         (buffer): Renamed from re_buffer.
113111         (allocated): Renamed from re_allocated.
113112         (used): Renamed from re_used.
113113         (syntax): Renamed from re_syntax.
113114         (fastmap): Renamed from re_fastmap.
113115         (translate): Renamed from re_translate.
113116         (can_be_null): Renamed from re_can_be_null.
113117         (regs_allocated): Renamed from re_regs_allocated.
113118         (fastmap_accurate): Renamed from re_fastmap_accurate.
113119         (no_sub): Renamed from re_no_sub.
113120         (not_bol): Renamed from re_not_bol.
113121         (not_eol): Renamed from re_not_eol.
113122         (newline_anchor): Renamed from re_newline_anchor.
113123         (num_regs): Renamed from rm_num_regs.
113124         (start): Renamed from rm_start.
113125         (end): Renamed from rm_end.
113127         (free_state): Move up a bit.
113129         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113130         #define to be empty.
113131         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113132         when that is what is intended.
113133         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113134         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113135         (MAX): New macro.
113136         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113137         All uses changed back to re_malloc, etc.  It's now the caller's
113138         responsibility to check for overflow; all callers changed.
113139         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113140         (re_x2nrealloc): Remove.
113141         (free_state): Remove decl.
113143         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113144         (re_set_registers, re_exec):
113145         Use K&R-style defn.
113147         2006-01-31  Roland McGrath  <roland@redhat.com>
113149         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113150         Reported by Mike Frysinger <vapier@gentoo.org>.
113152         2006-01-15  Andreas Jaeger  <aj@suse.de>
113154         [BZ #1950]
113155         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113156         build_wcs_upper_buffer change.
113157         (build_wcs_upper_buffer): Change return type.
113159         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113161         * lib/regex_internal.h: Include <stdint.h> if available.
113163         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113165         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113167         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113169         * lib/regcomp.c: Adjust for changed secondary hash function.
113171         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113173         * lib/regex.h: Pretty printing.
113174         Clean up namespace a bit.
113176         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113178         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113179         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113181         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113182                     Ulrich Drepper  <drepper@redhat.com>
113184         [BZ #1302]
113185         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113186         changed.
113187         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113189         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113191         [BZ #281]
113192         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113193         * lib/regcomp.c: Remove unnecessary uses of
113194         unsigned RE_TRANSLATE_TYPE.
113195         * lib/regex_internal.h: Likewise.
113196         * lib/regex_internal.c: Likewise.
113197         * lib/regexec.c: Likewise.
113198         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113200         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113202         * lib/regexec.c (find_recover_state): Remove unnecessary
113203         initialization.
113204         (transit_state_bkref): Make DFA a const pointer.
113205         (get_subexp): Likewise.
113206         (check_arrival): Likewise.
113207         (update_cur_sifted_state): Likewise.
113208         (re_search_internal): Likewise.
113209         (prune_impossible_nodes): Likewise.
113210         (acquire_init_state_context): Likewise.
113211         (proceed_next_node): Likewise.
113212         (set_regs): Likewise.
113213         (free_fail_stack_return): Likewise.
113214         (check_arrival_expand_ecl): Mark DFA parameter as const.
113215         (check_arrival_expand_ecl_sub): Likewise.
113216         (check_subexp_limits): Likewise.
113217         (sub_epsilon_src_nodes):  Likewise.
113218         (add_epsilon_src_nodes):  Likewise.
113219         (merge_state_array): Likewise.
113220         (update_regs): Likewise.
113221         (build_trtable): Likewise.
113222         (sift_states_backward): Mark MCTX parameter as const.
113223         (build_sifted_states): Likewise.
113224         (update_cur_sifted_state): Likewise.
113225         (sift_states_mkref): Likewise.
113226         (check_arrival_expand_ecl): Mark eclosure as const.
113227         (check_dst_limits_calc_pos_1): Likewise.
113228         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113229         pointer.
113231         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113233         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113234         (transit_state_sb): Likewise.
113235         (transit_state_mb): Likewise.
113236         (sift_states_iter_mb): Likewise.
113237         (check_arrival_add_next_nodes): Likewise.
113238         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113239         [_LIBC] (re_search_2_stub): Use mempcpy.
113241         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113242         mbrtowc for very simple UTF-8 case.
113244         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113245         a pointer-to-const.
113246         (re_acquire_state_context): Likewise.
113247         * lib/regex_internal.h: Adjust prototypes.
113249         * lib/regex.c: Prevent using C++ compilers.
113251         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113252         (re_acquire_state_context): Likewise.
113254 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113256         * modules/regex (Depends-on): Add ssize_t.
113258 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113260         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113261         translation table.
113263 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113265         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113267 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113268             Bruno Haible  <bruno@clisp.org>
113270         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113271         <sys/types.h> and <inttypes.h>.
113273 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113275         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113276         `__error_t_defined', so argp.h will not typedef the former.
113278 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113280         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113281         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113282         glibc names.  Even if glibc is changed to conform to POSIX, the
113283         traditional names will be available anyway, since regex depends on
113284         the extensions module.  Also, fix a longstanding typo in the
113285         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113286         reported by Emanuele Giaquinta.  Also, change sense of cached
113287         variable, so that the message makes sense.
113289 2006-03-24  Simon Josefsson  <jas@extundo.com>
113291         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113292         including some doc fixes.
113293         (base64_encode_alloc): Fix +1 bug on allocation failures.
113295 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113297         * lib/base64.c (base64_encode): Do not read past end of array with
113298         unsanitized input on systems with CHAR_BIT > 8.
113300 2006-03-24  Eric Blake  <ebb9@byu.net>
113302         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113304 2006-03-22  Karl Berry  <karl@gnu.org>
113306         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113307         * config/srclistvars.sh (COREUTILS): new var.
113309 2006-03-17  Jim Meyering  <jim@meyering.net>
113311         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113312         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113314 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113316         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113317         no longer needs it.  Instead, check that regoff_t is as least
113318         as wide as ptrdiff_t.
113320         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113321         so that our regex.h stays compatible with the installed regex.
113322         This is helpful for installers who configure --without-included-regex.
113323         Problem reported by Emanuele Giaquinta.
113325 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113327         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113328         Typedef to long int, not to off_, as POSIX will likely change
113329         in that direction.
113331 2006-03-15  Eric Blake  <ebb9@byu.net>
113333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113335 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113337         * lib/argp-help.c (validate_uparams): Fix typo
113338         * lib/argp-parse.c (argp_default_options): Consistently begin help
113339         messages with a lowercase letter.
113341 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113343         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113344         overrun buffers and shouldn't be used (much as gets shouldn't be
113345         used).
113346         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113348 2006-03-08  Simon Josefsson  <jas@extundo.com>
113350         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113351         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113353 2006-03-08  Simon Josefsson  <jas@extundo.com>
113355         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113356         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113358 2006-03-08  Simon Josefsson  <jas@extundo.com>
113360         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113361         signal that configure disabled the device.
113363 2006-03-08  Simon Josefsson  <jas@extundo.com>
113365         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113366         languages.
113368 2006-03-07  Simon Josefsson  <jas@extundo.com>
113370         * modules/getopt (Depends-on): Add unistd.
113372         * modules/unistd: New file.
113374 2006-03-07  Simon Josefsson  <jas@extundo.com>
113376         * modules/gc-random: New file.
113378 2006-03-07  Simon Josefsson  <jas@extundo.com>
113380         * m4/unistd_h.m4: New file.
113382 2006-03-07  Simon Josefsson  <jas@extundo.com>
113384         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113385         test to be side-effect free by storing the result in the cache
113386         variable gl_cv_lib_readline, and moving the assignment of
113387         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113388         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113390 2006-03-07  Simon Josefsson  <jas@extundo.com>
113392         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113393         error on missing devices (the functions will return an error).
113395         * m4/gc.m4: Move random stuff to gc-random.m4
113397 2006-03-07  Simon Josefsson  <jas@extundo.com>
113399         * lib/unistd_.h: New file.
113401 2006-03-07  Simon Josefsson  <jas@extundo.com>
113403         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113405 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113407         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113408         Problem reported by Juan Manuel Guerrero.
113410 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113412         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113413         the unistd module.
113414         * lib/getlogin_r.c: Likewise.
113415         * lib/getlogin_r.h: Likewise.
113416         * lib/glob.c: Likewise.
113417         * lib/pagealign_alloc.c: Likewise.
113418         * lib/unistd_.h: Remove; no longer needed.
113420 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113422         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113423         Add unistd.
113424         * modules/c-stack (Depends-on): Add unistd.
113425         * modules/getlogin_r: Likewise.
113426         * modules/glob: Likewise.
113427         * modules/pagealign_alloc: Likewise.
113428         * modules/unistd (Files): Remove lib/unistd_.h.
113429         (EXTRA_DIST): Remove.
113430         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113431         need unistd_.h.
113432         (MOSTLYCLEANFILES): Remove unistd.h-t.
113434 2006-03-03  Simon Josefsson  <jas@extundo.com>
113436         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113438 2006-03-03  Simon Josefsson  <jas@extundo.com>
113440         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113441         libidn and bison.
113443 2006-03-03  Simon Josefsson  <jas@extundo.com>
113445         * build-aux/maint.mk: Add indent target.
113447 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113449         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113450         our replacement poll.h in any case, to avoid a differing
113451         declaration from a system header.  Seen on AIX.
113453 2006-03-01  Simon Josefsson  <jas@extundo.com>
113455         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113456         <kasal@ucw.cz>.
113458 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113460         * modules/gettime (Depends-on): Add extensions module.
113461         * modules/nanosleep (Depends-on): Likewise.
113462         * modules/settime (Depends-on): Likewise.
113464 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113466         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113467         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113468         pedantically.
113469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113470         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113472         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113473         not "==".  Reported by Ralf Wildenhues.
113475 2006-03-01  Karl Berry  <karl@gnu.org>
113477         * doc/Copyright/request-*: new files, synced from gnuorg.
113479 2006-03-01  Karl Berry  <karl@gnu.org>
113481         * config/srclist.txt (Copyright/*): new entries.
113483 2006-02-28  Simon Josefsson  <jas@extundo.com>
113485         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113487 2006-02-27  Simon Josefsson  <jas@extundo.com>
113489         * lib/base64.h: Indent #define's.  From Jim Meyering
113490         <jim@meyering.net>.
113492 2006-02-27  Jim Meyering  <jim@meyering.net>
113494         Revert the change of 2006-02-24, so these files can continue
113495         to be sync'd from gettext.
113496         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113497         of `config.h'.
113499 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113501         * modules/intprops: New file.
113502         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113503         Add intprops.
113504         * modules/getloadavg (Files): Remove lib/intprops.h.
113505         (Depends-on): Add intprops.
113506         * modules/human: Likewise.
113507         * modules/inttostr: Likewise.
113508         * modules/openat: Likewise.
113509         * modules/sig2str: Likewise.
113510         * modules/userspec: Likewise.
113511         * modules/utimecmp: Likewise.
113512         * modules/xnanosleep: Likewise.
113513         * modules/xstrtol: Likewise.
113515 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113517         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113518         * modules/lock-tests (TESTS): Use $(EXEEXT).
113519         * modules/tls-tests: Likewise.
113520         * modules/argp-tests: Likewise.
113521         (check_PROGRAMS): New var, replacing...
113522         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113524 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113526         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113527         `config.h'.
113529 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113531         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113533 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113535         Sync from coreutils.
113536         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113537         gl_CHDIR_SAFER.
113539 2006-02-22  Jim Meyering  <jim@meyering.net>
113541         Sync from coreutils.
113542         * m4/chdir-safer.m4: New file.
113544 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113546         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113547         AT_FDCWD exceeds INT_MAX.
113548         * lib/openat.h (AT_FDCWD): Likewise.
113550 2006-02-17  Eric Blake  <address@hidden>
113552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113554 2006-02-16  Simon Josefsson  <jas@extundo.com>
113556         * modules/getaddrinfo (Depends-on): Add sys_socket.
113558 2006-02-15  Simon Josefsson  <jas@extundo.com>
113560         * build-aux/maint.mk: Add dsyntax-check rule.
113562 2006-02-15  Eric Blake  <ebb9@byu.net>
113564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113565         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113566         'present but cannot compile' warnings on cygwin.
113567         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113568         use ws2tcpip.h if sys/socket.h works.
113569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113570         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113572 2006-02-14  Simon Josefsson  <jas@extundo.com>
113574         * modules/maintainer-makefile (Files): Rename.
113576         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113577         and (the local) Makefile.cfg to maint-cfg.mk.
113579         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113580         to the latter.
113582         * modules/maintainer-makefile: New module.
113584         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113585         severaly stripped to make it possible to build it up from scratch
113586         with reliable tests.
113588         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113589         fixes to permit overriding the default actions when configure and
113590         makefile are not available.
113592 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113594         Sync from coreutils.
113595         * modules/lstat (Depends-on): Don't depend on xalloc.
113596         (License): Change from GPL to LGPL, since this is now simply a
113597         replacement for a libc function.
113599 2006-02-14  Jim Meyering  <jim@meyering.net>
113601         Sync from coreutils.
113603         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113604         failure on deficient systems, and simplify gnulib lgpl dependencies.
113605         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113606         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113608         * lib/xalloc-die.c: Remove unused definition of N_.
113610 2006-02-14  Jim Meyering  <jim@meyering.net>
113612         Sync from coreutils.
113613         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113614         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113615         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113616         double-quote uses of that variable, to accommodate the rare case in
113617         which getmntent is available in none of the libraries checked.  This
113618         happens at least on FreeBSD 5.0.
113620 2006-02-13  Simon Josefsson  <jas@extundo.com>
113622         * gnulib-tool (Usage): Fix --import, from
113623         karl@freefriends.org (Karl Berry).
113625 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113627         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113629 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113631         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113632         "autoupdate" on 2005-12-12.
113634 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113636         * modules/closeout (Depends-on): Remove atexit.
113638 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113640         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113641         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113643 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113646         __EXTENSIONS__ if this causes compilation to fail.  Problem
113647         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113648         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113650 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113652         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113653         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113654         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113655         All uses changed.
113657 2006-01-26  Simon Josefsson  <jas@extundo.com>
113659         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113660         prototype is visible on mingw32.
113662         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113663         for mingw32.
113665         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113666         mingw32).
113668 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113670         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113671         attempt to open for write; this always fails, at least on POSIX
113672         hosts.  This reinstates the 2006-01-09 change, which was
113673         inadvertently removed.
113675 2006-01-26  Bruno Haible  <bruno@clisp.org>
113677         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113678         Reported by Paul Eggert.
113680 2006-01-26  Bruno Haible  <bruno@clisp.org>
113681             Paul Eggert  <eggert@cs.ucla.edu>
113683         * lib/stdbool_.h (_Bool)
113684         [(! (defined __cplusplus || defined __BEOS__)
113685           && !defined __GNUC__
113686           && !(defined __HP_cc || defined __xlc__
113687                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113688                || defined __sgi))]:
113689         #define to signed char in these cases too; this simplifies
113690         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113691         etc., separately) and makes it more conservative.
113693 2006-01-25  Simon Josefsson  <jas@extundo.com>
113695         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113696         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113697         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113699 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113701         * lib/argp-namefrob.h: Bugfix. Remove stray #
113703 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113705         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113706         so that we test the test.
113707         Check for yet another HP-UX cc bug involving *bool |= bool.
113709 2006-01-25  Karl Berry  <karl@gnu.org>
113711         * config/srclist.txt (vasnprintf.c): sync lost.
113713 2006-01-25  Jim Meyering  <jim@meyering.net>
113715         Sync from the stable (b5) branch of coreutils:
113717         * lib/fts.c (fts_children): Don't let close() clobber errno from
113718         failed fchdir().
113720         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113721         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113722         a dangling symlink.  That can also happen at least for ELOOP.
113723         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113724         FYI, this bug predates the inclusion of fts.c in coreutils.
113726         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113727         in their own block, so pre-c99 compilers don't object.
113729         Avoid the double-free (first in fts_read, second in fts_close) that
113730         would occur when an `active' directory is made inaccessible (e.g.,
113731         via chmod a-x) during a traversal.
113732         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113733         before returning.  Reproduce this failure by
113734         mkdir -p a/b; cd a; chmod a-x . b
113735         Reported by Stavros Passas.
113737 2006-01-25  Jim Meyering  <jim@meyering.net>
113739         * lib/fileblocks.c: Remove more useless parentheses.
113740         * lib/readutmp.h: Likewise.
113742 2006-01-25  Bruno Haible  <bruno@clisp.org>
113744         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113745         warnings.
113746         Reported by Paul Eggert.
113748 2006-01-25  Bruno Haible  <bruno@clisp.org>
113750         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113751         rid of a trap command. For Solaris sh.
113752         Reported by Mark D. Baushke <mdb@gnu.org>.
113754 2006-01-24  Simon Josefsson  <jas@extundo.com>
113756         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113757         Bruno.
113759 2006-01-24  Karl Berry  <karl@gnu.org>
113761         * config/srclist.txt (argp-namefrob.h): sync lost.
113763 2006-01-24  Jim Meyering  <jim@meyering.net>
113765         * modules/openat (Files): Add lib/intprops.h.
113766         From Mark D. Baushke.
113768 2006-01-24  Jim Meyering  <jim@meyering.net>
113770         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113771         Reported by Mark D. Baushke.
113773 2006-01-24  Jim Meyering  <jim@meyering.net>
113775         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113777 2006-01-24  Bruno Haible  <bruno@clisp.org>
113779         * modules/strnlen (Maintainer): Change from glibc to all.
113781 2006-01-24  Bruno Haible  <bruno@clisp.org>
113783         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113784         Patch by Paul Eggert.
113786 2006-01-24  Bruno Haible  <bruno@clisp.org>
113788         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113789         already has it.
113790         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113791         2005-11-26.
113793         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113794         'signed char' to avoid problems with the built-in _Bool type.
113795         Reported by Paul Eggert on 2005-11-26.
113797 2006-01-24  Bruno Haible  <bruno@clisp.org>
113799         * gnulib-tool (func_import): Avoid constructing complicated sed
113800         expressions inside backquote.
113801         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113803 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113805         These changes imported from libc.
113806         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113807         test and two separate function calls.
113808         * lib/strndup.c (__strndup): Add libc_hidden_def.
113810 2006-01-23  Simon Josefsson  <jas@extundo.com>
113812         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113813         Remove the test_*_SOURCES variable: automake infers it by default.
113814         * modules/tls-tests: Likewise.
113816 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113818         Work around porting bugs reported by Dieter in
113819         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113820         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113821         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113822         Include "getopt.h" first, to check interface.
113823         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113824         !HAVE_DECL_GETENV.
113825         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113826         (__strndup): Revert to K&R-style function dfns, the glibc style.
113827         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113828         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113829         Include strnlen.h first, to get prototype properly.
113830         (strnlen): Renamed from __strnlen.
113831         Remove weak alias.
113833 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113835         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113839         * config/srclist.txt: Adjust to reflect glibc reorganization.
113840         This affects only comments.
113842 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113844          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113845          Reported by Bruce Korb <bkorb@gnu.org>.
113847 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113849         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113850         to pacify gcc -Wswitch-default.
113852 2006-01-22  Bruno Haible  <bruno@clisp.org>
113854         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113855         temporary buffer for sprintf, take into account the precision also
113856         for 'd', 'i', 'u', 'o', 'x', 'X'.
113858 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113860         * modules/argp-tests: New module
113861         * tests/test-argp.c: New file
113862         * tests/test-argp-2.sh: New file
113864 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113866         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113867         (__argp_base_name): Removed
113868         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113869         typo.
113870         (__argp_base_name): Provide macro definition or extern declaration
113871         depending on the configuration
113873 2006-01-20  Simon Josefsson  <jas@extundo.com>
113875         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113877 2006-01-20  Simon Josefsson  <jas@extundo.com>
113879         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113881 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113883         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113884         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113885         Suggested by Bruno Haible.
113887 2006-01-20  Karl Berry  <karl@gnu.org>
113889         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113890         until changes propagate, I guess.
113892 2006-01-19  Simon Josefsson  <jas@extundo.com>
113894         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113896 2006-01-19  Simon Josefsson  <jas@extundo.com>
113898         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113900 2006-01-19  Simon Josefsson  <jas@extundo.com>
113902         * gnulib-tool: Set check_PROGRAMS.
113904         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113905         modules/des-tests, modules/gc-arcfour-tests,
113906         modules/gc-arctwo-tests, modules/gc-des-tests,
113907         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113908         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113909         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113910         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113911         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113912         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113913         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113914         test_*_SOURCES.
113916 2006-01-18  Simon Josefsson  <jas@extundo.com>
113918         * modules/socklen (Depends-on): Depend on sys_socket.
113920 2006-01-18  Simon Josefsson  <jas@extundo.com>
113922         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113923         modules/des-tests, modules/gc-arcfour-tests,
113924         modules/gc-arctwo-tests, modules/gc-des-tests,
113925         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113926         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113927         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113928         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113929         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113930         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113931         $(EXEEXT) to automake TESTS variable, for mingw32.
113933 2006-01-17  Simon Josefsson  <jas@extundo.com>
113935         * modules/socklen (Include): Need sys/socket.h.
113937 2006-01-17  Bruno Haible  <bruno@clisp.org>
113939         * modules/ssize_t (Include): Add <sys/types.h>.
113941 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113943         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113944         it's not portable and it doesn't work with cross-compiles.
113945         Problem reported by Bruno Haible.  Fix missing-$ typo in
113946         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113947         -zignore from being used with Sun's C compiler.
113949 2006-01-12  Simon Josefsson  <jas@extundo.com>
113951         * lib/base64.c: Fix warning, reported by Bruno Haible
113952         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113954 2006-01-12  Bruno Haible  <bruno@clisp.org>
113956         * modules/ldd: New file.
113957         * build-aux/ldd.sh.in: New file.
113958         * MODULES.html.sh (Support for building libraries and executables): Add
113959         ldd.
113961 2006-01-12  Bruno Haible  <bruno@clisp.org>
113963         * m4/ldd.m4: New file.
113965 2006-01-12  Bruno Haible  <bruno@clisp.org>
113967         * gnulib-tool (func_import, func_create_testdir): Don't go into an
113968         endless loop while replacing $auxdir with build-aux.
113970 2006-01-11  Simon Josefsson  <jas@extundo.com>
113972         * lib/stdint_.h (SIZE_MAX): Add missing (.
113974 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
113976         Sync from coreutils.
113977         * lib/md5.c: Fix commentary typos.
113978         (alignof, UNALIGNED_P): No need for a GCC-specific version.
113979         * lib/md5.h (__attribute__): Remove; unused.
113980         * lib/sha1.c: Fix commentary to match md5 better.
113981         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
113982         so that we don't need to worry about alignment.  All uses changed.
113983         This merges the 2005-10-28 md5 change into sha1.
113985 2006-01-11  Jim Meyering  <jim@meyering.net>
113987         Sync from coreutils.
113988         * lib/md5.c (OP): Fix spacing.
113990 2006-01-11  Bruno Haible  <bruno@clisp.org>
113992         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113993         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
113994         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
113996 2006-01-11  Bruno Haible  <bruno@clisp.org>
113998         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113999         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114000         the "early" section as well.
114002 2006-01-11  Bruno Haible  <bruno@clisp.org>
114004         Avoid "ar: no archive members specified" error on MacOS X.
114005         * gnulib-tool (func_modules_add_dummy): New function.
114006         (func_import, func_create_testdir): Invoke it.
114008 2006-01-11  Bruno Haible  <bruno@clisp.org>
114010         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114011         with $auxdir in AC_CONFIG_FILES statements.
114013 2006-01-11  Bruno Haible  <bruno@clisp.org>
114015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114016         Initialize also noinst_HEADERS to empty.
114018 2006-01-11  Bruno Haible  <bruno@clisp.org>
114020         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114021         variables.
114022         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114023         autoreconf.
114025 2006-01-11  Bruno Haible  <bruno@clisp.org>
114027         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114028         overridable by the user.
114029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114031 2006-01-10  Simon Josefsson  <jas@extundo.com>
114033         * modules/sys_socket: New file.
114035 2006-01-10  Simon Josefsson  <jas@extundo.com>
114037         * m4/sys_socket_h.m4: New file.
114039 2006-01-10  Simon Josefsson  <jas@extundo.com>
114041         * lib/socket_.h: New file.
114043 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114045         * modules/readutmp (Maintainer): Add myself.
114047 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114049         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114050         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114051         People who are still concerned with buggy memcmp implementations
114052         can invoke gl_FUNC_MEMCMP themselves.
114054 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114056         * lib/regex_internal.h (BITSET_WORD_BITS):
114057         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114058         preprocessor mishandles large unsigned values as if they were signed.
114059         Problem reported by Claudio Fontana in
114060         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114062 2006-01-10  Jim Meyering  <jim@meyering.net>
114064         Avoid the double-free (first in fts_read, second in fts_close) that
114065         would occur when an `active' directory is made inaccessible (e.g.,
114066         via chmod a-x) during a traversal.
114067         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114068         before returning.  Reproduce this failure by
114069         mkdir -p a/b; cd a; chmod a-x . b
114070         Reported by Stavros Passas.
114072         Sync from coreutils.
114073         * lib/sha1.c: Tweak grammar in a comment.
114075 2006-01-10  Jim Meyering  <jim@meyering.net>
114077         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
114078         Patch by Joerg Sonnenberger.
114080 2006-01-10  Bruno Haible  <bruno@clisp.org>
114082         * modules/readutmp: Depend on module free.
114083         * modules/strtok_r: Depend on module restrict.
114085 2006-01-10  Bruno Haible  <bruno@clisp.org>
114087         * modules/gettext (configure.ac): Add an invocation of
114088         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
114090 2006-01-10  Bruno Haible  <bruno@clisp.org>
114092         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
114093         Reported by Werner Lemberg <wl@gnu.org>.
114095 2006-01-10  Bruno Haible  <bruno@clisp.org>
114097         * lib/localcharset.c: Update from GNU gettext.
114099 2006-01-10  Bruno Haible  <bruno@clisp.org>
114101         * lib/argp.h (__const): Remove macro. Use const instead.
114102         * lib/argp-fmtstream.h (__const): Likewise.
114103         * lib/glob_.h (__const): Remove macro.
114104         * lib/glob-libc.h: Use const instead of __const.
114106 2006-01-10  Bruno Haible  <bruno@clisp.org>
114108         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114109         variable.
114110         Needed to avoid an automake error regarding the 'gettext' module.
114112 2006-01-09  Simon Josefsson  <jas@extundo.com>
114114         * modules/inet_ntop (Depends-on): Add restrict.
114116 2006-01-09  Simon Josefsson  <jas@extundo.com>
114118         * modules/gc-rijndael-tests (License): Put under LGPL.
114120         * modules/gc-des-tests (License): Likewise.
114122         * modules/gc-arcfour-tests (License): Likewise.
114124         * modules/gc-arctwo-tests (License): Likewise.
114126         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114128         * modules/gc-hmac-sha1-tests (Files): Likewise.
114130         * modules/gc-hmac-md5-tests (License): Likewise.
114132         * modules/gc-sha1-tests (License): Likewise.
114134         * modules/gc-md5-tests (License): Likewise.
114136         * modules/gc-md4-tests (License): Likewise.
114138         * modules/gc-md2-tests (License): Likewise.
114140         * modules/gc-tests (License): Likewise.
114142         * modules/des-tests (License): Likewise.
114144         * modules/md4-tests (License): Likewise.
114146         * modules/md2-tests (License): Likewise.
114148 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114150         Sync from coreutils:
114152         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114153         * modules/lib-ignore: New file.
114154         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114155         chdir-safer.m4, lchmod.m4.
114156         * modules/openat: Add mkdirat.c, openat-priv.h.
114158 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114160         Sync from coreutils.
114161         * m4/lib-ignore.m4: New file.
114162         * m4/lchmod.m4: New file.
114164 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114166         Sync from coreutils.
114167         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114168         for write access: POSIX says that must fail.
114169         * lib/fts.c (diropen): Likewise.
114170         * lib/save-cwd.c (save_cwd): Likewise.
114171         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114172         well, for minor improvements on hosts that lack O_DIRECTORY.
114173         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114174         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114175         Fall back on chown if open failed with EACCES.
114177         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114178         Report an error at compile-time if only a 1-second nominal clock
114179         resolution is found.
114181         * lib/lchmod.h: New file.
114182         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114183         (make_dir_parents): Use lchown rather than chown, and
114184         lchmod rather than chmod.
114186         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114187         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114188         "proc" reported by n0dalus.
114190         * lib/mountlist.c: Include <limits.h>.
114191         (dev_from_mount_options)
114192         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114193         New function.  It no longer assumes "dev=" has the System V meaning
114194         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114195         (read_file_system_list)
114196         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114197         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114198         dev= in that case.
114200         * lib/posixtm.h (PDS_PRE_2000): New macro.
114201         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114202         allow_century.  All usages changed.  Reject dates outside the range
114203         1969-1999 if PDS_PRE_2000 is used.
114205 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114207         Sync from coreutils.
114208         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114209         (Time of day items): Mention the possibility of leap seconds.
114210         Problem reported by Dr. David Alan Gilbert.
114212 2006-01-09  Jim Meyering  <jim@meyering.net>
114214         Sync from coreutils.
114216         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114218         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114220         * lib/modechange.c (mode_compile): Reject an invalid mode string
114221         that starts with an octal digit.  From Andreas Gruenbacher.
114223         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114224         and dup to open_safer and dup_safer, respectively.
114225         (openat_permissive): Fix typo in comment.
114227         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114228         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114229         (_): Remove; no longer needed.
114230         (openat): Renamed from rpl_openat; no need for rpl_openat
114231         since openat.h renames openat for us.
114232         Replace most of the body with a call to openat_permissive,
114233         to avoid duplicate code.
114234         Port to (probably hypothetical) environments were mode_t is
114235         wider than int.
114236         (openat_permissive): Require mode arg, so that we can check
114237         types better.  Put it just after flags.  Change cwd failure
114238         indicator from pointer-to-bool to pointer-to-errno-value.
114239         All callers changed.
114240         Invoke openat_save_fail and/or openat_restore_fail if
114241         cwd_errno is null, so that openat can call us.
114242         (openat_permissive, fdopendir, fstatat, unlinkat):
114243         Simplify errno handling to avoid some duplicate code,
114244         as it's OK to set errno on success.
114245         * lib/openat.h: Revamp code so that function macros depend on
114246         __OPENAT_PREFIX only, not also on AT_FDCWD.
114247         (openat_ro): Remove.  Caller changed to use openat_permissive.
114248         (openat_permissive): Now a macro, if not a function.
114249         (openat_restore_fail, openat_save_fail): Now always functions,
114250         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114252         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114253         and openat.c.
114254         * lib/mkdirat.c: Include openat-priv.h.
114255         Remove definitions of macros defined therein.
114256         * lib/openat.c: Likewise.
114258         * lib/mkdirat.c (mkdirat): New file and function.
114259         * lib/openat.h (mkdirat): Declare.
114261         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114263         * lib/openat.h (openat_permissive): Declare.
114264         (openat_ro): Define.
114266         * lib/openat.c (EXPECTED_ERRNO): New macro.
114267         (openat_permissive): New function -- used in remove.c rewrite.
114268         (all functions): Set errno just before returning, only if there
114269         was an actual failure.
114270         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114272         Emulate openat-family functions using Linux's procfs, if possible.
114273         Idea and some code based on Ulrich Drepper's glibc changes.
114275         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114276         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114277         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114278         before falling back on save_cwd and restore_cwd.
114279         (fdopendir, fstatat, unlinkat): Likewise.
114281         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114282         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114284         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114285         as second argument to va_arg.  Otherwise, some versions of gcc
114286         warn that `if this code is reached, the program will abort'.
114288 2006-01-09  Jim Meyering  <jim@meyering.net>
114290         Sync from coreutils.
114291         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114292         Require openat-priv.h.
114294 2006-01-09  Bruno Haible  <bruno@clisp.org>
114296         * modules/strnlen (Include): Use strnlen.h.
114298 2006-01-09  Bruno Haible  <bruno@clisp.org>
114300         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114302 2006-01-09  Bruno Haible  <bruno@clisp.org>
114304         * lib/sysexit_.h (EX_OK): New macro.
114305         Suggested by Martin Lambers <marlam@marlam.de>.
114307 2006-01-09  Bruno Haible  <bruno@clisp.org>
114309         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114310         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114312 2006-01-09  Bruno Haible  <bruno@clisp.org>
114314         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114315         numbers.
114317 2006-01-09  Bruno Haible  <bruno@clisp.org>
114319         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114320         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114321         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114322         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114324 2006-01-09  Bruno Haible  <bruno@clisp.org>
114326         * build-aux/javacomp.sh.in: New file, moved from lib/.
114327         * modules/javacomp-script (Files): Update.
114328         (configure.ac): Add AC_CONFIG_FILES invocation.
114329         (EXTRA_DIST): Remove variable.
114331         * build-aux/javaexec.sh.in: New file, moved from lib/.
114332         * modules/javaexec (Files): Update.
114333         (configure.ac): Add AC_CONFIG_FILES invocation.
114334         (EXTRA_DIST): Remove javaexec.sh.in.
114336         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114337         * modules/csharpcomp-script (Files): Update.
114338         (configure.ac): Add AC_CONFIG_FILES invocation.
114339         (EXTRA_DIST): Remove variable.
114341         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114342         * modules/csharpexec (Files): Update.
114343         (configure.ac): Add AC_CONFIG_FILES invocation.
114344         (EXTRA_DIST): Remove csharpexec.sh.in.
114346 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114348         Sync from coreutils.
114350         Add POSIX ACL support
114351         * lib/acl.h (copy_acl, set_acl): Add declarations.
114352         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114353         systems other than Linux.
114354         (chmod_or_fchmod): New function: use fchmod when possible,
114355         and chmod otherwise.
114356         (file_has_acl): Add a POSIX ACL implementation, with a
114357         Linux-specific subcase.
114358         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114359         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114360         acls are unsupported.
114361         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114362         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114363         are unsupported.
114365 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114367         Sync from coreutils.
114368         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114370 2006-01-07  Bruno Haible  <bruno@clisp.org>
114372         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114373         gl_EARLY.
114375 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114377         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114378         Problem reported for Mingw by Mark Junker.
114380 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114382         * README: Gnulib normally doesn't generate a tarball.
114384 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114386         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114387         long int, not int, for nanosecond counts, so that people who are
114388         used to POSIX struct timespec won't be surprised.  Reported by Jim
114389         Meyering.
114391 2005-12-28  Bruno Haible  <bruno@clisp.org>
114393         * build-aux/config.rpath: Update from GNU gettext.
114395 2005-12-16  Jim Meyering  <jim@meyering.net>
114397         * modules/fprintftime: New module.
114398         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114400 2005-12-16  Jim Meyering  <jim@meyering.net>
114402         * m4/fprintftime.m4: New file.
114404 2005-12-16  Jim Meyering  <jim@meyering.net>
114406         * lib/fprintftime.c, lib/fprintftime.h: New files.
114408 2005-12-15  Simon Josefsson  <jas@extundo.com>
114410         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114411         new m4/socklen.m4.
114413 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114415         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114416         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114418 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114420         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114421         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114422         struct uparams is valid. Fall back to the default values if it is
114423         not.
114425 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114427         * modules/argp (Files): Add argp-pin.c
114428         (Depends-on): dirname
114429         (lib_SOURCES): Add argp-pin.c
114431 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114433         * m4/argp.m4:  Check if program_invocation_name and
114434         program_invocation_short_name are declared and define appropriate
114435         macros if they are not.
114437 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114439         * lib/argp-help.c (__argp_base_name): New function
114440         (__argp_short_program_name): Rewrite using __argp_base_name
114441         * lib/argp-namefrob.h: Define program_invocation_name and
114442         program_invocation_short_name if requested
114443         (__argp_base_name): Add prototype
114444         * lib/argp-parse.c (argp_def): Use gettext wrappers
114445         (argp_default_parser): Use __argp_base_name
114446         * lib/argp-pin.c: New file. Defines program_invocation_name and
114447         program_invocation_short_name on systems that lack them.
114449 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114451         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114452         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114453         porting problem reported by Georg Schwarz in
114454         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114456 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114458         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114459         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114460         porting problem reported by Georg Schwarz in
114461         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114463 2005-12-05  Bruno Haible  <bruno@clisp.org>
114465         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114466         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114467         Reported by Mark Junker <mjscod@gmx.de>.
114469 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114471         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114472         Use implementation from Albert Chin, with some
114473         comments/corrections by Stepan Kasal and myself.
114475 2005-12-02  Bruno Haible  <bruno@clisp.org>
114477         * gnulib-tool (func_import): Accept GPLed build tool modules when
114478         --lgpl is given.
114479         * modules/csharpcomp-script: New file.
114480         * modules/csharpcomp: Depend on it.
114481         * modules/javacomp-script: New file.
114482         * modules/javacomp: Depend on it.
114483         Suggested by Simon Josefsson.
114485 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114487         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114488         statement, to work around an HP-UX 10.20 compiler bug reported by
114489         Peter O'Gorman.
114491 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114493         * modules/savedir (Depends-on): Add openat.
114495 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114497         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114498         (uintmax_t) [defined uintmax_t]: Do not declare.
114499         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114500         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114501         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114502         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114503         sake of portability to weird hosts that C allows (though we don't
114504         know of any practical examples).
114506         * lib/savedir.h (fdsavedir): New decl.
114507         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114508         contains most of the former guts of savedir.
114509         (savedir): Use savedirstream.
114510         Include "openat.h".
114512 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114514         * modules/obstack (Files): Add m4/ulonglong.m4.
114515         Problem reported by Davide Angelocola.
114517 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114519         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114520         coreutils no longer futzes with rounding modes.
114522 2005-11-14  Jim Meyering  <jim@meyering.net>
114524         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114525         replacement of mkstemp.
114527 2005-11-10  Simon Josefsson  <jas@extundo.com>
114529         * lib/readline.c: Remove EOL.
114531 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114533         * modules/gethrxtime (Depends-on): Add gettime.
114535 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114537         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114538         or gettimeofday; no longer needed.
114540 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114542         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114543         time business.
114544         (gethrxtime) [! (HAVE_NANOUPTIME
114545         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114546         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114547         our own approximation.
114549 2005-11-08  Eric Blake  <ebb9@byu.net>
114551         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114553 2005-11-08  Eric Blake  <ebb9@byu.net>
114555         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114557 2005-11-04  Bruno Haible  <bruno@clisp.org>
114559         * gnulib-tool: Implement --update mode.
114561 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114563         Fix porting problem reported by Theodoros V. Kalamatianos.
114564         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114565         Don't assume that futimes failing means we must fail.
114567 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114570         variables to suggest the intended function of the PATH_MAX check.
114572 2005-10-30  Kean Johnston  <jkj@sco.com>
114574         Trivial changes to support SCO systems.
114575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114576         as PATH_MAX.
114577         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114578         where __ptr is null when no I/O is pending.
114580 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114582         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114583         leave errno alone.  Problem reported by Dmitry V. Levin.
114585 2005-10-28  Simon Josefsson  <jas@extundo.com>
114587         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114588         Test more.
114590         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114592         * modules/md2, modules/md2-tests: New files.
114594 2005-10-28  Simon Josefsson  <jas@extundo.com>
114596         * m4/inet_ntop.m4: More tests.
114598         * m4/gc-md2.m4, md2.m4: New file.
114600 2005-10-28  Simon Josefsson  <jas@extundo.com>
114602         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114603         "restrict" keywords, as per POSIX.  Protect the function
114604         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114605         Don't use K&R prototypes.  Check the sprintf return values.
114606         Re-define EAFNOSUPPORT if not present.  Indent.
114608         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114609         suggested by Bruno Haible <bruno@clisp.org>.
114611         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114613         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114615         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114616         libgcrypt).
114618         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114620         * lib/md2.h, lib/md2.c: New files.
114622 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114624         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114625         errno alone.  Problem reported by Frederic Jolliton.
114627 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114629         * modules/verify (License): Change from GPL to LGPL.  This is a
114630         tiny module and there are apparently near-equivalents that are
114631         under the BSD license.
114633 2005-10-24  Simon Josefsson  <jas@extundo.com>
114635         * modules/sha1: Relicense to LGPL.
114637 2005-10-24  Simon Josefsson  <jas@extundo.com>
114639         * lib/md4.h: Shrink buffer size, now that we changed the type.
114641 2005-10-23  Simon Josefsson  <jas@extundo.com>
114643         * gnulib-tool (func_import): Fix --tests-base.
114645 2005-10-22  Simon Josefsson  <jas@extundo.com>
114647         * modules/arcfour (Depends-on): Need stdint.
114649 2005-10-22  Simon Josefsson  <jas@extundo.com>
114651         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114652         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114654 2005-10-22  Simon Josefsson  <jas@extundo.com>
114656         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114657         suggested by Bruno Haible <bruno@clisp.org>.
114659 2005-10-22  Simon Josefsson  <jas@extundo.com>
114661         * lib/crc.h: Include stddef.h, for size_t.
114663 2005-10-22  Simon Josefsson  <jas@extundo.com>
114665         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114666         arcfour_context struct (simplify test vector testing in GNU
114667         Shishi).
114669 2005-10-21  Simon Josefsson  <jas@extundo.com>
114671         * modules/des, modules/des-tests: New files.
114673         * modules/gc-des, modules/gc-des-tests: New files.
114675         * tests/test-des.c, tests/test-gc-des.c: New file.
114677 2005-10-21  Simon Josefsson  <jas@extundo.com>
114679         * modules/arctwo, modules/arctwo-tests: New files.
114681         * tests/test-arctwo.c: New file.
114683         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114685         * tests/test-gc-arctwo.c: New file.
114687 2005-10-21  Simon Josefsson  <jas@extundo.com>
114689         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114690         Bruno Haible <bruno@clisp.org>.
114692         * m4/gc-des.m4: New file.
114694 2005-10-21  Simon Josefsson  <jas@extundo.com>
114696         * m4/arctwo.m4: New file.
114698         * m4/gc-arctwo.m4: New file.
114700 2005-10-21  Simon Josefsson  <jas@extundo.com>
114702         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114703         block.
114705 2005-10-21  Simon Josefsson  <jas@extundo.com>
114707         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114708         <bruno@clisp.org>.
114710         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114712         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114713         Bruno Haible <bruno@clisp.org>.
114715         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114716         <bruno@clisp.org>.
114718 2005-10-21  Simon Josefsson  <jas@extundo.com>
114720         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114722 2005-10-21  Simon Josefsson  <jas@extundo.com>
114724         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114726 2005-10-21  Simon Josefsson  <jas@extundo.com>
114728         * lib/des.h, lib/des.c: New files.
114730         * lib/gc-gnulib.c: Support DES.c
114732 2005-10-21  Simon Josefsson  <jas@extundo.com>
114734         * lib/arctwo.h, lib/arctwo.c: New files.
114736         * lib/gc-gnulib.c: Support ARCTWO.
114738 2005-10-21  Simon Josefsson  <jas@extundo.com>
114740         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114741         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114743 2005-10-21  Simon Josefsson  <jas@extundo.com>
114745         * gnulib-tool (func_import, func_create_testdir): Define automake
114746         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114747         Makefile.am snippet),
114748         suggested by Bruno Haible <bruno@clisp.org>.
114750         * modules/gc (Makefile.am): Use it.
114752 2005-10-21  Bruno Haible  <bruno@clisp.org>
114754         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114755         patch.
114757 2005-10-19  Simon Josefsson  <jas@extundo.com>
114759         * tests/test-gc-rijndael.c: New file.
114761         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114763 2005-10-19  Simon Josefsson  <jas@extundo.com>
114765         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114766         interface too.
114768 2005-10-19  Simon Josefsson  <jas@extundo.com>
114770         * tests/test-gc-arcfour.c: New file.
114772         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114774 2005-10-19  Simon Josefsson  <jas@extundo.com>
114776         * modules/gc-md4, modules/gc-md4-tests: New file.
114778         * tests/test-gc-md4.c: New file.
114780 2005-10-19  Simon Josefsson  <jas@extundo.com>
114782         * m4/gc-md4.m4: New file.
114784 2005-10-19  Simon Josefsson  <jas@extundo.com>
114786         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114787         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114788         <kasal@ucw.cz>.
114790 2005-10-19  Simon Josefsson  <jas@extundo.com>
114792         * m4/gc-arcfour.m4: New file.
114794         * m4/gc-rijndael.m4: New file.
114796 2005-10-19  Simon Josefsson  <jas@extundo.com>
114798         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114800 2005-10-19  Simon Josefsson  <jas@extundo.com>
114802         * lib/gc-gnulib.c: Support ARCFOUR.
114804 2005-10-19  Simon Josefsson  <jas@extundo.com>
114806         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114807         support.
114809         * lib/gc.h: Add ECB enum type.
114811         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114813 2005-10-18  Simon Josefsson  <jas@extundo.com>
114815         * tests/test-md5.c: New file.
114817         * modules/md5-tests: New file.
114819 2005-10-18  Simon Josefsson  <jas@extundo.com>
114821         * tests/test-md4.c: New file.
114823         * modules/md4, modules/md4-tests: New files.
114825 2005-10-18  Simon Josefsson  <jas@extundo.com>
114827         * m4/md4.m4: New file.
114829 2005-10-18  Simon Josefsson  <jas@extundo.com>
114831         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114833 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114835         * gnulib-tool (func_create_testdir): Omit the second check whether
114836         BUILT_SOURCES in nonempty.
114838 2005-10-17  Simon Josefsson  <jas@extundo.com>
114840         * tests/test-rijndael.c: New file.
114842 2005-10-17  Simon Josefsson  <jas@extundo.com>
114844         * modules/sha1: Depend on stdint instead of md5.
114846         * modules/md5: Depend on stdint, remove uint32_t.
114848 2005-10-17  Simon Josefsson  <jas@extundo.com>
114850         * modules/gc-sha1-tests: New file.
114852         * tests/test-gc-sha1.c: New file.
114854 2005-10-17  Simon Josefsson  <jas@extundo.com>
114856         * m4/md5.m4: Remove call to uint32_t.m4.
114858 2005-10-17  Simon Josefsson  <jas@extundo.com>
114860         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114862         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114863         md5.h.
114865         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114867         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114869 2005-10-17  Simon Josefsson  <jas@extundo.com>
114871         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114873 2005-10-17  Simon Josefsson  <jas@extundo.com>
114875         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114877 2005-10-17  Simon Josefsson  <jas@extundo.com>
114879         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114881         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114883 2005-10-17  Bruno Haible  <bruno@clisp.org>
114885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114886         that it can also be used in a test.
114888 2005-10-16  Bruno Haible  <bruno@clisp.org>
114890         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114891         TESTS_ENVIRONMENT, so that individual tests can augment it.
114893         * gnulib-tool (func_create_testdir): Use an intermediate target for
114894         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114895         macros, like $(ALLOCA_H), which cannot be passed through the command
114896         line.
114898 2005-10-15  Simon Josefsson  <jas@extundo.com>
114900         * modules/rijndael-tests: New file.
114902         * modules/rijndael: New file.
114904 2005-10-15  Simon Josefsson  <jas@extundo.com>
114906         * m4/rijndael.m4: New file.
114908 2005-10-15  Simon Josefsson  <jas@extundo.com>
114910         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114912         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114914 2005-10-14  Simon Josefsson  <jas@extundo.com>
114916         * tests/test-arcfour.c: New file.
114918         * modules/arcfour, modules/arcfour-tests: New files.
114920 2005-10-14  Simon Josefsson  <jas@extundo.com>
114922         * m4/arcfour.m4: New file.
114924 2005-10-14  Simon Josefsson  <jas@extundo.com>
114926         * lib/arcfour.h, lib/arcfour.c: New files.
114928 2005-10-14  Roland McGrath  <roland@redhat.com>
114930         Import from libc.  [BZ #1331]
114931         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114932         macro argument.
114933         Reported by Matej Vela <vela@debian.org>.
114935 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114937         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114938         include <wchar.h>; no longer needed.
114940 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114942         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114944 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114945         and  Ulrich Drepper  <drepper@redhat.com>
114947         Import from libc.
114948         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114949         instead of inline stream orientation test and two separate
114950         function calls.  Pay no attention to USE_IN_LIBIO.
114952 2005-10-13  Simon Josefsson  <jas@extundo.com>
114954         * modules/gc-hmac-md5-tests: New file.
114956         * tests/test-gc-hmac-sha1.c: New file.
114958         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114960         * modules/gc-hmac-md5-tests: New file.
114962         * tests/test-gc-md5.c: New file.
114964         * modules/gc-md5-tests: New file.
114966 2005-10-13  Simon Josefsson  <jas@extundo.com>
114968         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
114969         Move memory allocation outside of loop.
114971 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
114973         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
114974         intermediate directory is in a read-only file system.  Problem
114975         reported by Eric Blake.
114977 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
114979         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
114981 2005-10-12  Simon Josefsson  <jas@extundo.com>
114983         * tests/test-hmac-sha1.c: New file.
114985         * modules/hmac-sha1-tests: New file.
114987         * modules/hmac-sha1: New file.
114989 2005-10-12  Simon Josefsson  <jas@extundo.com>
114991         * modules/gc-sha1: New file.
114993 2005-10-12  Simon Josefsson  <jas@extundo.com>
114995         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
114997         * tests/test-gc-pbkdf2-sha1.c: New file.
114999 2005-10-12  Simon Josefsson  <jas@extundo.com>
115001         * modules/gc-md5, modules/gc-hmac-md5: New files.
115003         * modules/gc (Files): Remove md5, memxor and hmac files.
115005 2005-10-12  Simon Josefsson  <jas@extundo.com>
115007         * m4/gc-pbkdf2-sha1.m4: New file.
115009         * m4/gc-hmac-sha1.m4: New file.
115011         * m4/gc-sha1: New file.
115013         * m4/hmac-sha1.m4: New file.
115015 2005-10-12  Simon Josefsson  <jas@extundo.com>
115017         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115019         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115021 2005-10-12  Simon Josefsson  <jas@extundo.com>
115023         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115024         suggested by Bruno Haible <bruno@clisp.org>.
115026 2005-10-12  Simon Josefsson  <jas@extundo.com>
115028         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115030 2005-10-12  Simon Josefsson  <jas@extundo.com>
115032         * lib/gc-pbkdf2-sha1.c: New file.
115034         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115036 2005-10-12  Simon Josefsson  <jas@extundo.com>
115038         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115040         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115042 2005-10-12  Simon Josefsson  <jas@extundo.com>
115044         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115045         GC_USE_HMAC_MD5, respectively.
115047         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115048         (gc_md5): Fix typo.
115050         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115052         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115054         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115056 2005-10-12  Bruno Haible  <bruno@clisp.org>
115058         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115059         Reported by Stepan Kasal <kasal@ucw.cz>.
115061 2005-10-11  Simon Josefsson  <jas@extundo.com>
115063         * tests/test-crc.c: New file.
115065         * modules/crc, modules/crc-tests: New files.
115067 2005-10-11  Simon Josefsson  <jas@extundo.com>
115069         * m4/crc.m4: New file.
115071 2005-10-11  Simon Josefsson  <jas@extundo.com>
115073         * lib/gc.h: Add gc_hash and gc_hash_buffer.
115075         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
115077         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
115079 2005-10-11  Simon Josefsson  <jas@extundo.com>
115081         * lib/crc.h, lib/crc.c: New files.
115083         * lib/gc.h (gc_hash_buffer): Add doc.
115085 2005-10-11  Bruno Haible  <bruno@clisp.org>
115087         * modules/c-strcasestr: New file.
115088         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
115090 2005-10-11  Bruno Haible  <bruno@clisp.org>
115092         * modules/c-strcase: New file.
115093         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
115095 2005-10-11  Bruno Haible  <bruno@clisp.org>
115097         * lib/strcasecmp.c: Include limits.h.
115098         (strcasecmp): Avoid integer overflow on exotic platforms.
115099         * lib/strncasecmp.c: Include limits.h.
115100         (strncasecmp): Avoid integer overflow on exotic platforms.
115101         Reported by Paul Eggert.
115103 2005-10-11  Bruno Haible  <bruno@clisp.org>
115105         * lib/c-strcasestr.h: New file, from GNU gettext.
115106         * lib/c-strcasestr.c: New file, from GNU gettext.
115108 2005-10-11  Bruno Haible  <bruno@clisp.org>
115110         * lib/c-strcase.h: New file, from GNU gettext.
115111         * lib/c-strcasecmp.c: New file, from GNU gettext.
115112         * lib/c-strncasecmp.c: New file, from GNU gettext.
115114 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115116         * modules/mempcpy (License): GPL -> LGPL.
115117         * modules/strchrnul (License): Likewise.
115118         * modules/sysexits (License): Likewise.
115120 2005-10-08  Simon Josefsson  <jas@extundo.com>
115122         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115124 2005-10-07  Simon Josefsson  <jas@extundo.com>
115126         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115128 2005-10-06  Simon Josefsson  <jas@extundo.com>
115130         * tests/test-hmac-md5.c: New file.
115132         * modules/hmac-md5-tests: New file.
115134         * modules/hmac-md5: New file.
115136 2005-10-06  Simon Josefsson  <jas@extundo.com>
115138         * m4/hmac-md5.m4: New file.
115140         * m4/memxor.m4: Require gl_C_RESTRICT.
115142 2005-10-06  Simon Josefsson  <jas@extundo.com>
115144         * lib/memxor.c (memxor): Avoid casts and warnings.
115146 2005-10-06  Simon Josefsson  <jas@extundo.com>
115148         * lib/hmac-md5.c: New file.
115150         * lib/hmac.h: New file.
115152 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115155         promotes to int, not unsigned int, to catch the AIX 5.3
115156         compiler bug.
115158 2005-10-05  Simon Josefsson  <jas@extundo.com>
115160         * modules/memxor: New file.
115162         * modules/iconv (Files): Move config.rpath to havelib, it is used
115163         there.
115165         * modules/havelib (Files): Add config.rpath.
115167 2005-10-05  Simon Josefsson  <jas@extundo.com>
115169         * m4/memxor.m4: New file.
115171 2005-10-05  Simon Josefsson  <jas@extundo.com>
115173         * lib/memxor.c (memxor): Fix compiler error.
115175         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115176         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115178         * lib/memxor.h, lib/memxor.c: New files.
115180         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115181         we assume all systems have it, suggested by Jim Meyering
115182         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115183         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115184         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115185         same reasons.
115187 2005-10-05  Simon Josefsson  <jas@extundo.com>
115189         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115191 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115194         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115195         needed, since the source code now assumes these .h files.
115197 2005-10-05  Derek Price  <derek@ximbiot.com>
115199         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115201 2005-10-05  Bruno Haible  <bruno@clisp.org>
115203         * modules/stdint (License): Change to LGPL.
115205 2005-10-04  Simon Josefsson  <jas@extundo.com>
115207         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115208         D. Baushke" <mdb@gnu.org>.
115210 2005-10-04  Bruno Haible  <bruno@clisp.org>
115212         * lib/verify.h (verify_true): Provide alternative definition for C++.
115214 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115216         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115217         (SSIZE_MAX): New macro, if not already defined.
115218         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115219         than 2 GiB.
115221 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115223         Sync from coreutils.
115224         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115225         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115226         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115227         ULLONG_MAX doesn't work with 2.7.2.1.
115229 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115231         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115232         From Ben Pfaff.
115234         * modules/exclude (Depends-on): Depend on verify.
115235         * modules/strtoimax (Depends-on): Likewise.
115236         * modules/utimecmp (Depends-on): Likewise.
115238 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115240         * lib/exclude.c: Include verify.h.
115241         (verify): Remove.  All callers changed to use verify.h's version.
115242         * lib/strtoimax.c: Likewise.
115243         * lib/utimecmp.c: Likewis.e
115245         Sync from coreutils.
115246         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115247         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115248         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115249         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115250         bother returning ENOSYS if settimeofday or stime fails; just let
115251         them return whatever errno they want to return.
115252         * lib/utimens.c: Include unistd.h, for dup2.
115253         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115254         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115256 2005-10-02  Jim Meyering  <jim@meyering.net>
115258         Sync from coreutils.
115259         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115260         from glibc-2.2.5 that fails for read-only files.
115262 2005-10-02  Jim Meyering  <jim@meyering.net>
115264         Sync from coreutils.
115265         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115266         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115267         `#if HAVE_CONFIG_H'.
115268         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115269         Remove AT_FDCWD test.
115270         Do not consume the fd unless successful.
115271         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115272         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115273         block, so that we don't even try to compile it if settimeofday is
115274         available.  This works around a compilation failure on OSF1 V5.1,
115275         due to stime requiring a `long int*' while tv_sec is `int'.
115277 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115279         Sync from coreutils.
115280         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115281         against `yes', rather than just testing for nonempty.
115283 2005-10-01  Simon Josefsson  <jas@extundo.com>
115285         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115286         and Darwin.
115288         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115289         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115290         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115291         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115292         Check if struct addrinfo is declared.
115294 2005-10-01  Simon Josefsson  <jas@extundo.com>
115296         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115297         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115298         AI_* and EAI_* definitions.  Protect function declarations.
115300 2005-10-01  Jim Meyering  <jim@meyering.net>
115302         Sync from coreutils.
115304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115305         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115306         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115307         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115308         in the inet and nsl libraries.  Required on Solaris 5.7.
115310 2005-10-01  Jim Meyering  <jim@meyering.net>
115312         Sync from coreutils.
115313         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115314         in the inet and nsl libraries.  Required on Solaris 5.7.
115316 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115318         * lib/getdelim.c (getdelim): Remove unused variables.
115320 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115322         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115323         so that the code works even with ancient cpp.  Portability problem
115324         with GCC 2.7.2.1 reported by Thomas M.Ott.
115326 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115328         * modules/regex (Depends-on): Add strcase.
115330         * modules/gethostname (Licence): Change from GPL to LGPL, since
115331         gethostname.c is a trivial implementation of a standard library
115332         function.
115333         * modules/poll (License): Change from GPL to LGPL, since it's
115334         derived from LGPL code.
115336 2005-09-27  Jim Meyering  <jim@meyering.net>
115338         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115339         HAVE_CONFIG_H.
115341         * lib/intprops.h (signed_type_or_expr__): Define.
115342         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115343         for unsigned types.
115345 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115347         * lib/verify.h (verify_expr): Remove, replacing with:
115348         (verify_true): New macro that returns true instead of void.
115349         (verify_type__): Remove.
115350         (verify): Use verify_true rather than verify_type__.
115352 2005-09-26  Bruno Haible  <bruno@clisp.org>
115354         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115355         is necessary.
115356         (lib_SOURCES): Remove mbchar.c.
115357         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115358         (Files): Add m4/mbrtowc.m4.
115359         * modules/mbiter: Likewise.
115360         * modules/mbuiter: Likewise.
115362 2005-09-26  Bruno Haible  <bruno@clisp.org>
115364         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115365         compile mbchar.c if they are not both present.
115366         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115367         * m4/mbiter.m4 (gl_MBITER): Likewise.
115368         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115369         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115370         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115372 2005-09-25  Jim Meyering  <jim@meyering.net>
115374         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115375         also uses socklen_t.
115377 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115379         * lib/utimens.c (ENOSYS): Define if not already defined.
115380         (futimens): Support having a null PATH if the file descriptor
115381         is nonnegative.
115383         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115384         Remove.
115385         (__attribute): Define to empty unless GCC 3.1 or later.
115386         This works around a core dump on OpenBSD 3.4, which has GCC
115387         2.95.3, which dumps core when given __attribute__(()).  It also
115388         simplifies other tests, since we really don't want to bother with
115389         worrying about which ancient version of GCC supported what.
115390         Original problem reported by Yoann Vandoorselaere, with part of
115391         the fix suggested by Derek Price.
115393 2005-09-24  Jim Meyering  <jim@meyering.net>
115395         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115396         so we can once again use a positive bitfield width of 1 -- now we
115397         don't have to explain why we were using a bitfield width of 2.
115399 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115401         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115402         and similarly for the other external symbols.  Problem reported
115403         by James Gallager.
115405         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115406         bug reported by Jim Meyering.
115408         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115410         not needed, since socklen is a prerequisite module.
115412 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115414         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115415         Problem reported by Eric Blake.
115416         (getaddrinfo): Initialize se so that it's not garbage.
115417         Redo internal storage allocation so that it doesn't make unportable
115418         assumptions about alignment.
115419         Fix a memory leak.
115421         * lib/utimens.c (futimens): Use futimesat if available.
115422         Prefer it to futimes since it doesn't have the futimes bug.
115424         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115425         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115426         Instead, declare a function that returns a pointer to an array,
115427         and use verify_type__ to declare the size of the array.
115428         Problem and germ of a solution reported by Bruno Haible.
115429         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115430         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115432 2005-09-23  Jim Meyering  <jim@meyering.net>
115434         Sync from coreutils.
115435         Correct build failure (socklen_t not defined) on at least
115436         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115439 2005-09-23  Jim Meyering  <jim@meyering.net>
115441         * modules/getaddrinfo (Depends-on): Add socklen.
115443 2005-09-23  Bruno Haible  <bruno@clisp.org>
115445         * tests/test-verify.c: New file.
115447 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115449         Sync from coreutils.
115451         * modules/argmatch (Depends-on): Add verify.
115452         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115453         unistd-safer.
115454         * modules/save-cwd (Depends-on): Likewise.
115456         * modules/openat (Files): Add lib/openat-die.c.
115457         (Depends-on): Remove error, exitfail.
115458         Add dirname.
115460         * modules/verify: New file.
115461         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115462         with "verify" module.
115464 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115466         Sync from coreutils.
115468         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115469         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115470         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115471         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115472         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115473         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115474         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115475         Don't bother checking for string.h, stdlib.h, unistd.h.
115476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115477         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115478         module's job.
115479         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115480         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115482         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115483         (gl_GETDATE): Use it.
115485         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115487 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115489         Sync from coreutils.
115491         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115492         stat-time.h.
115493         * lib/argmatch.h: Include verify.h
115494         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115495         (ARGMATCH_ASSERT): Remove; unused.
115496         * lib/canonicalize.c: Assume STDC_HEADERS.
115497         * lib/exclude.c: Include "strcase.h".
115498         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115499         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115500         and stdio-safer.h.
115501         (getusershell): Call fopen, not fopen_safer.
115502         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115503         Do not include unistd-safer.h.
115504         (save_cwd): Don't call fd_safer; no longer needed
115505         now that we include fcntl--.h.
115507         * lib/getdate.y (relative_time): New type.
115508         (RELATIVE_TIME_0): New constant.
115509         (parser_control): Use relative_time instead of doing it ourselves.
115510         (%union): Add new relative_time rel member.
115511         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115512         Now typeless.
115513         (relunit, relunit_snumber): Now of type rel.
115514         (zone, rel, relunit, get_date): Adjust to above changes.
115516         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115517         Do not include unistd-safer.h.
115518         (getloadavg): Don't call fd_safer; no longer needed
115519         now that we include fcntl--.h.
115521         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115522         (make_dir_parents): Treat ENOSYS like EEXIST.
115524         Improve quality of diagnostics on restore_cwd failure.
115525         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115526         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115527         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115528         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115529         each time through the loop.  Do not diagnose restore_cwd failure;
115530         that is the caller's job (and perhaps the caller does not care).
115532         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115533         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115534         If the file already exists but is not a directory, don't bother
115535         to try to make its parents.
115536         Close potential file descriptor leak if we can't chdir("/") (!).
115537         Don't always return true if chdir($PWD) fails; return true only
115538         if the requested action was done successfully (except for the
115539         chdir($PWD)).
115540         Don't log final directory unless we actually made it.
115541         Refactor to avoid duplicate code to fix up permissions.
115542         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115544         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115545         to make it a bit faster and (I hope) clearer.
115546         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115547         Fix bug in formats like %2N.
115549         * lib/verify.h: New file.
115551 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115553         Sync from coreutils.
115554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115556 2005-09-22  Jim Meyering  <jim@meyering.net>
115558         Sync from coreutils.
115560         * m4/lstat.m4 (gl_FUNC_LSTAT):
115561         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115562         Remove obsolete comment.
115563         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115564         * m4/xstrtod.m4: Likewise.
115566         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115568 2005-09-22  Jim Meyering  <jim@meyering.net>
115570         Sync from coreutils.
115572         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115574         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115575         the .tm_year member, since otherwise gcc-4.0 would now warn about
115576         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115578         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115579         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115581         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115582         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115583         when run in a time zone for which daylight savings time is in effect
115584         for the starting date.
115586         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115587         stop us from restricting permissions of just-created absolute-named
115588         directories.
115589         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115590         to restore initial working directory.
115591         * lib/mkdir-p.c (make_dir_parents): New parameter:
115592         different_working_dir, to tell caller if/when we change the working
115593         directory and are unable to return to the initial one.
115594         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115595         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115596         `return false'.  This fixes a bug introduced on 2004-07-30.
115598         * lib/openat.c (fdopendir): Be sure to close the supplied
115599         file descriptor before returning.  This makes our replacement
115600         implementation a little closer to Solaris's, where fdopendir
115601         ties the file descriptor to the returned DIR* pointer.
115602         * lib/openat.c (unlinkat): New function.
115603         * lib/openat.h (unlinkat): Add prototype.
115604         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115605         (openat_restore_fail): Rename from openat_restore_die.
115606         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115608         Provide an alternative to exiting immediately upon save_cwd or
115609         restore_cwd failure.  Now, an application can arrange e.g.,
115610         to perform a longjump in that case.
115611         * lib/openat.c: Include dirname.h.
115612         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115613         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115614         and openat_restore_die rather than calling error directly.
115615         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115617         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115618         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115619         define.
115621         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115622         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115623                             int utc, int nanoseconds);
115624         Background:
115625         date should not have to allocate a megabyte of virtual memory to
115626         handle a format argument like +%1048575T.  When implemented with
115627         strftime, it must allocate such a buffer, use strftime to fill it
115628         in, print it, then free it.
115629         With fprintftime, it simply prints everything and exits.
115630         With no need for memory allocation, that's one fewer way to fail.
115631         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115632         optional field width, not before, so we accept %9:z, not %:9z.
115633         (my_strftime): Be sure to use L_('x') for literals.
115635         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115636         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115637         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115638         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115639         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115640         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115641         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115642         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115643         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115644         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115645         * lib/xgethostname.c, lib/xreadlink.c:
115646         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115648         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115649         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115650         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115651         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115652         and don't include <sys/file.h>).
115654 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115656         Sync from coreutils.
115658         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115659         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115660         [!LDAV_DONE]: Avoid unused variable warning.
115662 2005-09-21  Bruno Haible  <bruno@clisp.org>
115664         * lib/unicodeio.h (unicode_to_mb): New declaration.
115666 2005-09-20  Derek Price  <derek@ximbiot.com>
115668         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115669         getaddrinfo.h.
115671 2005-09-20  Bruno Haible  <bruno@clisp.org>
115673         * gnulib-tool: Remove trailing slashes from the values specified for
115674         --source-base, --m4-base, --tests-base, --aux-dir.
115675         Suggested by Simon Josefsson <jas@extundo.com>.
115677 2005-09-20  Bruno Haible  <bruno@clisp.org>
115679         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115680         func_modules_to_filelist, func_import, func_create_testdir): Make all
115681         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115682         change when gnulib-tool is invoked in a different locale.
115684 2005-09-19  Simon Josefsson  <jas@extundo.com>
115686         * m4/socklen.m4: Fix typo.
115688 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115690         Use a consistent style for including <config.h>.
115691         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115692         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115693         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115694         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115695         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115696         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115697         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115698         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115699         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115700         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115701         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115702         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115703         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115704         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115705         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115706         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115707         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115708         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115709         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115710         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115711         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115712         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115713         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115714         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115715         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115716         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115717         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115718         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115719         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115720         lib/xstrtoumax.c, lib/yesno.c:
115721         Standardize inclusion of config.h.
115722         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115723         lib/inttostr.h:  Removed inclusion of config.h from header files.
115724         * lib/inttostr.c:  Adjusted in-tree users.
115725         * lib/timespec.h: Remove superfluous warning to include config.h.
115726         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115727         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115728         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115729         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115730         config.h with HAVE_CONFIG_H.
115732 2005-09-19  Jim Meyering  <jim@meyering.net>
115734         * modules/pathmax (License): Change to LGPL.
115736 2005-09-19  Derek Price  <derek@ximbiot.com>
115738         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115740 2005-09-19  Bruno Haible  <bruno@clisp.org>
115742         * gnulib-tool (import): Provide default for --tests-base.
115744 2005-09-19  Bruno Haible  <bruno@clisp.org>
115746         * doc/quote.texi: New file, extracted from gnulib.texi.
115747         * doc/ctime.texi: New file, extracted from gnulib.texi.
115748         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115749         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115750         * doc/gnulib.texi: Include them.
115752 2005-09-18  Bruno Haible  <bruno@clisp.org>
115754         Portability fix.
115755         * gnulib-tool (func_readlink): New function.
115756         (func_ln_if_changed): Use it.
115758 2005-09-18  Bruno Haible  <bruno@clisp.org>
115760         * gnulib-tool: Support --with-tests also with --import.
115761         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115762         (func_import): Use variables $testsbase and $inctests. Emit a
115763         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115764         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115765         SUBDIRS += $testsdir.
115766         (func_create_testdir): Update.
115768 2005-09-18  Bruno Haible  <bruno@clisp.org>
115770         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115771         instead of $dry_run.
115772         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115773         (func_ln_if_changed): Don't handle dry-run here.
115774         (func_import): In dry-run mode, detect more precisely which actions
115775         would be performed, and don't use "...ing" verbs.
115777 2005-09-18  Bruno Haible  <bruno@clisp.org>
115779         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115780         (func_import): Use join on two temporary files instead of three nested
115781         loops, in order to determine which files are new or old.
115783 2005-09-18  Bruno Haible  <bruno@clisp.org>
115785         * gnulib-tool (func_import): Comment out code that spits out the
115786         new files with --dry-run.
115788 2005-09-18  Bruno Haible  <bruno@clisp.org>
115790         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115792 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115794         * lib/stat-time.h: New file.
115795         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115796         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115797         in a different way.
115798         (timespec_cmp): New function.
115799         * lib/utimecmp.c: Include stat-time.h.
115800         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115801         members exist, not on the obsolescent ST_MTIM_NSEC.
115802         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115804 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115806         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115808 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115810         * MODULES.html.sh (File system functions): Add stat-time.
115811         * modules/stat-time: New file.
115812         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115813         is now done in a different way, by the stat-time module.
115814         * modules/utimecmp (Depends-on): Add stat-time.
115816 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115818         * m4/st_mtim.m4: Remove.  Superseded by...
115819         * m4/stat-time.m4: New file.
115820         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115821         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115823 2005-09-15  Derek Price  <derek@ximbiot.com>
115825         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115827 2005-09-15  Derek Price  <derek@ximbiot.com>
115829         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115830         * lib/regex_internal.c: Ditto, using this...
115831         (__GNUC_PREREQ): ...new macro.
115832         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115833         using...
115834         (__GNUC_PREREQ): ...this new macro.
115836         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115838 2005-09-15  Derek Price  <derek@ximbiot.com>
115839             Paul Eggert  <eggert@cs.ucla.edu>
115841         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115842         changes, consolidating in...
115843         * lib/regex_internal.h: ...this file.
115845 2005-09-13  Jim Meyering  <jim@meyering.net>
115847         * lib/canon-host.c: Filter through gnu indent and reword comments
115848         slightly.
115849         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115851 2005-09-13  Derek Price  <derek@ximbiot.com>
115853         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115854         failure.
115855         Reported by Jim Meyering  <jim@meyering.net>.
115857 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115859         * lib/base64.c: Typo.
115860         (base64_encode): Put b64str in initialized data section.
115862 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115864         Merge glibc and coreutils changes into gnulib, plus a few
115865         extra fixes.
115866         * lib/md5.c: Use #error rather than a string.
115867         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115868         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115869         (__attribute__): Define to empty for non recent-GCC.
115870         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115871         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115872         Renamed from their non-__ counterparts, with new macros replacing
115873         them if not _LIBC.  Add __THROW attribute.
115874         (rol): Remove.
115875         (struct md5_ctx): Align buffer if using GCC.
115876         * lib/sha1.h (struct sha1_ctx): Likewise.
115877         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115878         The old name was backwards.
115879         (NOTSWAP): Remove; not used.
115880         (rol): New macro, moved here from md5.h.
115881         (sha1_process_block): Remove a FIXME that doesn't make sense.
115883 2005-09-12  Derek Price  <derek@ximbiot.com>
115885         Return usable errors from canon-host.
115886         * lib/canon-host.h: New file.
115887         * lib/canon-host.c (canon_host): Wrap...
115888         (canon_host_r): ...this new function, which now relies exclusively on
115889         getaddrinfo.
115890         (ch_strerror): New function.
115891         (last_cherror): New global.
115892         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115893         interface.
115894         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115895         void *.
115896         (freeaddrinfo): Free ai->ai_canonname when set.
115898 2005-09-12  Derek Price  <derek@ximbiot.com>
115900         Make canon-host require getaddrinfo.
115901         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115902         AC_LIBSOURCE canon-host.h.  Call...
115903         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115904         gl_GETADDRINFO.
115905         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115907 2005-09-12  Derek Price  <derek@ximbiot.com>
115909         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115910         LGPL.
115911         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115913 2005-09-12  Derek Price  <derek@ximbiot.com>
115915         * lib/gai_strerror.c: Include config.h when available.  Include
115916         getaddrinfo.h before other headers to test interface.
115917         Reported by Larry Jones <lawrence.jones@ugs.com>.
115919 2005-09-12  Derek Price  <derek@ximbiot.com>
115920             Paul Eggert  <eggert@cs.ucla.edu>
115922         * modules/glob (Files): Add glob-libc.h.
115924 2005-09-12  Derek Price  <derek@ximbiot.com>
115925             Paul Eggert  <eggert@cs.ucla.edu>
115927         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115928         glob_.h, glob-libc.h.
115929         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115931 2005-09-12  Derek Price  <derek@ximbiot.com>
115932             Paul Eggert  <eggert@cs.ucla.edu>
115934         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115935         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115936         protecting things that should be done only in gnulib contexts.
115937         * lib/glob_.h: New file, containing only the glob things needed for
115938         gnulib.
115939         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115940         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115941         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115942         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115943         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115944         and to respect the namespace rules better.
115946 2005-09-08  Simon Josefsson  <jas@extundo.com>
115948         * modules/socklen: New file.
115950 2005-09-08  Simon Josefsson  <jas@extundo.com>
115952         * m4/socklen.m4: New file.
115954 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115956         * modules/utimens (Files): Add m4/utimbuf.m4, since
115957         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115958         Reported by Sergey Poznyakoff.
115960 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115962         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115963         definitions, since that's the preferred style in glibc.
115964         Fix a minor spacing issue, and update copyright notice to match
115965         glibc's.
115967 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115969         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
115971 2005-09-06  Simon Josefsson  <jas@extundo.com>
115973         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
115974         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
115976 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115978         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
115979         warning.
115981 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115983         * config/srclist.txt: Add glibc bug 1302.
115985 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
115987         Change bitset word type from unsigned int to unsigned long int,
115988         as this has better performance on typical 64-bit hosts.
115989         Port bitset code to hosts with unusual word sizes.
115990         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
115991         (build_collating_symbol):
115992         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
115993         argument is a bitset.  This is merely a style issue, but it makes
115994         it clearer that an entire array is expected.
115995         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
115996         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
115997         Port to the case where bitset_word is not the same as unsigned int.
115998         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115999         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116000         Likewise.
116001         * lib/regexec.c (check_dst_limits_calc_pos_1,
116002         check_subexp_matching_top):
116003         (build_trtable, group_nodes_into_DFAstates):
116004         Likewise.
116005         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116006         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116007         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116008         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116009         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116010         * lib/regcomp.c (optimize_subexps, lower_subexp):
116011         Work even if bitset_word has holes in its bitwise representation.
116012         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116013         * lib/regexec.c (check_dst_limits_calc_pos_1,
116014         check_subexp_matching_top):
116015         Likewise.
116016         * lib/regex_internal.c (re_string_reconstruct):
116017         Don't assume UCHAR_MAX == 255.
116018         * lib/regex_internal.h (bitset_set_all): Likewise.
116019         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116020         All uses changed.
116021         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116022         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116023         All uses changed.
116024         (BITSET_WORD_MAX): New macro.
116025         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116026         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116027         (bitset_empty, bitset_copy):
116028         Prefer sizeof (bitset) to multiplying it out ourselves.
116029         (bitset_not_merge): Remove; unused.
116030         (bitset_contain): Return bool, not unsigned int with one bit on.
116031         All callers changed.
116032         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116033         alignment than re_node_set; do this by defining a new internal
116034         type struct dests_alloc and using it to allocate memory.
116036 2005-09-05  Bruno Haible  <bruno@clisp.org>
116038         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116039         links.
116041 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116043         * modules/size_max (Makefile.am): Add size_max.h
116045 2005-09-04  Derek Price  <derek@ximbiot.com>
116047         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116049 2005-09-03  Simon Josefsson  <jas@extundo.com>
116051         * gnulib-tool: Fix typo.
116053 2005-09-03  Simon Josefsson  <jas@extundo.com>
116055         * config/srclist.txt: Add glibc bug 1293.
116057 2005-09-03  Derek Price  <derek@ximbiot.com>
116059         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116060         From Larry Jones <lawrence.jones@ugs.com>.
116062 2005-09-02  Simon Josefsson  <jas@extundo.com>
116064         * modules/socklen: New file.
116066 2005-09-02  Simon Josefsson  <jas@extundo.com>
116068         * modules/havelib: New module.
116070         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116071         Use havelib.
116073 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116075         Check for arithmetic overflow when calculating sizes, to prevent
116076         some buffer-overflow issues.  These patches are conservative, in the
116077         sense that when I couldn't determine whether an overflow was possible,
116078         I inserted a run-time check.
116079         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
116080         macros.
116081         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
116082         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
116083         (re_xnrealloc, re_x2nrealloc): New inline functions.
116084         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
116085         parse_bracket_exp):
116086         (build_equiv_class, build_charclass): Check for arithmetic overflow
116087         in size expression calculations.
116088         * lib/regex_internal.c (re_string_realloc_buffers):
116089         (build_wcs_upper_buffer, re_node_set_add_intersect):
116090         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
116091         (re_dfa_add_node, register_state): Likewise.
116092         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
116093         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
116094         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
116095         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
116097 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
116099         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116100         m4/ulonglong.m4.  Problem reported by Martin Lambers.
116102 2005-09-02  Bruno Haible  <bruno@clisp.org>
116104         Support for lib vs. lib64 distinction on biarch platforms.
116105         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
116106         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
116107         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116109 2005-09-02  Bruno Haible  <bruno@clisp.org>
116111         * gnulib-tool (import): In the other first-use case, provide defaults
116112         as well.
116114 2005-09-02  Bruno Haible  <bruno@clisp.org>
116116         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116117         patches not yet found in the latest gettext release.
116119 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116121         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116122         to avoid a collision with bits/local_lim.h in glibc.
116123         All uses changed.  Problem reported by Dmitry V. Levin in
116124         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116126         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116127         bugs in int versus size_t comparisons.
116128         (re_string_context_at): Fix bug where the code assumed that
116129         Idx is signed.
116131         Use bool where appropriate.
116132         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116133         All callers changed.
116134         (calc_eclosure_iter): Likewise, for ROOT arg.
116135         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116136         (build_charclass_op): Likewise, for NON_MATCH arg.
116137         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116138         (re_string_construct_common): Likewise, for ICASE arg.
116139         * lib/regexec.c (re_search_2_stub, re_search_stub):
116140         Likewise, for RET_LEN arg.
116141         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116142         (set_regs): Likewise, for FL_BACKTRACK arg.
116143         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116144         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116145         (calc_eclosure_iter, parse_bracket_exp):
116146         Use bool for internal variables that are booleans.
116147         * lib/regexec.c (re_search_internal, check_matching,
116148         proceed_next_node):
116149         (set_regs, build_sifted_states, sift_states_bkref):
116150         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116151         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116152         (find_collation_sequence_value):
116153         Likewise.
116154         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116155         (re_node_set_compare):
116156         Return bool, not int. All callers changed.
116157         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116158         (build_trtable, check_node_accept): Likewise.
116159         * lib/regex_internal.h: Include stdbool.h.
116161         Fix bugs uncovered when converting to bool.
116162         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116163         failure instead of charging ahead blindly.
116164         * lib/regex_internal.c (register_state): Likewise.
116165         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116166         for freeing internal storage.
116167         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116168         bitset pieces used as boolean, to avoid undefined behavior
116169         on hosts that do int overflow checking.
116171 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116173         * config/srclist.txt: Add glibc bugs 1285-1287.
116175 2005-09-01  Jim Meyering  <jim@meyering.net>
116177         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116178         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116179         Require gl_STAT_MACROS, too.
116181 2005-09-01  Bruno Haible  <bruno@clisp.org>
116183         * gnulib-tool (import): In the first-use case, provide defaults.
116185 2005-09-01  Bruno Haible  <bruno@clisp.org>
116187         * gnulib-tool (func_import): Remove the .tmp files.
116189 2005-09-01  Bruno Haible  <bruno@clisp.org>
116191         * gnulib-tool (func_import): Fix handling of symbolic links.
116193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116195         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116196         old glibc regex code mishandles strings longer than 2**31 bytes.
116197         This patch fixes this when the regex code is used in gnulib
116198         (i.e., outside glibc).
116200         This patch should not affect the use of the regex code inside
116201         glibc.  No doubt this problem also needs to be handled for glibc
116202         as well, but the result will be an incompatible change to the
116203         glibc ABI, and the old ABI will have to be supported too.  That
116204         can be the subject for another patch.
116206         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116207         governing whether the rest of this patch is active.  By default,
116208         the macro is disabled and the patch has no effect.
116209         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116210         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116211         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116212         (re_match_2, re_set_registers): Use the new types.
116213         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116214         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116215         New macros.
116216         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116217         (re_string_context_at, bin_tree_t, re_dfastate_t):
116218         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116219         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116220         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116221         (re_string_char_size_at, re_string_wchar_at):
116222         (re_string_elem_size_at):
116223         Use the new types and macros to port to 64-bit hosts.
116224         Use unsigned types for internal values, so that the code
116225         mostly works even for arrays larger than SSIZE_MAX.
116226         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116227         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116228         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116229         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116230         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116231         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116232         (calc_inveclosure, parse_dup_op, build_range_exp):
116233         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116234         (fetch_number, create_token_tree, mark_opt_subexp):
116235         Likewise.
116236         * lib/regex_internal.c (re_string_construct_common,
116237         create_ci_newstate):
116238         (create_cd_newstate, re_string_allocate, re_string_construct):
116239         (re_string_realloc_buffers, build_wcs_upper_buffer):
116240         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116241         (re_string_reconstruct, re_string_peek_byte_case):
116242         (re_string_fetch_byte_case, re_string_context_at):
116243         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116244         (re_node_set_init_copy, re_node_set_add_intersect):
116245         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116246         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116247         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116248         (re_acquire_state, re_acquire_state_context, register_state):
116249         Likewise.
116250         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116251         search_cur_bkref_entry):
116252         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116253         (re_search_internal, re_search_2_stub, re_search_stub)
116254         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116255         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116256         (update_cur_sifted_state, check_dst_limits):
116257         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116258         (check_subexp_limits, sift_states_bkref, merge_state_array):
116259         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116260         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116261         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116262         (expand_bkref_cache, check_node_accept_bytes):
116263         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116264         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116265         (acquire_init_state_context, check_halt_node_context):
116266         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116267         (sift_states_backward, clean_state_log_if_needed):
116268         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116269         (find_recover_state, transit_state_sb, transit_state_mb):
116270         (transit_state_bkref, build_trtable, match_ctx_clean):
116271         Likewise.
116272         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116273         to work around an assumption that REG_MISSING is negative.
116275         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116276         (seek_collating_symbol_entry) [defined _LIBC]:
116277         (lookup_collation_sequence_value) [defined _LIBC]:
116278         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116279         Use prototypes rather than old-style function definitions.
116280         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116281         (transit_state_sb) [0]:
116282         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116284         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116285         rm_eo.
116287         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116288         (optimize_subexps, lower_subexp):
116289         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116290         since the signed shift might overflow.  Use 1u<<31 instead.
116291         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116292         Likewise.
116293         * lib/regexec.c (check_dst_limits_calc_pos_1,
116294         check_subexp_matching_top): Likewise.
116296         * lib/regcomp.c (optimize_subexps, lower_subexp):
116297         Use CHAR_BIT rather than 8, for clarity.
116298         * lib/regexec.c (check_dst_limits_calc_pos_1):
116299         (check_subexp_matching_top): Likewise.
116300         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116301         have to worry about portability issues when shifting it left.
116302         Remove no-longer-needed test for table_size > 0.
116303         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116304         in a word, as the resulting behavior is undefined.
116305         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116306         in one case, a <= should have been an <, and in another case the
116307         whole test was missing.
116308         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116309         the standard name CHAR_BIT.
116310         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116311         this is not true on one's complement and signed-magnitude hosts.
116313         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116314         next_last_offset.
116315         (struct re_dfa_t): Remove unused member states_alloc.
116316         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116318 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116320         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116321         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116322         and large-file glibc and in 32-bit large-file Solaris.
116324 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116326         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116327         lengths fit in regoff_t; this isn't true if regoff_t is the same
116328         width as size_t.
116329         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116330         (= START + RANGE) instead of RANGE.  This avoids overflow
116331         problems when regoff_t is the same width as size_t.
116332         All callers changed.
116333         (re_search_2_stub): Check for overflow when adding the
116334         sizes of the two strings.
116335         (re_search_stub): Check for overflow when adding START
116336         to RANGE; if it occurs, substitute the extreme value.
116338 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116340         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116342 2005-08-31  Jim Meyering  <jim@meyering.net>
116344         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116345         a pointer-to-const.
116346         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116347         (register_state): Likewise.
116348         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116349         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116350         (group_nodes_into_DFAstates): Likewise.
116352 2005-08-31  Jim Meyering  <jim@meyering.net>
116354         * check-module: Add a FIXME comment.
116356 2005-08-31  Eric Blake  <ebb9@byu.net>
116358         * modules/unistd-safer (Files): Add unistd--.h.
116359         * modules/stdio-safer (Files): Add stdio--.h.
116361 2005-08-31  Derek Price  <derek@ximbiot.com>
116363         * lib/getdelim.c (getdelim): Return EOF on EOF.
116364         Reported by Larry Jones <lawrence.jones@ugs.com>.
116366 2005-08-31  Bruno Haible  <bruno@clisp.org>
116368         Avoid unnecessary diffs in the generated lib/Makefile.am.
116369         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116370         the generated files.
116371         (func_import): Don't set cmd.
116373 2005-08-31  Bruno Haible  <bruno@clisp.org>
116375         * lib/strstr.c: Include <stddef.h>, for NULL.
116376         * lib/strcasestr.c: Likewise.
116377         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116379 2005-08-31  Bruno Haible  <bruno@clisp.org>
116381         * gnulib-tool: New option --macro-prefix.
116382         (func_import): Use macro_prefix.
116383         (import): Handle option --macro-prefix.
116385 2005-08-31  Bruno Haible  <bruno@clisp.org>
116387         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116388         Also use new variables cached_lgpl, cached_libtool.
116390 2005-08-31  Bruno Haible  <bruno@clisp.org>
116392         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116393         always instantiating them.
116395 2005-08-31  Bruno Haible  <bruno@clisp.org>
116397         * gnulib-tool (func_import): Read the previous cached settings
116398         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116399         earlier added by gnulib but are now dropped. Warn when a gnulib file
116400         overwrites a non-gnulib file.
116402 2005-08-31  Bruno Haible  <bruno@clisp.org>
116404         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116405         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116406         projects that don't keep autogenerated files in CVS. Put into
116407         actioncmd only the specified modules, not the transitive closure.
116409 2005-08-31  Bruno Haible  <bruno@clisp.org>
116411         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116412         Create directories that shall be filled.
116413         (import): Don't look for gl_* macros in configure.ac. Recurse across
116414         all directories containing a gnulib-cache.m4 files, if meaningful.
116416 2005-08-31  Bruno Haible  <bruno@clisp.org>
116418         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116419         (import): Set seen_libtool when we see gl_LIBTOOL.
116421 2005-08-31  Bruno Haible  <bruno@clisp.org>
116423         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116424         declaration macro definitions from generated gnulib.m4.
116426 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116428         * lib/iconvme.h: Add prototype for iconv_alloc.
116430 2005-08-29  Simon Josefsson  <jas@extundo.com>
116432         * lib/iconvme.c: Fix errno.
116434 2005-08-29  Bruno Haible  <bruno@clisp.org>
116436         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116437         that it works when the directory contains spaces.
116439 2005-08-29  Bruno Haible  <bruno@clisp.org>
116441         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116443 2005-08-29  Bruno Haible  <bruno@clisp.org>
116445         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116446         Emit more advice.
116448 2005-08-29  Bruno Haible  <bruno@clisp.org>
116449         and Stepan Kasal  <kasal@ucw.cz>
116451         * check-module: If more parameters are given, check each of them
116452         separately; add more exceptions, as noted by Jim Meyering.
116453         (check_module): New procedure.
116454         (%exempt_header): Now contains all exceptions.
116456 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116458         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116460 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116462         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116464 2005-08-28  Bruno Haible  <bruno@clisp.org>
116466         * m4/gnulib-tool.m4: New file.
116468 2005-08-27  Jim Meyering  <jim@meyering.net>
116470         * modules/unistd-safer (Files): Add pipe-safer.c.
116471         * modules/fcntl-safer (Files): Add creat-safer.c.
116473 2005-08-27  Jim Meyering  <jim@meyering.net>
116475         * m4/stdlib-safer.m4: New file.  From coreutils.
116476         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116477         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116478         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116479         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116480         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116482 2005-08-27  Jim Meyering  <jim@meyering.net>
116484         * lib/fopen-safer.c: Merge minor changes from coreutils.
116485         * lib/dup-safer.c: Likewise.
116486         * lib/fd-safer.c: Likewise.
116488         Merge from coreutils.
116489         * lib/stdio--.h: New file.
116490         * lib/stdlib--.h: New file.
116491         * lib/mkstemp-safer.c: New file.
116493         GNU tar needs these.
116494         * lib/pipe-safer.c: New file.
116495         * lib/creat-safer.c: New file.
116496         * lib/fcntl--.h (creat): Define to creat_safer.
116497         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116498         * lib/unistd--.h (pipe): Define to pipe_safer.
116499         * lib/unistd-safer.h: Declare pipe_safer.
116501 2005-08-26  Simon Josefsson  <jas@extundo.com>
116503         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116504         Haible <bruno@clisp.org>.
116506 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116508         * lib/regex_internal.h: Remove all references to
116509         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116510         or better.
116511         (bitset_not, bitset_merge, bitset_not_merge):
116512         (bitset_mask, re_string_allocate, re_string_construct):
116513         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116514         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116515         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116516         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116517         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116518         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116519         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116520         (re_acquire_state_context):
116521         Remove unnecessary forward decls.
116522         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116523         Put __attribute at function definition,
116524         now that the function decl has been removed.
116525         * lib/regex_internal.c (re_string_peek_byte_case):
116526         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116527         Likewise.
116529 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116531         * m4/regex.m4: Add AC_PREREQ(2.50).
116532         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116534 2005-08-25  Simon Josefsson  <jas@extundo.com>
116536         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116537         __fsetlocking.
116539 2005-08-25  Simon Josefsson  <jas@extundo.com>
116541         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116542         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116543         GLIBC specific code.
116545 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116547         Make regex safe for g++.  This fixes one real bug (an "err"
116548         that should have been "*err").  g++ problem reported by
116549         Sam Steingold.
116550         * lib/regex_internal.h (re_calloc): New macro, consistent with
116551         re_malloc etc.  All callers of calloc changed to use re_calloc.
116552         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116553         not int.  All callers changed.
116554         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116555         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116556         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116557         (find_recover_state): Change "err" to "*err"; this fixes what
116558         appears to be a real bug.
116559         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116560         versus int.
116562 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116564         * modules/regex (Depends-on): Add malloc, since the code
116565         assumes that !malloc(0) means failure.
116567 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116569         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116571         alloca modernization/simplification for regex.
116572         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116573         needs to be at the start of the file, and can be moved into
116574         regex_internal.h and simplified.
116575         * lib/regex_internal.h: Include <alloca.h>.
116576         (__libc_use_alloca) [!defined _LIBC]: New macro.
116577         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116578         now works outside glibc.
116580 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116582         * config/srclist.txt: Add glibc bugs 1241, 1245.
116584 2005-08-25  Jim Meyering  <jim@meyering.net>
116586         * lib/open-safer.c: Include <config.h>.
116587         Otherwise, we'd lose LARGEFILE support in any file using
116588         e.g. "fcntl--.h"
116590 2005-08-25  Bruno Haible  <bruno@clisp.org>
116592         * m4/minmax.m4: Require autoconf 2.52.
116593         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116594         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116595         alternatives of translit over the alphabet.
116596         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116598 2005-08-24  Simon Josefsson  <jas@extundo.com>
116600         * tests/test-getpass.c: New file.
116602 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116604         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116605         for GNU regex features.
116607 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116609         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116610         * lib/regex.h (regerror): Likewise.
116612         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116613         requires this.  (The code never needed it.)
116615         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116616         All uses of recently-renamed identifiers changed to use the new,
116617         POSIX-compliant names.  The code will build and run just fine
116618         without these changes, but it's better to eat our own dog food
116619         and use the standard-conforming names.
116621         * lib/regex.h: Fix a multitude of POSIX name space violations.
116622         These changes have an effect only for programs that define
116623         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116624         do not change anything for programs compiled in the normal way.
116625         Also, there is no effect on the ABI.
116627         (_REGEX_SOURCE): New macro.
116628         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116629         defined and _GNU_SOURCE is not; this fixes a name space violation.
116631         Rename the following macros to obey POSIX requirements.
116632         The old names are still visible as macros if _REGEX_SOURCE is defined.
116633         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116634         RE_BACKSLASH_ESCAPE_IN_LISTS.
116635         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116636         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116637         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116638         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116639         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116640         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116641         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116642         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116643         (REG_INTERVALS): renamed from RE_INTERVALS.
116644         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116645         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116646         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116647         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116648         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116649         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116650         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116651         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116652         RE_UNMATCHED_RIGHT_PAREN_ORD.
116653         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116654         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116655         (REG_DEBUG): renamed from RE_DEBUG.
116656         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116657         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116658         unusual, since we can't clash with the POSIX REG_ICASE.
116659         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116660         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116661         (REG_NO_SUB): renamed from RE_NO_SUB.
116662         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116663         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116664         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116665         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116666         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116667         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116668         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116669         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116670         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116671         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116672         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116673         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116674         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116675         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116676         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116677         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116678         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116679         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116680         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116681         (REG_FIXED): Renamed from REGS_FIXED.
116682         (REG_NREGS): Renamed from RE_NREGS.
116684         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116685         of other REG_* macros, since POSIX says the user is allowed to
116686         #undef these macros selectively.
116688         (reg_errcode_t): Update comment stating what other tables need
116689         to be consistent.
116691         Rename the following enum values to obey POSIX requirements.
116692         The old names are still visible as macros.
116693         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116694         is not defined, since GNU is supposed to be a superset of POSIX as
116695         much as possible, and since we want reg_errcode_t to be a signed
116696         type for implementation consistency.
116697         (_REG_NOERROR): Renamed from REG_NOERROR.
116698         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116699         (_REG_BADPAT): Renamed from REG_BADPAT.
116700         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116701         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116702         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116703         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116704         (_REG_EBRACK): Renamed from REG_EBRACK.
116705         (_REG_EPAREN): Renamed from REG_EPAREN.
116706         (_REG_EBRACE): Renamed from REG_EBRACE.
116707         (_REG_BADBR): Renamed from REG_BADBR.
116708         (_REG_ERANGE): Renamed from REG_ERANGE.
116709         (_REG_ESPACE): Renamed from REG_ESPACE.
116710         (_REG_BADRPT): Renamed from REG_BADRPT.
116711         (_REG_EEND): Renamed from REG_EEND.
116712         (_REG_ESIZE): Renamed from REG_ESIZE.
116713         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116714         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116715         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116716         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116717         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116719         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116720         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116721         changed.  But support the old name if the new one is not defined
116722         and if _REGEX_SOURCE.
116724         Change the following member names in struct re_pattern_buffer.
116725         The old names are still supported if !_REGEX_SOURCE.
116726         The new names are always supported, regardless of _REGEX_SOURCE.
116727         (re_buffer): Renamed from buffer.
116728         (re_allocated): Renamed from allocated.
116729         (re_used): Renamed from used.
116730         (re_syntax): Renamed from syntax.
116731         (re_fastmap): Renamed from fastmap.
116732         (re_translate): Renamed from translate.
116733         (re_can_be_null): Renamed from can_be_null.
116734         (re_regs_allocated): Renamed from regs_allocated.
116735         (re_fastmap_accurate): Renamed from fastmap_accurate.
116736         (re_no_sub): Renamed from no_sub.
116737         (re_not_bol): Renamed from not_bol.
116738         (re_not_eol): Renamed from not_eol.
116739         (re_newline_anchor): Renamed from newline_anchor.
116741         Change the following member names in struct re_registers.
116742         The old names are still supported if !_REGEX_SOURCE.
116743         The new names are always supported, regardless of _REGEX_SOURCE.
116744         (rm_num_regs): Renamed from num_regs.
116745         (rm_start): Renamed from start.
116746         (rm_end): Renamed from end.
116748         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116749         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116750         Prepend __ to parameter names.
116752         Undo yesterday's changes.
116754 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116756         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116757         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116758         lib/regex.c.
116760 2005-08-24  Jim Meyering  <jim@meyering.net>
116762         Sync from coreutils.
116763         * m4/fcntl-safer.m4: New file.
116765         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116766         and object files for this module.
116768 2005-08-24  Jim Meyering  <jim@meyering.net>
116770         Sync from coreutils.
116771         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116773 2005-08-24  Jim Meyering  <jim@meyering.net>
116775         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116776         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116778 2005-08-24  Jim Meyering  <jim@meyering.net>
116780         * modules/fcntl-safer: New module.
116781         * modules/fts (Depends-on): Add fcntl-safer.
116782         * MODULES.html.sh (File descriptor based Input/Output):
116783         Add fcntl-safer.
116785 2005-08-24  Bruno Haible  <bruno@clisp.org>
116787         Support for unit test modules.
116788         * modules/README: Mention tests modules.
116789         * modules/TEMPLATE-TESTS: New file.
116790         * gnulib-tool: New options --extract-tests-module, --with-tests and
116791         --tests-base (unused for the moment).
116792         (testsbase, inctests): New variables.
116793         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116794         (func_verify_module): Exclude TEMPLATE-TESTS.
116795         (func_verify_nontests_module, func_verify_tests_module): New functions.
116796         (func_get_dependencies): Add implicit dependency for tests modules.
116797         (func_get_tests_module): New function.
116798         (func_modules_transitive_closure): When --with-tests was specified,
116799         include the unit tests as well, unless explicitly avoided.
116800         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116801         (func_emit_tests_Makefile_am): New function.
116802         (func_create_testdir): When --with-tests was specified, emit a
116803         tests/ directory.
116804         * MODULES.html.sh (Future developments): Update.
116806 2005-08-24  Bruno Haible  <bruno@clisp.org>
116808         * modules/tls-tests: New file.
116809         * tests/test-tls.c: New file, from GNU gettext.
116811 2005-08-24  Bruno Haible  <bruno@clisp.org>
116813         * modules/lock-tests: New file.
116814         * tests/test-lock.c: New file, from GNU gettext.
116816 2005-08-24  Bruno Haible  <bruno@clisp.org>
116818         * lib/lock.h: Add multiple inclusion guard.
116819         * lib/tls.h: Add multiple inclusion guard.
116821 2005-08-24  Bruno Haible  <bruno@clisp.org>
116823         * gnulib-tool: Add support for the --aux-dir option to
116824         --create-testdir, --create-megatestdir, --test, --megatest.
116825         (func_create_testdir, func_create_megatestdir): Optionally emit a
116826         AC_CONFIG_AUX_DIR directive.
116827         (create-testdir, create-megatestdir, test, megatest): Provide a
116828         default value for $auxdir.
116830 2005-08-24  Bruno Haible  <bruno@clisp.org>
116832         * gnulib-tool (import): Use compound statement instead of subshell
116833         where possible.
116835 2005-08-24  Bruno Haible  <bruno@clisp.org>
116837         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116839 2005-08-24  Bruno Haible  <bruno@clisp.org>
116841         * gnulib-tool (func_version): Update.
116843 2005-08-24  Bruno Haible  <bruno@clisp.org>
116845         * gnulib-tool (func_import, func_create_testdir,
116846         func_create_megatestdir): Quote all autoconf macro arguments.
116848 2005-08-24  Bruno Haible  <bruno@clisp.org>
116850         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116851         option --force, because --force causes the aclocal.m4 of each
116852         subdirectory to be newer than the corresponding config.h.in.
116854 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116856         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116857         All contents moved to gl_REGEX.
116858         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116859         assume that it does.
116861 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116863         * lib/regex.h (REG_NOSYS)
116864         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116865         Define, since POSIX requires it as of 2001.
116866         (_REG_ENOSYS)
116867         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116868         New private symbol, used to keep the enum signed in all cases.
116869         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116870         Youngman in
116871         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116873         * lib/regex_internal.c (re_string_skip_chars, register_state):
116874         (calc_state_hash):
116875         Remove forward decls; no longer needed now that we use prototypes.
116876         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116877         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116878         (clean_state_log_if_needed): Likewise.
116880 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116882         * config/srclist.txt: Add glibc bugs 1231-1233.
116884 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116886         Fix problems reported by Sam Steingold in
116887         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116888         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116889         assumed that reg_errcode_t is a signed type, which is not
116890         necessarily true if _XOPEN_SOURCE is not defined.
116891         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116892         since some compilers warn about it otherwise.
116894 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116896         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116897         (init_word_char, create_initial_state, duplicate_node_closure):
116898         (fetch_token, peek_token_bracket, build_range_exp):
116899         (build_collating_symbol): Remove forward decls; no longer needed
116900         now that we use prototypes.
116902         * lib/regcomp.c:
116903         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116904         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116905         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116906         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116907         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116908         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116909         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116910         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116911         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116912         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116913         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116914         (build_charclass, build_charclass_op, fetch_number, create_tree):
116915         (create_token_tree, mark_opt_subexp, duplicate_tree):
116916         Use prototypes rather than old-style definitions.
116918         * lib/regex_internal.c:
116919         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116920         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116921         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116922         (re_string_reconstruct, re_string_peek_byte_case):
116923         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116924         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116925         (re_node_set_init_copy, re_node_set_add_intersect):
116926         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116927         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116928         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116929         (re_acquire_state, re_acquire_state_context, register_state):
116930         (create_ci_newstate, create_cd_newstate, free_state):
116931         Likewise.
116932         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116933         re_search_2):
116934         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116935         (re_search_internal, prune_impossible_nodes):
116936         (acquire_init_state_context, check_matching, static):
116937         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116938         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116939         (update_regs, sift_states_backward, build_sifted_states):
116940         (clean_state_log_if_needed, merge_state_array):
116941         (update_cur_sifted_state, add_epsilon_src_nodes):
116942         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116943         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116944         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116945         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116946         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116947         (check_arrival, check_arrival_add_next_nodes):
116948         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116949         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116950         (check_node_accept_bytes, check_node_accept, extend_buffers):
116951         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116952         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116953         (sift_ctx_init):
116954         Likewise.
116956         * lib/regex_internal.h:
116957         (re_string_allocate, re_string_construct, re_string_reconstruct):
116958         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116959         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116960         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116961         (re_string_context_at, re_string_peek_byte_case):
116962         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116963         is defined, since we now use prototypes always.
116965         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116966         C89 or better.  All uses removed.
116968 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116970         * config/srclist.txt: Add glibc bugs 1220-1227.
116972 2005-08-20  Jim Meyering  <jim@meyering.net>
116974         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
116975         of unused local, dfa.
116977 2005-08-20  Bruno Haible  <bruno@clisp.org>
116979         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
116981 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116983         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
116984         (re_node_set_insert_last, re_dfa_add_node):
116985         Rename local variables to avoid GCC shadowing warnings.
116987 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116989         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
116990         [defined lint]: Suppress bogus uninitialized-variable warnings.
116992         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
116993         and let the caller return REG_ESPACE if out of space.  This
116994         removes an uninitialied-variable warning with GCC 4.0.1, and also
116995         avoids taking the address of a local variable.  All callers
116996         changed.
116998 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117000         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117001         $LIBCSRC/posix/regexec.c.
117002         Add glibc bug 1217 for regcomp.c.
117004 2005-08-19  Jim Meyering  <jim@meyering.net>
117006         * lib/regexec.c (proceed_next_node): Redo local variables to
117007         avoid GCC shadowing warnings.
117009 2005-08-18  Bruno Haible  <bruno@clisp.org>
117011         * lib/strstr.c (strstr): Fix return value in multibyte case.
117012         * lib/strcasestr.c (strcasestr): Likewise.
117014 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117016         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117018 2005-08-17  Jim Meyering  <jim@meyering.net>
117020         Make the %s format (seconds since the epoch) work for a negative
117021         number and when used with a zero-padded field width, e.g. %015s.
117023         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117024         label so that it precedes the code to set `digits'.  Otherwise,
117025         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117026         print `00-22'.  Now, it prints `-0022', as it should.
117028 2005-08-17  Bruno Haible  <bruno@clisp.org>
117030         * modules/strstr (Files): Add m4/mbrtowc.m4.
117031         (Depends-on): Add mbuiter.
117033 2005-08-17  Bruno Haible  <bruno@clisp.org>
117035         * modules/strcasestr: New file.
117036         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117037         strcasestr.
117039 2005-08-17  Bruno Haible  <bruno@clisp.org>
117041         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117043 2005-08-17  Bruno Haible  <bruno@clisp.org>
117045         * modules/mbuiter: New file.
117046         * MODULES.html.sh (Extended multibyte and wide character utilities):
117047         Add mbuiter.
117049 2005-08-17  Bruno Haible  <bruno@clisp.org>
117051         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117052         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117054 2005-08-17  Bruno Haible  <bruno@clisp.org>
117056         * m4/strcasestr.m4: New file.
117058 2005-08-17  Bruno Haible  <bruno@clisp.org>
117060         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117061         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117063 2005-08-17  Bruno Haible  <bruno@clisp.org>
117065         * lib/strcasestr.h: New file.
117066         * lib/strcasestr.c: New file.
117068 2005-08-17  Bruno Haible  <bruno@clisp.org>
117070         * lib/strcasecmp.c: Use mbuiter.h.
117072 2005-08-17  Bruno Haible  <bruno@clisp.org>
117074         * lib/mbuiter.h: New file.
117076 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
117078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
117079         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
117080         and gl_GETOPT are both invoked via different paths (as happens
117081         with GNU tar CVS because it uses both argp and getopt), the former
117082         wins.
117084 2005-08-16  Bruno Haible  <bruno@clisp.org>
117086         * modules/tls: New file.
117087         * MODULES.html.sh (Multithreading): Add tls.
117089 2005-08-16  Bruno Haible  <bruno@clisp.org>
117091         * modules/strnlen1: New file.
117092         * MODULES.html.sh (String handling): Add strnlen1.
117094 2005-08-16  Bruno Haible  <bruno@clisp.org>
117096         * modules/strcase (Files): Add m4/mbrtowc.m4.
117097         (Depends-on): Add strnlen1, mbchar.
117099 2005-08-16  Bruno Haible  <bruno@clisp.org>
117101         * modules/mbiter: New file.
117102         * MODULES.html.sh (Extended multibyte and wide character utilities):
117103         Add mbiter.
117105 2005-08-16  Bruno Haible  <bruno@clisp.org>
117107         * modules/mbfile: New file.
117108         * MODULES.html.sh (Extended multibyte and wide character utilities):
117109         Add mbfile.
117111 2005-08-16  Bruno Haible  <bruno@clisp.org>
117113         * modules/mbchar: New file.
117114         * MODULES.html.sh (Extended multibyte and wide character utilities):
117115         New section.
117117 2005-08-16  Bruno Haible  <bruno@clisp.org>
117119         * m4/tls.m4: New file, from GNU gettext.
117121 2005-08-16  Bruno Haible  <bruno@clisp.org>
117123         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117124         always.
117125         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117127 2005-08-16  Bruno Haible  <bruno@clisp.org>
117129         * m4/mbiter.m4: New file.
117131 2005-08-16  Bruno Haible  <bruno@clisp.org>
117133         * m4/mbfile.m4: New file.
117135 2005-08-16  Bruno Haible  <bruno@clisp.org>
117137         * m4/mbchar.m4: New file.
117139 2005-08-16  Bruno Haible  <bruno@clisp.org>
117141         * lib/tls.h: New file, from GNU gettext.
117142         * lib/tls.c: New file, from GNU gettext.
117144 2005-08-16  Bruno Haible  <bruno@clisp.org>
117146         * lib/strnlen1.h: New file.
117147         * lib/strnlen1.c: New file.
117149 2005-08-16  Bruno Haible  <bruno@clisp.org>
117151         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117152         (mbi_init): Update.
117153         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117154         NUL byte, not after it.
117156 2005-08-16  Bruno Haible  <bruno@clisp.org>
117158         * lib/strcase.h (strcasecmp): Add note in comments.
117159         * lib/strncasecmp.c: Use code from strcasecmp.c.
117160         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117161         (strcasecmp): Work correctly in multibyte locales.
117163 2005-08-16  Bruno Haible  <bruno@clisp.org>
117165         * lib/mbiter.h: New file.
117167 2005-08-16  Bruno Haible  <bruno@clisp.org>
117169         * lib/mbfile.h: New file.
117171 2005-08-16  Bruno Haible  <bruno@clisp.org>
117173         * lib/mbchar.h: New file.
117174         * lib/mbchar.c: New file.
117176 2005-08-16  Bruno Haible  <bruno@clisp.org>
117178         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117179         the valid ones. Makes the comparison operations transitive:
117180         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117181         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117183 2005-08-15  Simon Josefsson  <jas@extundo.com>
117185         * modules/ssize_t (License): Change to 'unlimited'.
117187         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117189 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117191         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117192         Add comments for each pending glibc patch.
117194 2005-08-15  Bruno Haible  <bruno@clisp.org>
117196         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117197         __cplusplus is defined.
117199 2005-08-14  Jim Meyering  <jim@meyering.net>
117201         Sync from coreutils.
117203         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117204         Use the hash-table-based cycle-detection code not just when
117205         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117206         Reported by James Youngman in
117207         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117208         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117209         FTS_TIGHT_CYCLE_CHECK.
117210         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117211         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117212         once again.
117213         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117214         * lib/fts.c (fd_safer): Remove decl.
117215         Include fcntl--.h rather than unistd-safer.h
117216         (fts_safe_changedir): Don't call fd_safer; no longer needed
117217         now that we include fcntl--.h.
117219 2005-08-12  Simon Josefsson  <jas@extundo.com>
117221         * modules/getndelim2: Use ssize_t module.
117222         * modules/getnline: Likewise.
117223         * modules/safe-read: Likewise.
117224         * modules/xreadlink: Likewise.
117226         * modules/ssize_t: New file.
117228 2005-08-12  Simon Josefsson  <jas@extundo.com>
117230         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117232 2005-08-12  Simon Josefsson  <jas@extundo.com>
117234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117235         ssize_t.
117237 2005-08-12  Simon Josefsson  <jas@extundo.com>
117239         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117240         readline, getdelim and check_version.
117241         (Support for systems lacking ISO C 99: Sizes of integer types):
117242         Add size_max.
117244 2005-08-12  Bruno Haible  <bruno@clisp.org>
117246         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117248 2005-08-11  Simon Josefsson  <jas@extundo.com>
117250         * modules/readline: New file.
117252         * modules/strnlen (Files): Add strnlen.h.
117254 2005-08-11  Simon Josefsson  <jas@extundo.com>
117256         * m4/readline.m4: New file.
117258 2005-08-11  Simon Josefsson  <jas@extundo.com>
117260         * lib/readline.h, readline.c: New file.
117262 2005-08-11  Simon Josefsson  <jas@extundo.com>
117264         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117265         gl_AVOID.
117267 2005-08-11  Bruno Haible  <bruno@clisp.org>
117269         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117271 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117273         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117275 2005-08-10  Simon Josefsson  <jas@extundo.com>
117277         * tests/test-iconvme.c: New file.
117279 2005-08-10  Simon Josefsson  <jas@extundo.com>
117281         * m4/strnlen.m4: New file.
117283         * m4/strndup.m4: Don't check for strnlen declaration, done in
117284         strnlen.m4.
117286 2005-08-10  Simon Josefsson  <jas@extundo.com>
117288         * lib/strndup.c: Use strnlen.h.
117290         * lib/strnlen.h: New file.
117292 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117294         * README: Typos.
117296 2005-08-02  Simon Josefsson  <jas@extundo.com>
117298         * modules/readline: New file.
117300 2005-08-02  Simon Josefsson  <jas@extundo.com>
117302         * modules/getdelim: New file.
117304         * modules/getline: Rewrite, don't use getndelim2.
117306 2005-08-02  Simon Josefsson  <jas@extundo.com>
117308         * m4/getline.m4: Separate out getdelim stuff into separate module.
117310         * m4/getdelim.m4: New file.
117312 2005-08-02  Simon Josefsson  <jas@extundo.com>
117314         * lib/getline.h, getline.c: Rewrite.
117316         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117318 2005-07-31  Bruno Haible  <bruno@clisp.org>
117320         * lib/lock.h (gl_lock_initializer): New macro.
117321         (gl_lock_define_initialized): Use it.
117322         (gl_rwlock_initializer): New macro.
117323         (gl_rwlock_define_initialized): Use it.
117324         (gl_recursive_lock_initializer): New macro.
117325         (gl_recursive_lock_define_initialized): Use it.
117327 2005-07-30  Karl Berry  <karl@gnu.org>
117329         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117330         Report from Ben Pfaff, regarding getopt.
117332 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117334         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117335         normal way.
117336         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117337         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117338         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117339         (gl_GETOPT): Use the new macros.  Most of the implementation
117340         is moved to the new macros.  This is for programs like Emacs
117341         that don't want all the functionality of gl_GETOPT.
117343 2005-07-26  Bruno Haible  <bruno@clisp.org>
117345         * m4/lock.m4: Update from GNU gettext.
117347 2005-07-26  Bruno Haible  <bruno@clisp.org>
117349         * lib/lock.h: Update from GNU gettext.
117350         * lib/lock.c: Update from GNU gettext.
117352 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117354         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117355         obsolescent AC_TRY_RUN.  Include the default includes files, for
117356         'exit'.
117358 2005-07-24  Bruno Haible  <bruno@clisp.org>
117360         * modules/visibility: New file.
117361         * MODULES.html.sh (Misc): Add visibility.
117363 2005-07-24  Bruno Haible  <bruno@clisp.org>
117365         * m4/visibility.m4: New file.
117367 2005-07-24  Bruno Haible  <bruno@clisp.org>
117369         * doc/visibility.texi: New file.
117371 2005-07-22  Bruno Haible  <bruno@clisp.org>
117373         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117374         $(ALLOCA_H), redundant through BUILT_SOURCES.
117375         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117376         redundant through BUILT_SOURCES.
117377         * modules/byteswap (Makefile.am): Remove explicit dependency on
117378         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117379         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117380         $(FNMATCH_H), redundant through BUILT_SOURCES.
117381         * modules/getopt (Makefile.am): Remove explicit dependency on
117382         $(GETOPT_H), redundant through BUILT_SOURCES.
117383         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117384         redundant through BUILT_SOURCES.
117385         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117386         redundant through BUILT_SOURCES.
117387         * modules/stdbool (Makefile.am): Remove explicit dependency on
117388         $(STDBOOL_H), redundant through BUILT_SOURCES.
117389         * modules/stdint (Makefile.am): Remove explicit dependency on
117390         $(STDINT_H), redundant through BUILT_SOURCES.
117391         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117392         Remove explicit dependency on $(SYSEXITS_H).
117393         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117395 2005-07-18  Simon Josefsson  <jas@extundo.com>
117397         * lib/check-version.c (check_version): Accept identical versions too.
117399 2005-07-18  Bruno Haible  <bruno@clisp.org>
117401         * modules/lock: New file.
117402         * MODULES.html.sh (Multithreading): New section.
117404 2005-07-18  Bruno Haible  <bruno@clisp.org>
117406         * m4/lock.m4: New file, from GNU gettext.
117408 2005-07-18  Bruno Haible  <bruno@clisp.org>
117410         * lib/lock.h: New file, from GNU gettext.
117411         * lib/lock.c: New file, from GNU gettext.
117413 2005-07-18  Bruno Haible  <bruno@clisp.org>
117415         * lib/lock.h (gl_once_t): New type.
117416         (gl_once_define, gl_once): New macros.
117417         * lib/lock.c (fresh_once): New variable.
117418         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117419         functions.
117421 2005-07-16  Simon Josefsson  <jas@extundo.com>
117423         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117424         workaround, suggested by Bruno.
117426 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117428         * modules/xalloc (Depends-on): Add xalloc-die.
117429         * modules/xvasprintf (Depends-on): Add xalloc-die.
117431 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117433         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117434         with a minor change.
117436 2005-07-15  Bruno Haible  <bruno@clisp.org>
117438         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117439         When using lib/poll.c, define poll as rpl_poll.
117441 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117443         * modules/argp (Depends-on): Remove unlocked-io.
117445 2005-07-14  Derek Price  <derek@ximbiot.com>
117447         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117448         for glob symlink bug.
117450 2005-07-14  Bruno Haible  <bruno@clisp.org>
117452         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117453         Instead, test for *_unlocked function declarations directly.
117455 2005-07-11  Simon Josefsson  <jas@extundo.com>
117457         * modules/size_max: New file.
117459         * modules/xsize: Depend on size_max module for size_max.m4.
117461 2005-07-11  Simon Josefsson  <jas@extundo.com>
117463         * lib/size_max.h: New file.
117465 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117467         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117468         copyright symbol and the year.
117469         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117470         (version_etc_va): Use parameterized copyright notice.
117471         Reword to conform to the current GNU coding standards.
117473 2005-07-11  Karl Berry  <karl@gnu.org>
117475         * doc/gnulib.texi (Quoting): new node.
117476         (Initial import): more info, from Patrice.
117478 2005-07-11  Bruno Haible  <bruno@clisp.org>
117480         * gnulib-tool (func_usage): Document option --avoid.
117481         (Command line options): Handle --avoid.
117482         (func_acceptable): New function.
117483         (func_modules_transitive_closure): Use it.
117485 2005-07-11  Bruno Haible  <bruno@clisp.org>
117487         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117488         Reported by Jim Meyering.
117490 2005-07-10  Bruno Haible  <bruno@clisp.org>
117492         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117493         Needed when size_t is smaller than 'unsigned int'.
117494         Reported by Paul Eggert.
117496 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117498         * modules/argp (Depends-on): Add unlocked-io
117500 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117502         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117503         block of defines.
117505 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117507         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117508         fix now.
117510 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117511         and Paul Eggert  <eggert@cs.ucla.edu>
117513         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117514         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117516 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117518         * modules/regex (Files): Add lib/regex_internal.c,
117519         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117520         (Depends-on): Add extensions.
117521         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117523 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117525         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117526         pathconf.
117527         * m4/same.m4 (gl_SAME): Likewise.
117528         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117530         * m4/regex.m4: Adjust to new libc regex implementation.
117531         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117532         all the .c and .h parts of (the new) regex.
117533         Quote the m4 stuff better.
117534         Check for RE_ICASE bug of old gnulib.
117535         Check for REG_STARTEND of recent libc.
117536         Rename local variables from jm_* to gl_*.
117537         Quote operand of "test -f".
117538         Say "recent enough" version of libc, not "version 2".
117539         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117540         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117541         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117542         Remove check for btowc, isascii.
117543         Require AM_LANGINFO_CODESET.
117545 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117547         * lib/regex.c, regex.h: Sync from libc.
117548         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117549         * lib/regexec.c:
117550         New files, synced from libc, except that regex_internal.h
117551         currently has a small porting fix.
117553 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117555         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117556         regex_internal.c, regexec.c.
117557         Add regex_internal.h too, but as a comment, since the libc version
117558         is currently broken in gnulib mode.
117560 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117562         Support programs like Emacs that use gnulib but not gettext.
117563         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117564         * modules/gettext-h: New file.
117565         * modules/gettext (Files): Remove lib/gettext.h.
117566         (Depends-on): Add gettext-h.
117567         (Makefile.am): Remove lib_SOURCES.
117568         * modules/argmatch, modules/c-stack, modules/closeout:
117569         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117570         * modules/execute, modules/file-type, modules/getaddrinfo:
117571         * modules/getopt, modules/human, modules/javacomp:
117572         * modules/javaexec, modules/mkdir-p, modules/obstack:
117573         * modules/openat, modules/pagealign_alloc, modules/pipe:
117574         * modules/quotearg, modules/regex, modules/rpmatch:
117575         * modules/unicodeio, modules/userspec, modules/version-etc:
117576         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117577         * modules/xsetenv:
117578         Depend on gettext-h, not gettext.
117580 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117582         * gnulib-tool (func_import): Add support for 'public domain' license.
117583         * modules/alloca, modules/atexit, modules/memmove:
117584         Now public domain, not GPL.
117585         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117586         * modules/realloc, modules/strerror, modules/strtod:
117587         Now LGPL, not GPL.
117589 2005-07-05  Bruno Haible  <bruno@clisp.org>
117591         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117592         autoconf CVS. Needed for mingw.
117594 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117596         Remove the dependency of the strftime module on the tzset module.
117597         * modules/strftime (Depends-on): Remove dependency on tzset.
117599 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117601         Remove the dependency of the strftime module on the tzset module.
117602         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117603         gl_FUNC_TZSET_CLOBBER.
117605 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117607         Remove the dependency of the strftime module on the tzset module.
117608         * lib/strftime.c (my_strftime)
117609         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117610         Copy the input structure, to work around some of the bug with
117611         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117612         Solaris releases, you should also use the tzset module, but we won't
117613         require it as a dependency any more since we don't want LGPLed code
117614         to depend on GPLed code.
117616 2005-07-02  Jim Meyering  <jim@meyering.net>
117618         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117619         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117620         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117621         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117623 2005-07-02  Jim Meyering  <jim@meyering.net>
117625         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117627 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117629         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117630         declares only 'struct timespec;' (!).
117632 2005-07-01  Jim Meyering  <jim@meyering.net>
117634         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117635         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117636         * lib/save-cwd.c, tempname.c:
117637         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117638         and don't include <sys/file.h>).
117640 2005-06-29  Jim Meyering  <jim@meyering.net>
117642         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117643         type name.  Use the variable name instead.
117644         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117645         Likewise.
117647 2005-06-28  Simon Josefsson  <jas@extundo.com>
117649         * modules/check-version (Files): Add check-version.m4.
117651 2005-06-28  Simon Josefsson  <jas@extundo.com>
117653         * m4/check-version.m4: New file, suggested by Jim Meyering
117654         <jim@meyering.net>.
117656 2005-06-28  Simon Josefsson  <jas@extundo.com>
117658         * lib/check-version.h, lib/check-version.c: New files.
117660 2005-06-28  Simon Josefsson  <jas@extundo.com>
117662         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117663         collision with global variable.  Better indentation.  Don't
117664         increment buffer pointer beyond buffer end.  Based on comments
117665         from Paul Eggert <eggert@cs.ucla.edu>.
117667         * lib/base64.h: Indent.
117669 2005-06-28  Simon Josefsson  <jas@extundo.com>
117671         * doc/gnulib.texi (Library version handling): New section.
117673 2005-06-28  Jim Meyering  <jim@meyering.net>
117675         * check-module (find_included_lib_files): Hard-code another
117676         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117677         but modules/fts-lgpl (correctly) does not list those files.
117679         * modules/canonicalize (Files): Add lib/pathmax.h.
117681 2005-06-25  Simon Josefsson  <jas@extundo.com>
117683         * modules/check-version: New file.
117685 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117687         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117688         initializer of struct addrinfo, as an indication that we don't
117689         care how many members the structure has.
117691 2005-06-24  Derek Price  <derek@ximbiot.com>
117692         and Bruno Haible  <bruno@clisp.org>
117694         Remove stat module & update lstat.
117695         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117696         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117697         * m4/stat.m4: Remove this file.
117699 2005-06-24  Derek Price  <derek@ximbiot.com>
117700         and Bruno Haible  <bruno@clisp.org>
117702         Remove stat module & update lstat.
117703         * lib/stat.c: Remove this file...
117704         (slash_aware_lstat): ...moving this content and its support...
117705         * lib/lstat.c (rpl_lstat): ...into here.
117706         * lib/lstat.h: New file.
117708 2005-06-24  Derek Price  <derek@ximbiot.com>
117709         and Bruno Haible  <bruno@clisp.org>
117711         Remove stat module & update lstat.
117712         * config/srclist.txt (libc sources): Remove stat.
117714 2005-06-24  Derek Price  <derek@ximbiot.com>
117715         and Bruno Haible  <bruno@clisp.org>
117717         Remove stat module & update lstat.
117718         * MODULES.html.sh (stat): Remove.
117719         * MODULES.html: Regenerated.
117720         * modules/lstat (Description): Correct function name.
117721         (Files): Add "lstat.h".
117722         (Depends-on): Remove stat, add xalloc, stat-macros.
117723         * modules/stat: Remove this file.
117724         (Include): Add "lstat.h", remove <sys/stat.h>.
117726 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117728         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117729         (ranged_convert): Don't save conversion in a temporary struct.
117730         This causes a warning with GCC 4.0.0, and anyway in the typical
117731         case it's not worth the extra 100 bytes or so of code.
117732         (ranged_convert, __mktime_internal): When calling a function via a
117733         pointer P, use P () rather than (*P) (), as we now assume C89 or
117734         better.
117736 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117738         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117739         "who -r" failed to give output.  Problem reported by Tim Waugh.
117741         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117742         (xcalloc): Use it to avoid needless tests.
117743         Problem reported by Jim Meyering.
117745 2005-06-20  Derek Price  <derek@ximbiot.com>
117747         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117748         unnecessary for Autoconfs > 2.59c.
117750 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117752         * lib/argp.h (__option_is_short): Check upper limit of
117753         __key. Isprint() requires its argument to have the value
117754         of an unsigned char or EOF.
117756 2005-06-16  Jim Meyering  <jim@meyering.net>
117758         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117759         when either N or S is zero.
117761 2005-06-16  Derek Price  <derek@ximbiot.com>
117763         * m4/bison.m4: Declare YACC & YFLAGS precious.
117765 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117767         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117768         multibyte string or pattern, fall back on unibyte matching.
117769         Problem reported by James Youngman.
117771 2005-06-08  Bruno Haible  <bruno@clisp.org>
117773         * modules/csharpcomp: New file.
117774         * MODULES.html.sh (C#): Add csharpcomp.
117776 2005-06-08  Bruno Haible  <bruno@clisp.org>
117778         * m4/csharpcomp.m4: New file, from GNU gettext.
117780 2005-06-08  Bruno Haible  <bruno@clisp.org>
117782         * lib/csharpcomp.h: New file, from GNU gettext.
117783         * lib/csharpcomp.c: New file, from GNU gettext.
117784         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117786 2005-06-08  Bruno Haible  <bruno@clisp.org>
117788         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117789         warning on mingw.
117791 2005-06-07  Derek Price  <derek@ximbiot.com>
117793         Sync from CVS.
117794         * lib/glob_.h: Indent nested #ifdef.
117796 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117798         Sync from coreutils.
117799         Use "file name" when talking about file names, instead of "filename"
117800         or "path", as per the GNU coding standards.
117801         * lib/mkdir-p.c: Renamed from makepath.c.
117802         (make_dir_parents): Renamed from make_path.  All callers changed.
117803         * lib/mkdir-p.h: Likewise.  All includers changed.
117804         * lib/filenamecat.c: Renamed from path-concat.c.
117805         (file_name_concat): Renamed from path_concat.  All callers changed.
117806         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117807         * lib/filenamecat.h: Likewise.  All includers changed.
117808         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117809         in comments or local variable names.
117810         * lib/basename.c: Likewise.
117811         * lib/canonicalize.c, canonicalize.h: Likewise.
117812         * lib/dirname.c, dirname.h: Likewise.
117813         * lib/euidaccess.c: Likewise.
117814         * lib/exclude.c: Likewise
117815         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117816         * lib/fsusage.c, fsuage.h: Likewise.
117817         * lib/fts.c, fts_.h: Likewise.
117818         * lib/getcwd.c: Likewise.
117819         * lib/getloadavg.c: Likewise.
117820         * lib/mkstemp.c: Likewise.
117821         * lib/mountlist.c, mountlist.h: Likewise.
117822         * lib/openat.c, openat.h: Likewise.
117823         * lib/readlink-stub.c: Likewise.
117824         * lib/readutmp.c, readutmp.h: Likewise.
117825         * lib/rename.c: Likewise.
117826         * lib/rmdir.c: Likewise.
117827         * lib/same.c: Likewise.
117828         * lib/savedir.c: Likewise.
117829         * lib/stripslash.c: Likewise.
117830         * lib/tempname.c: Likewise.
117831         * lib/xreadlink.c: Likewise.
117832         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117833         All uses changed.
117834         * lib/exclude.h: Likewise.
117836         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117837         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117838         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117839         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117840         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117841         files have been getting away with it for years (MORE/BSD 4.3
117842         is extinct now).
117843         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117844         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117846         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117847         Define to 256, not 255, as per modern POSIX.
117849 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117851         Sync from coreutils.
117852         Use "file name" when talking about file names, instead of "filename"
117853         or "path", as per the GNU coding standards.
117854         * MODULES.html.sh: mkdir-p renamed from makepath.
117855         filenamecat renamed from path-concat.
117856         * modules/filenamecat: Renamed from modules/path-concat.
117857         (Files): filenamecat.h and filenamecat.c renamed from
117858         path-concat.h and path-concat.c.
117859         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117860         (Include): filenamecat.h, not path-concat.h.
117861         * modules/mkdir-p: Renamed from modules/makepath.
117862         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117863         makepath.c.
117864         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117865         (Include): mkdir-p.h, not makepath.h.
117867 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117869         Sync from coreutils.
117870         * m4/mkdir-p.m4: Renamed from makepath.m4.
117871         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117872         Rename files from makepath.c to mkdir-p.c, and from
117873         makepath.h to mkdir-p.h.
117874         * m4/filenamecat.m4: Renamed from path-concat.m4.
117875         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117876         Rename files from path-concat.c to filenamecat.c,
117877         and from path-concat.h to filenamecat.h.
117878         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117879         "file name" in local variables or comments.
117880         * m4/rename.m4: Likewise.
117882 2005-06-01  Bruno Haible  <bruno@clisp.org>
117884         * modules/csharpexec: New file.
117885         * MODULES.html.sh (C#): New section.
117887 2005-06-01  Bruno Haible  <bruno@clisp.org>
117889         * m4/csharp.m4: New file, from GNU gettext.
117890         * m4/csharpexec.m4: New file, from GNU gettext.
117892 2005-06-01  Bruno Haible  <bruno@clisp.org>
117894         * lib/csharpexec.h: New file, from GNU gettext.
117895         * lib/csharpexec.c: New file, from GNU gettext.
117896         * lib/csharpexec.sh.in: New file, from GNU gettext.
117898 2005-05-31  Derek Price  <derek@ximbiot.com>
117899             Paul Eggert  <eggert@cs.ucla.edu>
117901         Sync from cvs.
117902         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117904 2005-05-31  Derek Price  <derek@ximbiot.com>
117905             Paul Eggert  <eggert@cs.ucla.edu>
117907         Sync from cvs.
117908         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117910 2005-05-29  Derek Price  <derek@ximbiot.com>
117912         * config/srclist.txt (glob_.h, glob.c): Add these files.
117914 2005-05-29  Derek Price  <derek@ximbiot.com>
117916         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117917         * modules/glob: New file.
117918         * modules/getlogin_r: Add link to POSIX spec in description.
117920 2005-05-29  Derek Price  <derek@ximbiot.com>
117921             Paul Eggert  <eggert@cs.ucla.edu>
117923         * m4/glob.m4: New file.
117925 2005-05-29  Derek Price  <derek@ximbiot.com>
117926             Paul Eggert  <eggert@cs.ucla.edu>
117928         * lib/glob_.h, lib/glob.c: New files.
117930 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117932         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117933         * modules/fts-lgpl (Depends-on): Remove gettext.
117935 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117938         and don't require gt_INTTYPES_PRI.
117940 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117942         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117944         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117945         the configuration hassle isn't worth it.
117946         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117947         (LONGEST_MODIFIER, PRIuMAX): Remove.
117949 2005-05-27  Bruno Haible  <bruno@clisp.org>
117951         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117953 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117955         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117956         _POSIX_PTHREAD_SEMANTICS for Solaris.
117958 2005-05-25  Derek Price  <derek@ximbiot.com>
117960         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117962 2005-05-25  Derek Price  <derek@ximbiot.com>
117963             Paul Eggert  <eggert@cs.ucla.edu>
117965         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117966         * lib/getlogin_r.c, getlogin_r.h: New files.
117968 2005-05-25  Bruno Haible  <bruno@clisp.org>
117969             Derek Price  <derek@ximbiot.com>
117971         * lib/getlogin_r.h: Simplify API documentation.
117973 2005-05-23  Derek Price  <derek@ximbiot.com>
117975         * modules/minmax (Files): Add m4/minmax.m4.
117976         (configure.ac): Add gl_MINMAX.
117978 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
117980         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
117981         so that unistd-safer.h (GPL'ed code) need not be included.
117983 2005-05-22  Bruno Haible  <bruno@clisp.org>
117985         * m4/minmax.m4: New file.
117986         Based on a patch by Derek Price <derek@ximbiot.com>.
117988 2005-05-22  Bruno Haible  <bruno@clisp.org>
117990         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
117991         (INT64_MIN): Fix definition.
117992         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
117994         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
117995         NEED_SIGNED_INT_TYPES.
117997         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
117998         HAVE_SYSTEM_INTTYPES.
118000 2005-05-22  Bruno Haible  <bruno@clisp.org>
118002         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118003         Also include <sys/param.h> if it defines MIN, MAX.
118004         Based on a patch by Derek Price <derek@ximbiot.com>.
118006 2005-05-21  Jim Meyering  <jim@meyering.net>
118008         * modules/fts (Files): Add m4/inttypes-pri.m4.
118009         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118011 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118013         New fts module.
118014         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118015         (setup_dir, free_dir): New functions.
118016         (enter_dir, leave_dir): Define trivial
118017         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118018         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118019         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118020         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118021         Move to fts-cycle.c.
118022         (fts_open): Use setup_dir.
118023         (fts_close): Use free_dir.
118024         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118025         This adds a label and some gotos, but the alternatives were messier.
118026         Check for memory allocation failure when entering a dir.
118027         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118028         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118029         (FTS): New member fts_cycle, that is a union that contains the
118030         old active_dir_ht and cycle_state.  All uses changed to mention
118031         fts_cycle.ht and fts_cycle.state.
118032         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118033         fts.c, with the following changes:
118034         (setup_dir, free_dir): New functions.
118035         (enter_dir): Now returns bool.  Return true if successful, false
118036         if memory exhausted.  All callers changed.
118037         Do not bother partly cleaning up on
118038         memory allocation failure; that is free_dir's job.
118039         However, free ad if hash_insert fails, to avoid memory leak.
118040         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118041         fts->fts_options to see which union member to use.
118043 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118045         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118046         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118048 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118050         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118052 2005-05-20  Jim Meyering  <jim@meyering.net>
118054         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118055         Now a macro, to pacify GCC.
118057 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118059         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118060         of -1.
118062 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118064         * lib/chown.c (rpl_chown): Return -1 on failure.
118066 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118068         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118069         Don't check for stddef.h.
118070         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118071         don't use its results.
118072         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118073         since we include them unconditionally.  Don't require
118074         AM_STDBOOL_H, since stdbool is a prerequisite.
118075         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
118076         since we assume C89 or better.
118077         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
118078         as we don't use their results.
118079         Don't check for fchdir, memmove, memset, strrchr, as we use
118080         them unconditionally.
118081         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
118082         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
118084 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118086         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
118087         Include <stddef.h> unconditionally, since we assume C89 now.
118088         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
118089         * lib/fts.c: Include fts_.h first, to check interface.
118090         Do not include intprops.h; no longer needed.
118091         Include cycle-check.h and hash.h, since fts_.h no longer does.
118092         Remove unnecessary casts of closedir to void.
118093         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
118094         decide whether to decrement nlinks.
118095         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
118096         (FTS): Use struct hash_table * instead of Hash_table, so that
118097         we no longer need to include hash.h here.
118099 2005-05-18  Jim Meyering  <jim@meyering.net>
118101         * modules/dirfd (License): Change to LGPL.  Most of the code
118102         is already in the public domain.
118104 2005-05-18  Jim Meyering  <jim@meyering.net>
118106         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
118107         Reported by Yoann Vandoorselaere.
118109 2005-05-17  Jim Meyering  <jim@meyering.net>
118111         * m4/fts.m4: New file, from coreutils.
118113 2005-05-17  Jim Meyering  <jim@meyering.net>
118115         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118117 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118119         Sync from coreutils.
118120         * m4/unlinkdir.m4: New file.
118122 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118124         Sync from coreutils.
118125         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118126         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118127         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118128         White space changes only.
118129         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118130         special.
118131         * lib/yesno.c: Include getline.h, not ctype.h.
118132         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118133         Use getline to remove arbitrary restriction on response length.
118135 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118137         * config/srclist-update: Spell out "Street" in FSF postal
118138         mail address; this is the style the FSF seems to prefer.
118140         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118141         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118142         this updates FSF postal mail address.
118144         Sync from coreutils.
118145         * modules/unlinkdir: New file.
118146         * modules/yesno (Depends-on): Add getline.
118147         * MODULES.html.sh (File system functions): Add unlinkdir.
118149 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118151         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118152         lib/strsep.h:
118153         Change the initial comment to refer to GPL, not LGPL.
118154         gnulib-tool will change it to LGPL as needed.
118156         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118157         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118158         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118159         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118160         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118161         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118162         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118163         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118164         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118165         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118166         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118167         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118168         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118169         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118170         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118171         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118172         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118173         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118174         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118175         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118176         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118177         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118178         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118179         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118180         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118181         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118182         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118183         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118184         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118185         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118186         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118187         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118188         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118189         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118190         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118191         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118192         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118193         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118194         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118195         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118196         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118197         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118198         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118199         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118200         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118201         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118202         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118203         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118204         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118205         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118206         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118207         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118208         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118209         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118210         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118211         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118212         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118213         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118214         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118215         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118216         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118217         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118218         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118219         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118220         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118221         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118222         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118223         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118224         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118225         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118226         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118227         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118228         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118229         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118230         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118231         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118232         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118233         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118234         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118235         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118236         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118237         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118238         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118239         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118240         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118241         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118242         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118243         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118244         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118245         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118246         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118247         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118248         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118249         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118250         lib/yesno.c, lib/yesno.h:
118251         Update FSF postal mail address.
118253 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118255         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118256         tests/test-memmem.c, tests/test-stpncpy.c:
118257         Update FSF postal mail address.
118259 2005-05-13  Bruno Haible  <bruno@clisp.org>
118261         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118262         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118263         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118264         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118265         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118266         Add support for 64-bit integers in the MSVC compiler.
118268 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118270         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118272 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118274         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118276 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118278         * doc/getdate.texi (General date syntax): Don't say that date
118279         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118280         Problem reported by Nic Ferrier.
118282 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118284         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118285         specified in ai_socktype. Fix invalid ai_protocol
118286         check. ai_protocol is usually set to 0 or depending on
118287         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118288         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118289         ai_socktype / ai_protocol in the returned addrinfo structure.
118291 2005-05-10  Simon Josefsson  <jas@extundo.com>
118293         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118294         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118296 2005-05-10  Karl Berry  <karl@gnu.org>
118298         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118299         (from http://www.gnu.org/licenses).
118300         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118301         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118302         fdl.texi suffices.
118304 2005-05-10  Karl Berry  <karl@gnu.org>
118306         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118307         (COPYING.DOC): remove.
118309         * config/srclist-update: new FSF address.
118311 2005-05-10  Derek Price  <derek@ximbiot.com>
118313         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118314         possible.
118316 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118317             Bruno Haible  <bruno@clisp.org>
118319         * modules/inet_ntop: New file.
118320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118321         inet_ntop.
118323 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118324             Bruno Haible  <bruno@clisp.org>
118326         * m4/inet_ntop.m4: New file.
118328 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118329             Bruno Haible  <bruno@clisp.org>
118331         * lib/inet_ntop.h: New file.
118332         * lib/inet_ntop.c: New file, from glibc with modifications.
118334 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118336         * modules/time_r (License): Change to LGPL.
118337         * modules/extensions (License): Change to LGPL.  Actually,
118338         the license is more permissive than that, but currently gnulib-tool
118339         doesn't know how to handle more-permissive licenses.
118341         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118342         Problem reported by Dave Love.
118344 2005-05-08  Jim Meyering  <jim@meyering.net>
118346         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118347         blank.
118349 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118351         * modules/argmatch (Depends-on): Add stdbool.
118352         * modules/backupfile (Depends-on): Likewise.
118353         * modules/chdir-long (Depends-on): Likewise.
118354         * modules/closeout (Depends-on): Likewise.
118355         * modules/cycle-check (Depends-on): Likewise.
118356         * modules/dirname (Depends-on): Likewise.
118357         * modules/fnmatch (Depends-on): Likewise.
118358         * modules/fsusage (Depends-on): Likewise.
118359         * modules/fwriteerror (Depends-on): Likewise.
118360         * modules/getcwd (Depends-on): Likewise.
118361         * modules/getloadavg (Depends-on): Likewise.
118362         * modules/hard-locale (Depends-on): Likewise.
118363         * modules/makepath (Depends-on): Likewise.
118364         * modules/mountlist (Depends-on): Likewise.
118365         * modules/nanosleep (Depends-on): Likewise.
118366         * modules/posixtm (Depends-on): Likewise.
118367         * modules/quotearg (Depends-on): Likewise.
118368         * modules/readtokens (Depends-on): Likewise.
118369         * modules/readtokens0 (Depends-on): Likewise.
118370         * modules/readutmp (Depends-on): Likewise.
118371         * modules/save-cwd (Depends-on): Likewise.
118372         * modules/strftime (Depends-on): Likewise.
118373         * modules/userspec (Depends-on): Likewise.
118374         * modules/utimecmp (Depends-on): Likewise.
118375         * modules/xgetcwd (Depends-on): Likewise.
118376         * modules/xnanosleep (Depends-on): Likewise.
118377         * modules/xstrtod (Depends-on): Likewise.
118378         * modules/yesno (Depends-on): Likewise.
118380 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118382         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118383         needless checks.
118385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118387         Merge from coreutils.  Among other things,
118388         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118389         * lib/fd-safer.c: New file.
118390         * lib/fcntl-safer.h, open-safer.c: Remove.
118391         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118392         * lib/dup-safer.c: Include unistd-safer.h first.
118393         Don't include errno.h.
118394         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118395         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118396         * lib/file-type.c: Rely on file-type.h change.
118397         * lib/getloadavg.c: Include unistd-safer.h.
118398         (getloadavg): Use safer open.
118399         * lib/getusershell.c: Include "stdio-safer.h".
118400         (getusershell): Use safer fopen.
118401         * lib/long-options.c (long_options): Use NULL rather than 0.
118402         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118403         'free'.
118404         * lib/modechange.c: Likewise.
118405         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118406         (MODE_DONE): New constant.
118407         (struct mode_change): Remove 'next' member.
118408         (make_node_op_equals): New function; like the old one of the
118409         same name, except it allocates an array.
118410         (mode_compile, mode_create_from_ref): Use it.
118411         (mode_compile): Allocate result as an array, not a linked list.
118412         Parse octal string ourself, so that we catch mistakes like "+0".
118413         (mode_adjust): Arg is an array, not a linked list.
118414         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118415         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118416         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118417         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118418         Remove.  This is now stat-macros.h's job.
118419         (talloc): Remove.  All callers replaced by xalloc, so that
118420         our invokers don't have to worry about reporting memory failures.
118421         (make_node_op_equals): Remove.
118422         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118423         New constants.
118424         (struct mode_change): Moved here from modechange.h.
118425         (mode_append_entry): Remove.
118426         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118427         apps to have incorrect behavior.  Use simpler algorithm for head
118428         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118429         Detect more invalid usages rather than having somewhat-random behavior.
118430         Don't insert an "a=" action, as that leads to incorrect behavior.
118431         (mode_compile, mode_create_from_ref): Return NULL on error instead
118432         of an enum, since now there's only one way to have an error.  All
118433         callers changed.
118434         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118435         at the correct time.  Simplify calculation of "+u" and its ilk.
118436         Don't mishandle "+X".
118437         (mode_free): Remove "register" and localize decls.
118438         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118439         (struct mode_change): Move to modechange.c; callers don't
118440         need to see this stuff.
118441         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118442         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118443         (mode_change, mode_adjust): Reflect the new signatures noted above.
118444         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118445         that might redefine system include files.
118446         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118447         (my_usleep): Use NULL rather than (void *) 0.
118448         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118449         Use siginterrupt to specify that system calls should be interrupted.
118450         (rpl_nanosleep): Move initialization of suspended closer to call of
118451         my_usleep.
118452         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118453         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118454         (desirable_utmp_entry): New function.
118455         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118456         using x2nrealloc, to simplify logic.
118457         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118458         size calculation.  Do not assume utmp file is a regular file.
118459         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118460         (READ_UTMP_CHECK_PIDS): New constant.
118461         * lib/save-cwd.c: Include unistd-safer.h.
118462         (save_cwd): Use fd_safer.
118463         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118464         [!_LIBC] Include "stat-macros.h" instead.
118465         * lib/unistd-safer.h (fd_safer): New decl.
118467 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118469         * modules/getloadavg (Depends-on): Add unistd-safer.
118470         * modules/getusershell (Depends-on): Add stdio-safer.
118471         * modules/lstat (Depends-on): Remove xalloc.
118472         * modules/mkstemp (Depends-on): Add stat-macros.
118473         * modules/modechange (Depends-on): Remove xstrtol.
118474         Add stat-macros, xalloc.
118475         * modules/save-cwd (Depends-on): Add unistd-safer.
118476         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118477         * modules/unistd-safer (Files): Add lib/fd-safer.c
118478         (Makefile.am): Remove lib_SOURCES.
118480         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118481         Remove fcntl-safer; unistd-safer supersedes it.
118483 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118485         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118486         AC_HEADER_STAT.
118487         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118488         (gl_PREREQ_CHOWN): Remove.
118489         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118490         it.  Don't require AC_HEADER_STAT.
118491         (gl_PREREQ_LSTAT): Remove.
118492         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118493         Don't require AC_HEADER_STAT.
118494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118495         (gl_PREREQ_RMDIR): Remove.
118496         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118497         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118498         the stat-macros module a prerequisite.
118499         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118500         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118501         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118502         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118503         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118504         variable names.
118505         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118506         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118507         variable prefixes.
118508         * m4/fcntl-safer.m4: Remove.
118509         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118510         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118511         Invoke gl_PREREQ_FD_SAFER.
118512         (gl_PREREQ_FD_SAFER): New macro.
118513         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118514         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118515         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118516         Remove duplicate call to AC_LIBOBJ(readutmp).
118517         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118520         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118522 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118524         * MODULES.html.sh (Misc): Add byteswap.
118526 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118528         * modules/getcwd (Depends-on): Add extensions.
118529         * modules/openat (Depends-on): Likewise.
118531 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118533         * modules/byteswap: New file.
118535 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118537         * m4/byteswap.m4: New file.
118539 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118541         * lib/byteswap_.h: New file.
118543 2005-04-25  Karl Berry  <karl@gnu.org>
118545         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118547 2005-04-25  Albert Chin  <china@thewrittenword.com>
118549         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118550         Toolkit C bug.
118552 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118554         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118555         (func_ln_if_changed): Remove forcibly for no error message
118556         in case file does not exist.
118558 2005-04-19  Simon Josefsson  <jas@extundo.com>
118560         * gnulib-tool (Options): Make --symlink mean --symbolic.
118562 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118564         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118566 2005-04-16  Simon Josefsson  <jas@extundo.com>
118568         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118570 2005-04-15  Simon Josefsson  <jas@extundo.com>
118572         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118574 2005-04-15  Simon Josefsson  <jas@extundo.com>
118576         * gnulib-tool: Rename --symlink to --symbolic.
118578 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118580         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118581         symbolic links to files instead of copying/moving.  Add --aux-dir,
118582         specifying directory relative --dir where auxiliary build tools
118583         are placed.
118585 2005-04-14  Bruno Haible  <bruno@clisp.org>
118587         * modules/allocsa (License): Change to LGPL.
118588         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118590 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118592         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118593         that "UTC +1 second" continues to work.  Problem reported
118594         by Dmitry V. Levin.
118595         (relunit_snumber): New rule.
118596         (relunit): Use it.
118598 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118600         * lib/getdate.y (universal_time_zone_table): New constant.
118601         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118602         universal_time_zone_table.
118603         (lookup_zone): Prefer universal_time_zone_table to
118604         local_time_zone_table, so that "GMT" time stamps are allowed in
118605         London during the summer.  Problem reported by Ian Abbott.
118607 2005-04-12  Jim Meyering  <jim@meyering.net>
118609         * lib/human.c (humblock): Set *options even when returning due to
118610         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118611         warning from gcc-4.
118613 2005-04-09  Jim Meyering  <jim@meyering.net>
118615         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118616         -Wuninitialized: initialize tm0.tm_year.
118618 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118620         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118621         count, since there's no maximum.  All uses changed.
118622         Add member dsts_seen.
118623         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118624         not being INT_MAX.
118625         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118626         Use pc_rels_seen to decide whether a date is absolute.
118628         * lib/getdate.y (number): Don't overwrite year.
118629         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118630         check.
118632 2005-04-02  Simon Josefsson  <jas@extundo.com>
118634         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118635         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118637 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118639         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118640         where no absolute path name can be longer than PATH_MAX.
118642 2005-03-27  Jim Meyering  <jim@meyering.net>
118644         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118646 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118648         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118649         "one's complement" -> "ones' complement" in comment, as per Knuth.
118650         "value of type" -> "type or expression" in comment.
118651         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118653 2005-03-26  Jim Meyering  <jim@meyering.net>
118655         Comment nits.
118656         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118657         Correct typos: s/or/of/.
118659 2005-03-26  Jim Meyering  <jim@meyering.net>
118661         * modules/check-include-files: Move to ../ and rename to...
118662         * check-module: ...this.
118664 2005-03-25  Jim Meyering  <jim@meyering.net>
118666         * modules/xvasprintf (Files): Add xalloc.h.
118668 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118670         * modules/gettext (Files): config/config.rpath ->
118671         build-aux/config.rpath
118672         * modules/iconv (Files): Likewise.
118673         Problem reported by Oskar Liljeblad.
118675 2005-03-23  Jim Meyering  <jim@meyering.net>
118677         * modules/check-include-files: New script to check for
118678         missing dependencies, multiple includes, etc.
118680         * modules/c-strtold (Depends-on): Add xalloc.
118681         * modules/c-strtod (Depends-on): Add xalloc.
118682         * modules/hash (Depends-on): Add xalloc.
118683         (Files): Remove lib/xalloc.h.
118685         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118686         * modules/userspec (Files): Add lib/inttostr.h.
118688 2005-03-23  Jim Meyering  <jim@meyering.net>
118690         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118692 2005-03-22  Jim Meyering  <jim@meyering.net>
118694         * modules/stat-macros: New module.
118695         * modules/canonicalize, modules/euidaccess, modules/file-type,
118696         * modules/filemode, modules/lchown, modules/makepath,
118697         * modules/rmdir, modules/stat: Depend on new stat-macros module
118698         rather than listing lib/stat-macros.h manually.
118699         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118701 2005-03-22  Jim Meyering  <jim@meyering.net>
118703         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118705 2005-03-22  Bruno Haible  <bruno@clisp.org>
118707         * config/srclist.txt: Replace target directory 'config' with
118708         'build-aux'.
118709         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118710         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118711         ../build-aux/.
118713 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118715         * modules/chdir-long (Depends-on): Add mempcpy.
118717         * modules/acl, modules/backupfile, modules/c-strtod,
118718         modules/c-strtold, modules/canon-host, modules/canonicalize,
118719         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118720         modules/exclude, modules/exitfail, modules/file-type,
118721         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118722         modules/getdate, modules/getline, modules/getpagesize,
118723         modules/getpass, modules/getugroups, modules/group-member,
118724         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118725         modules/inttostr, modules/long-options, modules/makepath,
118726         modules/md5, modules/memcasecmp, modules/memcoll,
118727         modules/modechange, modules/mountlist, modules/path-concat,
118728         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118729         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118730         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118731         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118732         modules/strftime, modules/strndup, modules/strverscmp,
118733         modules/timespec, modules/unlocked-io, modules/userspec,
118734         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118735         modules/yesno:
118736         Remove lib_SOURCES line from Makefile.am section, as this is now
118737         done automatically by the corresponding Autoconf macro.
118739 2005-03-21  Jim Meyering  <jim@meyering.net>
118741         Changes imported from coreutils.
118743         * lib/cycle-check.c: Don't include xalloc.h.
118745         * lib/path-concat.c: Don't include assert.h.
118746         (path_concat): Remove assertion that would have triggered
118747         for ABASE starting with more than one slash.
118748         Reported by Andreas Schwab.
118750         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118751         properly when ABASE is an absolute file name.
118752         Correct the description of this function.
118753         Include <assert.h>.
118754         Add an assertion and a test driver.
118755         This fixes a bug introduced on 2004-07-02.
118756         Andreas Schwab reported the resulting failure of cp --parents:
118757         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118759 2005-03-21  Jim Meyering  <jim@meyering.net>
118761         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118762         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118764 2005-03-21  Jim Meyering  <jim@meyering.net>
118765         and  Paul Eggert  <eggert@cs.ucla.edu>
118767         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118768         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118769         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118770         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118771         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118772         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118773         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118774         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118775         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118776         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118777         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118778         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118779         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118780         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118781         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118782         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118783         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118784         for these modules.
118786 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118788         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118789         (which shouldn't happen), generate nothing instead of returning 0
118790         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118792 2005-03-16  Bruno Haible  <bruno@clisp.org>
118794         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118795         HAVE_LONGLONG_64BIT.
118797 2005-03-16  Bruno Haible  <bruno@clisp.org>
118799         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118800         HAVE_LONGLONG_64BIT.
118802 2005-03-16  Bruno Haible  <bruno@clisp.org>
118804         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118805         HAVE_LONGLONG_64BIT.
118807 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118809         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118810         reliably distinguish strftime failure from empty output on POSIX
118811         hosts.
118813 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118815         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118816         (iconv_string): Don't guess a size-zero buffer, as that might cause
118817         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118818         result would be 'too large', where 'too large' is (heuristically)
118819         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118820         overflow concerns.  This will prevent some unwanted malloc failures
118821         when the inputs are very large.
118823 2005-03-15  Karl Berry  <karl@gnu.org>
118825         * config/srclist.txt (config.rpath): from gettext.
118826         * config/config.rpath: update.
118828 2005-03-15  Bruno Haible  <bruno@clisp.org>
118830         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118831         to 'negate'.
118833         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118834         variable.
118836         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118837         results.
118839 2005-03-14  Simon Josefsson  <jas@extundo.com>
118841         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118842         <fx@gnu.org>.
118844 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118846         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118847         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118848         intprops.h.
118849         * lib/strtol.c: Likewise.
118851 2005-03-14  Jim Meyering  <jim@meyering.net>
118853         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118854         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118855         to be nonzero so that we (and caller) can detect the difference
118856         between a valid zero-length expansion and an error return, even
118857         when the underlying strftime fails before writing anything into
118858         that location.
118860 2005-03-14  Bruno Haible  <bruno@clisp.org>
118862         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118863         Update from GNU gettext 0.14.3.
118865 2005-03-10  Jim Meyering  <jim@meyering.net>
118867         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118869 2005-03-10  Jim Meyering  <jim@meyering.net>
118871         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118872         so that this module works on systems without fchdir.
118874 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118876         Factor int-properties macros into a single file, except for
118877         glibc-related files.
118878         * lib/intprops.h: New file.
118879         * lib/getloadavg.c: Include it instead of limits.h.
118880         (INT_STRLEN_BOUND): Remove.
118881         * lib/human.c: Include intprops.h.
118882         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118883         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118884         302/1000.
118885         * lib/inttostr.h: Include intprops.h instead of limits.h.
118886         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118887         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118888         for consistency with intprops.h.
118889         (time_t_is_integer, twos_complement_arithmetic): Use them.
118890         * lib/sig2str.h: Include <signal.h>, intprops.h.
118891         (INT_STRLEN_BOUND): Remove.
118892         * lib/strftime.c (TYPE_SIGNED): Remove.
118893         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118894         * lib/strtol.c: Adjust comments to match intprops.h.
118895         * lib/userspec.c: Include intprops.h.
118896         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118897         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118898         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118899         instead of rolling our own expressions.
118900         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118902         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118903         instead of int.
118904         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118905         the right thing even if adding 1900 would overflow.  Similarly
118906         for tm_mon + 1 and tm_yday + 1.
118907         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118908         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118909         (DO_SIGNED_NUMBER): New macro.
118910         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118912 2005-03-07  Bruno Haible  <bruno@clisp.org>
118914         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118916 2005-03-07  Bruno Haible  <bruno@clisp.org>
118918         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118920 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118922         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118923         (func_import): Only replace files via --import when they have actually
118924         changed.
118926 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118928         * m4/mmap-anon.m4: New file.
118929         * m4/pagealign_alloc.m4: New file.
118931 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118932             Bruno Haible  <bruno@clisp.org>
118934         * modules/pagealign_alloc: New file.
118935         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118937 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118938             Bruno Haible  <bruno@clisp.org>
118940         * lib/pagealign_alloc.h: New file.
118941         * lib/pagealign_alloc.c: New file.
118943 2005-03-03  Bruno Haible  <bruno@clisp.org>
118945         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118946         Use an all-permissive copyright notice, recommended by RMS.
118948 2005-03-02  Bruno Haible  <bruno@clisp.org>
118950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118951         of AIX, the replacement has to be done only after <string.h> is
118952         included, therefore not in config.h. stpncpy.h does the replacement,
118953         and stpncpy.c uses it.
118955 2005-03-02  Bruno Haible  <bruno@clisp.org>
118957         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118958         stpncpy.c uses it.
118960 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118962         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118963         The workaround isn't strictly needed for POSIX conformance, and
118964         it's too much of a pain to configure and maintain.  We'll ask
118965         people to fix their kernels instead.
118966         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118967         (NANOSLEEP_BUG_WORKAROUND): Remove.
118968         (xnanosleep): Remove the workaround.
118970 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118972         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
118973         Reported by Derek Price.
118974         (Include): Add "timespec.h".
118976         * modules/xnanosleep (Depends-on): Remove gethrxtime.
118978 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118980         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
118981         to detect nanosleep bug.
118983 2005-03-01  Bruno Haible  <bruno@clisp.org>
118985         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
118987 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118989         * modules/gethrxtime: New file.
118990         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
118991         (Depends-on): Add gethrxtime.
118992         (configure.ac): Add gl_XNANOSLEEP.
118993         (Makefile.am): Remove lib_SOURCES line.
118995 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118997         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
118998         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119000 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119002         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119003         * lib/timespec.h (gettime): Return void, since it always
119004         succeeds now.  All uses changed.
119005         * lib/gettime.c (gettime): Likewise.
119006         [HAVE_NANOTIME]: Prefer nanotime.
119007         Assume gettimeofday succeeds, as POSIX requires.
119008         Assime time () succeeds, since other code already does.
119009         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119010         (timespec_subtract): Remove.
119011         (NANOSLEEP_BUG_WORKAROUND): New constant.
119012         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119013         things considerably.  Use it only on GNU/Linux hosts, since the
119014         workaround shouldn't be needed elsewhere.
119016 2005-02-24  Bruno Haible  <bruno@clisp.org>
119018         * modules/gettext (Files): Add m4/glibc2.m4.
119020 2005-02-24  Bruno Haible  <bruno@clisp.org>
119022         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119023         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119024         * m4/progtest.m4:
119025         Update from GNU gettext 0.14.2.
119026         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119028 2005-02-24  Bruno Haible  <bruno@clisp.org>
119030         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119031         * lib/config.charset: Update from GNU gettext 0.14.2.
119033 2005-02-24  Bruno Haible  <bruno@clisp.org>
119035         * lib/gettext.h: Update from GNU gettext 0.14.2.
119037 2005-02-23  Simon Josefsson  <jas@extundo.com>
119039         * m4/iconvme.m4: New file.
119041 2005-02-23  Jim Meyering  <jim@meyering.net>
119043         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119044         change.
119045         Thanks to Bruno Haible for catching it.
119047 2005-02-22  Simon Josefsson  <jas@extundo.com>
119049         * modules/iconvme: New file.
119051         * MODULES.html.sh: Add iconvme.
119053 2005-02-22  Simon Josefsson  <jas@extundo.com>
119055         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119057 2005-02-22  Simon Josefsson  <jas@extundo.com>
119059         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119061 2005-02-22  Jim Meyering  <jim@meyering.net>
119063         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119064         s/ifndef/ifdef/.
119066 2005-02-20  Neil Conway  <neilc@samurai.com>
119068         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119069         returned by OSX/Darwin if the specified buffer is not large
119070         enough for the hostname.
119072 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119074         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
119075         pass it to _help, otherwise the latter coredumps trying to
119076         dereference state.root_argp.
119078 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119080         * modules/chdir-long (Depends-on): Add memrchr.
119081         * modules/memrchr (Files): Add lib/memrchr.h.
119082         (Include): "memrchr.h".
119084 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
119088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
119090         * lib/memrchr.h: New file.
119091         * lib/chdir-long.c: Include it.
119092         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
119093         Don't bother including stddef.h.
119095 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
119097         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
119098         inclusion.
119099         Include <sys/types.h>, for dev_t.
119100         (ME_DUMMY, ME_REMOTE): Move from here....
119101         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
119102         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
119103         Dmitry V. Levin.
119104         Include mountlist.h first, to test the interface.
119106 2005-01-29  Bruno Haible  <bruno@clisp.org>
119108         * lib/progname.c (program_name): Initialize.
119109         Needed when linking statically on MacOS X.
119111 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119113         Sync from coreutils.
119114         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119115         (Depends-on): Add c-strtod.
119116         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119118 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119120         Sync from coreutils.
119121         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119123         Remove files that are specific to coreutils.
119124         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119126 2005-01-28  Bruno Haible  <bruno@clisp.org>
119128         * modules/javacomp: New file.
119129         * MODULES.html.sh (Java): Add javacomp.
119131 2005-01-28  Bruno Haible  <bruno@clisp.org>
119133         * m4/javacomp.m4: New file, from GNU gettext.
119135 2005-01-28  Bruno Haible  <bruno@clisp.org>
119137         * lib/javacomp.sh.in: New file, from GNU gettext.
119138         * lib/javacomp.h: New file, from GNU gettext.
119139         * lib/javacomp.c: New file, from GNU gettext.
119141 2005-01-26  Simon Josefsson  <jas@extundo.com>
119143         * lib/gai_strerror.c: Use GPL in header.
119145 2005-01-26  Bruno Haible  <bruno@clisp.org>
119147         * modules/javaexec: New file.
119148         * MODULES.html.sh (Java): Add javaexec.
119150 2005-01-26  Bruno Haible  <bruno@clisp.org>
119152         * m4/javaexec.m4: New file, from GNU gettext.
119154 2005-01-26  Bruno Haible  <bruno@clisp.org>
119156         * lib/javaexec.sh.in: New file, from GNU gettext.
119157         * lib/javaexec.h: New file, from GNU gettext.
119158         * lib/javaexec.c: New file, from GNU gettext.
119160 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119162         * modules/lchown (Depends-on): Remove lchown.h
119164 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119166         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119167         must be defined if the header file was not found, in order
119168         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119170 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119172         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119173         initializers for struct pentry_state.
119174         (__argp_error): Check return value of __asprintf
119175         (__argp_failure): Translate error message
119177         * lib/argp-parse.c: Removed braces around the expansion of N_()
119179 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119181         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119182         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119183         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119184         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119185         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119186         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119187         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119188         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119189         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119190         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119191         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119192         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119193         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119194         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119195         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119196         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119197         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119198         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119199         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119200         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119201         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119202         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119203         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119204         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119205         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119206         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119207         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119208         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119209         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119210         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119211         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119212         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119213         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119214         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119215         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119216         Use an all-permissive copyright notice, recommended by RMS.
119218 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119220         * modules/chdir-long (Depends-on): Remove mempcpy.
119222 2005-01-21  Jim Meyering  <jim@meyering.net>
119224         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119225         same value as for Solaris 9.
119227         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119228         component length.  This included changing the parameter to be
119229         of type `char *' rather than `char const *'.
119230         * lib/chdir-long.h (chdir_long): Update prototype.
119232         * lib/openat.c (fdopendir, fstatat): New functions.
119233         * lib/openat.h: Include headers required for use of DIR and struct
119234         stat.
119235         [AT_SYMLINK_NOFOLLOW]: Define.
119236         (fdopendir, fstatat): Add prototypes.
119238 2005-01-21  Bruno Haible  <bruno@clisp.org>
119240         * modules/classpath: New file.
119241         * MODULES.html.sh (Java): Add classpath.
119243 2005-01-21  Bruno Haible  <bruno@clisp.org>
119245         * lib/classpath.h: New file, from GNU gettext.
119246         * lib/classpath.c: New file, from GNU gettext.
119248 2005-01-20  Simon Josefsson  <jas@extundo.com>
119250         * modules/version-etc-fsf: New file.
119252 2005-01-20  Simon Josefsson  <jas@extundo.com>
119254         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119255         * lib/version-etc.c: Remove version_etc_copyright.
119256         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119257         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119259 2005-01-20  Simon Josefsson  <jas@extundo.com>
119261         * lib/base64.h (isbase64): Add.
119263         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119264         using a unsigned prototype, don't inline.
119265         (base64_decode): Use it.
119267 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119269         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119270         it.
119272 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119274         * lib/save-cwd.c (save_cwd): Remove code to support the case
119275         where fchdir is missing or flaky.
119277 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119279         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119281 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119283         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119284         AC_LIBSOURCES now does this.
119285         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119286         with new ullong_max module.
119288 2005-01-19  Bruno Haible  <bruno@clisp.org>
119290         * modules/sh-quote: New file.
119291         * MODULES.html.sh (Executing programs): Add sh-quote.
119293 2005-01-19  Bruno Haible  <bruno@clisp.org>
119295         * lib/sh-quote.h: New file, from GNU gettext.
119296         * lib/sh-quote.c: New file, from GNU gettext.
119298 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119300         Merge from coreutils.
119301         * m4/ullong_max.m4: New file.
119302         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119303         (gl_MACROS): Assume localeconv exists.
119305 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119307         Merge changes from coreutils, as described below in several
119308         changelogs dated today.
119310         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119311         (O_DIRECTORY): Remove; not needed here, since "." must be
119312         a directory.  All uses removed.
119313         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119314         universal on Suns, and we also need to test for IRIX.
119315         Revamp code to use 'if' rather than '#if'.
119316         Avoid unnecessary comparison of cwd->desc to 0.
119318         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119319         for known valid error numbers rather than observed invalid ones.
119321 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119323         * modules/ullong_max: New file.
119325         * modules/chdir-long, modules/openat: New files.
119326         * modules/save-cwd (Depends-on): Depend on chdir-long.
119327         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119329 2005-01-18  Jim Meyering  <jim@meyering.net>
119331         Merge from coreutils.
119332         * m4/chdir-long.m4, m4/openat.m4: New files.
119333         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119334         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119335         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119336         is sane and DOES follow symlinks.  Besides, testing 20 different
119337         systems found no broken chown implementations.
119338         Prompted by a change in rsync's copy of this macro.
119339         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119341         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119343         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119344         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119345         NULL-means-set-to-current-time semantics.
119346         Remove temporary file immediately, rather than waiting
119347         for configure's at-exit trap code to do it.
119349 2005-01-18  Jim Meyering  <jim@meyering.net>
119351         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119353         * lib/utimens.c (futimens): Account for the fact that futimes
119354         can also fail with errno == ENOSYS or errno == ENOENT.
119355         Patch from Dmitry V. Levin.
119357         Change the name of the robust chdir function from chdir to chdir_long.
119358         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119359         (restore_cwd): Use chdir_long, not chdir.
119360         * lib/chdir-long.c: Renamed from chdir.c.
119361         * lib/chdir-long.h: Renamed from chdir.h.
119362         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119363         Hurd.
119365 2005-01-18  Bruno Haible  <bruno@clisp.org>
119367         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119368         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119369         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119370         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119371         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119372         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119373         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119374         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119375         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119376         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119377         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119378         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119379         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119380         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119381         Use an all-permissive copyright notice, recommended by RMS.
119383 2005-01-18  Bob Proulx  <bob@proulx.com>
119385         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119386         simplify offsetof() macro construct to avoid compile failure with
119387         native HP-UX 11.0 ANSI C compiler.
119389 2005-01-17  Bruno Haible  <bruno@clisp.org>
119391         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119392         redundant because stpncpy.m4 takes care of it.
119394 2005-01-17  Bruno Haible  <bruno@clisp.org>
119396         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119398 2005-01-17  Bruno Haible  <bruno@clisp.org>
119400         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119401         used.
119403 2005-01-17  Bruno Haible  <bruno@clisp.org>
119405         * lib/fwriteerror.h (fwriteerror): Change specification to include
119406         fclose.
119407         * lib/fwriteerror.c: Include <stdbool.h>.
119408         (fwriteerror): At the end, close the file stream. Record whether
119409         stdout was already closed.
119411 2005-01-17  Bruno Haible  <bruno@clisp.org>
119413         * lib/execute.c (environ): Declare if needed.
119414         * lib/pipe.c (environ): Likewise.
119415         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119417 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119419         * modules/argp: Depend on vsnprintf
119421 2005-01-10  Jim Meyering  <jim@meyering.net>
119423         * modules/closeout (Depends-on): Add atexit.
119425 2005-01-06  Bruno Haible  <bruno@clisp.org>
119427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119429 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119431         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119432         definitions to be after all include files, to avoid collisions.
119433         Problem reported by Bob Proulx.
119435 2005-01-04  Jim Meyering  <jim@meyering.net>
119437         Changes imported from coreutils.
119438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119439         as the mkstemp template, use a temporary directory and an
119440         8.3-friendly template to avoid trouble on systems like DJGPP.
119441         Reported by Juan M. Guerrero via Stepan Kasal.
119442         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119443         close. Remove the temporary directory right away, rather than waiting
119444         for configure's at-exit trap code to do it.
119445         Suggestion from Stepan Kasal.
119447 2005-01-01  Simon Josefsson  <jas@extundo.com>
119449         * gnulib-tool: Print #include directives when --import'ing.
119451 2004-12-28  Simon Josefsson  <jas@extundo.com>
119453         * tests/test-base64.c: Include required header files.  Remove
119454         unused variables.
119456 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119458         * modules/error (Depends-on): Remove gettext.
119460 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119462         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119463         not needed.  This removes a dependency on the gettext module.
119464         [defined _LIBC]: Do not include <libintl.h>; not needed.
119466 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119468         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119469         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119471 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119473         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119474         HAVE_DECL_STRTOLD.
119476 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119478         * modules/getdate (Depends-on): Remove alloca-opt.
119480 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119482         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119484 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119486         * lib/argp-parse.c: Include <stddef.h>.
119487         (alignof, alignto): New macros.
119488         (parser_init): Don't assume that void * is aligned sufficiently
119489         for struct option.
119491         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119492         need to extend the stack.
119493         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119494         large.
119496 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119498         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119500 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119502         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119503         (2004-10-24) change.  Apparently this was a false alarm.
119505         * modules/getdate: Depend on alloca-opt, not alloca.
119507 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119509         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119510         Remove now-obsolete comment about AIX.
119511         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119512         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119513         (YYMAXDEPTH): New macro.
119515 2004-12-18  Simon Josefsson  <jas@extundo.com>
119517         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119519 2004-12-18  Bruno Haible  <bruno@clisp.org>
119521         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119523 2004-12-18  Bruno Haible  <bruno@clisp.org>
119525         * lib/fatal-signal.c (fatal_signals): Make non-const.
119526         (init_fatal_signals): New function.
119527         (uninstall_handlers, install_handlers): Ignore signals that were set to
119528         SIG_IGN.
119529         (at_fatal_signal): Call init_fatal_signals.
119530         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119531         SIG_IGN.
119532         Reported by Paul Eggert.
119534 2004-12-18  Bruno Haible  <bruno@clisp.org>
119536         * doc/alloca.texi: New file.
119537         * doc/alloca-opt.texi: New file.
119539 2004-12-17  Jim Meyering  <jim@meyering.net>
119541         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119542         Otherwise, install-sh could exit with improper exit status when
119543         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119545 2004-12-16  Simon Josefsson  <jas@extundo.com>
119547         * tests/test-base64.c: Add license.
119549 2004-12-15  Stepan Kasal  <address@hidden>
119551         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119553 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119555         * modules/getcwd (Files): Add m4/d-ino.m4.
119556         Suggested by Mark D. Baushke.
119558 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119560         * lib/getdate.y (textint): New member "negative".
119561         (time_zone_hhmm): New function.
119562         Expect 14 shift-reduce conflicts, not 13.
119563         (o_colon_minutes): New rule.
119564         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119565         (yylex): Set the "negative" member of signed numbers.
119567 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119569         * doc/getdate.texi (Time of day items, Time zone items):
119570         Describe new formats +00:00, UTC+00:00.
119572 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119574         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119575         spurious "-l"s.  Problem reported by Stepan Kasal.
119577 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119579         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119580         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119582 2004-12-04  Simon Josefsson  <jas@extundo.com>
119584         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119585         Vandoorselaere <yoann@prelude-ids.org>.
119587 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119589         Changes imported from coreutils.
119590         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119591         exist.
119592         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119594 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119596         Changes imported from coreutils.
119597         * lib/hard-locale.c: Assume <locale.h> exists.
119598         Include "strdup.h".
119599         (GLIBC_VERSION): New macro.
119600         (hard_locale): Assume setlocale exists.
119601         Rewrite to avoid #ifdef.
119602         Use strdup rather than malloc + strcpy.
119603         * lib/human.c: Assume <locale.h> exists.
119604         (human_readable): Assume localeconv exists.
119606 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119608         * modules/hard-locale (Depends-on): Add strdup.
119610 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119612         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119613         convert T2, not T.  (Imported from libc.)
119615 2004-11-30  Simon Josefsson  <jas@extundo.com>
119617         * modules/restrict (License): Change to LGPL.
119619 2004-11-30  Simon Josefsson  <jas@extundo.com>
119621         * m4/restrict.m4: Add copyright and copying conditions.
119623 2004-11-30  Simon Josefsson  <jas@extundo.com>
119625         * m4/base64.m4: New file.
119627 2004-11-30  Simon Josefsson  <jas@extundo.com>
119629         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119630         base64.
119632         * tests/test-base64.c: New file.
119634         * modules/base64: New file.
119636 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119638         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119639         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119641         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119643 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119645         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119646         (__getcwd.c): Don't restore errno; glibc doesn't.
119647         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119648         first, falling back to our code only if its results look suspicious.
119649         Ensure that the resulting buffer is only as large as necessary.
119651         * lib/readutmp.c: Include readutmp.h first.
119652         Include <errno.h>, since readutmp.h no longer does that.
119653         * lib/readutmp.h: Don't include <errno.h>,
119654         <sys/param.h>, <time.h>; not needed to establish interface.
119655         (errno): Remove decl.
119656         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119657         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119658         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119660 2004-11-28  Simon Josefsson  <jas@extundo.com>
119662         * lib/base64.h, base64.c: New file.
119664 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119666         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119668 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119670         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119671         (Depends-on): Remove pathmax, same.  Add mempcpy.
119672         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119673         (Makefile.am): Append getcwd.h to lib_SOURCES.
119674         (Include): Add getcwd.h.
119675         (Maintainer): Change from Jim Meyering to "all, glibc",
119676         since getdate now uses intended-for-glibc code.
119677         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119678         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119680 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119682         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119683         HP's ANSI C compiler.
119684         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119685         Declaring int functions causes warnings on some modern systems and
119686         shouldn't be needed to compile on ancient ones.
119687         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119688         defined.
119690         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119691         with the following changes.
119692         (__set_errno): Parenthesize properly.
119693         Include <stdbool.h>.
119694         (MIN, MAX, MATCHING_INO): New macros.
119695         (__getcwd): Define with prototype, not K&R form.
119696         Use heuristics to allocate default buffer on stack if possible.
119697         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119698         behavior, and to avoid the PATH_MAX limit when computing
119699         ../../../../...
119700         Use MATCHING_INO to compare inode number to file.
119701         Check for arithmetic overflow in size calculations.
119702         Fix bug in reallocation of dot array that caused getcwd to fail
119703         on directories nested deeper than 75.
119704         Be more careful about saving errno on error.
119705         Do not use realloc; use only free+malloc, as this is a bit
119706         more flexible and avoids a needless copy operation.
119707         Do not inspect st_dev and st_ino for symbolic links; POSIX
119708         doesn't specify the latter.
119709         Check for closedir errors.
119710         Avoid needless casts.
119711         Use "#ifdef weak_alias" around weak_alias, to be like other
119712         glibc code.
119713         The following changes to getcwd.c have effect only when used in
119714         gnulib; they have no effect inside glibc proper.
119715         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119716         as alloca isn't used.
119717         (alloca, __alloca): Likewise.
119718         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119719         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119720         unconditionally, as gnulib assumes C89 or better.
119721         Do not include <sys/param.h>.
119722         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119723         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119724         better.
119725         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119726         Include <dirent.h> in a way that is compatible with modern Autoconf.
119727         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119728         New macros, if not already defined.
119729         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119730         Use "_LIBC", not "defined _LIBC", for consistency.
119731         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119732         a mempcpy module.
119733         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119734         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119735         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119736         credit only to Jim Meyering and adjust the copyright dates.
119737         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119738         <stdlib.h>, <unistd.h>, "pathmax.h".
119739         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119740         (INITIAL_BUFFER_SIZE): Remove.
119741         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119743 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119745         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119746         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119747         Use the _ONCE methods, for efficiency.
119748         Check for fcntl.h.  In test program, include <errno.h>
119749         and <fcntl.h> if available.  Remove old K&R cruft from
119750         test program.  Check for common errors in GNU/Linux,
119751         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119752         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119753         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119754         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119755         name accordingly.
119756         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119757         accommodate new getcwd.c.
119758         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119759         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119760         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119761         that's all we need now.
119763 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119765         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119766         argp-parse.c depends on getopt internals, that means we should
119767         always use our getopt, to be on the safe side.
119768         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119769         order not to spoil the result of an eventual previous invocation
119770         of gl_GETOPT_SUBSTITUTE.
119772 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119774         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119775         redefinition warnings. To avoid them, include the defines
119776         in `#if !defined __need_getopt ... #endif'. The only place
119777         where __getopt_argv_const is used is in definitions
119778         of getopt_long and getopt_long_only below, which are as well
119779         protected by `#ifndef __need_getopt'.
119780         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119781         __need_getopt after including <stdio.h> and <unistd.h> These
119782         headers might have defined it.
119784 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119786         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119788 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119790         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119791         (futimens): New function, which uses futimes if available.
119792         (futimens, utimens): Support timespec==NULL, with same semantics
119793         as utime and utimens.
119794         * lib/utimens.h (futimens): New decl.
119796 2004-11-23  Jim Meyering  <jim@meyering.net>
119798         * lib/getopt_.h: Remove trailing blanks.
119800 2004-11-23  Jim Meyering  <jim@meyering.net>
119802         * lib/__fpending.c: Add comment.
119804 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119806         * modules/canonicalize (Depends-on): Add xreadlink.
119807         Problem reported by James Youngman.
119809 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119811         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119812         New macros.
119813         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119814         optopt): Use them instead of invoking ## directly; otherwise, the
119815         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119817 2004-11-19  Bruno Haible  <bruno@clisp.org>
119819         * lib/strtok_r.c: Move comments from here...
119820         * lib/strtok_r.h: ... to here.
119822 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119824         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119825         implementations that mishandle size_t overflow.
119827 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119829         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119830         might fail.  Problem reported by Yoann Vandoorselaere.
119831         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119832         implementations that mishandle size_t overflow.
119834 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119836         * modules/canon-host (Depends-on): Add strdup.
119838 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119840         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119842 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119844         * lib/canon-host.c: Include "strdup.h".
119845         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119846         Use strdup instead of malloc/strcpy to duplicate strings.
119848         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119849         (human_space_before_unit): New constant.
119850         * lib/human.c (human_readable): Support it.
119852         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119853         (xgetcwd): Set errno correctly when failing.
119854         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119855         the failure is actually due to a PATH_MAX problem.
119857         Further getopt changes to make it more likely that glibc will
119858         buy the changes back.
119859         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119860         (getopt): Use it, so to preserve glibc semantic
119861         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119862         when compiling for libc.
119863         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119864         (getopt_long, getopt_long_only): Use it.
119866         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119867         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119868         (getopt): Argv is now char * const *, as per standard.
119869         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119870         not char *__getopt_argv_const *.
119871         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119872         _getopt_long_only_r): Likewise.
119873         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119874         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119875         _getopt_long_r, _getopt_long_only_r): Likewise.
119876         * lib/getopt_.h (__getopt_argv_const): Remove.
119877         (getopt): Argv is now char * const *, as per standard.
119879         * lib/getdate.y (tORDINAL): New token.
119880         (day, relunit): Allow it for relative times.
119881         (relative_time_table): Use tORDINAL for ordinals.
119883 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119885         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119886         Document that "second" isn't allowed as an ordinal number.
119888 2004-11-16  Jim Meyering  <jim@meyering.net>
119890         * modules/closeout (Depends-on): Add fpending.
119892 2004-11-15  Jim Meyering  <jim@meyering.net>
119894         * lib/closeout.c: Include "__fpending.h" once again.
119895         Include <stdbool.h>.
119896         (close_stdout): Don't fail just because stdout was closed initially,
119897         since some programs don't write to stdout in the normal course of
119898         operation (other than --version and --help), and we don't want this
119899         function to make e.g. `touch file >&-' fail.
119900         But do fail if it was closed and someone has tried to write to it.
119901         E.g., `printf foo >&-' must fail.
119903 2004-11-13  Jim Meyering  <jim@meyering.net>
119905         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119907 2004-11-12  Simon Josefsson  <jas@extundo.com>
119909         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119910         small doc fix is still pending.
119912 2004-11-11  Simon Josefsson  <jas@extundo.com>
119914         * modules/strtok_r: New file.
119916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119917         strtok_r.
119919 2004-11-11  Simon Josefsson  <jas@extundo.com>
119921         * m4/strtok_r.m4: New file.
119923         * m4/getopt.m4: Replace opterr.
119925 2004-11-11  Simon Josefsson  <jas@extundo.com>
119927         * lib/strtok_r.h, strtok_r.c: New file.
119929 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119931         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119932         of replacing opterr, getopt, etc.  This should handle the
119933         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119935 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119937         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119938         we can stop lying to compilers about the constness of argv when we
119939         are compiled outside glibc.
119940         (getopt, getopt_long, getopt_long_only): Use it.
119941         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119942         _getopt_internal, getopt): Likewise.
119943         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119944         _getopt_long_only_r): Likewise.
119945         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119946         _getopt_long_r, _getopt_long_only_r): Likewise.
119948         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119949         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119950         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119951         the other external symbols.
119952         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119953         declaration, since the above renaming now works around collisions.
119955 2004-11-11  Jim Meyering  <jim@meyering.net>
119957         * lib/linebreak.c: Remove trailing blanks.
119958         * lib/alloca_.h: Likewise.
119959         * lib/acosl.c: Likewise.
119960         * lib/euidaccess.c: Likewise.
119961         * lib/allocsa.h: Likewise.
119963 2004-11-10  Simon Josefsson  <jas@extundo.com>
119965         * m4/getaddrinfo.m4: New file.
119967 2004-11-10  Simon Josefsson  <jas@extundo.com>
119969         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
119971 2004-11-10  Simon Josefsson  <jas@extundo.com>
119973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119974         getaddrinfo.
119976         * modules/getaddrinfo: New file.
119978 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119980         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
119982 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119984         * lib/mktime.c (SHR): New macro, which is a portable
119985         substitute for >> that should work even on Crays.
119986         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
119987         Problem reported by Mark D. Baushke in
119988         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
119989         * lib/getdate.y (SHR): Likewise.
119990         (tm_diff): Use it.
119991         * lib/strftime.c (SHR): Likewise.
119992         (tm_diff): Use it.
119993         * lib/quotearg.c (struct quoting_options): Use unsigned int for
119994         quote_these_too, so that right shifts are well defined.  All uses
119995         changed.
119997 2004-11-10  Jim Meyering  <jim@meyering.net>
119999         Ensure that no close failure goes unreported.
120000         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120001         return early when it seems there's nothing to flush.
120002         Don't include __fpending.h.
120004 2004-11-10  Jim Meyering  <jim@meyering.net>
120006         * modules/closeout (Depends-on): Remove fpending.
120008 2004-11-10  Jim Meyering  <jim@meyering.net>
120010         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120012 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120014         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120015         gl_FUNC_STRFTIME.
120016         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120017         and AC_REQUIRE when possible, to avoid duplicate checks.
120018         Check for <wchar.h>.
120020 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120022         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120024 2004-11-09  Bruno Haible  <bruno@clisp.org>
120026         * m4/sockpfaf.m4: New file.
120028 2004-11-05  Bruno Haible  <bruno@clisp.org>
120030         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120031         Reported by Mark D. Baushke <mdb@cvshome.org>.
120033 2004-11-04  Bruno Haible  <bruno@clisp.org>
120035         2004-09-11  Bruno Haible  <bruno@clisp.org>
120036                 * allocsa.valgrind: New file.
120037         2004-02-06  Bruno Haible  <bruno@clisp.org>
120038                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120039                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120040                 Reported by Christopher Seip <chris.seip@hp.com>.
120042 2004-11-04  Bruno Haible  <bruno@clisp.org>
120044         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120045         (Makefile.am): Distribute it.
120047 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120049         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120050         with errno == ERANGE if the buffer is too small.
120051         Problem reported by Mark D. Baushke.
120053 2004-11-03  Albert Chin  <china@thewrittenword.com>
120054             Paul Eggert  <eggert@cs.ucla.edu>
120056         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120057         equivalent, substitute $ac_type for equivalent type rather than
120058         blindly using uint32_t *always* which won't work if uint32_t is not
120059         available.  Define _UINT32_T to work around typedef of uint32_t if
120060         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120061         2.5.1.
120063 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120065         * m4/jm-macros.m4: Sync from coreutils.
120066         (gl_MACROS): Check for mbrlen, for pathchk.
120067         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120069 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120071         * lib/xreadlink.c (MAXSIZE): New macro.
120072         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120073         size does not exceed MAXSIZE.  Avoid cast.
120074         As suggested by Mark D. Baushke in
120075         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
120076         if readlink fails with buffer size just under MAXSIZE, try again
120077         with MAXSIZE.
120079 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120081         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
120083 2004-11-02  Derek R. Price  <derek@ximbiot.com>
120084         and  Paul Eggert  <eggert@cs.ucla.edu>
120086         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
120087         (get_date): Overparenthesize to avoid GCC warning.
120089 2004-11-02  Bruno Haible  <bruno@clisp.org>
120091         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
120092         returns void.
120094 2004-11-02  Bruno Haible  <bruno@clisp.org>
120096         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
120097         function returns void.
120099 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120101         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
120102         fflush_unlocked, flockfile, funlockfile, funlockfile,
120103         fputs_unlocked, putc_unlocked.
120105 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
120107         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120108         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120109         already declared.
120111 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120113         * modules/getdate (Files): Add doc/getdate.texi.
120114         (Depends-on): Add setenv, xalloc.
120116 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120118         * lib/getdate.y: Add support for TZ="foo" within a date string.
120119         Fix some bugs near time_t boundaries.  Reject dates with
120120         out-of-range components, e.g., "Sept 31".
120121         Include <stdlib.h>, "setenv.h", "xalloc.h".
120122         (ISDIGIT_LOCALE): Remove; unused.
120123         Note that the TZ and time functions used here are not reentrant.
120124         (mktime_ok, get_tz): New functions.
120125         (TZBUFSIZE): New constant.
120126         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120127         This requires that we sometimes generate our own TZ="XXX..." setting.
120129 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120131         * doc/getdate.texi: New file, from coreutils with modifications for
120132         the new TZ parsing.
120134 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120136         * lib/mktime.c (not_equal_tm): Remove redundant check.
120138 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120140         * modules/regex (lib_SOURCES): Add regex.c.
120141         Reported by James Youngman in
120142         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120144 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120146         * lib/getdate.y: Use Bison 1.875 features, and some minor
120147         code cleanups.  This change does not affect semantics.
120148         Don't include <stdlib.h>; no longer needed.
120149         Don't include unlocked-io.h; only the "#if TEST" code uses
120150         stdio, and performance isn't crucial there.
120151         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120152         Bison 1.875 features as described below.
120153         All uses of "PC." replaced by "pc->".
120154         (YYSTYPE): Add a forward declaration.
120155         (yylex, yyerror): Use full prototypes in forward decls.
120156         Use "%pure-parser" rather than obsolescent "%pure_parser".
120157         Use %parse-param and %lex-param instead of obsolescent
120158         YYPARSE_PARAM and YYLEX_PARAM.
120159         (meridian_table, month_and_day_table, time_units_table,
120160         relative_time_table, time_zone_table, military_table,
120161         lookup_zone, lookup_word, get_date):
120162         Use NULL instead of 0 where appropriate.
120163         (to_hour): Avoid abort (), to avoid a dependency on
120164         stdlib.h.
120165         (yyerror, yylex): Now accepts parser_control * arg.
120166         (main) [TEST]: Use '\0' rather than 0 for char.
120168 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120170         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120172 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120174         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120175         It's now the caller's responsibility to handle the case where
120176         !HAVE_GETPAGESIZE && !defined getpagesize.
120178         * lib/mktime.c (leapyear): Arg is long int, not int.
120180 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120182         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120184 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120186         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120187         missing.  Problem reported by James Youngman.
120189 2004-10-16  Simon Josefsson  <jas@extundo.com>
120191         * gnulib-tool: Fix comments.  Fix parse problem.
120192         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120194 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120196         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120197         implementation of getopt_long.  Problem reported by Alexander Taler in:
120198         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120200 2004-10-15  Bruno Haible  <bruno@clisp.org>
120202         * gnulib-tool: Untabify. Initialize supplied_libname.
120203         (func_usage): More homogenous output.
120204         (func_modules_transitive_closure, func_modules_to_filelist,
120205         func_emit_lib_Makefile_am): New functions.
120206         (func_import): New function, extracted from big case statement. Use
120207         func_get_license, func_modules_transitive_closure,
120208         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120209         opt_lgpl. Don't use test -a, as it's not portable.
120210         (func_create_testdir): Use func_modules_transitive_closure,
120211         func_modules_to_filelist, func_emit_lib_Makefile_am.
120213 2004-10-15  Bruno Haible  <bruno@clisp.org>
120215         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120217 2004-10-15  Bruno Haible  <bruno@clisp.org>
120219         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120220         the portions belonging to each module.
120221         Suggested by Derek Robert Price <derek@ximbiot.com>.
120223 2004-10-12  Simon Josefsson  <jas@extundo.com>
120225         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120226         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120227         to real functions.
120229 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120231         * modules/vsnprintf: New file.
120233 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120235         * m4/vsnprintf.m4: New file.
120237 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120239         * lib/vsnprintf.h: New file.
120240         * lib/vsnprintf.c: New file.
120242 2004-10-11  Bruno Haible  <bruno@clisp.org>
120244         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120245         vsnprintf.
120247 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120249         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120251 2004-10-07  Bruno Haible  <bruno@clisp.org>
120253         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120254         fits into the provided buffer.
120256 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120258         * lib/diacrit.c, diacrit.h: Add GPL notice.
120260         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120261         notice.
120262         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120263         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120264         This avoids a potential constant-folding bug.
120266 2004-10-05  Bruno Haible  <bruno@clisp.org>
120268         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120269         for the declaration of strsep.
120271 2004-10-05  Bruno Haible  <bruno@clisp.org>
120273         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120275 2004-10-04  Simon Josefsson  <jas@extundo.com>
120277         * modules/memmem: New file.
120278         * tests/test-memmem.c: New file.
120279         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120281 2004-10-04  Simon Josefsson  <jas@extundo.com>
120283         * m4/memmem.m4: New file.
120285 2004-10-04  Simon Josefsson  <jas@extundo.com>
120287         * lib/memmem.h: New file.
120288         * lib/memmem.c: New file, taken from glibc.
120290 2004-10-04  Simon Josefsson  <jas@extundo.com>
120292         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120293         '#ifdef USE_UNLOCKED_IO'.
120295 2004-10-04  Simon Josefsson  <jas@extundo.com>
120297         * config/srclist.txt: Add memmem from glibc.
120299 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120301         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120303         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120304         modules/exclude, modules/getdate, modules/getline,
120305         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120306         modules/getusershell, modules/linebuffer, modules/md5,
120307         modules/mountlist, modules/posixtm, modules/readtokens,
120308         modules/readutmp, modules/regex, modules/sha1,
120309         modules/version-etc, modules/yesno:
120310         Remove dependency on unlocked-io.
120312 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120314         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120316         * m4/unlocked-io.m4: Add copyright notice.
120317         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120319 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120321         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120322         * lib/xmalloc.c (xmemdup): Likewise.
120323         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120324         XFREE): Remove these long-obsolescent macros.
120325         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120326         * lib/xstrdup.c: Remove.
120328         * lib/regex.c (re_comp): Cast gettext return value to char *,
120329         Problem reported by Martin Neitzel via Mark D. Baushke.
120331 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120333         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120334         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120335         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120336         regex.c, sha1.c, version-etc.c, yesno.c:
120337         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120338         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120339         the includer's responsibility.
120341         Sync from coreutils.
120343         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120344         points to the start of a string, as the C Standard says the
120345         resulting behavior is undefined.
120347         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120348         simple -> simple_backups, numbered_existing ->
120349         numbered_existing_backups, numbered -> numbered_backups
120350         to avoid shadowing problems.  All uses changed.
120351         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120352         * lib/backupfile.c (check_extension, numbered_backup):
120353         Rename locals to avoid shadowing 'basename'.
120354         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120355         once.
120357         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120358         * lib/.cvsignore: Add getopt.h.
120360 2004-10-04  Bruno Haible  <bruno@clisp.org>
120362         * modules/README: New file.
120363         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120364         not a module.
120366 2004-10-02  Jim Meyering  <jim@meyering.net>
120368         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120370 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120372         * modules/strsep: New file.
120374 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120376         * m4/strsep.m4: New file.
120378 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120380         * lib/strsep.h: New file.
120381         * lib/strsep.c: New file.
120383 2004-10-01  Simon Josefsson  <jas@extundo.com>
120385         * lib/snprintf.c (snprintf): Handle size==0.
120387 2004-10-01  Simon Josefsson  <jas@extundo.com>
120388             Bruno Haible  <bruno@clisp.org>
120390         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120391         (snprintf): Declare 'args'.
120393 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120395         * lib/snprintf.c: Remove comments as to why each header is needed.
120397 2004-10-01  Bruno Haible  <bruno@clisp.org>
120399         * MODULES.html.sh: Add strsep.
120401 2004-09-30  Simon Josefsson  <jas@extundo.com>
120403         * modules/snprintf: New file.
120405 2004-09-30  Simon Josefsson  <jas@extundo.com>
120407         * m4/snprintf.m4: New file.
120409 2004-09-30  Simon Josefsson  <jas@extundo.com>
120411         * lib/snprintf.h, lib/snprintf.c: New files.
120413 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120415         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120416         (hol_entry_help): Never translate an empty string.
120417         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120418         * lib/argp.h (OPTION_NO_TRANS): New option.
120420 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120422         * modules/argp (Maintainer): Replace Simon Josefsson
120423         by Sergey Poznyakoff.
120425 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120427         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120428         changes merged back into glibc.
120430 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120432         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120434 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120436         * lib/xvasprintf.c: Include xalloc.h.
120437         (xvasprintf): Use xalloc_die, not xmalloc_die.
120439 2004-09-29  Bruno Haible  <bruno@clisp.org>
120441         * modules/alloca-opt: New file, derived from modules/alloca.
120442         * modules/allocsa: Depend on alloca-opt instead of alloca.
120443         * modules/setenv: Likewise.
120444         * modules/vasnprintf: Likewise.
120445         * MODULES.html.sh: Add alloca-opt.
120447 2004-09-28  Simon Josefsson  <jas@extundo.com>
120449         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120450         LGPL, and to replace license template from GPL to LGPL.
120452 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120454         * modules/dummy: Change license to LGPL.
120456 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120458         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120460 2004-09-24  Simon Josefsson  <jas@extundo.com>
120462         * modules/minmax (License): Change from GPL to LGPL.
120464 2004-09-23  Simon Josefsson  <jas@extundo.com>
120466         * gnulib-tool (--import): Typo.
120468 2004-09-23  Simon Josefsson  <jas@extundo.com>
120470         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120472 2004-09-22  Bruno Haible  <bruno@clisp.org>
120474         * modules/*: Add 'License' field.
120475         * gnulib-tool: Accept --extract-license option.
120476         (func_get_license): New function.
120478 2004-09-21  Bruno Haible  <bruno@clisp.org>
120480         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120481         Reported by Simon Josefsson.
120483 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120485         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120486         gl_AC_TYPE_LONG_LONG.
120488 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120490         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120492 2004-09-18  Simon Josefsson  <jas@extundo.com>
120493         and  Paul Eggert  <eggert@cs.ucla.edu>
120495         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120496         calls with autoreconf.  Define GL_LIB.
120498 2004-09-14  Karl Berry  <karl@gnu.org>
120500         * config/srclist.txt: unsync setenv.c, sigh.
120502 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120504         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120505         Problem reported by Bruno Haible in:
120506         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120508 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120510         * config/srclist.txt: Comment out argp-pvh.c.
120512 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120514         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120515         in case some system header has #define'd it.  Problem reported by
120516         Soeren D. Schulze in
120517         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120519 2004-09-09  Karl Berry  <karl@gnu.org>
120521         * regex.[ch]: delete from the root.  These were supposed to be
120522                 synced with emacs cvs, but this has not happened for about
120523                 a year, and anyway nothing else uses emacs regex.[ch].
120524                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120525                 lib/regex[.ch] is untouched.
120527 2004-09-09  Bruno Haible  <bruno@clisp.org>
120529         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120531 2004-09-09  Bruno Haible  <bruno@clisp.org>
120533         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120534         modifications.
120535         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120537 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120539         * modules/xvasprintf: New file.
120540         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120542 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120544         * lib/xvasprintf.h: New file.
120545         * lib/xvasprintf.c: New file.
120546         * lib/xasprintf.c: New file.
120548 2004-09-08  Bruno Haible  <bruno@clisp.org>
120550         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120552 2004-09-08  Bruno Haible  <bruno@clisp.org>
120554         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120555         length is > INT_MAX.
120556         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120557         more.
120559 2004-09-08  Bruno Haible  <bruno@clisp.org>
120561         * lib/stdint_.h: New file, taken from GNU clisp.
120563 2004-09-08  Bruno Haible  <bruno@clisp.org>
120564             Oskar Liljeblad  <oskar@osk.mine.nu>
120566         * modules/stdint: New file.
120567         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120569 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120571         Import from coreutils.
120572         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120573         strings on unbounded length.  alloca's performance benefits aren't
120574         that important here.
120575         (V_STRDUP): Remove.
120576         (parse_with_separator): New function, with most of the internals
120577         of the old parse_user_spec.  Allow user to omit both user and group,
120578         for compatibility with FreeBSD.
120579         Clone only the user name, not the entire spec.
120580         Do not set *uid, *gid unless entirely successful.
120581         Avoid memory leak in some failing cases.
120582         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120583         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120584         (parse_user_spec): Rewrite to use parse_with_separator.
120586 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120588         * modules/userspec: Don't depend on alloca.
120590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120592         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120594 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120596         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120597         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120598         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120600 2004-08-16  Simon Josefsson  <jas@extundo.com>
120602         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120603         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120604         Add --dry-run for --import.
120605         Let user provided command line parameters override configure.ac
120606         settings.
120608 2004-08-12  Simon Josefsson  <jas@extundo.com>
120610         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120611         as discussed with Paul Eggert in threads rooted at
120612         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120613         and
120614         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120615         Before, the test was empty, and relied on ELIDE_CODE in source
120616         code.)
120617         (gl_PREREQ_GETOPT): New macro.
120618         (gl_GETOPT): Use them.
120620 2004-08-12  Simon Josefsson  <jas@extundo.com>
120622         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120623         * lib/getopt_.h: Renamed from getopt.h.
120625 2004-08-12  Simon Josefsson  <jas@extundo.com>
120627         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120628         Change default library name from libfoo to libgnu.
120629         Now, if you have a configure.ac that says:
120630                 gl_SOURCE_BASE(gl)
120631                 gl_M4_BASE(gl/m4)
120632                 gl_MODULES(error getopt etcetera)
120633                 gl_INIT
120634         you can import all you need by running:
120635                 ../gnulib/gnulib-tool --import
120637         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120638         (Makefile.am): Rewrite, use logic from argz.
120639         (Include): Use <getopt.h> instead of "getopt.h".
120641 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120643         * modules/argp (Files): Add m4/unlocked-io.m4.
120644         (Depends-on): Add extensions.
120646 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120648         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120649         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120650         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120651         Check for program_invocation_name, program_invocation_short_name,
120652         flockfile, funlockfile, features.h, _getopt_long_only_r.
120654 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120656         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120657         its complicated substitute.
120658         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120659         and program_invocation_name.
120660         (__argp_basename) [!_LIBC]: Remove; the only use was
120661         replaced by its body.
120662         (__argp_short_program_name): Change condition from
120663         !defined __argp_short_program_name to
120664         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120665         to match argp-namefrob.h.
120666         (__argp_failure): Don't assume strerror_r returns char *.
120667         * lib/argp-parse.c (N_): Define unconditionally.
120668         (argp_default_options): Fill out initializers with 0 to avoid
120669         gcc warnings.
120671 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120673         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120674         getopt1.c.
120676 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120678         Merge from coreutils.
120680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120682         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120683         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120685 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120687         Merge from coreutils.
120689         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120690         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120691         for Reliant Unix 5.43.
120693         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120694         (union fooround): Use uintmax_t, not long int.
120695         The rest is a merge from libc:
120696         [defined _LIBC]: Include <shlib-compat.h>.
120697         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120699         * lib/settime.c (settime): Recode to avoid warning with
120700         Sun Forte C 6U2.
120702         * lib/strverscmp.c: Convert to UTF-8.
120704 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120706         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120707         m4/uintmax_t.m4.
120709 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120711         * modules/xalloc-die: New file.
120712         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120714         * modules/md5 (Files): Add m4/uint32_t.m4.
120715         * modules/sha1: Renamed from modules/sha.
120716         (Files):
120717         Rename lib/sha.h to lib/sha1.h.
120718         Rename lib/sha.c to lib/sha1.c.
120719         Rename m4/sha.m4 to m4/sha1.m4.
120720         (lib_SOURCES): Likewise.
120721         (configure.ac): Rename gl_SHA to gl_SHA1.
120722         (Include): sha.h -> sha1.h.
120724 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120726         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120727         * m4/sha1.m4: Renamed from sha.m4.
120728         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120732         * lib/obstack.h (obstack_empty_p):
120733         Don't assume that chunk->contents is suitably aligned.
120734         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120735         Likewise. Problem reported by Benno in
120736         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120738         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120739         readable.  This could be improved further but it'd take some work.
120741 2004-08-08  Simon Josefsson  <jas@extundo.com>
120743         * modules/xgethostname (Depends-on): Remove exit and error (not
120744         used).
120746         * modules/getpass-gnu: Add getpass.h.
120747         (Depends-on): Add stdbool.
120748         * modules/getpass: Add getpass.h.
120750 2004-08-08  Simon Josefsson  <jas@extundo.com>
120752         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120753         Check getpass declaration.
120755 2004-08-08  Simon Josefsson  <jas@extundo.com>
120757         * lib/xgethostname.c: Don't include error.h (not used).
120759         * lib/getpass.h: Add.
120760         * lib/getpass.c: Include getpass.h first.
120762 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120764         * lib/xalloc-die.c: New file.
120765         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120766         All uses removed.
120767         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120768         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120769         xalloc-die.c.
120770         (_, N_, xalloc_die): Move to xalloc-die.c.
120771         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120772         so that we needn't mess with xalloc_msg_memory_exhausted.
120774         * lib/sha1.h: Renamed from sha.h.
120775         (SHA1_H): Renamed from _SHA_H.
120776         (sha1_ctx): Renamed from sha_ctx.
120777         (sha1_init_ctx): Renamed from sha_init_ctx.
120778         (sha1_process_block): Renamed from sha_process_block.
120779         (sha1_process_bytes): Renamed from sha_process_bytes.
120780         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120781         (sha1_read_ctx): Renamed from sha_read_ctx.
120782         (sha1_stream): Renamed from sha_stream.
120783         (sha1_buffer): Renamed from sha_buffer.
120784         * lib/sha1.c: Likewise; renamed from sha.c.
120785         Do not include <sys/types.h>.
120786         Include <stddef.h> rather than <stdlib.h>.
120788 2004-08-08  Bruno Haible  <bruno@clisp.org>
120790         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120791         FILESYSTEM_PREFIX_LEN.
120792         * lib/progreloc.c: Likewise.
120793         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120795 2004-08-06  Simon Josefsson  <jas@extundo.com>
120797         * modules/progname (Depends-on): Don't depend on stdbool.
120799 2004-08-06  Simon Josefsson  <jas@extundo.com>
120801         * modules/getsubopt: New file.
120802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120803         getsubopt.
120805 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120807         More merge from coreutils.
120809         * m4/utimens.m4, m4/utimecmp.m4: New files.
120810         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120811         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120812         prereq.m4, sha.m4: Import changes from coreutils.
120814 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120816         More merge from coreutils.
120817         * modules/raise, modules/readtokens0, modules/utimens:
120818         * modules/utimecmp, module/xnanosleep: New files.
120819         * modules/strftime: Add lib/strftime.h.
120820         Change include from <time.h> to "strftime.h".
120821         * modules/yesno: Add lib/yesno.h.
120822         * modules/backupfile: Remove lib/addext.c.
120823         * modules/euidaccess: Add stat-macros.h.
120824         * modules/canonicalize, modules/euidaccess,
120825         modules/filemode, modules/lchown, modules/makepath,
120826         modules/rmdir, modules/stat: Likewise.
120828 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120830         Merge from tar.
120831         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120832         SIZE_MAX is a valid preprocessor constant.
120833         (__argp_basename): Change from "#ifndef _LIBC"
120834         to "#ifndef __argp_short_program_name", so that
120835         we don't compile these functions for tar.
120837         More merges from coreutils.
120838         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120839         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120840         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120841         * lib/addext.c: Remove; no longer needed.
120842         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120843         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120844         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120845         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120846         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120847         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120848         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120849         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120850         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120851         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120852         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120853         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120854         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120855         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120856         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120857         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120858         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120859         Import changes from coreutils.
120861 2004-08-05  Simon Josefsson  <jas@extundo.com>
120863         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120865 2004-08-05  Simon Josefsson  <jas@extundo.com>
120867         * m4/getsubopt.m4: New file.
120869 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120871         Merge from coreutils.
120873         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120874         * m4/getcwd-path-max.m4: New files.
120876         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120877         FILESYSTEM_PREFIX_LEN ->
120878         FILE_SYSTEM_PREFIX_LEN.
120879         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120880         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120881         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120882         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120884         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120885         prerequisite modules now handle the DOS stuff.
120886         Don't check for unistd.h.
120888 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120890         Merge from coreutils.
120892         * lib/.gdb-history: Remove; this doesn't belong here.
120894         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120895         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120896         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120897         * lib/getcwd.c: New files.
120899         * lib/dirname.h: Include <stdbool.h>.
120900         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120901         for consistency with POSIX terminology.  All uses changed.
120902         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120903         (strip_trailing_slashes): Use bool for booleans.
120904         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120906         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120907         sometimes returns a positive errno value even when it succeeds.
120908         (print_errno_message) [!LIBC]: Fall back on strerror if
120909         __strerror_r fails.
120911         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120912         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120913         (longest_relative_suffix): New function.
120914         (path_concat): Use it.  Assume first argument is not NULL.
120915         Port to DOS.  Omit redundant separators.
120916         Report an error instead of returning NULL.
120917         Use mempcpy instead of memcpy.
120918         (xpath_concat): Remove: not declared or used.
120920         * lib/same.h: Include <stdbool.h>
120921         (same_name): Return bool, not int.
120922         * lib/same.c (same_name): Likewise.
120923         (errno): Don't declare; we assume C89 or better now.
120925         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120926         if not already defined.
120928         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120929         * lib/dup-safer.c (errno): Likewise.
120931 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120933         Merge from coreutils.
120934         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120935         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120936         * modules/path-concat: Don't depend on strdup.
120938 2004-08-03  Simon Josefsson  <jas@extundo.com>
120940         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120941         * lib/progname.h: Don't include stdbool.h.
120943 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120945         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120946         * MODULES.html.sh (func_all_modules): Remove fatal.
120948 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120950         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120952 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120954         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120955         working.
120957 2004-08-02  Simon Josefsson  <jas@extundo.com>
120959         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120960         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120961         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120963 2004-08-01  Simon Josefsson  <jas@extundo.com>
120965         * lib/xgetdomainname.c: Include stdlib.h, for free().
120967 2004-07-19  Bruno Haible  <bruno@clisp.org>
120969         * MODULES.html.sh (func_all_modules): Add dummy.
120971 2004-07-16  Simon Josefsson  <jas@extundo.com>
120973         * modules/dummy: New file.
120975 2004-07-16  Simon Josefsson  <jas@extundo.com>
120977         * lib/dummy.c: New file.
120979 2004-07-16  Bruno Haible  <bruno@clisp.org>
120981         * lib/backupfile.h: Add extern "C" for C++.
120982         * lib/closeout.h: Likewise.
120983         * lib/copy-file.h: Likewise.
120984         * lib/findprog.h: Likewise.
120985         * lib/full-write.h: Likewise.
120986         * lib/pathname.h: Likewise.
120987         * lib/progname.h: Likewise.
120988         * lib/stpcpy.h: Likewise.
120989         * lib/stpncpy.h: Likewise.
120990         * lib/strcase.h: Likewise.
120991         * lib/strstr.h: Likewise.
120992         * lib/xalloc.h: Likewise.
120994         * lib/mbswidth.h: Add extern "C" for C++.
120995         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
120997 2004-07-13  Robert Millan  <robertmh@gnu.org>
120999         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121001 2004-07-09  Simon Josefsson  <jas@extundo.com>
121003         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121004         failed without this.)
121006 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121008         * modules/chown (Files): Add lib/fchown-stub.c, since
121009         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121011 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121013         * lib/fchown-stub.c: New file.
121015 2004-06-24  Jim Meyering  <jim@meyering.net>
121017         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121019 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121021         * modules/argz: Omit "#include".
121023         * MODULES.html.sh (func_all_modules): Add calloc, to match
121024         2004-06-01 addition of calloc module.
121026 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121028         * m4/argz.m4: New file, which is autoupdated from libtool.
121030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121032         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121033         libtool.
121035 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121037         * config/srclist-update: Don't insist on "USA." before the
121038         close-comment, as libtool omits the period and puts the */ on a
121039         separate line.
121040         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121041         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121043 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121045         * modules/argz: New file.
121046         * MODULES.html.sh (func_all_modules): Add argz.
121048 2004-06-12  Jim Meyering  <jim@meyering.net>
121049         and  Paul Eggert  <eggert@cs.ucla.edu>
121051         * modules/hash (Files): Add lib/xalloc.h.
121052         * modules/pipe (Depends-on): Add wait-process.
121053         * modules/stat (Depends-on): Add xalloc.
121054         * modules/userspec (Files): Add lib/userspec.h.
121055         * modules/xstrto
121057         Upgrade from gettext-0.13.
121058         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121059         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121060         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121062 2004-06-10  Jim Meyering  <jim@meyering.net>
121064         * lib/calloc.c: New file.
121066 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121068         * lib/getdate.y (yylex): Allow space between sign and number.
121069         Problem reported by Dan Jacobson.
121071 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121073         Merge from coreutils CVS.
121075         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
121076         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
121077         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
121078         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
121079         xstrtol.m4: Fix copyright date and/or serial number.
121081         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
121082         See if we need an fchown replacement.
121083         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
121084         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
121085         and use the replacement function if we detect either defect.
121087         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
121088         gl_UTIMECMP.
121090 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121091         and  Jim Meyering  <jim@meyering.net>
121093         Merge from coreutils CVS.
121095         * lib/stat-macros.h: New file, with contents from file-type.h
121096         and coreutils' system.h.
121097         * lib/file-type.c: Include "stat-macros.h".
121098         * lib/file-type.h (file_type): Move all macro definitions to new file,
121099         stat-macros.h.
121101         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
121102         Wrap old code with this conditional.
121103         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
121104         function that does not dereference symlinks.
121105         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
121107         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
121108         dependency problems.
121109         (xreadlink): Accept new arg SIZE, for efficiency.
121110         All decls and uses changed.
121111         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121113         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121114         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121116         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121117         sysexits.h.
121119 2004-06-01  Jim Meyering  <jim@meyering.net>
121121         * m4/calloc.m4: New file.
121123 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121126         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121127         Also, fix a typo in a diagnostic.
121129 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121131         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121132         or AC_FUNC_REALLOC.
121134 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121136         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121137         macros to be defined.
121138         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121139         the allocator returns NULL because the requested size is zero.
121141 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121143         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121144         var.  Add comment explaining why libc still defines it.  This
121145         merges the following patch from glibc:
121146         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121148 2004-05-20  Andreas Schwab  <schwab@suse.de>
121150         * m4/free.m4: Replace free if it not known to work, not the other
121151         way round.
121153 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121155         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121156         present in glibc since revision 1.1 of this file.
121157         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121158         obstack_alignment_mask, obstack_alloc, obstack_base,
121159         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121160         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121161         obstack_grow0, obstack_init, obstack_int_grow,
121162         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121163         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121164         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121165         nonexistent functions.
121167 2004-05-18  Karl Berry  <karl@gnu.org>
121169         * config/srclist.txt: break link for vasnprintf.c.
121171 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121173         Port obstack to the AS/400, where pointers are 16 bytes wide and
121174         you cannot cast an integer to a valid pointer.  This patch is
121175         currently waiting to be integrated into glibc; see
121176         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121178         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121179         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121180         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121181         (struct obstack): temp member is now a union of a pointer and
121182         an integer, instead of an integer.  All integer uses changed.
121183         This does not affect the physical layout of struct obstack,
121184         except on hosts (like the AS/400) where the size or alignment of
121185         void * is greater than that of ptrdiff_t.
121186         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121187         __STDC__)]: Store temporary in pointer member of union, not
121188         integer member.
121189         * lib/obstack.c: Include <stddef.h>, for offsetof.
121190         (struct fooalign): Remove; it doesn't need a name.
121191         (union fooround): Change double to long double, and add void *.
121192         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121193         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121194         not a macro.  Hence the values are always int; so remove all
121195         casts-to-int in uses.
121197 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121199         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121200         we can get this patch merged into glibc.
121202 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121203             Paul Eggert  <eggert@cs.ucla.edu>
121205         * m4/argp: Depend on alloca.
121207 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121208             Paul Eggert  <eggert@cs.ucla.edu>
121210         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121211         freecoding.
121213 2004-05-17  Bruno Haible  <bruno@clisp.org>
121215         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121216         precision that consists of a '.' followed by an empty digit string.
121217         Patch by Tor Lillqvist <tml@iki.fi>.
121219 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121222         for backward compatibility with older code.  We need our own
121223         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121224         it under some other name, and our alloca.h will define it.
121226 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121227             Derek Price  <derek@ximbiot.com>
121229         * lib/alloca.c: Include <alloca.h>, to get our interface.
121230         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121231         include <alloca.h> first.  Use C89 prototype for alloca; this
121232         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121233         Use #elif for simplicity, since we can assume C89 now.
121234         Don't try to source the system alloca.h since it will not be found
121235         and to prevent recursively including its replacement.
121236         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121237         * lib/regex.c: Likewise.
121239 2004-05-16  Derek Price  <derek@ximbiot.com>
121240             Paul Eggert  <eggert@cs.ucla.edu>
121242         getline cleanup.  This changes the getndelim2 API: both order of
121243         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121244         no delimiter).
121246         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121247         interface does that.
121248         (getline): Always use getdelim, so that we don't have two
121249         copies of this code.
121250         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121251         if available.
121252         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121253         (GETNDELIM2_MAXIMUM): New macro.
121254         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121255         instead of the old practice of delim2==0.  All callers changed.
121256         Return -1 on overflow, instead of returning junk.
121257         Do not set *linesize unless allocation succeeds.
121258         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121259         that we include sys/types.h.
121260         * lib/getnline.h: Likewise.
121261         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121262         (getndelim2): Reorder arguments.
121263         * lib/getnline.c (getnline, getndelim):
121264         Don't discard the NMAX argument.
121265         (getnline): Invoke getndelim, to avoid code duplication.
121266         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121267         of (size_t) -1 by callers of the getnline family.
121269 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121271         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121272         Check for gettimeofday.
121273         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121274         Check for settimeofday, stime.
121276 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121278         * lib/nanosleep.c (suspended): Change its type from int to
121279         sig_atomic_t volatile.
121280         (first_call): Make it private to rpl_nanosleep, and have it
121281         be zero initially as that's a bit faster.
121282         (my_usleep): Round up fractional times instead of truncating them,
121283         as this is the usual meaning for 'sleep'.
121285         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121286         doesn't work.
121287         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121288         (ENOSYS): Define if not defined.
121289         (settime): Fall back on stime if it exists and settimeofday fails.
121290         But don't bother with fallbacks if a method fails with errno == EPERM.
121292 2004-05-11  Jim Meyering  <jim@meyering.net>
121294         Prior to this change, the save_cwd caller required read access to the
121295         current directory on most systems (ones with the fchdir function).
121297         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121298         fails, try write-only, and finally, resort to using xgetcwd.
121300 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121302         * lib/obstack.c, obstack.h: Import changes from libc.
121304 2004-04-28  Bruno Haible  <bruno@clisp.org>
121306         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121307         also implicitly appends .exe to executables.
121308         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121309         accepts Windows pathnames.
121310         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121311         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121312         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121313         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121314         Reported by Derek Robert Price <derek@ximbiot.com>.
121316 2004-04-21  Karl Berry  <karl@gnu.org>
121318         * config/srclist.txt (localcharset.c): break sync.
121320 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121322         * m4/host-os.m4: Add a copyright notice.
121324 2004-04-20  Jim Meyering  <jim@meyering.net>
121326         Change UTILS_ to gl_ in AC_DEFINE'd names.
121327         Change utils_- and jm_-prefixed variables, too.
121328         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121329         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121332         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121333         Don't emit trailing blanks.
121334         Also rename jm_-prefixed variables to have gl_ prefix.
121336         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121337         Also rename jm_-prefixed variables to have gl_ prefix.
121339         * m4/jm-macros.m4: Reflect the renamings.
121340         * m4/prereq.m4: Likewise.
121342 2004-04-20  Jim Meyering  <jim@meyering.net>
121344         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121345         memory.
121347 2004-04-20  Jim Meyering  <jim@meyering.net>
121348             Bruno Haible  <bruno@clisp.org>
121350         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121351         memory when realloc fails.
121353 2004-04-19  Jim Meyering  <jim@meyering.net>
121355         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121356         now that readutmp.c may call `free (0)'.
121358 2004-04-19  Bruno Haible  <bruno@clisp.org>
121360         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121361         * m4/inttypes_h.m4: Likewise.
121362         * m4/stdint_h.m4: Likewise.
121363         * m4/intmax_t.m4: Likewise.
121364         * m4/uintmax_t.m4: Likewise.
121366 2004-04-18  Jim Meyering  <jim@meyering.net>
121368         * m4/prereq.m4: Don't forbid jm_ prefix.
121370         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121371         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121372         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121373         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121374         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121375         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121376         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121377         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121378         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121379         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121380         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121381         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121382         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121383         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121384         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121385         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121386         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121387         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121388         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121390 2004-04-18  Jim Meyering  <jim@meyering.net>
121392         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121393         failure, don't leak memory and do call END_UTMP_ENT.
121395 2004-04-16  Jim Meyering  <jim@meyering.net>
121397         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121398         coreutils' stat program.
121399         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121401 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121403         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121404         C89.
121405         (CHAR_BIT): Remove, since we assume C89.
121406         Include <stdint.h> if available, as per current Autoconf CVS advice.
121408 2004-03-31  Jim Meyering  <jim@meyering.net>
121410         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121411         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121412         * m4/xalloc.m4: Likewise.
121414 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121416         Merge from coreutils.
121418         * m4/inttostr.m4: New file.
121419         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121420         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121421         Require gl_CLOCK_TIME.
121422         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121424 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121426         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121427         not bool, to be more consistent with Unix conventions.
121428         Suggested by Bruno Haible.
121430         Merge from coreutils.
121432         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121433         * lib/umaxtostr.c: New files.
121435         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121436         the usual <time.h> dance.
121437         (get_date): Change signature to support fractional time stamps.
121438         All callers changed.
121439         * lib/getdate.y: Include "getdate.h" first, as we can now
121440         assume C89 and don't need to worry about 'const'.
121441         Similarly, include "unlocked-io.h" near start, not in middle.
121442         Include <limits.h>.
121443         (textint.value): Use long int rather than int.
121444         (textint.digits): Use size_t rather than int.
121445         (BILLION, LOG10_BILLION): New constants.
121446         (parser_control): New member rel_ns.  Members day_ordinal,
121447         time_zone, month, day, hour, minutes, rel_year, rel_month,
121448         rel_day, rel_hour, rel_minutes, rel_seconds
121449         are now long int, not int.  Member seconds is now struct timespec,
121450         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121451         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121452         not int.
121453         (%union.intval): Now long int, not int.
121454         New member timespec.
121455         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121456         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121457         (spec): Now is a timespec or an item list.
121458         (timespec, items): New nonterminals.
121459         (time, rel, relunit, number, get_date):
121460         Add support for fractional seconds.
121461         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121462         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121463         (to_hour): First arg is now long int, not int.
121464         (to_year): Returns long int, not int.
121465         Don't treat year -70 like 70.
121466         (tm_diff): Returns long int, not int.
121467         (lookup_word): Use bool instead of int when appropriate.
121468         (yylex): Use size_t for count, not int.
121469         Detect overflow when parsing large integer constants.
121470         Add support for fractions.
121471         (get_date): Make pointers 'const' if possible.
121472         Use more-portable code to detect integer overflow.
121473         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121474         Don't use ctime; it's not reliable if the year has >4 digits.
121476         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121477         This is for compatibility with BSD.
121479         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121480         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121481         From coreutils' system.h.
121483         * lib/userspec.c: Don't include "posixver.h".
121484         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121485         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121486         compatible extension.  Simplify code by removing a boolean int
121487         that was always nonzero if a string was nonnull.
121489 2004-03-30  Jim Meyering  <jim@meyering.net>
121491         Merge from coreutils.
121493         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121494         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121495         on some systems one must include <grp.h> before it.
121496         Reported by Christian Krackowizer.
121498 2004-03-30  Jim Meyering  <jim@meyering.net>
121500         Merge from coreutils.
121502         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121504         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121505         an empty input stream.
121507         * lib/readtokens.c: Include <stdbool.h>.
121508         (readtoken): Use `size_t' rather than int/long.
121509         All callers adjusted.
121510         Use `bool' rather than `int' where appropriate.
121511         Use memset rather than an explicit loop.
121512         Use x2nrealloc rather than xrealloc.
121513         Allow the use of `\0' as a delimiter.
121514         (readtokens): Likewise.
121515         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121517 2004-03-30  Jim Meyering  <jim@meyering.net>
121519         * m4/realloc.m4: Remove file, since now it does no more than
121520         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121521         the `configure.ac' section of module/realloc.
121522         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121524 2004-03-30  Bruno Haible  <bruno@clisp.org>
121526         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121527         nonnull.
121529 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121531         Merge changes to getloadavg.c from coreutils and Emacs.
121533         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121534         Define to an expression, not to the empty string.
121535         Include cloexec.h and xalloc.h.
121536         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121537         Use set_cloexec_flag rather than rolling our own.
121538         * lib/cloexec.c, lib/cloexec.h: New files.
121540 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121542         * m4/cloexec.m4: New file.
121544 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121546         * lib/getopt.h: Sync with libc CVS.
121548 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121549             Bruno Haible  <bruno@clisp.org>
121551         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121552         mbswidth.
121554 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121555             Bruno Haible  <bruno@clisp.org>
121557         * lib/mbswidth.h: Include <wchar.h> only if
121558         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121559         <wchar.h>.
121560         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121562 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121564         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121565         Sync with libc CVS.
121566         * lib/getopt_int.h: New file, also synced from libc.
121568 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121570         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121571         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121572         Bring back getopt.c, getopt.h, getopt1.c.
121574 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121576         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121577         All uses changed.  Check for sa_sigaction member; this fixes
121578         a bug first reported by Jason Andrade in
121579         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121581 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121583         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121584         '#if' expressions.  Unlike the code it replaces, it does not
121585         depend on (defined _SC_PAGESIZE).  However, it does depend on
121586         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121587         first reported by Jason Andrade in
121588         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121590 2004-02-25  Simon Josefsson  <jas@extundo.com>
121592         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121594 2004-02-25  Simon Josefsson  <jas@extundo.com>
121596         * lib/strdup.h: New file.
121597         * lib/strdup.c: Include it.
121598         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121599         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121601 2004-02-23  Karl Berry  <karl@gnu.org>
121603         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121604         (from fencepost.gnu.org:/gd/gnuorg).
121606 2004-02-23  Karl Berry  <karl@gnu.org>
121608         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121609         * config/srclist.txt: add maintain/standards documents.
121611 2004-02-18  Bruno Haible  <bruno@clisp.org>
121613         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121614         Reported by Derek Robert Price <derek@ximbiot.com>.
121616 2004-02-16  Karl Berry  <karl@gnu.org>
121618         * config/mkinstalldirs, install-sh: update from automake.
121620 2004-02-06  Karl Berry  <karl@gnu.org>
121622         * m4/po.m4: update from gettext 0.14.1.
121624 2004-02-06  Karl Berry  <karl@gnu.org>
121626         * lib/config.charset: update from gettext 0.14.1.
121628 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121630         Add comments and code, prompted by suggestions from Bruno Haible
121631         for sh-quote.
121632         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121633         describing the enum quoting_style values.
121634         * lib/quotearg.c (quotearg_alloc): New function.
121635         (quotearg_buffer_restyled): Treat lone { and } as special.
121636         Treat = as special.  Work around bug with older shells
121637         that "see" a '\' that is really the 2nd byte of a multibyte char.
121638         Quote empty string with shell_quoting_style.
121640 2004-02-03  Bruno Haible  <bruno@clisp.org>
121642         * m4/pipe.m4: New file, from GNU gettext.
121644 2004-02-03  Bruno Haible  <bruno@clisp.org>
121646         * lib/pipe.h: New file, from GNU gettext.
121647         * lib/pipe.c: New file, from GNU gettext.
121649 2004-01-27  Bruno Haible  <bruno@clisp.org>
121651         * m4/execute.m4: New file, from GNU gettext.
121653 2004-01-27  Bruno Haible  <bruno@clisp.org>
121655         * lib/execute.h: New file, from GNU gettext.
121656         * lib/execute.c: New file, from GNU gettext.
121657         * lib/w32spawn.h: New file, from GNU gettext.
121659 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121661         Merge from diffutils.
121663         * lib/file-type.c (file_type): Add typed memory objects.
121664         * lib/file-type.h (S_TYPEISTMO): New macro.
121666         * lib/c-stack.h (c_stack_action): Remove argv argument.
121667         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121668         (die): Don't calculate message unless segv_action returns.
121669         (get_stack_location, min_address_from_argv, max_address_from_argv,
121670         volatile stack_base, volatile_stack_size): Remove.
121671         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121672         that every segmentation violation is a stack overflow.  (Ouch!)
121673         See Debian bug 136249 (still outstanding) for more info about why
121674         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121676 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121678         Exit-status fix from coreutils.
121680         Use exit_failure consistently in place of EXIT_FAILURE,
121681         so that program exit statuses are consistent on failure.
121683         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121684         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121685         * lib/argmatch.h: Comment fix to match the above.
121686         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121687         Now a macro referring to exit_failure, instead of a separate
121688         variable.  Include "exitfail.h" to get it.
121689         * lib/xstrtol.h: Include "exitfail.h".
121690         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121692         * lib/long-options.c (parse_long_options): Use prototype
121693         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121694         for clarity.
121696 2004-01-21  Jim Meyering  <jim@meyering.net>
121698         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121699         so as not to conflict with a different-sized __mktime_internal
121700         function in GNU libc.
121701         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121702         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121704 2004-01-20  Karl Berry  <karl@gnu.org>
121706         * config/config.guess: update from config.
121708         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121710 2004-01-20  Bruno Haible  <bruno@clisp.org>
121712         Safer stack allocation.
121713         * lib/setenv.c: Include allocsa.h.
121714         (alloca): Remove fallback definition.
121715         (freea): Remove macro.
121716         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121717         instead of freea.
121719 2004-01-20  Bruno Haible  <bruno@clisp.org>
121721         * m4/eealloc.m4: New file, from GNU gettext.
121723 2004-01-20  Bruno Haible  <bruno@clisp.org>
121725         * m4/allocsa.m4: New file, from GNU gettext.
121727 2004-01-20  Bruno Haible  <bruno@clisp.org>
121729         * lib/xallocsa.h: New file, from GNU gettext.
121730         * lib/xallocsa.c: New file, from GNU gettext.
121732 2004-01-20  Bruno Haible  <bruno@clisp.org>
121734         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121736 2004-01-20  Bruno Haible  <bruno@clisp.org>
121738         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121739         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121740         specially.
121742 2004-01-20  Bruno Haible  <bruno@clisp.org>
121744         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121745         patch.
121747 2004-01-20  Bruno Haible  <bruno@clisp.org>
121749         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121751 2004-01-20  Bruno Haible  <bruno@clisp.org>
121753         * lib/eealloc.h: New file.
121755 2004-01-20  Bruno Haible  <bruno@clisp.org>
121757         * lib/binary-io.h: Avoid warnings on Cygwin.
121759 2004-01-20  Bruno Haible  <bruno@clisp.org>
121761         * lib/allocsa.h: New file, from GNU gettext.
121762         * lib/allocsa.c: New file, from GNU gettext.
121764 2004-01-18  Karl Berry  <karl@gnu.org>
121766         * doc/gpl.texi, doc/lgpl.texi: new files.
121768 2004-01-18  Karl Berry  <karl@gnu.org>
121770         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121771         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121773 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121775         Merge from coreutils.
121777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121778         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121779         (gl_DEFAULT_POSIX2_VERSION): Move
121780         the documentation from 'configure' into 'config.hin',
121781         so that 'configure --help' isn't burdened by it and
121782         we don't have to worry about its formatting there.
121783         Reword the documentation so that it's more succinct
121784         and can be run together into a single paragraph.
121785         * m4/same.m4 (gl_SAME): Check for pathconf.
121787 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121789         Merge from coreutils.
121791         * lib/posixver.c: Include posixver.h.
121793         * lib/same.c: Include <stdbool.h>, <limits.h>.
121794         (_POSIX_NAME_MAX): Define if not defined.
121795         (MIN): New macro.
121796         (same_name): If file names are silently truncated, report
121797         that the file names are the same if they are the same after
121798         the silent truncation.
121800         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121801         conversion function.
121802         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121803         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121804         longer needed.
121806 2004-01-15  Jim Meyering  <jim@meyering.net>
121808         Merge from coreutils.
121810         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121811         if no library is required.
121812         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121813         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121814         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121815         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121816         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121817         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121818         value, $ac_cv_search_crypt, if it's "none required".
121819         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121820         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121821         not gl_FUNC_GETLOADAVG.
121822         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121823         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121825 2004-01-15  Jim Meyering  <jim@meyering.net>
121827         Merge from coreutils.
121829         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121830         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121831         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121833         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121834         optional configure-time default.
121836         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121838         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121840 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121842         Merge from coreutils.
121844         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121845         value, $ac_cv_search_nanosleep, if it's "none required".
121847 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121849         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121850         with like-named macro in fnmatch.c.
121851         (EXT): Use an internal constant instead.
121853         Merge fnmatch patches from glibc.
121854         * lib/fnmatch.c (mbsinit): Remove define.
121855         Add libc_hidden_ver (__fnmatch, fnmatch).
121856         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121857         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121859 2004-01-14  Karl Berry  <karl@gnu.org>
121861         * config/install-sh: update from automake.
121863 2004-01-13  Karl Berry  <karl@gnu.org>
121865         * config/install-sh: update from automake.
121867 2004-01-09  Karl Berry  <karl@gnu.org>
121869         * config/install-sh: update from automake.
121871 2004-01-05  Karl Berry  <karl@gnu.org>
121873         * config/config.{sub,guess}: update from config.
121875 2003-12-31  Karl Berry  <karl@gnu.org>
121877         * config/depcomp: update from automake.
121879 2003-12-14  Karl Berry  <karl@gnu.org>
121881         * lib/config.charset: update from gettext-runtime.
121883 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121885         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121886         Bug reported by Alfred M. Szmidt.
121888 2003-12-03  Bruno Haible  <bruno@clisp.org>
121890         * m4/gettext.m4: Upgrade from gettext-0.13.
121891         * m4/po.m4: Upgrade from gettext-0.13.
121892         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121893         * m4/intmax.m4: New file, from gettext-0.13.
121894         * m4/printf-posix.m4: New file, from gettext-0.13.
121896 2003-11-29  Karl Berry  <karl@gnu.org>
121898         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121900 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121901             Bruno Haible  <bruno@clisp.org>
121903         * lib/printf-parse.h: Don't include sys/types.h.
121904         (ARG_NONE): New macro.
121905         (char_directive): Change type of *arg_index fields to size_t.
121906         * lib/printf-parse.c: Don't include sys/types.h.
121907         (SSIZE_MAX): Remove macro.
121908         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121909         Remove unnecessary overflow check.
121910         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121911         fields.
121913 2003-11-25  Bruno Haible  <bruno@clisp.org>
121915         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121917 2003-11-25  Bruno Haible  <bruno@clisp.org>
121919         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121920         gt_TYPE_SSIZE_T.
121922 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121924         * modules/alloca: Remove dependency on xalloc.
121926 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121928         * lib/alloca.c: Remove dependency on xalloc module.
121929         (xalloc_die): Remove.
121930         (memory_full) [!defined emacs]: New macro.
121931         [!defined emacs]: Don't include xalloc.h.
121932         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121933         address arithmetic overflows.  Change datatypes a bit to avoid
121934         unnecessary casts.
121936 2003-11-22  Jim Meyering  <jim@meyering.net>
121938         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121939         s/size/size_t/.
121941 2003-11-21  Karl Berry  <karl@gnu.org>
121943         * config/config.{sub,guess}: update from config.
121945 2003-11-18  Karl Berry  <karl@gnu.org>
121947         * config/config.{sub,guess}: update from config.
121949         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121951 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121953         * README: Mention that S+T cannot overflow if S is the size of
121954         an existing object and T is sufficiently small.
121956 2003-11-17  Jim Meyering  <jim@meyering.net>
121958         On systems without utime and without a utimes function capable of
121959         dealing with a NULL struct utimbuf* argument, this utime replacement
121960         could -- in unusual circumstances -- leak a file descriptor.
121961         * lib/utime.c: Include <unistd.h> and <errno.h>.
121962         (utime_null): Be sure to close `fd' and to preserve errno.
121963         Reported by Geoff Collyer via Arnold Robbins.
121965 2003-11-17  Bruno Haible  <bruno@clisp.org>
121967         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
121968         (Depends-on): Add xsize.
121970 2003-11-17  Bruno Haible  <bruno@clisp.org>
121972         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
121974 2003-11-17  Bruno Haible  <bruno@clisp.org>
121976         * lib/vasnprintf.c (alloca): Remove fallback definition.
121977         (freea): Remove definition.
121978         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
121979         Reported by Paul Eggert.
121981 2003-11-16  Paul Eggert  <eggert@twinsun.com>
121982             Bruno Haible  <bruno@clisp.org>
121984         Protect against address arithmetic overflow.
121985         * lib/printf-args.h: Include stddef.h.
121986         (arguments): Change type of field 'count' to size_t.
121987         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
121988         'unsigned int' where appropriate.
121989         * lib/printf-parse.h: Include sys/types.h.
121990         (char_directive): Change type of *arg_index fields to ssize_t.
121991         (char_directives): Change type of fields 'count', max_*_length to
121992         size_t.
121993         * lib/printf-parse.c: Include sys/types.h and xsize.h.
121994         (SSIZE_MAX): Define fallback value.
121995         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
121996         instead of 'int' where appropriate. Check a_allocated, d_allocated
121997         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
121998         * lib/vasnprintf.c: Include xsize.h.
121999         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122000         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122001         overflow. Avoid wraparound when converting a width or precision from
122002         decimal to binary.
122004 2003-11-16  Bruno Haible  <bruno@clisp.org>
122006         Update from GNU gettext.
122007         * lib/printf-parse.c: Generalize to it can be compiled for wide
122008         strings.
122009         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122010         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122011         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122012         SNPRINTF): New macros.
122013         Don't include <alloca.h> if the file is used inside libintl.
122014         (local_wcslen): New function, for Solaris 2.5.1.
122015         (VASNPRINTF): Use it instead of wcslen.
122017 2003-11-16  Bruno Haible  <bruno@clisp.org>
122019         * lib/xsize.h (xmax): New function.
122020         (xsum, xsum3, xsum4): Declare as "pure" functions.
122022 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122024         * modules/xalloc (Files): Undo latest change, since xalloc.h
122025         no longer needs SIZE_MAX or PTRDIFF_MAX.
122027 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122029         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122030         gl_PTRDIFF_MAX.
122032 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122034         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122035         "return", to pacify some unknown compiler.  Problem reported
122036         by Joerg Schilling.
122038 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122040         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122041         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122042         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122043         heuristic is just as accurate as far as we know, and it removes a
122044         dependency on size_max.m4 and ptrdiff_max.m4.
122046 2003-11-11  Bruno Haible  <bruno@clisp.org>
122048         * modules/xsize (Files): Add m4/size_max.m4.
122049         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122051 2003-11-11  Bruno Haible  <bruno@clisp.org>
122053         * m4/size_max.m4: New file.
122054         * m4/ptrdiff_max.m4: New file.
122055         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122056         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122057         (gl_XALLOC): Invoke it.
122059 2003-11-11  Bruno Haible  <bruno@clisp.org>
122061         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122062         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122063         defined.
122065 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122067         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122068         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122069         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122070         From Bruno Haible.
122071         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122072         not (size_t) -1, since it's defined here.
122074 2003-11-09  Karl Berry  <karl@gnu.org>
122076         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
122078 2003-11-06  Paul Eggert  <eggert@twinsun.com>
122080         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
122081         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
122082         Reject sizes of exactly SIZE_MAX bytes.
122083         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
122084         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
122086 2003-11-05  Bruno Haible  <bruno@clisp.org>
122088         * lib/xsize.h: Include limits.h, to avoid a possible collision with
122089         SIZE_MAX defined in <limits.h> on Solaris.
122091 2003-11-04  Jim Meyering  <jim@meyering.net>
122093         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
122094         variable names, rather than @VAR@.
122095         * modules/poll: Likewise.
122097 2003-11-04  Bruno Haible  <bruno@clisp.org>
122099         * modules/xsize: New file.
122100         * modules/linebreak: Depend on xsize.
122101         * MODULES.html.sh (func_all_modules): Add xsize.
122103 2003-11-04  Bruno Haible  <bruno@clisp.org>
122105         * m4/xsize.m4: New file.
122107 2003-11-04  Bruno Haible  <bruno@clisp.org>
122109         * lib/xsize.h: New file.
122110         * lib/linebreak.c: Include xsize.h.
122111         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122112         argument for overflow.
122113         Suggested by Paul Eggert.
122115 2003-11-03  Karl Berry  <karl@gnu.org>
122117         * config/config.{guess,sub}: update from config.
122119 2003-11-03  Jim Meyering  <jim@meyering.net>
122121         * modules/userspec (lib_SOURCES): Add userspec.h.
122122         (Include): Add "userspec.h".
122123         Improve description.
122125 2003-11-03  Jim Meyering  <jim@meyering.net>
122127         * lib/userspec.c: Include "userspec.h".
122128         * lib/userspec.h: New file.
122130 2003-11-03  Bruno Haible  <bruno@clisp.org>
122132         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122134 2003-11-03  Bruno Haible  <bruno@clisp.org>
122136         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122137         available, to avoid (extremely rare) race condition.
122138         Suggested by Paul Eggert.
122140 2003-11-02  Karl Berry  <karl@gnu.org>
122142         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122144 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122146         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122147         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122148         (read_filesystem_list): Set and use me_type_malloced.
122149         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122150         whatever the type happens to be), for brevity and consistency.
122151         Check for size calculation overflow on Alphas running OSF/1.
122153 2003-10-31  Jim Meyering  <jim@meyering.net>
122155         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122157         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122159 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122160             Bruno Haible  <bruno@clisp.org>
122162         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122163         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122165 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122167         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122168         netbsd*-gnu*.  Suggested by Robert Millan.
122170 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122172         * modules/group-member: Depend on stdbool.
122174 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122176         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122178 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122180         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122181         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122182         after the 'gnu' in these cases.  This fixes some bugs in the
122183         previous change, and is based on suggestions by Robert Millan.
122185 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122187         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122188         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122189         no longer needed.
122190         * lib/quotearg.c (quotearg_n_options): Use it.
122191         * lib/group-member.c: Include <stdbool.h>.
122192         (free_group_info): Arg is now const *; don't free arg.
122193         (get_group_info): Now returns bool and accepts struct group_info *,
122194         rather than returning a malloc'ed struct group_info *.
122195         All uses changed.  Check for overflow in internal size calculation.
122197         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122198         rather than xmalloc/xrealloc.
122199         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122200         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122201         conformance bug: the old code used a pointer after freeing the
122202         storage that it addressed.
122203         * lib/hash.c (hash_initialize): Simplify the code by using
122204         xalloc_oversized rather than doing it by hand.
122205         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122206         the buffer preserved.  Use free and xmalloc instead.
122207         * lib/quotearg.c (quotearg_n_options): Likewise.
122208         Use a simpler test for size overflow.  Don't use xalloc_oversized
122209         because unsigned int might be wider than size_t (!); this suggests
122210         that we should switch from unsigned int to size_t for slot numbers.
122212 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122214         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122215         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122216         NetBSD kernels.  Requested by Richard Stallman.
122218 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122220         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122221         to allocate the returned structure.  Do not allocate a subarray,
122222         as x2nrealloc will do that.
122223         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122224         instead of xnrealloc.
122225         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122227 2003-10-27  Bruno Haible  <bruno@clisp.org>
122229         * lib/stdbool_.h: Better support for BeOS.
122231 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122233         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122234         now uses inline.
122236 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122238         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122239         callers that want to do their own size-overflow checking.  Include
122240         <stdbool.h>, since xalloc_oversized returns bool.
122241         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122242         to use xalloc_oversized.
122244         Add two functions x2realloc, x2nrealloc, for programs that grow
122245         arrays dynamically by doubling their sizes.
122246         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122247         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122248         New functions.
122250         Port to C99 semantics for 'inline' of external functions.
122251         Bug reported by Bruno Haible.
122252         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122253         with the old contents of xnmalloc.
122254         (xnmalloc, xmalloc): Use it.
122255         (xnrealloc_inline): New static inline function,
122256         with the old contents of xnrealloc.
122257         (xnrealloc, xrealloc): Use it.
122259         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122260         that.
122262 2003-10-26  Karl Berry  <karl@gnu.org>
122264         * config/srclist.txt (COPYING.DOC): no longer available from
122265         /gd/gnuorg; don't know where the ultimate source is.
122267 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122269         Fix several address-calculation bugs in the hash modules,
122270         plus some minor code cleanup.
122272         * lib/hash.h: Include <stdbool.h>, for bool.
122273         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122274         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122275         hash_get_n_entries, hash_get_max_bucket_length,
122276         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122277         hash_rehash): Use size_t rather than unsigned.
122278         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122279         hash_get_n_buckets_used, hash_get_n_entries,
122280         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122281         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122282         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122283         Likewise.
122284         (SIZE_MAX): Define if not defined.
122285         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122286         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122287         hash_print):
122288         Use const * when possible.
122289         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122290         (check_tuning): Fix bug: if tuning parameters were very close to
122291         0 or 1, rounding errors could have caused subscript violations.
122292         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122293         (hash_initialize): Add 'fail:' label
122294         to free table and return NULL, and use it to simplify code.
122295         Use calloc rather than clearing the storage ourself.
122296         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122297         buffer size calculations.
122298         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122299         Include <stddef.h>, for size_t.
122300         * lib/hash-pjw.c (hash_pjw): Likewise.
122301         Switch to method described by Bruno Haible.
122302         Include <limits.h>, for CHAR_BIT.
122303         (SIZE_BITS): New macro.
122305 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122307         * m4/getline.m4 (AM_FUNC_GETLINE):
122308         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122309         hosts.  Problem reported by Derek Robert Price in
122310         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122311         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122312         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122314 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122316         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122317         ceiling the allocation at NMAX bytes rather than silently
122318         discarding input bytes before NMAX is reached.  This makes
122319         a difference only if NMAX exceeds SIZE_MAX / 2.
122321         * lib/obstack.c: Merge from glibc.
122322         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122323         Add libc_hidden_def (_obstack_newchunk).
122324         (_obstack_free) [! defined _LIBC]: Remove.
122325         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122326         a clone of the function body.
122327         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122328         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122330         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122331         glibc.
122332         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122333         arg to memcpy.
122335         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122336         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122337         Don't use lvalue casts, as GCC plans to remove support for them
122338         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122339         was also present in the non-GCC version, indicating that this
122340         code had always been buggy and had never been widely used.
122341         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122342         Use the fast variant of each macro, rather than copying the
122343         definiens of the fast variant; that way, we'll be more likely to
122344         catch future bugs in the fast variants.
122346 2003-10-20  Bruno Haible  <bruno@clisp.org>
122348         * modules/wait-process: New file.
122349         * MODULES.html.sh (func_all_modules): Add wait-process.
122351 2003-10-20  Bruno Haible  <bruno@clisp.org>
122353         * m4/wait-process.m4: New file.
122355 2003-10-20  Bruno Haible  <bruno@clisp.org>
122357         * lib/wait-process.h: New file, from GNU gettext.
122358         * lib/wait-process.c: New file, from GNU gettext.
122360 2003-10-19  Jim Meyering  <jim@meyering.net>
122362         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122363         HPUX 10.20.
122365 2003-10-18  Karl Berry  <karl@gnu.org>
122367         * config/config.guess: update from config.
122369 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122371         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122372         (getgroups): First arg is int, not size_t.
122373         Don't let 'free' mangle errno.
122375 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122377         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122379 2003-10-16  Karl Berry  <karl@gnu.org>
122381         * config/config.{guess,sub}: update from config.
122383 2003-10-16  Jim Meyering  <jim@meyering.net>
122385         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122386         memcpy.
122388 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122390         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122391         (SIZE_MAX): Remove.
122392         (new_exclude, add_exclude_file): Initial size no longer needs to
122393         be a power of 2.
122394         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122395         our own address arithmetic overflow checking.
122397         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122398         (fnmatch): Do not alloca more than 2000 wide characters;
122399         instead, use malloc for large buffers.
122400         Check for address arithmetic overflow, and return -1
122401         with errno set to ENOMEM in that case.
122402         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122403         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122404         instead, return -1.  Check for address arithmetic overflow.
122406 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122408         Handle invalid suffixes and overflow independently, so that
122409         callers can treat them independently as needed.  Fix some bugs in
122410         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122411         suffix for a human-readable blocksize.  The major caller-visible
122412         change is the addition of a new
122413         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122414         that both overflow and suffix chars were found.
122416         * lib/human.c (humblock): Don't check separately for invalid suffix
122417         char; that is xstrtoumax's job (now that its bug is fixed).
122418         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122419         INTMAX_MAX]: New macros.
122420         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122421         TYPE_MAXIMUM): New macros.
122422         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122423         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122424         if overflow occurs, as it's what __strtol does and it's more useful
122425         in practice.
122426         (__xstrtol): If __strtol reports some error other than ERANGE,
122427         reflect it to the caller as LONGINT_INVALID.  If it reports
122428         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122429         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122430         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122431         value.
122432         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122433         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122434         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122435         [defined UINTMAX_MAX]: New macros.
122437 2003-10-14  Bruno Haible  <bruno@clisp.org>
122439         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122441 2003-10-14  Bruno Haible  <bruno@clisp.org>
122443         * m4/sig_atomic_t: New file, from GNU gettext.
122444         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122446 2003-10-14  Bruno Haible  <bruno@clisp.org>
122448         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122449         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122450         Also use volatile where needed.
122452 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122454         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122455         Change maintainer from Bruno Haible to 'all'.
122457 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122459         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122461 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122463         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122464         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122465         and define in terms of the other primitives.
122466         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122467         (SIZE_MAX): Define if not already defined.
122468         (array_size_overflow): New function.
122469         (xalloc_die): Abort instead of exiting if 'error' returns.
122470         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122471         (xmalloc, xrealloc): Use them.
122472         (xcalloc): Check for address arithmetic overflow.
122473         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122474         a bit faster than strcpy.
122476 2003-10-10  Simon Josefsson  <jas@extundo.com>
122478         * modules/argp (Depends-on): Add restrict and strcase.
122480 2003-10-10  Simon Josefsson  <jas@extundo.com>
122482         * m4/argp.m4: Add AC_C_INLINE.
122484 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122486         Merge getpass from libc, plus a few fixes.
122488         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122489         Include <stdbool.h>.
122490         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122491         __fsetlocking to empty.
122492         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122493         do include <bits/libc-lock.h>.
122494         Do not include <fcntl.h>; not needed.
122495         [_LIBC]: Include <wchar.h>.
122496         (NOTCANCEL_MODE): New macro.
122497         (flockfile, funlockfile) [_LIBC]: New macros.
122498         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122499         [!_LIBC]: New macros.
122500         (call_fclose): New function.
122501         (getpass): Use it.  Save tty stream separately; this simplifies the
122502         code and makes it more reliable if stdin happens to equal stdout.
122503         Invoke __fsetlocking on tty.
122504         Handle thread cancellation if needed.
122505         Namespace cleanup (use __tcgetattr, __getline).
122506         Use bool for Booleans.
122507         [USE_IN_LIBIO]: Handle wide streams.
122508         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122509         stream might go where.
122511         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122512         doesn't have to include <stdio.h> before us.
122513         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122514         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122515         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122516         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122517         if not declared, so that we can use getpass.c code from libc without
122518         rewriting it.
122519         (flockfile, ftrylockfile, funlockfile): New macros.
122521 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122523         * modules/getpass: Depend on stdbool.
122525 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122527         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122529 2003-10-07  Karl Berry  <karl@gnu.org>
122531         * config/config.{guess,sub}: update from config.
122533 2003-10-06  Jim Meyering  <jim@meyering.net>
122534             Bruno Haible  <bruno@clisp.org>
122536         This lets translators provide better translations for the
122537         "Written by ..." part of --version output.
122538         * lib/version-etc.h: Include stdarg.h.
122539         (version_etc_copyright): Declare as readonly.
122540         (version_etc): Make this function variadic with a NULL-terminated list
122541         of author name strings.
122542         (version_etc_va): New declaration.
122543         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122544         (version_etc_copyright): Declare as readonly.
122545         (version_etc_va): New function. Provide a different translatable string
122546         for each possible number of authors < 10. Abbreviate when there are 10
122547         authors or more.
122548         (version_etc): Make this function variadic. Call version_etc_va.
122549         Suggestion from Gary V. Vaughan.
122551         * lib/long-options.h (parse_long_options): Change prototype: the
122552         authors string is moved to the end and becomes variadic.
122553         * lib/long-options.c: Include stdarg.h.
122554         (parse_long_options): Make this function variadic, too.
122555         Call version_etc_va, not version_etc.
122557 2003-10-06  Bruno Haible  <bruno@clisp.org>
122559         * modules/version-etc-2: Remove file.
122560         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122562 2003-10-06  Bruno Haible  <bruno@clisp.org>
122564         * modules/fatal-signal: New file.
122565         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122567 2003-10-06  Bruno Haible  <bruno@clisp.org>
122569         * m4/fatal-signal.m4: New file.
122570         * m4/signalblocking.m4: New file, from GNU gettext.
122572 2003-10-06  Bruno Haible  <bruno@clisp.org>
122574         * lib/version-etc-2.h: Remove file.
122575         * lib/version-etc-2.c: Remove file.
122577 2003-10-06  Bruno Haible  <bruno@clisp.org>
122579         * lib/fatal-signal.h: New file, from GNU gettext.
122580         * lib/fatal-signal.c: New file, from GNU gettext.
122582 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122584         * README: Rework advice for preventing empty .o files.
122585         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122586         not <sys/types.h>.
122588 2003-10-04  Karl Berry  <karl@gnu.org>
122590         * lib/argp*: update from libc.
122592 2003-10-04  Karl Berry  <karl@gnu.org>
122594         * config/config.{guess,sub}: update from config.
122596 2003-10-02  Bruno Haible  <bruno@clisp.org>
122598         * modules/lchown (Include): Add lchown.h.
122599         * modules/time_r (Include): Use "..." syntax.
122600         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122602 2003-10-01  Simon Josefsson  <jas@extundo.com>
122604         * MODULES.html.sh (func_all_modules): Move gethostname from section
122605         'based on' to section 'lacking' POSIX:2001.
122607 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122609         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122610         to output mode on the same stream.
122612 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122614         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122615         Fix arg typo in previous patch.
122617 2003-09-28  Jim Meyering  <jim@meyering.net>
122619         * lib/error.c: Correct cpp indentation.
122621 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122623         * modules/free: New file.
122625 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122627         * m4/free.m4: New file.
122629 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122631         * lib/minmax.h (MIN, MAX)
122632         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122633         Omit the special code that used __typeof__, since we worry that
122634         it could be more trouble than it's worth.  See:
122635         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122636         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122638         * lib/free.c: New file.
122640 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122642         Trivial fixes to Makefile.am parts of module listings.
122643         * modules/strstr: Append strstr.h to lib_SOURCES.
122644         * modules/strcase: Likewise, for strcase.h.
122646 2003-09-27  Karl Berry  <karl@gnu.org>
122648         * config/mkinstalldirs: update from automake.
122650 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122652         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122653         (error_tail): Do not loop, reallocating temporary buffer, since
122654         the output cannot contain more wide characters than the input
122655         contains bytes, the size must be big enough already.  This avoids
122656         one potential size overflow calculation.  Check for size overflow
122657         when calculating temporary buffer size.  Free temporary buffer
122658         when done, if it was allocated with malloc; this plugs a memory
122659         leak.  Remove casts from void * to pointers, that are no longer
122660         needed now that we're assuming C89 or better.
122662         Merge error changes from glibc.
122664         * lib/error.c, error.h: Update copyright notice header to match glibc.
122665         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122666         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122667         Disable cancellation while printing error.
122668         * lib/error.h: Prepend __ to parameter names.
122670 2003-09-26  Jim Meyering  <jim@meyering.net>
122672         * lib/error.c (error_tail): Move some declarations
122673         into inner scope where the local variables are used.
122675 2003-09-26  Bruno Haible  <bruno@clisp.org>
122677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122678         stpncpy().
122679         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122681 2003-09-26  Bruno Haible  <bruno@clisp.org>
122683         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122684         (stpncpy): Define as alias for gnu_stpncpy.
122685         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122687 2003-09-25  Simon Josefsson  <jas@extundo.com>
122689         * lib/xgetdomainname.h: New file.
122690         * lib/xgetdomainname.c: New file.
122692 2003-09-25  Simon Josefsson  <jas@extundo.com>
122693             Bruno Haible  <bruno@clisp.org>
122695         * modules/getdomainname: New file.
122696         * modules/xgetdomainname: New file.
122697         * MODULES.html.sh (func_all_modules): Add getdomainname,
122698         xgetdomainname.
122700 2003-09-25  Simon Josefsson  <jas@extundo.com>
122701             Bruno Haible  <bruno@clisp.org>
122703         * m4/getdomainname.m4: New file.
122705 2003-09-25  Simon Josefsson  <jas@extundo.com>
122706             Bruno Haible  <bruno@clisp.org>
122708         * lib/getdomainname.h: New file.
122709         * lib/getdomainname.c: New file.
122711 2003-09-25  Karl Berry  <karl@gnu.org>
122713         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122715 2003-09-25  Karl Berry  <karl@gnu.org>
122717         * config/install-sh: update from automake.
122719 2003-09-25  Bruno Haible  <bruno@clisp.org>
122721         * modules/version-etc-2: New file, from modules/version-etc with
122722         modifications.
122723         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122725 2003-09-25  Bruno Haible  <bruno@clisp.org>
122727         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122728         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122730 2003-09-24  Simon Josefsson  <jas@extundo.com>
122732         * modules/xgethostname: Add xgethostname.h.
122734 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122736         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122737         the buffer associated with the argument.  Bug reported by
122738         Simon Josefsson.
122740 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122742         * README: Document assumptions that 'int' is at least 32 bits
122743         wide, that integer arithmetic is 2's complement without overflow,
122744         that there are no holes in integer values, that adding sizes of
122745         two nonoverlapping objects can't overflow, and that all-bits-zero
122746         yields scalar zero.  Fix spelling and capitalization typos.
122748 2003-09-19  Karl Berry  <karl@gnu.org>
122750         * lib/argp.h: update from libc.
122752 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122755         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122756         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122758 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122760         * gnulib-tool: Use "test -h", not "test -L", for portability
122761         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122762         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122763         (sed_extract_prog): Issue s commands one-by-one, rather than
122764         using \| in one s command.
122766 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122768         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122769         input error, instead of returning NULL the next time we are called
122770         (and therefore losing track of errno).
122772 2003-09-16  Bruno Haible  <bruno@clisp.org>
122774         * gnulib-tool (func_create_testdir): Warn about duplicated
122775         dependencies.
122777 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122779         * modules/argmatch, modules/fatal, modules/obstack,
122780         modules/xalloc, modules/xgethostname: Sort dependencies by
122781         importance, not alphabetically.
122783 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122785         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122786         fails, so that the caller gets the proper errno.
122788         * lib/readutmp.c (read_utmp): Likewise.
122789         Check for fstat error.  Close stream and free storage
122790         when failing.
122792 2003-09-14  Karl Berry  <karl@gnu.org>
122794         * config/srclist.txt (strdup.c): disable for c89 changes.
122796 2003-09-14  Jim Meyering  <jim@meyering.net>
122798         * lib/getloadavg.c: Correct cpp indentation.
122799         * lib/strdup.c: Likewise.
122800         * lib/vasnprintf.c: Likewise.
122802 2003-09-14  Bruno Haible  <bruno@clisp.org>
122804         * modules/fwriteerror: New file.
122805         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122807 2003-09-14  Bruno Haible  <bruno@clisp.org>
122809         * lib/fwriteerror.h: New file.
122810         * lib/fwriteerror.c: New file.
122812 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122814         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122815         modules/xgethostname, modules/xalloc: Depend on exit.
122817 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122819         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122821         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122822         and AC_MINIX, too, so that their extensions are available.
122824         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122825         This macro has been superseded by gl_BACKUPFILE.
122827         More patches to assume C89 or better.
122829         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122831         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122832         unconditionally.
122833         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122834         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122835         Include <string.h>, <stdlib.h> unconditionally.
122836         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122837         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122838         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122839         headers or for string.h.
122840         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122841         or strtoul.
122843         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122844         headers.
122845         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122846         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122847         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122848         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122849         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122851         memcpy, memset.
122852         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122853         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122854         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122855         strtol.
122856         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122857         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122859         strtoul.
122861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122863         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122864         * lib/obstack.c [!defined _LIBC]: Likewise.
122865         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122866         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122867         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122869         More changes to assume C89 or better.
122871         * lib/error.c (error_tail): Assume vprintf.
122873         * lib/argmatch.c (getenv): Remove decl.
122874         * lib/progreloc.c (get_full_program_name): Define via prototype.
122875         * lib/setenv.c (clearenv): Likewise.
122876         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122877         needed.
122878         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122879         (malloc, memcpy): Remove decls.
122880         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122881         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122882         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122883         (memcpy): Remove macro.
122884         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122885         (__P): Remove.  All uses removed.
122886         (PTR): Remove.  All uses changed to void *.
122887         (CHAR_BIT, NULL): Remove.
122888         (spaces, zeros, memset_space, memset_zero)
122889         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122890         Remove.
122891         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122892         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122893         Define with prototype.
122894         Remove now-unnecessary prototype decl.
122895         (extra_args_spec): Assume ANSI C.  All uses changed.
122896         (extra_args_spec_iso): Remove.
122897         (my_strftime, emacs_strftimeu): Define via prototype.
122898         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122899         unconditionally.
122900         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122901         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122902         (strtoul, strtol): Remove decls.
122903         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122904         LONG_MAX): Remove.
122905         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122906         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122907         (LOCALE_PARAM_PROTO): New macro.
122908         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122909         (INTERNAL (strtol), strtol): Define with a prototype.
122910         (PARAMS): Remove.  All uses removed.
122911         * lib/tempname.c: Include <string.h> unconditionally.
122912         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122913         * lib/xgethostname.c (main): Define with a prototype.
122914         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122915         Include <stdlib.h> unconditionally.
122916         (calloc, malloc, realloc, free): Remove decls.
122917         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122918         Include <stdlib.h> unconditionally.  Sort include file names.
122919         (strtod): Remove.
122920         (xstrtod): Define with a prototype.
122921         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122922         (strtol, strtoul): Remove decls.
122924 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122926         More patches to assume C89 or better.
122927         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122928         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122929         string.h, memchr, STDC_HEADERS.
122931 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122933         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122934         Include <stdlib.h>, <string.h> unconditionally.
122935         Remove now-unnecessary cast to char *.
122936         * lib/strnlen.c: Include <string.h> unconditionally.
122937         * lib/yesno.c (yesno): Define with a prototype.
122939 2003-09-11  Bruno Haible  <bruno@clisp.org>
122941         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122943 2003-09-10  Jim Meyering  <jim@meyering.net>
122945         * lib/error.c: Correct indentation of cpp directives.
122947 2003-09-10  Bruno Haible  <bruno@clisp.org>
122949         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122950         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122951         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122952         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122953         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122954         <stdlib.h> and <string.h> checks.
122955         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122956         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122958 2003-09-10  Bruno Haible  <bruno@clisp.org>
122960         * lib/strcspn.c: Include <string.h> unconditionally.
122961         * lib/strpbrk.c: Include <string.h> unconditionally.
122962         * lib/strstr.c: Include <string.h> unconditionally.
122963         * lib/unicodeio.c: Include <string.h> unconditionally.
122964         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122965         * lib/unsetenv.c: Likewise.
122966         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122967         * lib/yesno.c: Include <stdlib.h> unconditionally.
122968         (rpmatch): Add prototype.
122970 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122972         More patches to assume C89 or better.
122973         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
122974         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
122975         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
122976         or for string.h.
122977         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
122978         stdlib.h.
122979         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
122980         C headers.
122981         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
122982         string.h.
122983         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
122984         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
122985         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
122986         or for string.h.
122987         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
122988         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
122989         C headers.
122990         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
122991         memcpy.
122992         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
122993         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
122994         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
122995         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
122996         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
122997         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
122998         string.h, free.
122999         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123000         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123001         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123002         C headers, or for string.h.
123003         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123004         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123005         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123006         headers, memory.h, stdlib.h, string.h, strings.h.
123007         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123008         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123009         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123010         strchr.
123011         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123012         headers, memory.h, string.h.
123013         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123014         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123015         free.
123016         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123017         headers.
123018         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123019         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123020         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123021         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123022         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123024 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123026         More K&R removal.
123028         * lib/acosl.c (main): Use a prototype.
123029         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123030         tanl.c: Likewise.
123032         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123034         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123035         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123036         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123037         with a prototype.
123038         * lib/getopt.c (const): Remove macro.
123039         Include <string.h> unconditionally.
123040         (my_index): Remove; all uses changed to strchr.
123041         (strlen): Remove decl.
123042         (exchange): Remove forward decl; no longer needed.
123043         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123044         Define with prototype.
123045         * lib/getopt1.c (const): Remove macro.
123046         (getopt_long, getopt_long_only, main): Define with prototype.
123048         * lib/getugroups.c: Include <string.h> unconditionally.
123050         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123051         (getusershell, setusershell, endusershell, readname, main):
123052         Define with prototypes.
123054         * lib/group-member.c: Include group-member.h first.
123055         Include <stdlib.h> unconditionally.
123057         * lib/hard-locale.c: Include hard-locale.h first.
123058         Include <stdlib.h>, <string.h> unconditionally.
123060         * lib/hash.c (free, malloc): Remove decls.
123061         Include <stdlib.h> unconditionally.
123063         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123064         (getenv): Do not declare.
123066         * lib/idcache.c: Include <string.h> unconditionally.
123068         * lib/long-options.c: Include long-options.h first, to test interface.
123069         Include <stdlib.h> unconditionally.
123071         * lib/makepath.c: Include makepath.h first, to test interface.
123072         Include <stdlib.h> and <string.h> unconditionally.
123074         * lib/linebuffer.c: Include <stdlib.h>.
123075         (free): Remove decl.
123077         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
123078         stddef.h. rpl_malloc returns void *, not char *.
123079         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
123080         prototype.
123082         * lib/md5.h: Include <limits.h> unconditionally.
123083         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
123084         (__P): Remove; all uses removed.
123085         * lib/md5.c: Include "md5.h" first.
123086         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
123087         md5_buffer, md5_process_bytes, md5_process_block):
123088         Define with prototypes.
123089         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
123090         * lib/sha.c: Include "sha.h" first.
123091         Include <stdlib.h>, <string.h> unconditionally.
123093         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
123094         * lib/memcmp.c (__ptr_t): Likewise.
123095         * lib/memrchr.c (__ptr_t): Likewise.
123096         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
123097         Include <string.h> unconditionally.
123098         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
123099         * lib/memchr.c: Include <stdlib.h> unconditionally.
123100         * lib/memchr.c (LONG_MAX): Remove.
123101         * lib/memrchr.c (LONG_MAX): Likewise.
123102         * lib/memchr.c (__memchr): Define via a prototype.
123103         * lib/memrchr.c (__memrchr): Likewise.
123104         * lib/memcmp.c (__P): Remove, and remove all uses.
123105         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
123106         Remove forward decls; no longer needed.
123107         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
123108         Use types required by C89 in prototype.
123110         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123111         * lib/savedir.c: Likewise.
123112         * lib/mkdir.c (free): Remove decl.
123113         * lib/rmdir.c (rmdir): Define with a prototype.
123114         * lib/savedir.c: Include savedir.h first, to test interface.
123116         * lib/mktime.c (STDC_HEADERS): Remove.
123117         Include <stdlib.h>, <string.h> unconditionally.
123119         * lib/modechange.c: Include <stdlib.h> unconditionally.
123120         (malloc): Remove decl.
123122         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123123         (free): Remove decl.
123125         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123126         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123127         (This type really should be intptr_t, but that's a C99ism.)
123128         (_obstack_memcpy): Remove: all uses changed to memcpy.
123129         Include <string.h> unconditionally.
123130         (struct obstack): Assume __STDC__ for types of members
123131         chunkfun, freefun, extra_arg.
123132         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123133         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123134         obstack_begin, obstack_specify_allocation,
123135         obstack_specify_allocation_with_arg, obstack_chunkfun,
123136         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123137         Remove unprototyped decls and the macros that use them.
123138         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123139         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123140         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123141         (defined __STDC__ && __STDC__)]:
123142         Remove nonprototyped code.
123143         Include <stdlib.h> unconditionally.
123144         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123145         _obstack_allocated_p, _obstack_free, obstack_free,
123146         _obstack_memory_used, print_and_abort):
123147         Define using prototypes.
123148         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123149         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123150         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123151         obstack_next_free, obstack_object_size, obstack_room) [0]:
123152         Remove unused, unprototyped code.
123154         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123156         * lib/physmem.c (physmem_total, physmem_available, main): Define
123157         with prototypes.
123159         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123160         (main): Define with a prototype.
123162         * lib/posixver.c (getenv): Remove decl.
123164         * lib/putenv.c (malloc): Returns void *, not char *.
123165         Include <string.h> unconditionally.
123166         (strchr, memcpy, NULL): Do not define.
123168         * lib/readtokens.c: Include readtokens.h first, to test interface.
123169         Include <stdlib.h>, <string.h> unconditionally.
123170         (init_tokenbuffer): Define with a prototype.
123172         * lib/regex.c (PARAMS): Remove.  All uses removed.
123173         All uses of _RE_ARGS removed, too.
123174         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123175         unconditionally.
123176         (bzero): Assume memset exists.
123177         (memcmp, memcpy, NULL): Remove.
123178         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123179         char, or assignments to local vars of type signed char.
123180         (init_syntax_once, PREFIX(extract_number_and_incr),
123181         PREFIX(print_partial_compiled_pattern),
123182         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123183         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123184         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123185         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123186         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123187         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123188         wcs_compile_range, byte_compile_range, truncate_wchar,
123189         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123190         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123191         count_mbs_length, wcs_re_match_2_internal,
123192         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123193         PREFIX(alt_match_null_string_p),
123194         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123195         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123196         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123197         now-unnecessary declaration, if any.
123198         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123199         regcomp, regexec):
123200         Remove now-unnecessary casts among pointer types.
123201         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123203         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123204         (free): Remove decl.
123206         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123208         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123209         (free): Remove decl.
123211         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123212         * lib/xgetcwd.c: Likewise.
123214         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123215         (free): Remove decl.
123217         * lib/strchrnul.c (strchrnul): Define with a prototype.
123218         Fix bug: c_in was not converted to char before searching.
123220         The following changes are not K&R related:
123222         * lib/group-member.h: Include <sys/types.h>, so that this file is
123223         self-contained.
123224         * lib/makepath.h: Likewise.
123226         * lib/getusershell.c (readname, default_index, line_size, readname):
123227         Use size_t, not int, for sizes.
123228         (readname): If the size overflows, report an error instead of
123229         looping forever.
123231 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123233         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123234         libc.
123236 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123238         * README: New section: portability guidelines.
123240 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123242         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123243         C89 spec.
123245 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123247         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123249 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123251         Assume C89 or better; remove K&R cruft.
123252         A few of these changes were first proposed by Derek Robert Price
123253         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123255         * lib/addext.c: Include <string.h> unconditionally.
123256         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123257         Don't declare getenv or malloc.
123259         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123260         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123261         (NULL): Remove.
123262         (find_stack_direction, alloca): Use prototypes.
123264         * lib/atexit.c (atexit): Define using a prototype.
123266         * lib/basename.c, dirname.c, stripslash.c:
123267         Include <string.h> unconditionally.
123269         * lib/bcopy.c: Include <stddef.h>.
123270         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123272         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123274         * lib/error.h (error, error_at_line, error_print_progname)
123275         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123276         * lib/error.c: Include error.h first, to check interface.
123277         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123278         (VA_START): Remove; all uses changeed to va_start.
123279         (exit, strerror): Remove decls.
123280         (error_print_progname): Prototype uncondionally.
123281         Don't include <errno.h>; no longer needed.
123282         (private_strerror): Remove.
123283         (error_tail): Always define.
123284         (error, error_at_line): Assume C89 or better; always use prototypes.
123285         * lib/fatal.c: Include "fatal.h" first, to test interface.
123286         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123287         (VA_START): Remove; all uses changed to va_start.
123288         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123289         this case.
123290         (exit): Remove decl.
123291         (fatal): Prototype unconditionally.  Assume va_start works.
123292         Abort at end, to pacify gcc.
123294         * lib/euidaccess.c (main): Define with a prototype.
123296         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123298         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123300         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123301         prototypes.
123302         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123303         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123304         (getenv): Remove decl.
123305         (fnmatch): Define using a prototype.
123306         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123307         (FCT): Define using a prototype.
123309         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123311         * lib/gethostname.c: Include <stddef.h>.
123312         (gethostname): Define with prototype.  Length is size_t, not int.
123314 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123316         Assume C89 or better; remove K&R cruft.
123317         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123318         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123319         string.h, getenv, malloc.
123320         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123321         headers.
123322         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123323         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123324         do not check for strerror.
123325         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123326         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123327         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123328         do not check for doprnt or vprintf.
123329         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123330         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123332 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123334         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123335         getversion.c should have been removed then, but was accidentally
123336         preserved.
123338         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123339         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123341 2003-09-08  Karl Berry  <karl@gnu.org>
123343         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123344                 config, forget about prep.
123346         * config/depcomp, missing: update from automake.
123348 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123350         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123351         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123353 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123355         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123356         copy_tm_result.  Bug reported by Simon Josefsson in
123357         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123359 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123361         * m4/time_r.m4: New file.
123362         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123363         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123364         is. Check for timegm declaration.
123365         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123366         Do not check for gmtime_r.
123367         Replace mktime if __mktime_internal does not exist and if mktime
123368         hasn't been replaced already.
123370 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123372         * lib/time_r.c, lib/time_r.h: New files.
123374         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123375         __localtime_r.
123376         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123377         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123379         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123380         __gmtime_r.
123381         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123382         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123383         Include <time_r.h>.
123385         * lib/timegm.c: Switch to glibc implementation, with the following
123386         changes:
123387         [defined HAVE_CONFIG_H]: Include <config.h>.
123388         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123389         (__mktime_internal) [!defined _LIBC]: New decl.
123390         (__gmtime_r) [!defined _LIBC]: New macro and function.
123391         (timegm): Use a prototype, since gnulib assumes C89.
123392         Do not bother declaring tmp to be const, as it's not really usefu.
123393         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123394         (timegm): Declare only if HAVE_DECL_TIMEGM.
123396 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123398         * MODULES.html.sh (func_all_modules): Add time_r.
123399         * modules/time_r: New file.
123400         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123401         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123403 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123405         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123406         Bug reported by Lute Kamstra in
123407         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123409         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123410         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123411         course with correspondingly smaller numbers for tomorrow and
123412         yesterday.  From Tadayoshi Funaba.  Originally installed into
123413         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123414         coreutils merge?).
123416 2003-08-31  Simon Josefsson  <jas@extundo.com>
123418         * modules/timegm: New file.
123419         * MODULES.html.sh (func_all_modules): Add timegm.
123421 2003-08-31  Simon Josefsson  <jas@extundo.com>
123423         * m4/timegm.m4: New file.
123425 2003-08-31  Simon Josefsson  <jas@extundo.com>
123427         * lib/timegm.h: New file.
123428         * lib/timegm.c: New file.  Based on
123429         wget-1.8.2/src/http.c:mktime_from_utc.
123431 2003-08-31  Karl Berry  <karl@gnu.org>
123433         * lib/argp.h: update from libc.
123435 2003-08-28  Bruno Haible  <bruno@clisp.org>
123437         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123438         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123439         followed by '#define fnmatch fnmatch_posix' gives an error.
123441 2003-08-28  Bruno Haible  <bruno@clisp.org>
123443         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123444         warning on QNX, which defines O_BINARY to 000000.
123446 2003-08-27  Jim Meyering  <jim@meyering.net>
123448         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123449         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123450         would fail after 32.  Reported by Danny Levinson.  Details here:
123451         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123453 2003-08-24  Bruno Haible  <bruno@clisp.org>
123455         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123456         MSVC7 <stdio.h> is included later.
123458 2003-08-22  Simon Josefsson  <jas@extundo.com>
123460         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123462 2003-08-20  Karl Berry  <karl@gnu.org>
123464         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123466 2003-08-20  Bruno Haible  <bruno@clisp.org>
123468         * modules/progname: New file.
123469         * MODULES.html.sh (func_all_modules): Add progname.
123471 2003-08-20  Bruno Haible  <bruno@clisp.org>
123473         * lib/progname.h: New file, from GNU gettext.
123474         * lib/progname.c: New file, from GNU gettext.
123475         * lib/progreloc.c: New file, from GNU gettext.
123477 2003-08-19  Jim Meyering  <jim@meyering.net>
123479         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123480         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123482 2003-08-19  Bruno Haible  <bruno@clisp.org>
123484         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123485         more.
123487 2003-08-19  Bruno Haible  <bruno@clisp.org>
123489         * lib/xstrdup.c: Assume <string.h> exists.
123491 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123493         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123494         in makefile rules.
123496 2003-08-18  Jim Meyering  <jim@meyering.net>
123498         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123499         * m4/lib-ld.m4: Likewise.
123501 2003-08-18  Jim Meyering  <jim@meyering.net>
123503         * lib/setenv.h: Indent nested cpp directive.
123504         * lib/vasnprintf.c: Remove trailing blanks.
123506 2003-08-17  Simon Josefsson  <jas@extundo.com>
123508         * modules/xstrndup: New file.
123509         * MODULES.html.sh (func_all_modules): Add xstrndup.
123511 2003-08-17  Simon Josefsson  <jas@extundo.com>
123513         * modules/argp: Fix autoconf macro name. Add more dependencies.
123515 2003-08-17  Simon Josefsson  <jas@extundo.com>
123517         * m4/xstrndup.m4: New file.
123519 2003-08-17  Simon Josefsson  <jas@extundo.com>
123521         * m4/argp.m4: New file.
123523 2003-08-17  Simon Josefsson  <jas@extundo.com>
123524             Bruno Haible  <bruno@clisp.org>
123526         * lib/xstrndup.h: New file.
123527         * lib/xstrndup.c: New file.
123529 2003-08-17  Bruno Haible  <bruno@clisp.org>
123531         * modules/strndup (Files, Include): Add lib/strndup.h.
123533 2003-08-17  Bruno Haible  <bruno@clisp.org>
123535         * modules/euidaccess (Files): Add lib/euidaccess.h.
123537 2003-08-17  Bruno Haible  <bruno@clisp.org>
123539         * lib/strndup.h: New file.
123541 2003-08-17  Bruno Haible  <bruno@clisp.org>
123543         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123544         like AC_GNU_SOURCE.
123545         * modules/extensions (configure.ac): Comment out the invocation of
123546         gl_USE_SYSTEM_EXTENSIONS.
123548 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123550         Merges from coreutils, etc.
123551         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123552         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123553         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123554         fixing a typo.
123555         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123556         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123558 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123560         Document merge from coreutils.
123561         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123562         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123563         * modules/utime: Add m4/utimes-null.m4.
123565 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123567         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123568         space, undoing this 2003-08-12 change:
123569         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123571 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123573         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123574         strtoul.c from libc, undoing this 2003-08-12 change:
123575         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123577 2003-08-16  Jim Meyering  <jim@meyering.net>
123579         Merges from coreutils.
123580         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123581         prefix.  Adjust cache variables similarly.  Create 500 rather than
123582         just 300 files, to exercise bug on Darwin6.5, too.
123583         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123584         $missing_dir.
123585         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123586         AM_SYS_POSIX_TERMIOS.
123587         Reported by mkc@mathdogs.com.
123588         Also change use of $am_cv_sys_posix_termios
123589         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123590         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123591         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123592         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123593         in /proc/mounts until it finds one with matching device number.  This
123594         is unnecessary when the FILE argument *is* a mount point.  No stat call
123595         is necessary in that case.  So, disable the statvfs-testing code on
123596         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123597         as RedHat bug# 84846.
123598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123599         to 1MB, so as not to render systems with no stack size limit (e.g.,
123600         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123601         Include <unistd.h>.  On some systems,
123602         it is required for the definition of _SC_PAGESIZE.
123604 2003-08-16  Jim Meyering  <jim@meyering.net>
123606         Merge from coreutils.
123607         * lib/xstrtoimax.c: #else #if -> #elif.
123608         * lib/xstrtoumax.c: Likewise.
123610 2003-08-16  Jim Meyering  <jim@meyering.net>
123612         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123613         * m4/utimes.m4: Removed.
123614         * m4/utimes-null.m4: Renamed from utimes.m4.
123616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123617         to 1MB, so as not to render systems with no stack size limit (e.g.,
123618         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123619         Include <unistd.h>.  On some systems,
123620         it is required for the definition of _SC_PAGESIZE.
123622 2003-08-16  Jim Meyering  <jim@meyering.net>
123623         and Paul Eggert  <eggert@cs.ucla.edu>
123625         Merges from coreutils, etc.
123627         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123628         using the latest version from cvs.  This avoids problems with #line
123629         directives using a vendor (Sun) compiler.
123630         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123631         Don't set GETGROUPS_LIB here; now it's
123632         done via getgroups.m4's wrapper function.
123633         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123634         rather than just in sh-util/configure.in, so that the
123635         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123636         same.
123637         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123638         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123639         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123640         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123641         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123642         Remove code that is now done by the newly-required macros.
123643         Append $(EXEEXT) to DF_PROG.
123644         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123645         Do not invoke or require the following here,
123646         since prereq.m4 or some gnulib .m4 now does this for us:
123647         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123648         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123649         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123650         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123651         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123652         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123653         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123654         AC_FUNC_OBSTACK.
123655         Do not replace the following functions, as this is now the job
123656         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123657         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123658         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123659         atexit getpass, strdup, getpagesize.
123660         Replace 'raise'.
123661         Do not check for the following functions, as this is now the job
123662         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123663         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123664         setregid.
123665         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123666         Check for sys/sysctl.h.
123667         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123668         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123669         of checking for ssize_t ourselves.
123671         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123672         Require every macro that gnulib/modules/* suggests for us.
123673         (jm_PREREQ_ADDEXT): New macro.
123674         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123675         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123677         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123678         (gl_PHYSMEM): Use it.
123679         Also check for `table' function.
123680         Check for new headers and functions.
123681         Add check for sys/sysmp.h.
123682         With suggestions from Kaveh Ghazi.
123683         Ignore headers that are present but cannot be compiled.  This
123684         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123685         C 5.4.
123687 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123689         Document merge from coreutils.
123690         * modules/userspec: Depend on posixver.
123691         * modules/strftime: Depend on tzset.
123693 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123695         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123696         rather than tab, after '#' in shell-script copyright notices.
123697         Suggested by Bruno Haible.
123699 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123701         * config/srclist-update: Use three spaces, rather than tab, after '#'
123702         in shell-script copyright notices.  Suggested by Bruno Haible.
123703         Remove unnecessary parenthesization in regular expression.
123705 2003-08-15  Jim Meyering  <jim@meyering.net>
123707         Merge from coreutils.
123708         * lib/xgethostname.c: Include <stdlib.h>.
123709         (xghostname): Don't exit for anything other than memory-related
123710         failure; just return NULL.
123711         * lib/userspec.c: Include "posixver.h".
123712         (parse_user_spec): Accept `.' as a separator only
123713         in pre-POSIX-200112 mode.
123714         * lib/strtoimax.c: Use #elif rather than #else #if.
123715         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123716         Remove function, now that we can rely on a working tzset function.
123717         [!_LIBC]: Ensure that the required autoconf test has been run.
123718         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123719         Use underlying_strftime for %r.
123720         * lib/sha.c: Merge in some clean-up and optimization changes from
123721         glibc.
123722         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123723         Ensure that it is a multiple of 64.
123724         Rearrange loop exit tests so as to avoid performing an
123725         additional fread after encountering an error or EOF.
123726         * lib/realloc.c: Update copyright date.
123728 2003-08-15  Jim Meyering  <jim@meyering.net>
123729         and Paul Eggert  <eggert@twinsun.com>
123731         Merge from coreutils.
123732         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123733         member but strut utmpx does not.  Needed for AIX 4.3.3.
123734         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123736 2003-08-15  Jim Meyering  <jim@meyering.net>
123737         and Paul Eggert  <eggert@cs.ucla.edu>
123739         Merges from coreutils, etc.
123740         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123741         Require gl_FUNC_TZSET_CLOBBER.
123742         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123743         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123744         members.
123746 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123748         Help the merge from coreutils.
123749         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123750         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123751         * m4/tzset.m4: Use it too.
123753 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123755         * modules/tzset: New file.
123757 2003-08-14  Jim Meyering  <jim@meyering.net>
123759         Merges from coreutils.
123760         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123761         variable names, rather than @FNMATCH_H@.
123762         * modules/alloca: Likewise for $(ALLOCA_H).
123764         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123765         the three copies of the literal target, `fnmatch.h'.
123766         * modules/alloca (alloca.h): Likewise.
123768 2003-08-14  Jim Meyering  <jim@meyering.net>
123770         Merge from coreutils.
123771         * m4/tzset.m4: New file.
123772         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123773         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123774         otherwise, AIX 5.1 systems would end up using the latter.
123775         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123776         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123777         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123778         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123780 2003-08-14  Jim Meyering  <jim@meyering.net>
123782         Merge from coreutils.
123783         * lib/obstack.h: Whitespace changes.
123784         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123785         and xcalloc return values.
123786         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123787         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123788         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123789         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123790         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123791         error from mntctl.
123792         Use mntctl's return value to drive the entry-processing loop, since
123793         we can't rely on the value of the vmt_length member in the last
123794         entry.  On some systems doing so could result in exhausting
123795         virtual memory.  Based in part on a patch from Mike Jetzer.
123797 2003-08-14  Jim Meyering  <jim@meyering.net>
123798         and Paul Eggert  <eggert@twinsun.com>
123800         Merges from coreutils, plus other fixes.
123801         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123802         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123803         for credits and details.  Thanks to Kaveh Ghazi for helping
123804         to keep these files in sync.
123805         (ARRAY_SIZE): Define it.
123806         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123807         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123808         (memcasecmp): Don't assume size_t fits in unsigned int.
123809         Remove casts and duplicate code.
123810         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123811         (memcpy): Remove definition.
123812         Merge in some clean-up and optimization changes from glibc.
123813         [BLOCKSIZE]: Move definition to top of file.
123814         Ensure that it is a multiple of 64.
123815         Rearrange loop exit tests so as to avoid performing an
123816         additional fread after encountering an error or EOF.
123817         * lib/md5.h (md5_uintptr): Define.
123818         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123819         return to the initial working directory.  Preserve errno
123820         for caller.
123821         * lib/idcache.c: Include "xalloc.h".
123822         (xmalloc, xrealloc): Remove decls.
123823         (getuser): Remove casts no longer required in C89.
123824         * lib/human.c: Include stdio.h, for sprintf.
123825         * lib/group-member.c: Include "xalloc.h".
123826         (xmalloc, xrealloc): Remove decls.
123827         (get_group_info): Remove casts no longer required in C89.
123828         * lib/getusershell.c (readname): Remove casts no longer required in
123829         C89.
123830         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123831         * lib/getline.c: Whitespace fix, from coreutils.
123833 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123835         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123836         Check for isascii.
123838         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123839         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123840         Undo previous (whitespace-only) change.
123842 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123844         * lib/exclude.c: Include <ctype.h>
123845         (IN_CTYPE_DOMAIN): New macro.
123846         (is_space): New fn.
123847         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123848         and empty lines.
123850         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123851         Undo previous (whitespace-only) change.
123853 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123855         * config/srclist-update: Change update back to the old behavior,
123856         leaving whitespace alone.  Use one 'sed' command rather than a
123857         pipeline.
123858         (fixlicense): Now a variable, not a function.
123859         (remove_trailing_blanks): Remove.
123860         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123861         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123862         Undo previous (whitespace-only) change.
123864 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123866         Merge from coreutils.
123867         * modules/euidaccess: Add lib_SOURCES, include for new
123868         file euidaccess.h
123870 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123872         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123873         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123874         Normalize leading white space and remove trailing white space.
123876         Merge from coreutils
123877         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123879         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123880         0.12.1.  These files are now being upgraded automatically by
123881         ../config/srclist-update.
123883 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123885         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123886         Normalize leading white space and remove trailing white space.
123887         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123888         notice, as per ../config/srclist-update.
123890         Merge from coreutils.
123891         * lib/euidaccess.h: New file.
123892         * lib/euidaccess.c: Include it.
123893         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123894         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123895         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123897 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123899         * config/srclist-update: Add copyright notice.
123900         (remove_id_lines, remove_trailing_blanks): New constants.
123901         (fixfile): Use them to normalize spacing a bit in copied files.
123902         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123903         Normalize leading white space and remove trailing white space.
123905         * config/texinfo.tex: Sync with texinfo.
123907         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123908         strtoul.c from libc, to merge coreutils whitespace changes.
123910         * config/srclist.txt: Get the following m4 files from gettext:
123911         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123912         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123913         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123914         wint_t.m4.
123916 2003-08-12  Karl Berry  <karl@gnu.org>
123918         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123919         been made.
123921 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123923         * modules/gnu-source, m4/gnu-source.m4:
123924         Remove; we're assuming Autoconf 2.54 or later now.
123925         Suggested by Bruno Haible.
123926         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123928 2003-08-11  Bruno Haible  <bruno@clisp.org>
123930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123932 2003-08-11  Bruno Haible  <bruno@clisp.org>
123934         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123935         (vasnprintf): Use it instead of wcslen.
123937 2003-08-11  Bruno Haible  <bruno@clisp.org>
123939         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123940         value to ensure that _Bool promotes to int. Use #define for _Bool when
123941         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123943 2003-08-10  Karl Berry  <karl@gnu.org>
123945         * lib/regex.h: update from libc (whitespace fix).
123947 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123949         Merge some files from coreutils.  These changes were
123950         originally made by Jim Meyering.
123951         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123952         many older Unixes require this.
123953         * lib/alloca.c (alloca): Remove cast to argument of free;
123954         no longer needed in C89.
123955         * lib/alloca_.h, regex.h: Fix white space to match
123956         what GNU indent does.
123958 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123960         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123961         apparently Emacs's Unicode mode got confused before my 2003-08-05
123962         checkin.
123964 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123966         * m4/extensions.m4: New file.
123967         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
123968         Require gl_USE_SYSTEM_EXTENSIONS.
123969         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
123970         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
123972 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123974         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
123975         * modules/extensions, modules/gnu-source: New files.
123976         * modules/timespec, modules/unlocked-io: Depend on extensions.
123978 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123980         * modules/restrict: New file.
123981         * MODULES.html.sh (func_all_modules): Add restrict.
123982         * modules/regex: Depend on restrict.
123984 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123986         * m4/restrict.m4: New file.
123987         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
123989 2003-08-07  Bruno Haible  <bruno@clisp.org>
123991         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
123992         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
123994 2003-08-07  Bruno Haible  <bruno@clisp.org>
123996         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
123997         makes the module 'getndelim2' compatible with the module 'getline'.
123999 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124001         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124002         byte with "\201" to avoid glitches when editing that source file
124003         with multi-gnome-terminal.
124005 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124007         * lib/bumpalloc.h: Remove.
124009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124011         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124012         * modules/bumpalloc: Remove.
124014 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124016         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124017         GNU coding style.
124019         Merge from coreutils.
124020         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124021         1. From glibc.
124022         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124023         from Karl Berry, implemented by Jim Meyering.
124024         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124025         from Dmitry V. Levin.
124026         Remove anachronistic cast of xrealloc.
124027         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124028         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124029         type. Otherwise, it wouldn't compile with at least /bin/cc on
124030         ymp-cray-unicos9.0.2.X.
124031         Combine two mostly-identical uses of alloca into one.
124032         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124034 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124036         [From Emacs.]
124038         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124039         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124040         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124041         obsolete NLIST_NAME_UNION.
124042         [__GNU__]: Undef BSD and FSCALE.
124043         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124045 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124047         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124048         an enum type, so that it's guaranteed to promote to int.  See:
124049         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124051 2003-08-03  Karl Berry  <karl@gnu.org>
124053         * config/depcomp: update from automake.
124055 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124057         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124058         (strerror): Don't assume that a printable int fits in 14 bytes.
124060 2003-07-31  Bruno Haible  <bruno@clisp.org>
124062         * modules/getpass-gnu: New file.
124063         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124065 2003-07-31  Bruno Haible  <bruno@clisp.org>
124067         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124069 2003-07-24  Karl Berry  <karl@gnu.org>
124071         * config/missing: update from automake.
124073 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
124074             Bruno Haible  <bruno@clisp.org>
124076         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
124077         * lib/getline.c (getline, getdelim): Likewise.
124078         Remove _GNU_SOURCE define; now it's defined in config.h through
124079         m4/getline.m4.
124081 2003-07-23  Karl Berry  <karl@gnu.org>
124083         * config/config.sub: update from prep.
124085 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124087         * modules/xalloc (Depends-on): Add exitfail.
124088         * modules/xmemcoll: Likewise.
124090 2003-07-22  Paul Eggert  <eggert@twinsun.com>
124092         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
124093         over-parenthesization in macros.
124095         Sync with coreutils.
124097         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
124098         required by C99.
124100         Use `exit_failure' for xalloc and xmemcoll instead of their own
124101         private exit-failure variables.
124102         * lib/xalloc.h (xalloc_exit_failure): Remove.
124103         * lib/xmalloc.c: Likewise.  Include exitfail.h.
124104         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
124105         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
124106         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
124107         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124109 2003-07-20  Jim Meyering  <jim@meyering.net>
124111         * modules/closeout (Depends-on): Add exitfail.
124112         Suggestion from Bruno Haible.
124114 2003-07-19  Karl Berry  <karl@gnu.org>
124116         * config/config.sub: update from prep.
124118 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124120         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124121         Remove.
124122         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124123         to test that it can stand by itself.  Include "exitfail.h".
124124         Clients should set exit_failure instead.
124125         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124127 2003-07-18  Bruno Haible  <bruno@clisp.org>
124129         * modules/getndelim2: New file.
124130         * modules/getline: Share files with module getndelim2.
124131         * modules/getnline: Depend on getndelim2 instead of sharing files with
124132         it. Add getnline.c to lib_SOURCES.
124133         * MODULES.html.sh (func_all_modules): Add getndelim2.
124135 2003-07-18  Bruno Haible  <bruno@clisp.org>
124137         * m4/getndelim2.m4: New file.
124138         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124139         invoke gl_PREREQ_GETNDELIM2.
124140         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124141         gl_PREREQ_GETNDELIM2.
124142         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124143         gl_GETNDELIM2.
124145 2003-07-18  Bruno Haible  <bruno@clisp.org>
124147         * lib/getndelim2.h: New file.
124148         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124149         getndelim2.h.
124150         (getndelim2): Make non-static. Change return type to ssize_t.
124151         * lib/getline.h: Change argument names.
124152         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124153         * lib/getnline.c: Include getndelim2.h.
124155 2003-07-18  Andreas Schwab  <schwab@suse.de>
124157         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124159 2003-07-17  Karl Berry  <karl@gnu.org>
124161         * config/config.sub: update from prep.
124163 2003-07-17  Bruno Haible  <bruno@clisp.org>
124165         * modules/getnline: New file.
124166         * modules/getline: Add lib/getndelim2.c to source file list.
124167         * MODULES.html.sh (func_all_modules): Add getnline.
124169 2003-07-17  Bruno Haible  <bruno@clisp.org>
124171         * m4/getnline.m4: New file.
124173 2003-07-17  Bruno Haible  <bruno@clisp.org>
124175         * m4/Makefile.am.in: Remove file.
124176         * m4/Makefile.am: Remove file.
124177         * m4/Makefile.in: Remove file.
124179 2003-07-17  Bruno Haible  <bruno@clisp.org>
124181         * lib/getnline.h: New file.
124182         * lib/getnline.c: New file.
124183         * lib/getndelim2.c: New file, extracted from getline.c.
124184         (getndelim2): Renamed from getdelim2, with added nmax argument.
124185         * lib/getline.c: Include getndelim2.c.
124186         (getdelim2): Moved out to getndelim2.c.
124187         (getline, getdelim): Update.
124189 2003-07-17  Bruno Haible  <bruno@clisp.org>
124191         * lib/Makefile.am: Remove file.
124192         * lib/Makefile.in: Remove file.
124194 2003-07-17  Bruno Haible  <bruno@clisp.org>
124196         * configure.in: Remove file.
124197         * Makefile.in: Remove file.
124199 2003-07-17  Bruno Haible  <bruno@clisp.org>
124201         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124203 2003-07-16  Karl Berry  <karl@gnu.org>
124205         * config/srclist-update: was running fixlicense twice, which caused
124206                 texinfo.tex to be nullified for some reason.  Simplify,
124207                 $gplsrc is no longer needed as far as I can see?
124209 2003-07-16  Jim Meyering  <jim@meyering.net>
124211         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124213 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124215         * config/srclist.txt: Get the following files from gettext-runtime/intl
124216         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124217         ref-del.sin.  From Bruno Haible.
124218         * config/srclist-update (fixfile): Change grep pattern again, since the
124219         previous fix didn't work (there was another trailing $).  Use
124220         '[$]' to escape the $s.
124222 2003-07-15  Karl Berry  <karl@gnu.org>
124224         * lib/vasnprintf.c: update from gettext.
124226 2003-07-15  Karl Berry  <karl@gnu.org>
124228         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124229         gets expanded when surrounded by '$'.
124231 2003-07-15  Jim Meyering  <jim@meyering.net>
124233         * modules/save-cwd: Don't depend on error.  From Derek Price.
124235 2003-07-15  Jim Meyering  <jim@meyering.net>
124237         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124239 2003-07-14  Simon Josefsson  <jas@extundo.com>
124241         * modules/mempcpy: New file.
124242         * MODULES.html.sh (func_all_modules): Add mempcpy.
124244 2003-07-14  Simon Josefsson  <jas@extundo.com>
124246         * m4/mempcpy.m4: New file.
124248 2003-07-14  Simon Josefsson  <jas@extundo.com>
124250         * lib/mempcpy.h: New file.
124251         * lib/mempcpy.c: New file.
124253 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124255         * modules/getdate, modules/posixtm: Depend on mktime.
124257 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124259         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124260         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124261         unicodeio.c, unicodeio.h, unlocked-io.h:
124262         Switch from LGPL to GPL.
124264 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124266         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124267         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124268         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124269         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124270         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124271         updated automatically by ../config/srclist-update.  This changes
124272         their license from LPGL to GPL.
124274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124276         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124277         assumed to refer to the root of the most recent stable gettext version.
124278         * config/srclistvars.sh: Add defaults for eggert.
124279         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124280         Match "This program" as well as "The program".  This is needed
124281         for gettext.
124283 2003-07-14  Jim Meyering  <jim@meyering.net>
124285         Don't emit diagnostics.  Let callers do that.
124286         * lib/save-cwd.c: Don't include "error.h".
124287         (save_cwd): Don't call error.  Ensure that errno is valid
124288         when returning nonzero.
124290         * lib/save-cwd.h (restore_cwd): Update prototype.
124291         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124292         Simplify.  Don't call error upon failure.  Let callers do that.
124293         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124294         when auditing is enabled.  But don't bother updating the #if.
124296 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124298         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124299         it breaks C++ compilation.
124300         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124302 2003-07-10  Simon Josefsson  <jas@extundo.com>
124304         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124306 2003-07-10  Jim Meyering  <jim@meyering.net>
124308         * m4/clock_time.m4: Remove trailing blank.
124309         * m4/intmax_t.m4: Likewise.
124311 2003-07-10  Jim Meyering  <jim@meyering.net>
124313         * lib/vasnprintf.c: Remove trailing blanks.
124314         Make cpp indentation consistent.
124316 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124318         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124319         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124320         Switch from LGPL to GPL.
124322 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124324         * config/srclist.txt: Sort sublists.  Add
124325         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124326         that differ from gnulib for one reason or another; we'd like this list
124327         to be smaller but for now let's document what we have.
124329 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124331         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124332         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124333         and sweeter "eval x=$x".
124334         * config/srclist.txt: Get lib/argp* from glibc.
124336 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124338         * lib/mktime.c: Fix some boundary cases and remove need for floating
124339         point.
124341         Issue a compile-time diagnostic if time_t is floating point, or if
124342         two's complement arithmetic is not in effect, or if arithmetic
124343         right shift does not propagate the sign.  These assumptions were
124344         all in the original code but they weren't checked.
124346         (TIME_T_MIDPOINT, verify): New macros.
124347         (__isleap): Remove; it has integer overflow problems.
124348         (leapyear): New function, without those problems.
124349         (ydhms_tm_diff): Remove; splitting into two parts.
124350         (ydhms_diff): New function, containing the arithmetic part of
124351         the old ydhms_tm_diff function.  Issue a compile-time
124352         diagnostic if we are not using C99 integer division.
124353         Avoid casts when possible.
124354         (guess_time_tm): New function, containing the checking part of
124355         the old ydhms_tm_diff function.  Return the new value, rather than
124356         the difference between it and the old.  Accept a new argument T
124357         so that *T specifies the old value.  Check for overflow in the result.
124359         (__mktime_internal): Use a time_t offset, not a long int offset.
124360         This undoes the 2003-06-04 change, which is no longer needed now
124361         that we have better overflow checking.
124362         (localtime_offset): Likewise.
124364         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124365         and long are 64-bit but int is only 32-bit.
124366         (ydhms_diff): Use long int to store year1 and yday1.
124367         Issue a compile-time diagnostic if long int is not wide enough.
124369         (__mktime_internal): Use long int to store adjusted year and yday.
124370         Use plain C rather than preprocessor commands, if that doesn't
124371         affect efficiency.
124372         Check for overflow (and try to repair) after each probe
124373         rather than checking only at the very end.  This avoids some bugs
124374         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124375         does not equal GMT offset at maximum time).
124376         Use integer to check for overflow rather than floating point; this
124377         is more portable to non-IEEE hosts, and is a tad faster.
124378         When we detect that we are oscillating between two values,
124379         don't check whether tm_isdst has the requested value, since
124380         we already know the answer.  When tm_isdst has the wrong value,
124381         use a different heuristic to find the right one, based on the
124382         extreme values actually observed in practice in tz2003a,
124383         rather than the (overly optimistic) "previous 3 calendar quarters".
124385         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124386         "T const" to accommodate glibc style.
124387         (check_result): Use less-confusing report format.  "long" -> "long int.
124388         (main): Likewise.
124389         Don't loop if the iteration overflows time_t.
124390         Allow a negative step in the iteration.
124392 2003-07-06  Karl Berry  <karl@gnu.org>
124394         * config/depcomp: update from automake.
124395         * config/config.sub: update from prep.
124397 2003-07-03  Karl Berry  <karl@gnu.org>
124399         * config/config.guess: update from prep.
124401 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124403         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124404         xreadlink.c now includes it unconditionally.
124406 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124408         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124409         having it depend on HAVE_SYS_TYPES_H.
124411 2003-07-01  Bruno Haible  <bruno@clisp.org>
124413         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124414         <sys/types.h> should be sufficient.
124415         Reported by Paul Eggert.
124417 2003-06-26  Karl Berry  <karl@gnu.org>
124419         * config/depcomp: update from automake.
124421 2003-06-26  Bruno Haible  <bruno@clisp.org>
124423         * modules/human: Depend on module stdbool.
124425 2003-06-25  Bruno Haible  <bruno@clisp.org>
124427         * modules/readlink: New file.
124428         * modules/xreadlink: Depend on it.
124429         * MODULES.html.sh (func_all_modules): Add readlink.
124431 2003-06-25  Bruno Haible  <bruno@clisp.org>
124433         * m4/readlink.m4: New file.
124435 2003-06-25  Bruno Haible  <bruno@clisp.org>
124437         * lib/readlink.c: New file.
124439 2003-06-22  Karl Berry  <karl@gnu.org>
124441         * config/srclist.txt: update mkinstalldirs from automake.
124442         * config/mkinstalldirs: update.
124444 2003-06-22  Bruno Haible  <bruno@clisp.org>
124446         Portability to mingw32.
124447         * m4/ssize_t.m4: New file, from GNU gettext.
124448         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124449         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124451 2003-06-22  Bruno Haible  <bruno@clisp.org>
124453         * modules/safe-read: Add m4/ssize_t.m4.
124454         * modules/xreadlink: Add m4/ssize_t.m4.
124456 2003-06-20  Bruno Haible  <bruno@clisp.org>
124458         Assume C89, so PARAMS isn't needed.
124459         * lib/unicodeio.h (PARAMS): Remove.
124460         * lib/unicodeio.c: Don't use PARAMS.
124462 2003-06-18  Karl Berry  <karl@gnu.org>
124464         * config/config.{guess,sub}: update from prep.
124466 2003-06-18  Jim Meyering  <jim@meyering.net>
124468         Merge changes from coreutils.
124469         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124470         Remove explicit declarations of xmalloc and realloc.
124471         Include xalloc.h.
124472         (read_utmp): Remove anachronistic cast of xmalloc.
124474 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124476         Assume C89, so PARAMS isn't needed.
124477         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124478         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124479         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124480         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124481         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124482         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124483         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124484         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124485         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124486         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124487         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124488         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124489         no longer needed. Anyway, config.h should always be included before any
124490         other file.
124492 2003-06-11  Simon Josefsson  <jas@extundo.com>
124494         * modules/sysexits: New file.
124495         * MODULES.html.sh (func_all_modules): Add sysexits.
124497 2003-06-11  Simon Josefsson  <jas@extundo.com>
124499         * lib/sysexit_.h: New file.
124501 2003-06-11  Derek Price  <derek@ximbiot.com>
124503         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124504         necessary.
124506 2003-06-11  Bruno Haible  <bruno@clisp.org>
124508         * m4/sysexits.m4: New file.
124510 2003-06-10  Simon Josefsson  <jas@extundo.com>
124512         * lib/argp.h: New file, from glibc.
124513         * lib/argp-ba.c: New file, from glibc.
124514         * lib/argp-eexst.c: New file, from glibc.
124515         * lib/argp-fmtstream.c: New file, from glibc.
124516         * lib/argp-fmtstream.h: New file, from glibc.
124517         * lib/argp-fs-xinl.c: New file, from glibc.
124518         * lib/argp-help.c: New file, from glibc.
124519         * lib/argp-namefrob.h: New file, from glibc.
124520         * lib/argp-parse.c: New file, from glibc.
124521         * lib/argp-pv.c: New file, from glibc.
124522         * lib/argp-pvh.c: New file, from glibc.
124523         * lib/argp-xinl.c: New file, from glibc.
124525 2003-06-10  Simon Josefsson  <jas@extundo.com>
124527         * modules/strchrnul: New file.
124529 2003-06-10  Simon Josefsson  <jas@extundo.com>
124531         * modules/argp: New file.
124533 2003-06-10  Simon Josefsson  <jas@extundo.com>
124535         * m4/strchrnul.m4: New file.
124537 2003-06-10  Simon Josefsson  <jas@extundo.com>
124539         * lib/strchrnul.h: New file.
124540         * lib/strchrnul.c: New file.
124542 2003-06-10  Bruno Haible  <bruno@clisp.org>
124544         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124546 2003-06-07  Karl Berry  <karl@gnu.org>
124548         * config/config.{guess,sub}: update from prep.
124550 2003-06-07  Jim Meyering  <jim@meyering.net>
124552         * modules/strtod: Use $(...) notation, not @...@ for
124553         AC_REPLACE'd variables.
124554         * modules/localcharset: Likewise.
124556 2003-06-07  Jim Meyering  <jim@meyering.net>
124558         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124559         in place of my name in the copyright comment.
124560         Remove definition and uses of __P.
124562         From coreutils.
124563         * lib/stat.c: Don't declare xmalloc explicitly.
124564         Instead, include "xalloc.h".
124565         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124566         xrealloc, and xcalloc return values.
124567         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124568         Improve comment.
124569         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124571 2003-06-07  Bruno Haible  <bruno@clisp.org>
124573         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124574         avoid AC_CONFIG_LINKS.
124575         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124576         fnmatch.h, to avoid AC_CONFIG_LINKS.
124577         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124579 2003-06-07  Bruno Haible  <bruno@clisp.org>
124581         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124582         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124583         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124584         directory.
124585         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124586         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124587         directory.
124589 2003-06-06  Jim Meyering  <jim@meyering.net>
124591         Merge from coreutils.
124592         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124593         Consolidate declarations and initializations of *_base* locals.
124595         Merge from coreutils.
124596         This avoids a core dump on systems without GNU putenv,
124597         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124598         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124599         (unsetenv): New static function, from GNU libc.
124600         (rpl_putenv): Use it.
124602         * lib/modechange.c: Remove trailing blanks.
124604         Merge from coreutils.
124605         * lib/fsusage.c: Remove declaration of statfs.
124606         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124608         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124610 2003-06-06  Jim Meyering  <jim@meyering.net>
124612         * lib/stdbool_.h: Renamed from stdbool.h.in.
124614 2003-06-06  Jim Meyering  <jim@meyering.net>
124615             Bruno Haible  <bruno@clisp.org>
124617         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124618         Adjust Makefile.am snippet not to redirect directly to target.
124619         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124621 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124623         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124624         mismatch, look in future quarters as well as past.  This fixes a
124625         bug when processing fall-backwards gaps immediately after a long
124626         period of daylight-saving time.
124628         * lib/mktime.c: Assume freestanding C89 or better.
124629         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124630         (__P): Remove; not used.
124631         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124632         (mktime, not_equal_tm, print_tm, check_result,
124633         main): Use prototypes.  Use const * where appropriate.
124634         (main): Fix typo in testing code that uncovered by above changes.
124635         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124637 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124639         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124640         locale.h, localeconv.  This merges changes from coreutils.
124642         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124643         It can be removed after the next Autoconf is released.
124644         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124645         needed.
124647 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124649         * lib/mktime.c: Fix Debian bug 177940
124650         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124651         (localtime_offset): Now long int, not time_t, because we want it
124652         to be guaranteed to be signed.  All uses changed.
124653         (__mktime_internal): If overflow would occur when adding offset,
124654         don't add it.
124656         Merge 'human' changes from coreutils.  Rewrite to support
124657         locale-specific notations like thousands separators.
124658         * lib/human.c: Simplify authorship notice.
124659         Include human.h immediately after config.h.
124660         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124661         <limits.h>: Do not include, since human.h does.
124662         (SIZE_MAX, UINTMAX_MAX): New macros.
124663         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124664         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124665         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124666         (power_letter): Renamed from suffixes.
124667         (generate_suffix_backwards): Remove.
124668         (adjust_value): Now takes int style (because of human.h changes)
124669         and long double value (for greater precision on some platforms).
124670         (group_number): New function.
124671         (human_readable): Use it.  Use integer options, not enum.
124672         Put the options before the sizes in the arg list.
124673         Support all the new options.
124674         The old human_readable function has been removed;
124675         use inttostr.h instead.
124676         (human_readable, default_block_size, humblock):
124677         Use uintmax_t, not int, for block sizes.
124678         (human_readable_inexact, block_size_types): Remove.
124679         (block_size_opts): New constant.
124680         (human_options): Renamed from human_block_size, with new signature
124681         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124682         * lib/human.h: Add copyright and authorship notice.
124683         Include <limits.h> and <stdbool.h> unconditionally.
124684         (PARAMS): Remove.  All uses removed.
124685         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124686         (enum human_inexact_style): Remove tag; now a nameless enum.
124687         (human_floor, human_ceiling, human_round_to_even): Now have
124688         values 2, 0, 1 rather than -1, 1, 0.
124689         (human_group_digits, human_suppress_point_zero, human_autoscale,
124690         human_base_1024, human_SI, human_B): New constants.
124691         (human_readable_inexact, human_block_size): Remove.
124692         (human_readable): Size args are now uintmax_t, not int.
124693         (human_options): New decl.
124695         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124696         unnecessary now that we assume C89 or better.  This change
124697         imported from coreutils.
124699         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124700         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124701         in the 2003-05-30 sync from glibc.
124703         .h files should stand alone, but we shouldn't include <sys/types.h>
124704         if we can get away with just <stddef.h>.
124706         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124707         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124708         rather than <sys/types.h>, as we merely need size_t.
124709         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124710         to get size_t.
124711         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124712         Include <stdio.h>, to get FILE.
124713         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124714         memcasecmp.h has included <stddef.h> and all we need is size_t.
124715         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124716         our interface, instead of including <sys/types.h>
124718 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124720         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124721         now, as glibc mktime is buggy on non-glibc systems.
124723 2003-06-03  Karl Berry  <karl@gnu.org>
124725         * config/config.sub: update from prep.
124727 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124729         [from coreutils]
124730         Fix some minor time-related bugs with POSIX time arguments.
124731         Some valid time stamps were being rejected (notably -1, and
124732         time stamps before 1900 on 64-bit hosts).  And some invalid
124733         time stamps were being accepted, e.g. September 31.
124735         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124736         that we can return (time_t) -1 successfully.
124737         * lib/posixtm.c: Likewise.
124738         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124739         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124740         (t): Remove static var.
124741         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124742         of static var.  All uses changed.
124743         (year): Do not reject years before 1900; they can occur with
124744         64-bit time_t.
124745         (posix_time_parse): Do not check for out-of-range components;
124746         that is now the caller's responsibility, since our checks were
124747         only approximations.
124748         (posixtime): Use mktime to check for out-of-range components,
124749         since it knows them exactly.
124750         If mktime returns (time_t) -1, check whether an error actually occurred
124751         by invoking localtime on -1.
124752         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124753         posixtime failures better.
124754         Improve the test data (in comments only).
124756 2003-06-02  Karl Berry  <karl@gnu.org>
124758         * config/mkinstalldirs (version): new variable.
124759         (--version): new option.
124760         (usage): improve message.
124762 2003-05-30  Karl Berry  <karl@gnu.org>
124764         * lib/mktime.c: update from libc.
124766 2003-05-30  Bruno Haible  <bruno@clisp.org>
124768         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124769         * config/config.rpath: Upgrade to gettext-0.12.1.
124771 2003-05-30  Bruno Haible  <bruno@clisp.org>
124773         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124774         * m4/nls.m4: New file, from gettext-0.12.1.
124775         * m4/po.m4: New file, from gettext-0.12.1.
124776         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124778 2003-05-30  Bruno Haible  <bruno@clisp.org>
124780         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124781         * lib/localcharset.h: Likewise.
124782         * lib/localcharset.c: Likewise.
124784 2003-05-29  Karl Berry  <karl@gnu.org>
124786         * config/config.rpath: update from gettext.
124788 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124790         Assume the headers required for C89 freestanding compilers.
124791         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124792         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124793         * m4/human.m4 (gl_HUMAN): Likewise.
124794         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124795         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124796         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124797         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124798         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124799         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124801 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124803         Assume the headers required for C89 freestanding compilers.
124804         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124805         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124806         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124807         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124808         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124809         define, since <limits.h> is guaranteed to do that.
124810         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124811         * lib/exclude.c: Include <stdbool.h> unconditionally.
124812         * lib/tempname.c: Include <stddef.h> unconditionally.
124813         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124814         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124815         <stddef.h> does that.
124816         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124817         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124818         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124819         needed.
124820         * lib/xstrtol.c: Likewise.
124821         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124822         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124824         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124825         warnings on some platforms.
124827         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124828         arbitrarily.
124830 2003-05-26  Jim Meyering  <jim@meyering.net>
124832         Merge in a change from coreutils:
124833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124834         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124835         that condition, rather than `-1' which is slightly misleading.
124836         Change the name of the cache variable to have the gl_ prefix.
124837         Prompted by a patch from Richard Dawe for DJGPP.
124839 2003-05-24  Karl Berry  <karl@gnu.org>
124841         * config/config.guess: update from prep.
124843 2003-05-22  Karl Berry  <karl@gnu.org>
124845         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124847 2003-05-20  Karl Berry  <karl@gnu.org>
124849         * config/config.guess: update from prep.
124851 2003-05-18  Karl Berry  <karl@gnu.org>
124853         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124854         might actually be set by the user.
124856         * config/depcomp, install-sh, mdate-sh: update from automake.
124858 2003-05-17  Bruno Haible  <bruno@clisp.org>
124860         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124861         invalid expansion for AC_EGREP_CPP.
124862         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124863         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124864         Suggested by Akim Demaille <akim@epita.fr> in
124865         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124867 2003-05-12  Jim Meyering  <jim@meyering.net>
124869         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124870         the space-padded-by-default conversion specifiers, %e, %k, %l.
124872 2003-05-12  Bruno Haible  <bruno@clisp.org>
124874         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124875         the string is longer than 4 KB.
124877 2003-05-11  Karl Berry  <karl@gnu.org>
124879         * config/config.{guess,sub}: update from prep.
124881 2003-05-09  Bruno Haible  <bruno@clisp.org>
124883         * modules/error: Add m4/strerror_r.m4 to file list.
124885 2003-05-03  Bruno Haible  <bruno@clisp.org>
124887         Upgrade to Unicode-4.0.
124888         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124889         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124890         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124891         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124892         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124893         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124894         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124895         Change width of U+E0100..U+E01EF from 1 to 0.
124897 2003-04-25  Jim Meyering  <jim@meyering.net>
124899         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124900         of type size_t, not int.
124902 2003-04-25  Bruno Haible  <bruno@clisp.org>
124904         * lib/copy-file.c: Include <stddef.h>, for size_t.
124906 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124908         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124909         code which expansion is under static control.  Patch imported from
124910         Akim Demaille's patch to Bison; see
124911         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124913 2003-04-14  Bruno Haible  <bruno@clisp.org>
124915         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124917 2003-04-11  Jim Meyering  <jim@meyering.net>
124919         Merge changes from Coreutils.
124921         2003-03-22  Jim Meyering  <jim@meyering.net>
124923         * lib/strftime.c (widen): Cast alloca return value to proper type.
124925         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124927         From GNU libc.
124928         * lib/strftime.c (my_strftime): Handle very large width
124929         specifications for numeric values correctly.  Improve checks for
124930         overflow.
124932         2003-01-19  Jim Meyering  <jim@meyering.net>
124934         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124935         definitions.
124936         (nl_get_alt_digit) [! defined my_strftime]: Define.
124937         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124938         _nl_get_alt_digit and _nl_get_walt_digit.
124940         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124941         libc. These changes have no effect outside of _LIBC.
124943 2003-04-10  Bruno Haible  <bruno@clisp.org>
124945         * modules/findprog: New file.
124946         * MODULES.html.sh (func_all_modules): Add it.
124948 2003-04-10  Bruno Haible  <bruno@clisp.org>
124950         * m4/findprog.m4: New file.
124951         * m4/eaccess.m4: New file.
124953 2003-04-10  Bruno Haible  <bruno@clisp.org>
124955         * lib/findprog.h: New file, from GNU gettext.
124956         * lib/findprog.c: New file, from GNU gettext.
124958 2003-04-05  Jim Meyering  <jim@meyering.net>
124960         Merge changes from Coreutils.
124962         * lib/exclude.h (PARAMS): Remove definition and uses.
124963         * lib/exclude.c: Remove uses of `PARAMS'.
124965         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124966         Add test-cases for DOS filenames. Declare program_name.
124967         (main): Set up program_name.  Patch by Rich Dawe.
124969         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124970         error from mntctl.
124971         Use mntctl's return value to drive the entry-processing loop, since
124972         we can't rely on the value of the vmt_length member in the last
124973         entry.  On some systems doing so could result in exhausting
124974         virtual memory.  Based in part on a patch from Mike Jetzer.
124976 2003-04-04  Bruno Haible  <bruno@clisp.org>
124978         * modules/linebreak: New file.
124979         * MODULES.html.sh (func_all_modules): Add it.
124981 2003-04-04  Bruno Haible  <bruno@clisp.org>
124983         * m4/linebreak.m4: New file.
124985 2003-04-04  Bruno Haible  <bruno@clisp.org>
124987         * lib/linebreak.h: New file, from GNU gettext.
124988         * lib/linebreak.c: New file, from GNU gettext with slight
124989         modifications.
124990         * lib/lbrkprop.h: New file, from GNU gettext.
124992 2003-04-03  Bruno Haible  <bruno@clisp.org>
124994         * modules/utf8-ucs4: New file.
124995         * modules/utf16-ucs4: New file.
124996         * modules/ucs4-utf8: New file.
124997         * modules/ucs4-utf16: New file.
124998         * MODULES.html.sh (func_all_modules): Add them.
125000 2003-04-03  Bruno Haible  <bruno@clisp.org>
125002         * m4/utf-ucs4.m4: New file.
125003         * m4/ucs4-utf.m4: New file.
125005 2003-04-03  Bruno Haible  <bruno@clisp.org>
125007         * lib/utf8-ucs4.h: New file, from GNU gettext.
125008         * lib/utf16-ucs4.h: New file, from GNU gettext.
125009         * lib/ucs4-utf8.h: New file, from GNU gettext.
125010         * lib/ucs4-utf16.h: New file, from GNU gettext.
125012 2003-04-02  Bruno Haible  <bruno@clisp.org>
125014         * modules/binary-io: New file.
125015         * MODULES.html.sh (func_all_modules): Add it.
125017 2003-04-02  Bruno Haible  <bruno@clisp.org>
125019         * lib/binary-io.h: New file, from GNU gettext.
125021 2003-04-01  Bruno Haible  <bruno@clisp.org>
125023         * modules/pathname: New file.
125024         * MODULES.html.sh (func_all_modules): Add it.
125026 2003-04-01  Bruno Haible  <bruno@clisp.org>
125028         * lib/pathname.h: New file, from GNU gettext.
125029         * lib/concatpath.c: New file, from GNU gettext.
125031 2003-03-30  Bruno Haible  <bruno@clisp.org>
125033         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125035 2003-03-30  Bruno Haible  <bruno@clisp.org>
125037         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125038         function chown() doesn't exist.
125040 2003-03-28  Bruno Haible  <bruno@clisp.org>
125042         * modules/copy-file: New file.
125043         * MODULES.html.sh (func_all_modules): Add it.
125045 2003-03-28  Bruno Haible  <bruno@clisp.org>
125047         * m4/copy-file.m4: New file.
125049 2003-03-28  Bruno Haible  <bruno@clisp.org>
125051         * lib/copy-file.h: New file, from GNU gettext.
125052         * lib/copy-file.c: New file, from GNU gettext.
125054 2003-03-18  Jim Meyering  <jim@meyering.net>
125056         * lib/quote.c (quote_n): Fix typo in comment.
125058 2003-03-18  Bruno Haible  <bruno@clisp.org>
125060         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125061         checking.
125062         * m4/onceonly_2_57.m4: Likewise.
125064 2003-03-17  Bruno Haible  <bruno@clisp.org>
125066         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125067         (m4_quote): Remove macro.
125068         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125070 2003-03-14  Jim Meyering  <jim@meyering.net>
125072         Merge changes from Coreutils.
125073         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
125074         to be const, in order to avoid warnings.
125075         (obstack_room): Likewise.
125076         (obstack_empty_p): Likewise.
125078 2003-03-14  Bruno Haible  <bruno@clisp.org>
125080         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
125081         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
125083 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125085         Merge changes from Bison.
125086         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
125087         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
125088         when compiling Bison 1.875's `bitset bset = obstack_alloc
125089         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
125090         * lib/hash.c: Include <stdbool.h> unconditionally.
125092 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125094         * m4/onceonly.m4 (m4_quote): New macro.
125095         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
125096         Quote AC_FOREACH variable-expansions properly.
125098 2003-03-13  Paul Eggert  <eggert@twinsun.com>
125100         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
125102 2003-03-09  Paul Eggert  <eggert@twinsun.com>
125104         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
125105         Reported by Bruce Becker; see:
125106         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
125108 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125109             Bruno Haible  <bruno@clisp.org>
125111         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125112         Reported by John Hughes, see
125113         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125115 2003-02-20  Bruno Haible  <bruno@clisp.org>
125117         * MODULES.html.sh (func_all_modules): Add poll.
125119 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125121         * modules/poll: New file.
125123 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125125         * lib/poll_.h: New file.
125126         * lib/poll.c: New file.
125128 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125130         * m4/poll.m4: New file.
125132 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125134         * modules/mathl: New file.
125136 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125138         * lib/mathl.h: New file.
125139         * lib/acosl.c: New file.
125140         * lib/asinl.c: New file.
125141         * lib/atanl.c: New file.
125142         * lib/ceill.c: New file.
125143         * lib/cosl.c: New file.
125144         * lib/expl.c: New file.
125145         * lib/floorl.c: New file.
125146         * lib/frexpl.c: New file.
125147         * lib/ldexpl.c: New file.
125148         * lib/logl.c: New file.
125149         * lib/sincosl.c: New file.
125150         * lib/sinl.c: New file.
125151         * lib/sqrtl.c: New file.
125152         * lib/tanl.c: New file.
125153         * lib/trigl.c: New file.
125154         * lib/trigl.h: New file.
125156 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125158         * m4/mathl.m4: New file.
125160 2003-02-18  Bruno Haible  <bruno@clisp.org>
125162         * MODULES.html.sh (func_all_modules): Add mathl.
125164 2003-02-17  Bruno Haible  <bruno@clisp.org>
125166         * modules/mkdtemp: New module.
125167         * MODULES.html.sh (func_all_modules): Add it.
125169 2003-02-17  Bruno Haible  <bruno@clisp.org>
125171         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125173 2003-02-17  Bruno Haible  <bruno@clisp.org>
125175         * lib/mkdtemp.h: New file, from GNU gettext.
125176         * lib/mkdtemp.c: New file, from GNU gettext.
125178 2003-02-02  Jim Meyering  <jim@meyering.net>
125180         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125181         e.g. glibc-2.2.93.
125183 2003-01-31  Bruno Haible  <bruno@clisp.org>
125185         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125186         'rpl_rename'.
125187         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125188         'rpl_strnlen'.
125189         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125190         'rpl_strtod'.
125191         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125192         'rpl_utime'.
125194 2003-01-31  Bruno Haible  <bruno@clisp.org>
125196         * lib/rename.c: #undef rename before defining rpl_rename.
125197         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125199 2003-01-30  Bruno Haible  <bruno@clisp.org>
125201         * modules/vasnprintf, modules/vasprintf: New modules.
125202         * MODULES.html.sh (func_all_modules): Add them.
125204 2003-01-30  Bruno Haible  <bruno@clisp.org>
125206         * m4/signed.m4: New file, from GNU gettext.
125207         * m4/longdouble.m4: New file, from GNU gettext.
125208         * m4/wchar_t.m4: New file, from GNU gettext.
125209         * m4/wint_t.m4: New file, from GNU gettext.
125210         * m4/vasnprintf.m4: New file.
125211         * m4/vasprintf.m4: New file.
125213 2003-01-30  Bruno Haible  <bruno@clisp.org>
125215         * lib/printf-args.h: New file, from GNU gettext.
125216         * lib/printf-args.c: New file, from GNU gettext.
125217         * lib/printf-parse.h: New file, from GNU gettext.
125218         * lib/printf-parse.c: New file, from GNU gettext.
125219         * lib/vasnprintf.h: New file, from GNU gettext.
125220         * lib/vasnprintf.c: New file, from GNU gettext.
125221         * lib/asnprintf.c: New file, from GNU gettext.
125222         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125223         * lib/vasprintf.c: New file, from GNU gettext.
125224         * lib/asprintf.c: New file, from GNU gettext.
125226 2003-01-29  Bruno Haible  <bruno@clisp.org>
125228         * modules/stpncpy: New module.
125229         * MODULES.html.sh (func_all_modules): Add it.
125231 2003-01-29  Bruno Haible  <bruno@clisp.org>
125233         * m4/stpncpy.m4: New file.
125235 2003-01-29  Bruno Haible  <bruno@clisp.org>
125237         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125238         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125240 2003-01-28  Bruno Haible  <bruno@clisp.org>
125242         * modules/c-ctype: New module.
125243         * MODULES.html.sh (func_all_modules): Add it.
125245 2003-01-28  Bruno Haible  <bruno@clisp.org>
125247         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125248         Paul Eggert.
125249         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125250         Paul Eggert.
125252 2003-01-27  Bruno Haible  <bruno@clisp.org>
125254         * modules/xsetenv: New module.
125255         * MODULES.html.sh (func_all_modules): Add it.
125257 2003-01-27  Bruno Haible  <bruno@clisp.org>
125259         * lib/xsetenv.h: New file, from GNU gettext.
125260         * lib/xsetenv.c: New file, from GNU gettext.
125262 2003-01-23  Jim Meyering  <jim@meyering.net>
125264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125265         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125267 2003-01-23  Bruno Haible  <bruno@clisp.org>
125269         * modules/minmax: New module.
125270         * MODULES.html.sh (func_all_modules): Add it.
125272 2003-01-23  Bruno Haible  <bruno@clisp.org>
125274         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125275         Eggert.
125277 2003-01-22  Bruno Haible  <bruno@clisp.org>
125279         * modules/exit: New module.
125280         * MODULES.html.sh (func_all_modules): Add it.
125282 2003-01-22  Bruno Haible  <bruno@clisp.org>
125284         * lib/exit.h: New file, from GNU gettext.
125286 2003-01-19  Bruno Haible  <bruno@clisp.org>
125288         * gnulib-tool: Recognize option --extract-maintainer.
125289         (func_get_maintainer): New function.
125290         * modules/*: Add Maintainer entry.
125292 2003-01-16  Jim Meyering  <jim@meyering.net>
125294         * m4/regex.m4: The `regex' struct is both input and output.
125295         Initialize it before each use.  Patch by Tim Waugh.
125297 2003-01-16  Bruno Haible  <bruno@clisp.org>
125299         * MODULES.html.sh: Add a table of contents. Add the module name as
125300         leftmost column. Add hyperlinks.
125302 2003-01-15  Bruno Haible  <bruno@clisp.org>
125304         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125306 2003-01-15  Bruno Haible  <bruno@clisp.org>
125308         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125309         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125310         suffix.
125312 2003-01-15  Bruno Haible  <bruno@clisp.org>
125314         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125316 2003-01-15  Bruno Haible  <bruno@clisp.org>
125318         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125319         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125321 2003-01-14  Jim Meyering  <jim@meyering.net>
125323         * lib/same.c (same_name): Tweak a comment.
125325 2003-01-14  Bruno Haible  <bruno@clisp.org>
125327         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125328         when a string comparison is sufficient.
125330 2003-01-14  Bruno Haible  <bruno@clisp.org>
125332         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125333         'unsigned int'.
125335 2003-01-14  Bruno Haible  <bruno@clisp.org>
125337         * lib/hash-pjw.c: Add comment about low quality of this function.
125339 2003-01-13  Bruno Haible  <bruno@clisp.org>
125341         * modules/stpcpy: Distribute lib/stpcpy.h.
125342         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125344 2003-01-13  Bruno Haible  <bruno@clisp.org>
125346         * modules/*: Add a description.
125347         * modules/strpbrk: Fix Makefile.am snippet.
125348         * modules/strtoimax: Fix dependencies.
125349         * modules/strtoumax: Likewise.
125351 2003-01-13  Bruno Haible  <bruno@clisp.org>
125353         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125354         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125355         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125357 2003-01-13  Bruno Haible  <bruno@clisp.org>
125359         * gnulib-tool (func_create_testdir): Store config/* files in the main
125360         directory.
125361         * config.rpath: Move to ...
125362         * config/config.rpath: ... here.
125363         * modules/gettext: Contains config/config.rpath, not config.rpath.
125364         * modules/iconv: Likewise.
125366 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125368         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125369         to avoid collisions with libcurses and libreadline.
125371         * m4/getstr.m4: Remove.
125372         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125374 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125376         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125377         to avoid collisions with libcurses and libreadline.
125379         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125380         * lib/getstr.h, getstr.c: Remove.
125381         * lib/getline.c: Include "getline.h", to check interface.
125382         Move body of old getstr.c here: this defines MIN_CHUNK and
125383         declares getdelim2, which is renamed from getstr.
125384         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125386         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125387         All uses changed.
125388         * lib/linebuffer.h: Likewise.
125389         (readline): Remove backward-compatibility macro.
125391 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125393         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125394         to avoid collisions with libcurses and libreadline.
125395         * getstr: Remove.
125396         * MODULES.html.sh: Remove getstr.
125397         * modules/getline: Depend on unlocked-io, not getstr.
125399 2003-01-12  Jim Meyering  <jim@meyering.net>
125401         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125403 2003-01-10  Bruno Haible  <bruno@clisp.org>
125405         * modules/alloca: Change Makefile.am requirements. Simplify Include
125406         requirements. Add lib/alloca_.h to file list.
125408 2003-01-10  Bruno Haible  <bruno@clisp.org>
125410         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125412 2003-01-10  Bruno Haible  <bruno@clisp.org>
125414         * lib/alloca_.h: New file.
125415         * lib/getdate.y: Unconditionally include alloca.h.
125416         * lib/makepath.c: Likewise.
125417         * lib/setenv.c: Likewise.
125418         * lib/userspec.c: Likewise.
125420 2003-01-09  Karl Berry  <karl@gnu.org>
125422         * MODULES.html.sh: include `dirname $0` in PATH, to find
125423         gnulib-tool.
125425 2003-01-09  Bruno Haible  <bruno@clisp.org>
125427         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125428         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125430 2003-01-09  Bruno Haible  <bruno@clisp.org>
125432         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125434 2003-01-09  Bruno Haible  <bruno@clisp.org>
125436         * lib/stdbool.h.in: New file.
125438 2003-01-09  Bruno Haible  <bruno@clisp.org>
125440         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125441         * MODULES.html.sh: Likewise.
125443 2003-01-08  Jim Meyering  <jim@meyering.net>
125445         * lib/full-write.c: Undefine and define-away `const' after inclusion
125446         of errno.h, not before.  Suggestion from Bruno Haible.
125448 2003-01-08  Bruno Haible  <bruno@clisp.org>
125450         * modules/full-read: Depend on full-write.
125452 2003-01-08  Bruno Haible  <bruno@clisp.org>
125454         * lib/safe-read.c: Include specification header first, to ensure its
125455         selfcontainedness.
125456         * lib/full-write.c: Likewise.
125458 2003-01-07  Jim Meyering  <jim@meyering.net>
125460         * lib/full-write.c: Rework so that it may serve to define full_read,
125461         too.
125462         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125464 2003-01-07  Bruno Haible  <bruno@clisp.org>
125466         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125467         <inttypes.h>.
125468         * lib/xstrtol.h: Likewise.
125469         * lib/xstrtoimax.c: Likewise.
125470         * lib/xstrtoumax.c: Likewise.
125471         * lib/human.h: Likewise.
125473         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125474         on systems that have <inttypes.h> but not <stdint.h>.
125476 2003-01-07  Bruno Haible  <bruno@clisp.org>
125478         * MODULES.html.sh: Add copyright notice.
125479         (missed_files): Omit CVS directory entries.
125480         (func_module): Make it work with sed-3.02.
125481         * MODULES.txt: Remove file.
125483 2003-01-06  Jim Meyering  <jim@meyering.net>
125485         * lib/version-etc.c: Update year in translatable copyright string.
125487 2003-01-03  Karl Berry  <karl@gnu.org>
125489         * config/config.{guess,sub}: update from prep.
125491 2003-01-02  Karl Berry  <karl@gnu.org>
125493         * doc/COPYING.DOC: belatedly updated to 1.2.
125495 2003-01-01  Karl Berry  <karl@gnu.org>
125497         * gnulib-tool (func_verify_module): report module name $module in
125498         error message, not $1.
125499         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125500         be created, only if it doesn't exist.
125501         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125503 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125505         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125507 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125509         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125510         memcmp if strcoll doesn't work.
125512 2002-12-31  Bruno Haible  <bruno@clisp.org>
125514         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125515         nonempty.
125517 2002-12-31  Bruno Haible  <bruno@clisp.org>
125519         * lib/memcoll.c (STRCOLL): New macro.
125520         (memcoll): Use it.
125522 2002-12-31  Bruno Haible  <bruno@clisp.org>
125524         * lib/localcharset.h: New file.
125525         * lib/localcharset.c: Include it.
125526         * lib/unicodeio.c: Likewise.
125528 2002-12-31  Bruno Haible  <bruno@clisp.org>
125530         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125531         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125533 2002-12-31  Bruno Haible  <bruno@clisp.org>
125535         * lib/getline.h: Include <stddef.h>, for size_t.
125537         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125538         * lib/unicodeio.c: Don't include <stddef.h>.
125540 2002-12-31  Bruno Haible  <bruno@clisp.org>
125542         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125543         HAVE_TM_ZONE.
125545 2002-12-24  Karl Berry  <karl@gnu.org>
125547         * config/config.guess: update from prep.
125549 2002-12-24  Bruno Haible  <bruno@clisp.org>
125551         General infrasructure.
125552         * m4/README: Rewritten.
125553         * m4/onceonly.m4: New file.
125554         * m4/onceonly_2_57.m4: New file.
125556         Module atexit.
125557         * m4/atexit.m4: New file.
125559         Module strtod.
125560         * m4/strtod.m4: New file.
125562         Module strtol.
125563         * m4/strtol.m4: New file.
125565         Module strtoul.
125566         * m4/strtoul.m4: New file.
125568         Module memchr.
125569         * m4/memchr.m4: New file.
125571         Module memcmp.
125572         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125573         (jm_FUNC_MEMCMP): Invoke it.
125575         Module memcpy.
125576         * m4/memcpy.m4: New file.
125578         Module memmove.
125579         * m4/memmove.m4: New file.
125581         Module memset.
125582         * m4/memset.m4: New file.
125584         Module strcspn.
125585         * m4/strcspn.m4: New file.
125587         Module strpbrk.
125588         * m4/strpbrk.m4: New file.
125590         Module strstr.
125591         * m4/strstr.m4: New file.
125593         Module strerror.
125594         * m4/strerror.m4: New file.
125596         Module mktime.
125597         * m4/mktime.m4: Renamed from jm-mktime.m4.
125598         (gl_PREREQ_MKTIME): New macro.
125599         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125601         Module malloc.
125602         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125603         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125604         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125606         Module realloc.
125607         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125608         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125609         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125611         Module strftime.
125612         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125613         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125614         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125615         gl_TM_GMTOFF.
125616         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125618         Module xalloc.
125619         * m4/xalloc.m4: New file.
125621         Module alloca.
125622         * m4/alloca.m4: New file.
125624         Module putenv.
125625         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125626         (jm_FUNC_PUTENV): Invoke it.
125628         Module setenv.
125629         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125630         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125631         when invoked twice.
125632         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125633         gt_FUNC_SETENV.
125635         Module memrchr.
125636         * m4/memrchr.m4: New file.
125638         Module stpcpy.
125639         * m4/stpcpy.m4: New file.
125641         Module strcase.
125642         * m4/strcase.m4: New file.
125644         Module strdup.
125645         * m4/strdup.m4: New file.
125647         Module strnlen.
125648         * m4/strnlen.m4: New file.
125650         Module strndup.
125651         * m4/strndup.m4: New file.
125653         Module xstrtod.
125654         * m4/xstrtod.m4: New file.
125656         Module xstrtol.
125657         * m4/xstrtol.m4: New file.
125659         Module getdate.
125660         * m4/getdate.m4: New file.
125662         Module unlocked-io.
125663         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125664         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125665         * m4/jm-glibc-io.m4n: Remove file.
125667         Module long-options.
125668         * m4/long-options.m4: New file.
125670         Module md5.
125671         * m4/md5.m4: New file.
125673         Module sha.
125674         * m4/sha.m4: New file.
125676         Module getstr.
125677         * m4/getstr.m4: New file.
125679         Module getline.
125680         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125681         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125682         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125683         simply getline. Infoke gl_PREREQ_GETLINE.
125685         Module obstack.
125686         * m4/obstack.m4: New file.
125688         Module hash.
125689         * m4/hash.m4: New file.
125691         Module readtokens.
125692         * m4/readtokens.m4: New file.
125694         Module strverscmp.
125695         * m4/strverscmp.m4: New file.
125697         Module stdbool.
125698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125699         OSF/1.
125701         Module strtoll.
125702         * m4/strtoll.m4: New file.
125704         Module strtoull.
125705         * m4/strtoull.m4: New file.
125707         Module strtoimax.
125708         * m4/strtoimax.m4: New file.
125710         Module strtoumax.
125711         * m4/strtoumax.m4: New file.
125713         Module xstrtoimax.
125714         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125715         jm_AC_PREREQ_XSTRTOIMAX.
125716         Moved the strtol prerequisites to strtol.m4.
125717         Moved the strtoll prerequisites to strtoll.m4.
125718         Moved the strtoimax prerequisites to strtoimax.m4.
125720         Module xstrtoumax.
125721         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125722         jm_AC_PREREQ_XSTRTOUMAX.
125723         Moved the strtoul prerequisites to strtoul.m4.
125724         Moved the strtoull prerequisites to strtoull.m4.
125725         Moved the strtoumax prerequisites to strtoumax.m4.
125727         Module chown.
125728         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125729         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125731         Module dup2.
125732         * m4/dup2.m4: New file.
125734         Module ftruncate.
125735         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125736         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125738         Module getgroups.
125739         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125740         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125742         Module gettimeofday.
125743         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125744         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125745         gl_PREREQ_GETTIMEOFDAY.
125747         Module mkdir.
125748         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125749         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125751         Module mkstemp.
125752         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125753         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125754         jm_AC_TYPE_UINTMAX_T.
125755         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125757         Module stat.
125758         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125759         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125761         Module lstat.
125762         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125763         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125765         Module timespec.
125766         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125767         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125768         * m4/st_mtim.m4: Indentation.
125770         Module nanosleep.
125771         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125772         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125773         gl_PREREQ_NANOSLEEP.
125775         Module regex.
125776         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125777         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125778         (gl_REGEX): New macro.
125780         Module rename.
125781         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125782         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125784         Module rmdir.
125785         * m4/rmdir.m4: New file.
125787         Module utime.
125788         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125789         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125790         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125792         Module dirname.
125793         * m4/dirname.m4: New file.
125795         Module getopt.
125796         * m4/getopt.m4: New file.
125798         Module unistd-safer.
125799         * m4/unistd-safer.m4: New file.
125801         Module fnmatch.
125802         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125803         declaration.
125804         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125805         (gl_FUNC_FNMATCH_POSIX): New macro.
125806         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125807         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125808         simply fnmatch.
125810         Module exclude.
125811         * m4/exclude.m4: New file.
125813         Module human.
125814         * m4/human.m4: New file.
125816         Module acl.
125817         * m4/acl.m4: Nop.
125819         Module backupfile.
125820         * m4/backupfile.m4: New file.
125821         * m4/d-ino.m4: Indentation.
125823         Module fsusage.
125824         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125825         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125826         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125828         Module dirfd.
125829         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125830         requirements.
125832         Module euidaccess.
125833         * m4/euidaccess.m4: New file.
125835         Module file-type.
125836         * m4/file-type.m4: New file.
125838         Module fileblocks.
125839         * m4/fileblocks.m4: New file.
125841         Module filemode.
125842         * m4/filemode.m4: New file.
125844         Module isdir.
125845         * m4/isdir.m4: New file.
125847         Module lchown.
125848         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125849         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125851         Module makepath.
125852         * m4/makepath.m4: New file.
125854         Module modechange.
125855         * m4/modechange.m4: New file.
125857         Module mountlist.
125858         * m4/mountlist.m4: New file.
125859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125860         Indentation.
125862         Module path-concat.
125863         * m4/path-concat.m4: New file.
125865         Module pathmax.
125866         * m4/pathmax.m4: New file.
125868         Module same.
125869         * m4/same.m4: New file.
125871         Module save-cwd.
125872         * m4/save-cwd.m4: New file.
125874         Module savedir.
125875         * m4/savedir.m4: New file.
125877         Module xgetcwd.
125878         * m4/xgetcwd.m4: New file.
125879         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125881         Module xreadlink.
125882         * m4/xreadlink.m4: New file.
125884         Module safe-read.
125885         * m4/safe-read.m4: New file.
125887         Module safe-write.
125888         * m4/safe-write.m4: New file.
125890         Module closeout.
125891         * m4/closeout.m4: New file.
125893         Module stdio-safer.
125894         * m4/stdio-safer.m4: New file.
125896         Module getpass.
125897         * m4/getpass.m4: New file.
125899         Module getugroups.
125900         * m4/getugroups.m4: New file.
125902         Module group-member.
125903         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125904         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125906         Module idcache.
125907         * m4/idcache.m4: New file.
125909         Module userspec.
125910         * m4/userspec.m4: New file.
125912         Module gettime.
125913         * m4/clock_time.m4: New file.
125914         * m4/gettime.m4: New file.
125916         Module settime.
125917         * m4/settime.m4: New file.
125919         Module posixtm.
125920         * m4/posixtm.m4: New file.
125922         Module gethostname.
125923         * m4/gethostname.m4: New file.
125925         Module canon-host.
125926         * m4/canon-host.m4: New file.
125928         Module gettext.
125929         * m4/codeset.m4: New file, from gettext-0.11.5.
125930         * m4/gettext.m4: New file, from gettext-0.11.5.
125931         * m4/glibc21.m4: New file, from gettext-0.11.5.
125932         * m4/iconv.m4: New file, from gettext-0.11.5.
125933         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125934         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125935         * m4/inttypes.m4: New file, from gettext-0.11.5.
125936         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125937         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125938         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125939         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125940         * m4/lib-link.m4: New file, from gettext-0.11.5.
125941         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125942         * m4/progtest.m4: New file, from gettext-0.11.5.
125943         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125944         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125945         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125947         Module localcharset.
125948         * m4/localcharset.m4: New file.
125950         Module hard-locale.
125951         * m4/hard-locale.m4: New file.
125953         Module mbswidth.
125954         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125955         onceonly macros.
125956         * m4/mbrtowc.m4: Add comment.
125958         Module memcasecmp.
125959         * m4/memcasecmp.m4: New file.
125961         Module memcoll.
125962         * m4/memcoll.m4: New file.
125964         Module unicodeio.
125965         * m4/unicodeio.m4: New file.
125967         Module rpmatch.
125968         * m4/rpmatch.m4: New file.
125970         Module yesno.
125971         * m4/yesno.m4: New file.
125973         Module exitfail.
125974         * m4/exitfail.m4: New file.
125976         Module c-stack.
125977         * m4/c-stack.m4 (gl_C_STACK): New macro.
125978         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
125980         Module error.
125981         * m4/error.m4 (gl_ERROR): New macro.
125982         (jm_PREREQ_ERROR): Use onceonly macros.
125984         Module fatal.
125985         * m4/fatal.m4: New file.
125987         Module getloadavg.
125988         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
125989         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
125991         Module getpagesize.
125992         * m4/getpagesize.m4: New file.
125994         Module getusershell.
125995         * m4/getusershell.m4: New file.
125997         Module physmem.
125998         * m4/physmem.m4: New file.
126000         Module posixver.
126001         * m4/posixver.m4: New file.
126003         Module quotearg.
126004         * m4/quotearg.m4: New file.
126006         Module quote.
126007         * m4/quote.m4: New file.
126009         Module readutmp.
126010         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126012         Module sig2str.
126013         * m4/sig2str.m4: New file.
126015         Other.
126016         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126017         ulonglong.m4.
126018         * m4/intmax_t.m4: New file.
126019         * m4/d-type.m4: Indentation.
126020         * m4/jm-macros.m4: Update.
126021         * m4/prereq.m4 (jm_PREREQ): Update.
126022         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126023         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126024         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126025         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126026         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126027         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126028         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126029         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126030         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126031         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126032         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126033         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126034         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126035         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126036         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126037         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126038         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126039         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126040         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126042 2002-12-24  Bruno Haible  <bruno@clisp.org>
126044         * MODULES.txt: Update according to m4/ changes.
126046         Module gettext.
126047         * config.rpath: New file, from gettext-0.11.5.
126049         * modules/*: New module descriptions.
126050         * gnulib-tool: New file.
126051         * MODULES.html.sh: New file.
126053 2002-12-21  Karl Berry  <karl@gnu.org>
126055         * doc/fdl.texi: update to version 1.2.
126057 2002-12-19  Karl Berry  <karl@gnu.org>
126059         * config/config.guess: update from prep.
126061 2002-12-18  Bruno Haible  <bruno@clisp.org>
126063         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126064         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126066 2002-12-17  Bruno Haible  <bruno@clisp.org>
126068         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126069         stdlib.h, string.h.
126071 2002-12-17  Bruno Haible  <bruno@clisp.org>
126073         * lib/canon-host.c (strdup): Remove unused declaration.
126075         * lib/fsusage.c: Include full_read.h.
126076         (get_fs_usage): Use full_read instead of safe_read.
126078         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
126080 2002-12-12  Karl Berry  <karl@gnu.org>
126082         * config/config.guess: update from prep.
126084 2002-12-11  Bruno Haible  <bruno@clisp.org>
126086         * m4/setenv.m4: New file, from gettext-0.11.5.
126088 2002-12-11  Bruno Haible  <bruno@clisp.org>
126090         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
126091         not unsetenv().
126092         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
126093         modifications:
126095         2002-12-11  Bruno Haible  <bruno@clisp.org>
126097                 * setenv.c (alloca): Fall back to malloc.
126098                 (freea): New macro.
126099                 (setenv): Use freea() to free memory allocated with alloca().
126101         2002-11-13  Bruno Haible  <bruno@clisp.org>
126103                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
126104                 function declarations.
126105                 * unsetenv.c (unsetenv): Likewise.
126107         2002-03-04  Bruno Haible  <bruno@clisp.org>
126109                 Portability to AIX 4.3.3.
126110                 * unsetenv.c: New file, extracted from setenv.c.
126111                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126113         2001-12-20  Bruno Haible  <bruno@clisp.org>
126115                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126116                 use malloc instead. For SunOS 4.
126118         2001-12-11  Bruno Haible  <bruno@clisp.org>
126120                 * setenv.c: Declare alloca.
126121                 (compar_fn_t): New typedef.
126122                 (KNOWN_VALUE, STORE_VALUE): Use it.
126124         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126125         setenv.h.
126127 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126129         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126130         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126131         Choose values that are less likely to collide with system fnmatch
126132         options.
126133         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126134         defined (e.g., a pure POSIX system).
126135         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126136         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126138 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126140         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126141         a pain in practice to deal with generated m4 files.  This change
126142         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126144         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126145         and jm-glibc-io.m4, as they are no longer a special case.
126146         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126147         kludge and the auto-generation stuff.  Check only whether the
126148         functions are declared, not whether they exist, since older hosts
126149         that don't declare the functions can't use the optimization anyway.
126151 2002-12-06  Jim Meyering  <jim@meyering.net>
126153         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126155         Merge in changes from libc's misc/error.c, in preparation
126156         for the merge of gnulib's changes back into libc.
126158         * lib/error.c (_): Define only if not already defined.
126159         Move definition to follow all #include directives.
126160         Include unlocked-io.h only if !_LIBC.
126161         [_LIBC]: Include <libio/libioP.h>.
126162         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126163         (fflush): Tweak definition to use INTUSE.
126164         (putc): Define.
126166 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126168         * lib/alloca.c [defined emacs]: Include "lisp.h".
126169         (xalloc_die) [defined emacs]: New macro.
126170         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126171         [! defined emacs]: Include <xalloc.h>.
126172         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126173         (pointer): Typedef to POINTER_TYPE *.
126174         (malloc): Remove decl; we now always use xmalloc.
126175         (alloca): Use old-style definition, since Emacs needs this.
126176         Check for arithmetic overflow when computing combined size.
126178 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126180         Do not generate unlocked-io.h automatically, since it's easier to
126181         maintain it by hand.
126183         * lib/unlocked-io.h: New file, from GNU diffutils,
126184         but with proper copyright notice and attribution.
126185         * lib/gen-uio: Remove.
126186         * lib/Makefile.am: Add copyright notice.
126187         (libfetish_a_SOURCES): Add unlocked-io.h.
126188         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126189         (DISTCLEANFILES, io_functions): Remove macros.
126190         (EXTRA_DIST): Remove gen_uio.
126191         (unlocked-io.h): Remove rule.
126193 2002-12-04  Jim Meyering  <jim@meyering.net>
126195         Reflect the fact that stat.c and lstat.c are no longer generated.
126196         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126197         (DISTCLEANFILES): Likewise.
126198         (EXTRA_DIST): Likewise.
126199         (all_local): Don't depend on stat.c or lstat.c.
126200         (stat.c, lstat.c): Remove rules.
126201         (EXTRA_DIST): Remove xstat.in.
126203         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126204         * lib/stat.c: New file.  Contents mostly from xstat.in.
126205         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126206         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126208         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126209         too.
126210         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126212 2002-12-03  Jim Meyering  <jim@meyering.net>
126214         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126215         but not semantics, to minimize the differences between these two files.
126216         (safe_read): Change comment to mention SAFE_READ_ERROR.
126218         * lib/safe-read.c (IS_EINTR): Define.
126219         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126221 2002-12-02  Jim Meyering  <jim@meyering.net>
126223         * lib/safe-read.c (EINTR): Define.
126224         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126225         (INT_MAX): Provide fallback.
126226         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126228         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126230 2002-12-02  Bruno Haible  <bruno@clisp.org>
126232         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126233         Define, taken from safe-read.c.
126234         (INT_MAX): Provide fallback.
126235         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126236         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126238         * lib/safe-read.c (EINTR): Remove definition.
126239         (safe_read): Don't use EINTR if it is absent.
126241 2002-12-01  Jim Meyering  <jim@meyering.net>
126243         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126244         zero.
126245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126247 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126249         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126250         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126251         with `if (! (value < limit)) abort ();', for readability.
126253 2002-11-26  Karl Berry  <karl@gnu.org>
126255         * lib/strdup.c: copy from libc again, with jim's ok.
126256         * lib/.cppi-disable: re-add strdup.c
126258 2002-11-25  Karl Berry  <karl@gnu.org>
126260         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126261         instead of "strtol.c".
126263 2002-11-25  Karl Berry  <karl@gnu.org>
126265         * config/install-sh: update from automake for variable quoting, $0 in
126266         error msgs, etc.
126268         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126269         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126270         entry.
126272 2002-11-25  Jim Meyering  <jim@meyering.net>
126274         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126276 2002-11-24  Karl Berry  <karl@gnu.org>
126278         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126279         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126281 2002-11-24  Jim Meyering  <jim@meyering.net>
126283         Update from coreutils:
126285         * lib/mktime.c: Merge in changes from libc.
126287         Avoid a link-time failure on some Linux systems.
126288         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126289         (otherwise).
126290         (__mon_yday): Declare with the STATIC attribute.
126291         (__mktime_internal): Likewise.
126292         Based on a report from Greg Schafer.
126294 2002-11-23  Jim Meyering  <jim@meyering.net>
126296         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126297         Use `unsigned', not `int', as type of index.
126299         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126301         * lib/fsusage.c: Remove unneeded parentheses around operands of
126302         `defined'.
126304 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126306         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126307         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126308         so that we can be included first.
126309         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126310         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126311         No need to include stddef.h or sys/types.h any more.
126312         Surround local include files with "", not "<>".
126313         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126314         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126315         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126316         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126317         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126318         (ISPRINT): Remove; no longer needed now that we assume C89.
126320         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126321         Preserve errno.
126323         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126324         quotearg_char): Use SIZE_MAX rather than
126325         (size_t) -1 when we are talking about "infinity".
126327         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126329 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126331         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126332         hint that one should use `if (! x) abort ();' rather than `assert
126333         (x);', and anyway it's one less thing to worry about configuring.
126334         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126335         hash_rehash, hash_insert): Use abort rather than assert.
126337 2002-11-22  Bruno Haible  <bruno@clisp.org>
126339         * lib/safe-read.h: Assume C89. Add comments.
126340         (safe_read): Change return type to size_t.
126341         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126342         byte counts > SSIZE_MAX correctly.
126343         * lib/safe-write.h: New file.
126344         * lib/safe-write.c: New file.
126345         * lib/full-read.h: New file.
126346         * lib/full-read.c: New file.
126347         * lib/full-write.h: Assume C89. Add comments.
126348         * lib/full-write.c: Include safe-write.h.
126349         (full_write): Rewritten to use safe_write.
126350         Suggested by Jim Meyering and Paul Eggert.
126352 2002-11-21  Jim Meyering  <jim@meyering.net>
126354         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126356         Merge in changes from the coreutils.
126358         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126359         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126360         <stdint.h>.
126361         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126362         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126363         int.  Work more efficiently if X is the same width as uintmax_t.
126364         Do not compare X to -1, to avoid bogus compiler warning.
126365         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126366         Don't assume that f_frsize and f_bsize are the same type.
126368         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126369         warning on FreeBSD.
126371         * lib/makepath.c (make_path): Restore umask *before* creating the final
126372         component.
126373         (make_path): Minor reformatting.
126375         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126376         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126377         HAVE_MALLOC/HAVE_REALLOC.
126379         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126380         dummy ones.  At least on GNU/Linux systems, `auto' means something
126381         else.
126382         From Michael Stone.
126384 2002-11-21  Bruno Haible  <bruno@clisp.org>
126386         Remove case insensitive option matching.
126387         * lib/argmatch.h (argcasematch): Remove declaration.
126388         (ARGCASEMATCH): Remove macro.
126389         (__xargmatch_internal): Remove case_sensitive argument.
126390         (XARGMATCH): Update.
126391         (XARGCASEMATCH): Remove macro.
126392         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126393         case_sensitive argument.
126394         (argcasematch): Remove function.
126395         (__xargmatch_internal): Remove case_sensitive argument.
126396         (main): Use XARGMATCH instead of XARGCASEMATCH.
126398         * lib/xmalloc.c: Change compile-time error message. Add comment about
126399         required autoconf version.
126401 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126403         Merge argmatch cleanups from Bison.  Assume C89.
126405         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126406         Include stdlib.h, for EXIT_FAILURE.
126407         Always include <string.h>, since we assume C89.
126408         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126409         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126410         Include <stddef.h> instead, since it's all we need for size_t.
126411         (PARAMS): Remove.  All uses removed.
126412         (ARRAY_CARDINALITY): Do not bother to #undef.
126413         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126414         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126415         Remove unnecessary parentheses.
126416         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126417         Insert necessary parentheses.
126418         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126419         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126421 2002-11-19  Bruno Haible  <bruno@clisp.org>
126423         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126424         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126426         * lib/mbswidth.h (PARAMS): Remove macro.
126427         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126428         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126430         * lib/gcd.h (PARAMS): Remove macro.
126431         (gcd): Use ANSI C function declarations.
126432         * lib/gcd.c (gcd): Likewise.
126434 2002-11-15  Bruno Haible  <bruno@clisp.org>
126436         * lib/strcspn.c: Include <stddef.h>.
126437         (strcspn): Use ANSI C function declaration. Change return type to
126438         size_t. Use NULL.
126439         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126440         (strpbrk): Use NULL.
126441         * lib/strpbrk.h (PARAMS): Remove macro.
126442         (strpbrk): Use ANSI C function declaration.
126443         * lib/strstr.c: Don't include <sys/types.h>.
126444         * lib/strstr.h (PARAMS): Remove macro.
126445         (strstr): Use ANSI C function declarations.
126447 2002-11-14  Karl Berry  <karl@gnu.org>
126449         * config/mkinstalldirs: `do' on separate line, instead of
126450         `for var; do'.
126452 2002-11-06  Bruno Haible  <bruno@clisp.org>
126454         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126455         * lib/gcd.c (gcd): Likewise.
126457 2002-11-05  Bruno Haible  <bruno@clisp.org>
126459         * lib/gcd.h: New file, from gettext-0.11.5.
126460         * lib/gcd.c: New file, from gettext-0.11.5.
126462 2002-11-05  Bruno Haible  <bruno@clisp.org>
126464         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126465         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126466         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126467         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126469         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126470         <libintl.h>.
126471         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126472         <libintl.h>.
126474         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126475         * lib/human.c: Include gettext.h instead of <libintl.h>.
126476         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126477         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126478         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126479         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126480         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126481         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126482         (textdomain): Remove definition.
126483         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126485         * lib/long-options.c: Remove include of <libintl.h> and definition of
126486         _.
126487         * lib/same.c: Remove include of <libintl.h> and definition of _.
126489 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126491         * lib/config.charset: A few additions for Solaris.
126493 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126495         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126496         * lib/localcharset.c (locale_charset): Declare as extern "C".
126498 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126500         * lib/config.charset: msdos in uk_UA uses CP1125.
126502 2002-11-04  Bruno Haible  <bruno@clisp.org>
126504         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126505         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126506         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126507         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126508         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126510 2002-11-04  Bruno Haible  <bruno@clisp.org>
126512         * lib/localcharset.c (locale_charset): Don't return an empty string.
126514 2002-11-04  Bruno Haible  <bruno@clisp.org>
126516         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126517         aliases.
126519 2002-11-04  Bruno Haible  <bruno@clisp.org>
126521         * lib/config.charset: Update for newest glibc. Add canonical names
126522         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126524 2002-11-04  Bruno Haible  <bruno@clisp.org>
126526         * lib/config.charset: Add support for NetBSD.
126528 2002-11-04  Bruno Haible  <bruno@clisp.org>
126530         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126532 2002-11-01  Bruno Haible  <bruno@clisp.org>
126534         * configure.in: Add AC_CONFIG_AUX_DIR call.
126535         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126536         test/Makefile.
126537         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126539 2002-09-28  Karl Berry  <karl@gnu.org>
126541         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126542         installed automake until the next release, since changes have been
126543         made.
126545 2002-09-25  Karl Berry  <karl@gnu.org>
126547         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126548         * lib/getopt*: copy from libc/posix.
126549         * lib/gettext.h: copy from gettext.
126550         * lib/.cppi-disable: add strdup.c, gettext.h.
126552 2002-09-25  Karl Berry  <karl@gnu.org>
126554         * config/srclist.txt: enable gettext.h check.
126555         * config/config.{guess,sub}: update from prep.
126556         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126557                 from automake 1.6.3.
126558         See srclist*.
126560 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126562         * regex.c (PATFETCH): Remove the translating fetch.
126563         (PATFETCH_RAW): Rename to PATFETCH.
126564         (set_image_of_range): New fun.
126565         (SET_RANGE_TABLE_WORK_AREA): Use it.
126566         (regex_compile): Don't translate the pattern chars so eagerly.
126567         Only do it when inserting an `exactn' bytecode or when handling
126568         a char-range.
126569         (mutually_exclusive_p): Avoid empty statement.
126571 2002-07-06  Jim Meyering  <meyering@lucent.com>
126573         * m4/README: Don't mention Makefile.am.in.
126574         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126576 2002-07-01  Jim Meyering  <meyering@lucent.com>
126578         * lib/c-stack.c: Include sys/time.h.
126579         From Volker Borchert.
126581 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126583         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126585 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126587         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126588         New macro.  Use it uniformly instead of
126589         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126590         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126591         reported by Vin Shelton.
126593 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126595         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126596         Do not assume SA_SIGINFO behavior.
126597         Bug reported by Jim Meyering on NetBSD 1.5.2.
126599 2002-06-22  Jim Meyering  <meyering@lucent.com>
126601         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126602         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126605         now that configure.ac uses AC_GNU_SOURCE.
126606         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126607         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126609         Update to latest tools.  Suggestions from Paul Eggert.
126610         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126611         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126612         * m4/fnmatch.m4: Likewise.
126613         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126614         to AC_HEADER_STDBOOL
126616 2002-06-22  Jim Meyering  <meyering@lucent.com>
126618         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126619         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126621 2002-06-22  Jim Meyering  <meyering@lucent.com>
126623         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126625         * lib/exitfail.c, exitfail.h: Likewise.
126626         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126628         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126629         of fnmatch.h.
126630         (EXTRA_DIST): Add fnmatch_loop.c.
126631         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126633         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126634         * lib/fnmatch.c: Update from diffutils-2.8.2.
126635         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126636         * lib/fnmatch.h: Remove file.
126638 2002-06-21  Jim Meyering  <meyering@lucent.com>
126640         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126641         * m4/mbrtowc.m4: Likewise.
126643         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126644         * m4/mbswidth.m4: Reflect name change:
126645         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126648         * m4/lib-link.m4: Update from gettext-0.11.2.
126649         * m4/gettext.m4: Likewise.
126651         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126652         From Alfred M. Szmidt.
126654 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126656         * lib/file-type.h: Report an error if neither S_ISREG nor
126657         S_IFREG is defined, instead of using a test specific to glibc
126658         2.2.  This should be safe, since POSIX requires S_ISREG and
126659         Unix Version 7 had S_IFREG.  We don't need to check for
126660         <sys/types.h> since we don't use any symbols that it defines.
126662 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126664         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126665         $@-t, so that each temporary file name is unique and valid in the first
126666         8 characters, for operation under DOS.
126668 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126672 2002-06-15  Jim Meyering  <meyering@lucent.com>
126674         Work even with DJGPP 2.03, which lacks support for symlinks.
126675         From Richard Dawe.
126676         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126677         is defined.
126678         * lib/lchown.c (S_ISLNK): Likewise.
126680 2002-06-15  Jim Meyering  <meyering@lucent.com>
126682         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126683         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126684         have been included before this file.
126686 2002-06-14  Jim Meyering  <meyering@lucent.com>
126688         * lib/file-type.h: Use the version from diffutils-2.8.2.
126689         * lib/file-type.c: Likewise.
126691 2002-06-07  Jim Meyering  <meyering@lucent.com>
126693         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126694         They're needed at least for NetBSD 1.5.2.
126695         ($statxfs_includes): Include those same headers.
126696         ($statxfs_includes): Include sys/vfs.h if available.
126697         ($statxfs_includes): Likewise for sys/statvfs.h.
126698         Check for the following members in both structs statfs and statvfs:
126699         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126701 2002-06-01  Jim Meyering  <meyering@lucent.com>
126703         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126704         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126706 2002-05-28  Jim Meyering  <meyering@lucent.com>
126708         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126709         Reported by Volker Borchert.
126711 2002-05-27  Jim Meyering  <meyering@lucent.com>
126713         Fix a problem seen only on nonconforming systems whereby ls.c's
126714         use of localtime, and then of gettimeofday would cause trouble:
126715         the localtime call used to initialize rpl_gettimeofday's save
126716         mechanism would clobber ls's current local time information so
126717         that in any long listing the first file would always be listed
126718         with date 1970-01-01.  Analysis by Volker Borchert.
126720         * lib/gettimeofday.c (localtime): Undefine.
126721         (rpl_localtime): New function.
126723 2002-05-27  Jim Meyering  <meyering@lucent.com>
126725         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126726         localtime.
126728         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126729         use the replacement function; it wouldn't resolve at link time.
126730         Reported by Volker Borchert.
126732 2002-05-22  Jim Meyering  <meyering@lucent.com>
126734         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126735         file-type.h.
126736         * lib/file-type.h: New file.
126737         * lib/file-type.c (file_type): New file/function.  Extracted from
126738         diffutils.
126740 2002-04-30  Jim Meyering  <meyering@lucent.com>
126742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126744 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126746         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126748 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126750         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126751         Do not check for alloca.h (no longer used) or stdbool.h (was never
126752         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126754 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126756         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126758 2002-04-29  Jim Meyering  <meyering@lucent.com>
126760         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126761         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126762         Use AC_FUNC_STRNLEN here instead.
126764         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126765         With autoconf-2.53a, it's part of AC_PROG_CC.
126767 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126769         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126772 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126774         * lib/sig2str.h, lib/sig2str.c: New files.
126775         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126777 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126779         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126780         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126781         of 127, since 64 is the largest conceivable number for ancient
126782         nonstandard hosts.
126783         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126785 2002-04-28  Jim Meyering  <meyering@lucent.com>
126787         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126789 2002-04-24  Jim Meyering  <meyering@lucent.com>
126791         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126792         (jm_PREREQ): Use it.
126794         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126795         mach/mach.h fcntl.h.
126796         Check for this function: setlocale.
126798 2002-04-24  Jim Meyering  <meyering@lucent.com>
126800         * lib/gettext.h: New file, from Gettext.
126801         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126802         (libfetish_a_SOURCES): Add gettext.h.
126804 2002-04-16  Jim Meyering  <meyering@lucent.com>
126806         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126807         ut_pid, ut_id, ut_exit.
126809 2002-04-16  Jim Meyering  <meyering@lucent.com>
126811         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126812         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126813         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126815 2002-04-12  Jim Meyering  <meyering@lucent.com>
126817         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126818         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126819         existence of the getmntinfo function.  Needed for Darwin 5.3.
126821         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126822         This is necessary at least on Darwin 5.3.
126824         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126825         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126826         strnlen.o in the library, and that makes some versions of ranlib
126827         object.
126829 2002-04-12  Jim Meyering  <meyering@lucent.com>
126831         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126833 2002-04-09  Jim Meyering  <meyering@lucent.com>
126835         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126836         to be more precise.  Rather than saying we're checking whether the
126837         function `works', say what we're testing.
126838         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126839         Reported by Bruno Haible.
126841 2002-03-10  Jim Meyering  <meyering@lucent.com>
126843         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126844         Suggestion from Santiago Vila.
126846 2002-03-08  Jim Meyering  <meyering@lucent.com>
126848         * lib/rename.c: Mention that this wrapper is needed also on
126849         mips-dec-ultrix4.4 systems.
126851 2002-03-02  Jim Meyering  <meyering@lucent.com>
126853         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126854         not HAVE_CLOCK_SETTIME.
126856 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126858         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126859         Check for clock_settime.
126861 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126863         * lib/nanosleep.h: Rename to....
126864         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126866         * lib/gettime.c: New file.
126867         * lib/settime.c: New file.
126868         * lib/stime.c: Remove.
126870         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126871         timespec.h.  Remove nanosleep.h.
126873 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126875         * m4/acl.m4: New file.
126876         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126877         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126879 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126881         * lib/acl.c, lib/acl.h: New files.
126882         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126884 2002-02-24  Jim Meyering  <meyering@lucent.com>
126886         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126887         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126888         cause trouble.  Reported by Nelson Beebe.
126890 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126892         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126893         compilers that don't know that xalloc_die never returns.
126895 2002-02-20  Jim Meyering  <meyering@lucent.com>
126897         * lib/getdate.c: Regenerate using bison-1.33.
126899 2002-02-17  Jim Meyering  <meyering@lucent.com>
126901         * config/config.guess (main): Don't use `head -1'; it's no longer
126902         portable. Use `sed 1q' instead.
126904 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126906         * m4/codeset.m4: Upgrade to gettext-0.11.
126907         * m4/gettext.m4: Upgrade to gettext-0.11.
126908         * m4/glibc21.m4: Upgrade to gettext-0.11.
126909         * m4/iconv.m4: Upgrade to gettext-0.11.
126910         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126911         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126912         * m4/lib-ld.m4: New file, from gettext-0.11.
126913         * m4/lib-link.m4: New file, from gettext-0.11.
126914         * m4/lib-prefix.m4: New file, from gettext-0.11.
126915         * m4/progtest.m4: Upgrade to gettext-0.11.
126917 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126919         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126920         (jm_PREREQ): Use it.
126922 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126924         * lib/posixver.c, lib/posixver.h: New files.
126925         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126927 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126928             Bruno Haible  <bruno@clisp.org>
126930         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126931         (fwrite_success_callback): New declaration.
126932         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126933         print_unicode_char. Call failure callback instead of error.
126934         (fwrite_success_callback): New function.
126935         (exit_failure_callback): New function.
126936         (fallback_failure_callback): New function.
126937         (print_unicode_char): Call unicode_to_mb.
126939 2002-01-26  Jim Meyering  <meyering@lucent.com>
126941         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126942         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126944 2002-01-26  Jim Meyering  <meyering@lucent.com>
126946         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126948 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126950         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126952 2002-01-22  Jim Meyering  <meyering@lucent.com>
126954         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126955         Otherwise, some versions of automake would omit the rule that makes
126956         Makefile from Makefile.in.
126958 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126960         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126961         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126962         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126963         (memcoll): Set errno to zero if there is no error.
126965         * lib/quotearg.c (quotearg_buffer_restyled):
126966         Fix bug with quoting buffers containing NUL when backslashing escapes.
126967         This bug was exposed by the other changes in this patch.
126968         (quotearg_n_options): New arg ARGSIZE.
126969         All callers changed.
126970         (quoting_options_from_style): New function.
126971         (quotearg_n_style): Use it.
126972         (quotearg_n_style_mem): New function.
126974         * lib/quotearg.h (quotearg_n_style_mem): New function.
126976 2002-01-19  Jim Meyering  <meyering@lucent.com>
126978         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
126979         Remove useless quotes: DF_PROG="df".
126980         * m4/strnlen.m4: New file.
126982 2002-01-16  Paul Eggert  <eggert@twinsun.com>
126984         * lib/backupfile.c (ISDIGIT): Comment fix.
126985         * lib/getdate.y (ISDIGIT): Likewise.
126986         * lib/posixtm.c (ISDIGIT, year): Likewise.
126987         * lib/strverscmp.c (ISDIGIT): Likewise.
126988         * lib/userspec.c (ISDIGIT): Likewise.
126990 2002-01-16  Jim Meyering  <meyering@lucent.com>
126992         * lib/getdate.y: Add three semicolons, each just before a closing
126993         brace. Bison (as of version 1.31) no longer papers over that mistake.
126995 2002-01-05  Jim Meyering  <meyering@lucent.com>
126997         * lib/version-etc.c (version_etc_copyright): Update copyright year.
126999 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127001         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127002         not silently exit merely because the output buffer happens to
127003         have nothing pending.
127005 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127007         See the big note in ../ChangeLog.
127008         * lib/human.c (suffixes): Prefer K to k for 1024.
127009         (generate_suffix_backwards): New function.
127010         (human_readable_inexact): Use it.
127011         * lib/xstrtol.c (__xstrtol): If there is no number but there
127012         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127013         Accept 'K' as well as 'k'.
127015 2001-12-15  Jim Meyering  <meyering@lucent.com>
127017         * lib/regex.h (__restrict_arr): Update from libc.
127019         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127020         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127021         (STREQ): Define.
127023 2001-12-14  Jim Meyering  <meyering@lucent.com>
127025         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127026         Suggestion from Bruno Haible.
127028 2001-12-10  Jim Meyering  <meyering@lucent.com>
127030         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127031         xrealloc, Instead, include "xalloc.h".
127032         (initbuffer): Don't cast xmalloc return value to char*.
127033         (readline): Reword comment.
127034         Don't cast xrealloc return value to char*
127035         Return NULL, not 0.
127037 2001-12-09  Jim Meyering  <meyering@lucent.com>
127039         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127040         about `signed and unsigned type in conditional expression'.
127041         * lib/posixtm.c (posix_time_parse): Likewise.
127043         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127045         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127046         to avoid a pedantic warning.
127048         * lib/getstr.c: Don't include assert.h.
127049         (getstr): Remove warning-evoking assertions.
127050         Return -1 if offset parameter is out of bounds.
127051         Change the type of a local from int to size_t.
127053         * lib/strftime.c (my_strftime_localtime_r): Include this function
127054         definition in the `#if ! HAVE_TM_GMTOFF' block.
127056         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127057         Include xalloc.h instead.
127059 2001-12-02  Jim Meyering  <meyering@lucent.com>
127061         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127062         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127063         included.
127065         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127066         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127068 2001-11-30  Akim Demaille  <akim@epita.fr>
127070         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127071         before being defined.
127073 2001-11-27  Paul Eggert  <eggert@twinsun.com>
127075         * lib/quotearg.h (quotearg_n, quotearg_n_style):
127076         First arg is int, not unsigned.
127077         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
127078         (SIZE_MAX, UINT_MAX): New macros.
127079         (quotearg_n_options): Abort if N is negative.
127080         Avoid overflow check on hosts where size_t is 64 bits and int
127081         is 32 bits, as overflow is impossible there.
127082         Fix off-by-one typo that caused unnecessary reallocation.
127084 2001-11-27  Jim Meyering  <meyering@lucent.com>
127086         * lib/tempname.c: Merge with version from libc.
127087         * lib/regex.c: Likewise.
127089         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
127090         systems for which STDC_HEADERS is 0, it was not included, resulting in
127091         a warning about an integer-to-pointer conversion problem with getenv.
127092         Reported by Volker Borchert.
127094 2001-11-26  Jim Meyering  <meyering@lucent.com>
127096         * lib/gtod.h: Remove file.
127097         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
127098         * lib/gettimeofday.c: Don't include gtod.h.
127099         (GTOD_init): Remove function.
127100         (rpl_gettimeofday): Do its job here instead, rather than aborting.
127101         Suggestion from Volker Borchert.
127103 2001-11-23  Jim Meyering  <meyering@lucent.com>
127105         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
127106         it.
127107         * lib/hash.c (struct hash_table): Define it here instead.
127109 2001-11-22  Jim Meyering  <meyering@lucent.com>
127111         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127113 2001-11-20  Jim Meyering  <meyering@lucent.com>
127115         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127116         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127118 2001-11-19  Jim Meyering  <meyering@lucent.com>
127120         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127121         directory.  Use "conftestXXXXXX" as the template.
127122         Suggestion from Paul Eggert.
127124         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127125         immediately, so the test doesn't mistakenly hit the max-open-files
127126         limit.
127128 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127130         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127131         (TEMPORARIES): New macro.
127132         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127133         removes an artificial limitation (e.g. HP-UX 10.20, where
127134         TMP_MAX is 17576).
127136 2001-11-18  Jim Meyering  <meyering@lucent.com>
127138         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127140 2001-11-18  Jim Meyering  <meyering@lucent.com>
127142         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127143         on SunOS 4.
127145         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127146         files will be created before anything else.
127148 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127150         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127151         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127153 2001-11-17  Jim Meyering  <meyering@lucent.com>
127155         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127156         Prompted by a report from Bob Proulx.
127158         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127159         Instead, require UTILS_FUNC_MKSTEMP.
127161 2001-11-17  Jim Meyering  <meyering@lucent.com>
127163         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127164         Now, that's done as part of AC_FUNC_STRTOD.
127166 2001-11-17  Jim Meyering  <meyering@lucent.com>
127168         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127169         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127170         rather than group writable.  Patch by Juan F. Codagnone.
127172         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127173         xrealloc, Instead, include "xalloc.h".
127175         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127176         Remove explicit declarations of xmalloc, xrealloc,
127177         and xstrdup.  Instead, include "xalloc.h".
127179         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127180         unlocked-io.h.
127181         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127182         Likewise.
127183         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127185         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127186         Reported by Padraig Brady.
127188         * lib/mkstemp.c: #undef mkstemp.
127189         Include config.h.
127190         (rpl_mkstemp): Rename from mkstemp.
127191         Protoize.
127193 2001-11-16  Jim Meyering  <meyering@lucent.com>
127195         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127196         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127197         determine the amount of total physical memory, use pstat_getstatic.
127198         HPUX-11 doesn't define _SC_PHYS_PAGES.
127199         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127200         If sysconf couldn't be used to determine the amount of available
127201         physical memory, use both pstat_getstatic and pstat_getdynamic.
127202         Based on a patch from Bob Proulx.
127204 2001-11-10  Jim Meyering  <meyering@lucent.com>
127206         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127207         (jm_PREREQ): Use it.
127209 2001-11-09  Jim Meyering  <meyering@lucent.com>
127211         * m4/jm-macros.m4: Require autoconf-2.52f.
127212         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127213         Use these AC_-prefixed names, not the AM_-prefixed ones.
127215         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127217 2001-11-05  Jim Meyering  <meyering@lucent.com>
127219         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127221 2001-11-04  Jim Meyering  <meyering@lucent.com>
127223         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127224         $DEFS.
127226 2001-11-03  Jim Meyering  <meyering@lucent.com>
127228         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127229         of AC_DEFUN.
127231         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127232         know the name of the variable in the macro definition.
127234 2001-11-03  Jim Meyering  <meyering@lucent.com>
127236         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127237         in argmatch_to_argument call.
127239         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127240         argument.
127242         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127243         e.g., a fault due to an attempt to free a NULL pointer.
127245 2001-11-01  Jim Meyering  <meyering@lucent.com>
127247         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127248         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127250 2001-11-01  Jim Meyering  <meyering@lucent.com>
127252         * lib/dirfd.c, lib/dirfd.h: New files.
127253         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127255         * lib/hash.c (hash_print) [TESTING]: Clean up.
127257 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127259         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127260         to avoid a warning if -Wall.
127262 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127264         * README: New file
127265         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127266         (per RMS's instructions, this is now the canonical source)
127267         * lgpl/, gpl/: New directories.
127269 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127271         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127273 2001-10-21  Jim Meyering  <meyering@lucent.com>
127275         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127276         this code would end up calling gettext even in packages built
127277         with --disable-nls.
127278         * lib/getopt.c (_): Likewise.
127279         * lib/regex.c (_): Likewise.
127281 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127283         * m4/error.m4 (jm_PREREQ_ERROR):
127284         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127285         AC_FUNC_STRERROR_R does that.
127286         Check for strerror declaration.
127288         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127289         are supposed to have them these days.
127290         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127291         Merge changes from latest Autoconf CVS.
127292         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127293         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127294         POSIX decided to standardize on the int flavor of strerror_r.
127296 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127298         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127299         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127300         Use strerror_r that is only a macro, even if it is not a function.
127301         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127302         (private_strerror): Use prototypes, not old-style function definition.
127303         (print_errno_message): New function.
127304         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127305         char*-flavored one.
127306         (error_tail, error, error_at_line): Use it.
127308 2001-10-11  Jim Meyering  <meyering@lucent.com>
127310         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127311         and quote_n (1, ... to avoid clobbering a buffer.
127313 2001-10-05  Jim Meyering  <meyering@lucent.com>
127315         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127316         hash-pjw.h.
127317         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127318         * lib/hash-pjw.h: New file.
127320 2001-09-30  Jim Meyering  <meyering@lucent.com>
127322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127323         `struct fsstat' has the `f_fstypename' member.
127324         Use that to define FS_TYPE, which is now used to make
127325         the getfsstat link test tighter.
127327 2001-09-30  Jim Meyering  <meyering@lucent.com>
127329         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127330         Include <sys/ucred.h>, for Apple Darwin.
127331         Include sys/mount.h and sys/fs_types.h only if available.
127332         (FS_TYPE): Define.
127333         (read_filesystem_list): Use FS_TYPE.
127335 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127337         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127338         a boolean context.
127340 2001-09-29  Jim Meyering  <meyering@lucent.com>
127342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127343         [one-argument getmntent function]): Include stdio.h before mntent.h.
127344         SunOS 4.1.x needs it for the declaration of `FILE'.
127345         Patch by Volker Borchert.
127347         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127348         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127349         sys/fs_types.h, and make the link-test for getfsstat guard #include
127350         directives with appropriate #if HAVE_*_H tests so that we can
127351         detect getfsstat on Apple Darwin1.3.7 systems.
127352         Reported by Nelson Beebe.
127353         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127355 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127357         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127358         #defines strtoimax.  Also treat the other strto* functions
127359         like strtoimax.
127361         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127362         Check for strtoul and strtoumax,
127363         as those declarations are made even in the signed case.
127364         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127365         Likewise, for strtol and strtoimax.
127367 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127369         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127370         #defines strtoimax.  Also treat the other strto* functions
127371         like strtoimax.
127373         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127374         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127375         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127377 2001-09-26  Jim Meyering  <meyering@lucent.com>
127379         Most macros in unlocked-io.h had the wrong number of arguments.
127380         * lib/gen-uio: New script.
127381         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127382         * lib/unlocked-io.hin: Remove file.
127383         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127384         rather than trying to embed it here.
127385         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127386         Reported by Padraig Brady.
127388 2001-09-25  Volker Borchert  <bt@teknon.de>
127390         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127391         `result'.
127393 2001-09-24  Jim Meyering  <meyering@lucent.com>
127395         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127397 2001-09-23  Jim Meyering  <meyering@lucent.com>
127399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127400         instead of the mere test for existence of mntent.h.  The latter
127401         would get a false-positive on AIX 3.4 systems.
127402         In the outer getmntent if-block, don't die if neither of the getmntent
127403         tests succeeds.  Instead, just fall through and continue with the
127404         remaining tests.
127406 2001-09-23  Jim Meyering  <meyering@lucent.com>
127408         * lib/mountlist.c: Remove useless parentheses in #if directives.
127409         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127410         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127412 2001-09-22  Jim Meyering  <meyering@lucent.com>
127414         * m4/gettext.m4: New file.  From gettext.
127415         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127416         * m4/progtest.m4: Likewise
127417         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127418         * m4/glibc21.m4: Likewise.
127420         * m4/libintl.m4: Remove.  No longer used.
127422 2001-09-22  Jim Meyering  <meyering@lucent.com>
127424         * lib/localcharset.c: Update from latest gettext.
127425         * lib/config.charset: Likewise.
127427 2001-09-20  Jim Meyering  <meyering@lucent.com>
127429         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127430         strtoimax.
127431         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127432         strtoumax.
127434 2001-09-20  Jim Meyering  <meyering@lucent.com>
127436         * lib/xstrtol.c (strtoimax): Guard declaration with
127437         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127438         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127439         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127440         (strtoumax): Likewise, for completeness (it wasn't necessary).
127442 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127444         * lib/strtoimax.c (HAVE_LONG_LONG):
127445         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127446         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127447         to work around bug in IBM C compiler.
127449 2001-09-17  Jim Meyering  <meyering@lucent.com>
127451         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127452         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127453         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127454         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127455         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127456         whenever the right hand side need not be expanded by the shell.
127458 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127460         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127461         library.  It's not correct, as some older glibcs are buggy.
127462         fnmatch wasn't fixed until glibc 2.2.
127464         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127465         special shell magic here.
127467 2001-09-16  Jim Meyering  <meyering@lucent.com>
127469         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127470         * m4/jm-macros.m4: Require it.
127472 2001-09-16  Jim Meyering  <meyering@lucent.com>
127474         * lib/mkdir.c: New file.
127476 2001-09-15  Jim Meyering  <meyering@lucent.com>
127478         * m4/jm-macros.m4: Check for help2man.
127480 2001-09-11  Jim Meyering  <meyering@lucent.com>
127482         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127483         The body, by Paul Eggert, was moved here from configure.in.
127484         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127486 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127488         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127489         (jm_PREREQ): Use it.
127491 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127493         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127494         Use ssize_t, not int, to store result of readlink.
127495         Check for ssize_t overflow as well as size_t overflow,
127496         as POSIX says the result of readlink is implementation-defined
127497         when ssize_t overflows.
127498         Remove unnecessary cast to char*.
127499         Use free+malloc instead of realloc, as the storage doesn't need
127500         to be preserved and it's clearer and can be more efficient that way.
127501         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127502         * lib/xreadlink.h (xreadlink): Update prototype.
127504 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127506         * lib/xgetcwd.c: Revert some of the previous change; intead,
127507         fix the HAVE_GETCWD_NULL code to behave more like the
127508         !HAVE_GETCWD_NULL code used to.
127510         Include "xalloc.h".
127511         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127512         invoke xalloc_die.
127514 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127516         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127517         sys/param.h, as pathmax.h includes them.
127519 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127522         (jm_PREREQ_XGETCWD): New macro.
127524         * m4/getcwd.m4: New file.
127526 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127528         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127529         like the HAVE_GETCWD_NULL code.
127530         Include pathmax.h if not HAVE_GETCWD.
127531         Do not include xalloc.h.
127532         (INITIAL_BUFFER_SIZE): New symbol.
127533         Do not use xmalloc / xrealloc, since the caller is responsible for
127534         handling errors.  Preserve errno around `free' during failure.
127535         Do not overrun buffer when using getwd.
127537 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127539         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127540         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127541         getcwd (NULL, 0).
127543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127545         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127546         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127547         spotted by Jim Meyering.
127549 2001-09-03  Jim Meyering  <meyering@lucent.com>
127551         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127552         failure.
127554 2001-09-02  Jim Meyering  <meyering@lucent.com>
127556         * lib/error.c: Update from GNU libc.
127558 2001-09-01  Jim Meyering  <meyering@lucent.com>
127560         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127561         Used by df.
127563 2001-09-01  Jim Meyering  <meyering@lucent.com>
127565         * lib/xreadlink.c: New file.
127566         * lib/xreadlink.h: New file.
127567         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127568         xreadlink.h.
127570         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127571         doesn't conflict with sparc Solaris 7's definition in
127572         /usr/include/sys/int_types.h.
127574         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127575         files.
127576         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127577         and strncasecmp as r-values.  Unixware didn't have declarations.
127579 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127581         * lib/xstrtol.h: Add copyright notice.
127582         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127583         LONGINT_INVALID_SUFFIX_CHAR.
127585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127587         * lib/xstrtol.c (strtoimax): New decl.
127589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127591         * lib/xgetcwd.c: Don't include pathmax.h.
127592         Include stdlib.h and unistd.h if available.
127593         Include xalloc.h.
127594         (xmalloc, xstrdup, free): Remove decls.
127595         (xgetcwd): Don't assume sizes fit in unsigned.
127596         Check for overflow when computing sizes.
127597         Simplify reallocation code.
127599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127601         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127602         a directory's st_size can have an arbitrary value, so the old
127603         usage could waste an arbitrary amount of memory.  All uses
127604         changed.
127605         * lib/savedir.h: Update prototype.
127607 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127609         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127611         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127612         old strtoimax.c.
127614         Also, make the following further changes to make this file's
127615         configuration more similar to that of strtol.c:
127616         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127617         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127618         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127619         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127620         changed to signed values.
127622         And make the following changes as well:
127623         Fix copyright notice, as 1999 was missing.
127624         (verify): New macro.
127625         (strtoimax): Check sizes at compile-time, not run-time.
127626         Prefer strtol to strtoll if both work.
127627         (main): Remove; it was not that useful and was a pain to maintain.
127629         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127631 2001-08-31  Jim Meyering  <meyering@lucent.com>
127633         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127634         Use an initial, malloc'd, buffer of length 128 rather than
127635         a statically allocated one of length 1024.
127637 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127639         Simplify code, partly by assuming autoconf 2.52 semantics.
127641         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127643         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127644         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127645         All uses removed.
127646         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127647         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127648         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127649         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127650         jm_AC_HEADER_INTTYPES_H.
127651         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127653         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127655         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127656         Quote first arg of AC_DEFUN.
127657         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127658         since they are needed to parse the include file even if we need
127659         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127660         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127661         but with opposite signedness.
127663 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127665         Merge 'exclude' changes from tar 1.13.22.
127666         This fixes one or two unlikely storage allocation overflow bugs,
127667         but doesn't change user-visible behavior otherwise.
127669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127671         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127672         (jm_PREREQ_EXCLUDE): New macro.
127674 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127676         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127677         tm to be declared.
127679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127681         * lib/hash.c: Remove '2001' from copyright notice.
127683 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127685         * lib/full-write.h: New file.
127686         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127687         * lib/full-write.c: Correct credits, as cccp.c no longer
127688         exists and anyway it was so heavily changed from the old cccp
127689         code as to be unrecognizable.  Include full-write.h.
127690         (full_write): Return size_t, with short writes meaning failure.
127691         All callers changed.  This fixes a bug with large buffers
127692         on 64-bit hosts.
127693         * lib/utime.c: Include full-write.h.
127695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127697         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127698         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127699         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127700         Include if available.
127701         (<xalloc.h>): Include
127702         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127703         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127704         collide with FNM macros.
127705         (struct patopts): New struct.
127706         (struct exclude): Use it, as exclude patterns now come with options.
127707         (new_exclude): Support above changes.
127708         (new_exclude, add_exclude_file):
127709         Initial size must now be a power of two to simplify overflow checking.
127710         (free_exclude, fnmatch_no_wildcards): New function.
127711         (excluded_filename): No longer requires options arg, as the options
127712         are determined by add_exclude.  Now returns bool, not int.
127713         (excluded_filename, add_exclude):
127714         Add support for the fancy new exclusion options.
127715         (add_exclude, add_exclude_file): Now takes int options arg.
127716         Check for arithmetic overflow when computing sizes.
127717         (add_exclude_file): xrealloc might modify errno, so don't
127718         realloc until after errno might be used.
127720         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127721         New macros.
127722         (free_exclude): New decl.
127723         (add_exclude, add_exclude_file): Now takes int options arg.
127724         (excluded_filename): No longer requires options arg, as the options
127725         are determined by add_exclude.  Now returns bool, not int.
127727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127729         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127731 2001-08-27  Jim Meyering  <meyering@lucent.com>
127733         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127735         * lib/version-etc.c (N_): Remove definition.
127736         Revert most of last change.
127737         Instead, simply don't mark the `Copyright...' string for translation.
127738         Based on advice from Paul Eggert.
127740         * lib/strtoxmax.c: Tweak comment.
127742 2001-08-26  Jim Meyering  <meyering@lucent.com>
127744         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127746         * m4/xstrtoimax.m4: New file.
127747         * m4/xstrtoumax.m4: Add comments explaining why we
127748         AC_REPLACE_FUNCS(strtol).
127750 2001-08-26  Jim Meyering  <meyering@lucent.com>
127752         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127753         of copyright with `%s' so translators don't get an untranslated
127754         message in 2002.
127755         (COPYRIGHT_YEAR): Define.
127756         (version_etc): Use fprintf rather than fputs.
127757         Suggestion from Ulrich Drepper.
127759         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127761         * lib/strtoll.c: New file, from GNU libc.
127762         * lib/xstrtoimax.c: New file.
127764         * lib/xstrtol.h: Add xstrtoimax.
127765         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127766         * lib/strtoimax.c: New file.  Likewise, but first define
127767         STRTOUXMAX_SIGNED.
127769         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127770         ...
127771         * lib/strtoxmax.c: ... then renamed to this.
127773 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127775         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127776         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127777         (jm_AC_TYPE_INTMAX_T): New macro.
127778         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127780         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127782         * m4/longlong.m4: Renamed from ulonglong.m4.
127783         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127784         * m4/uintmax_t.m4: Removed.
127786 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127788         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127789         Port to Solaris 8, where 'sed' requires a space after the 'r'
127790         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127791         Redirect output to $tmp just once.
127793 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127795         * lib/addext.c (<errno.h>): Include.
127796         (errno): Declare if not defined.
127797         (addext): Work correctly when pathconf returns -1 and leaves
127798         errno alone because there is no limit.  Also, work even if
127799         pathconf returns a value greater than SIZE_MAX.
127801 2001-08-12  Jim Meyering  <meyering@lucent.com>
127803         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127804         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127805         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127806         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127807         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127808         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127809         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127810         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127811         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127812         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127813         utime.m4, utimes.m4, xstrtoumax.m4:
127814         Quote the first argument in each use of AC_DEFUN.
127816 2001-08-12  Jim Meyering  <meyering@lucent.com>
127818         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127819         Simply `return getcwd (NULL, 0);'.
127820         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127821         Use 1300 as initial value for length, not PATH_MAX.
127823         * lib/pathmax.h: Clean up cpp syntax.
127825 2001-08-12  Jim Meyering  <meyering@lucent.com>
127827         * lib/gettimeofday.c: New file.
127828         * lib/gtod.h: New file.
127829         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127831 2001-08-05  Jim Meyering  <meyering@lucent.com>
127833         * m4/jm-macros.m4: Require autoconf-2.52.
127835 2001-08-04  Jim Meyering  <meyering@lucent.com>
127837         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127838         stmt, to get in sync with glibc.
127840 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127842         The following changes are from gettext 0.10.39 as maintained by
127843         Bruno Haible.
127845         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127846         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127847         with inverted sense.  All uses changed.
127849         * lib/mbswidth.c: Don't include <limits.h>.
127850         Include <stdlib.h> and <string.h> unconditionally.
127851         (iswcntrl, mbsinit, ISCNTRL): New macros.
127852         (mbsnwidth): Use K&R style function declarations.
127853         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127854         can optimize it when MB_CUR_MAX == 1.
127855         The width of control characters is zero, not 1.
127857 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127859         The following changes are from gettext 0.10.39 as maintained by
127860         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127862         * m4/codeset.m4: Upgrade to serial AM1.
127863         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127864         all uses changed.  Quote first arg of AC_DEFUN.
127865         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127867         * m4/iconv.m4: Upgrade to serial AM2.
127868         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127869         Add --with-libconv-prefix.
127870         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127871         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127872         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127873         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127874         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127876         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127877         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127878         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127879         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127880         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127881         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127882         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127883         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127884         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127886         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127887         string.h any more.
127889         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127890         not the default value.
127892         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127893         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127894         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127895         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127896         Also check for iswcntrl, used for wcwidth fallback.
127897         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127898         to Autoconf 2.13.
127900 2001-08-03  Jim Meyering  <meyering@lucent.com>
127902         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127903         as it was in the original.  Reported by Paul Eggert.
127905 2001-07-16  Jim Meyering  <meyering@lucent.com>
127907         * m4/gettimeofday.m4: New file.
127908         Prompted by a report from Bernhard Baehr.
127910 2001-07-15  Jim Meyering  <meyering@lucent.com>
127912         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127913         stuff. Now it's in ../Makefile.cfg.
127915 2001-07-15  Jim Meyering  <meyering@lucent.com>
127917         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127918         (BUILT_SOURCES): Add unlocked-io.h.
127919         (io_functions): Define.
127920         (unlocked-io.h): New rule.
127921         (DISTCLEANFILES): Add unlocked-io.h.
127922         (all-local): Depend on unlocked-io.h, to ensure it is created.
127924         * lib/unlocked-io.hin: New file
127926         * lib/regex.c: Update from glibc.
127928 2001-07-05  Jim Meyering  <meyering@lucent.com>
127930         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127931         recommendation.
127932         (libfetish_a_SOURCES): Put all .h files here instead.
127933         Remove a thus-exposed (better checks in automake) duplicate and
127934         two unnecessary .h files.
127936 2001-07-04  Jim Meyering  <meyering@lucent.com>
127938         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127939         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127940         distcheck failure.
127942 2001-07-02  Jim Meyering  <meyering@lucent.com>
127944         The following changes were prompted by suggestions from Bruno Haible.
127946         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127947         is now generated.
127948         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127949         definition of EXTRA_DIST.
127950         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127951         ensure that the generated file is created/updated whenever the list
127952         of $(unlocked_functions) is changed.
127953         (jm-glibc-io.m4): New rule.
127954         (unlocked-io.h): New rule -- currently unused.
127956 2001-06-24  Jim Meyering  <meyering@lucent.com>
127958         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127959         unmatched right bracket, rather than kludging it with an extra,
127960         falsely-matching quote in a comment.  Patch by Akim Demaille.
127962 2001-06-11  Jim Meyering  <meyering@lucent.com>
127964         * lib/regex.c: Update from GNU libc.
127966 2001-05-27  Jim Meyering  <meyering@lucent.com>
127968         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
127969         Check for ut_type in struct utmp.
127971 2001-05-27  Jim Meyering  <meyering@lucent.com>
127973         * lib/readutmp.h (UT_TYPE): Define.
127975 2001-05-24  Jim Meyering  <meyering@lucent.com>
127977         * lib/argmatch.c: Include "quote.h".
127978         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
127979         quote function.  Reported by Göran Uddeborg.
127981 2001-05-22  Jim Meyering  <meyering@lucent.com>
127983         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
127984         now that we use the package-supplied version unconditionally.
127985         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
127987 2001-05-21  Jim Meyering  <meyering@lucent.com>
127989         * m4/regex.m4: Change a couple backticks to single quotes to avoid
127990         shell syntax errors.
127992 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127994         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
127996 2001-05-20  Paul Eggert  <eggert@twinsun.com>
127998         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
127999         Don't bother to check library strftime, since
128000         we'll be using our own my_strftime function anyway.
128001         Define my_strftime instead of strftime.
128003 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128005         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128006         which is not yet declared.
128008 2001-05-15  Jim Meyering  <meyering@lucent.com>
128010         * m4/regex.m4: Use proper quoting so brackets appear in the test
128011         program.
128012         Reported by, and with help from, Bruno Haible.
128014 2001-05-13  Jim Meyering  <meyering@lucent.com>
128016         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128017         undefined.
128019 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128021         dirname code cleanup.  base_name now behaves more compatibly
128022         with POSIX basename when given file names that have trailing
128023         slashes, and similarly for dir_name.  Add new primitives
128024         base_len and dir_len.  Put the directory-name-related decls
128025         into dirname.h.
128027         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128028         * lib/backupfile.c (base_name): Likewise.
128029         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128030         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128031         * lib/makepath.c (strip_trailing_slashes): Likewise.
128032         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128033         ISSLASH): Likewise.
128034         * lib/rename.c (strip_trailing_slashes): Likewise.
128035         * lib/same.c (base_name): Likewise.
128036         * lib/stripslash.c (ISSLASH): Likewise.
128038         * lib/addext.c: Include <dirname.h> after size_t is defined.
128039         * lib/backupfile.c: Likewise.
128041         * lib/addext.c (addext): Use base_len to trim redundant
128042         trailing slashes instead of doing it ourselves.
128043         But do not trim the last slash if it is not redundant.
128045         * lib/backupfile.c (find_backup_file_name,
128046         max_backup_version): Use base_len instead of rolling it ourselves.
128047         Handle the case of "" and (on DOS) "C:" correctly.
128049         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128050         needed. Include <string.h>, <dirname.h>.
128051         (base_name): Allow file names ending in slashes, other than names
128052         that are all slashes.  In this case, return the basename followed
128053         by the slashes.  This is more general, and can be used in places
128054         where the original base_name purposely had an assertion failure.
128055         (base_len): New function.
128057         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128058         Do not include <assert.h>; no longer needed.
128059         Include xalloc.h.
128060         (memrchr): Remove decl.
128061         (dir_name_r): Remove.
128062         (dir_len): Renamed from dirlen.  All callers changed.
128063         Rewrite in terms of base_name, for simplicity and consistency.
128064         (dir_name): Never return NULL.  All callers changed.
128065         Do not include <stdlib.h> in test program; no longer needed.
128066         return 0; is fine for test program.
128068         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128069         New macros.
128070         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128072         * lib/path-concat.c (path_concat): Use base_len to compute
128073         base length, not strlen; this means we cannot rely on memcpy
128074         to null-terminate.
128076         * lib/same.c (STREQ): Remove.
128077         (same_name): Handle the case where the basename ends in trailing '/'.
128079         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
128080         a slash was stripped.  Do not strip the last slash after a
128081         file system prefix.
128083 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128085         * lib/Makefile.am (libfetish_a_SOURCES):
128086         Add strftime.c, since we now compile it on all hosts.
128088         * lib/strftime.c (my_strftime):
128089         Define to nstrftime if emacs, but only if my_strftime is not defined.
128090         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
128091         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
128092         Add one more extra argument: a nanoseconds value.
128093         All uses changed.
128094         (ns): New macro.
128095         (my_strftime function): Add %N format.
128096         (emacs_strftimeu): Renamed from emacs_strftime,
128097         with extra ut argument.
128099 2001-05-09  Paul Eggert  <eggert@twinsun.com>
128101         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
128103 2001-04-21  Jim Meyering  <meyering@lucent.com>
128105         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
128106         doesn't interfere.
128108 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128110         * m4/ftruncate.m4: Check for chsize.
128111         Link with ftruncate.o unconditionally if ftruncate is missing.
128112         This was required when cross-compiling to i586-mingw32msvc.
128114 2001-04-08  Jim Meyering  <meyering@lucent.com>
128116         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128117         recomputed; that's necessary when the offset spans a DST transition.
128118         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128120 2001-04-02  Jim Meyering  <meyering@lucent.com>
128122         * lib/regex.h, regex.c: Update from GNU libc.
128124 2001-03-24  Jim Meyering  <meyering@lucent.com>
128126         * m4/jm-macros.m4: Require autoconf-2.49d.
128128 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128130         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128132 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128134         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128136 2001-03-17  Jim Meyering  <meyering@lucent.com>
128138         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128139         now that the version in autoconf is equivalent.
128140         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128142         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128143         Suggestion from Akim Demaille.
128145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128146         (jm_PREREQ_TEMPNAME): New function.
128148 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128150         * lib/tempname.c (uint64_t): Define to uintmax_t if
128151         not defined, and if UINT64_MAX is not defined.
128152         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128153         Reported by John David Anglin.
128155 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128157         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128158         resolve alias if codeset is empty.
128159         * lib/config.charset (BeOS): Use wildcard syntax.
128161 2001-03-13  Jim Meyering  <meyering@lucent.com>
128163         * lib/path-concat.c (path_concat)
128164         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128165         concatenating e.g., `C:' and `foo'.
128166         From Bruno Haible.
128168 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128170         * lib/localcharset.c (locale_charset): Don't use
128171         setlocale(LC_CTYPE,NULL). Don't return NULL.
128172         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128174 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128176         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128177         support for DOS/DJGPP.
128179 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128181         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128182         lacks mkstemp.  Compile our own tempname.c if we compile our own
128183         mkstemp.c, as mkstemp relies on tempname.
128185 2001-03-01  Jim Meyering  <meyering@lucent.com>
128187         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128188         AH_VERBATIM really does output its argument verbatim.
128190 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128192         * lib/Makefile.am (libfetish_a_SOURCES):
128193         Add dup-safer.c, fopen-safer.c.
128194         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128196         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128197         * lib/unistd-safer.h: New files.
128199 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128201         The mkstemp replacement is taken from glibc 2.2.2, with some
128202         portability fixes for use outside glibc, as follows:
128204         * lib/tempname.c (struct_stat64): New macro.
128205         (direxists, __gen_tempname): Use it.
128206         This avoids a portability problem with Solaris 8.
128208         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128209         (<stddef.h>, <stdint.h>, <string.h>):
128210         Include only if STDC_HEADERS || _LIBC.
128211         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128212         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128213         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128214         (__set_errno): Define this macro if <errno.h> doesn't.
128215         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128216         Define these macros if <stdio.h> doesn't.
128217         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128218         Define these macros if <sys/stat.h>
128219         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128220         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128221         __xstat64): Define if not _LIBC.
128222         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128223         (__gen_tempname): Invoke gettimeofday only if
128224         HAVE_GETTIMEOFDAY || _LIBC;
128225         otherwise, fall back on plain "time".
128226         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128228         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128230         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128232 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128234         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128236 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128238         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128239         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128240         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128241         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128243 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128245         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128246         Remove workaround macros for hosts that have mbrtowc but not
128247         mbstate_t, as we now insist on proper declarations for both
128248         before using mbrtowc.
128250 2001-02-17  Jim Meyering  <meyering@lucent.com>
128252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128253         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128254         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128255         UnixWare 7.1.1.
128257         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128258         rather than AC_CACHE_VAL.
128260 2001-02-17  Jim Meyering  <meyering@lucent.com>
128262         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128263         around included file name.
128265         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128267         * lib/strftime.c: Update from GNU libc (the only changes were to
128268         comments).
128270 2001-02-17  Jim Meyering  <meyering@lucent.com>
128272         * lib/regex.c: Update from libc.
128274 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128276         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128277         clash.
128279 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128281         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128282         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128283         Reported by Mark Hounschell via Paul Eggert.
128285 2001-02-07  Jim Meyering  <meyering@lucent.com>
128287         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128289 2001-02-05  Jim Meyering  <meyering@lucent.com>
128291         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128292         it includes the patch required for `large file' support with at least
128293         HP-UX's 10.20 /bin/cc.
128295 2001-02-03  Jim Meyering  <meyering@lucent.com>
128297         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128298         AS_IF, now that it works once again (mysteriously).
128299         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128301 2001-01-30  Jim Meyering  <meyering@lucent.com>
128303         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128304         * m4/chown.m4: Rename conftestchown to conftest.chown.
128305         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128306         s/conftestdir2/conftest.d2/.
128307         * m4/utimes.m4: s/conftestdata/conftest.data/
128308         Inspired by Pavel Roskin's change in autoconf.
128310 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128312         * lib/config.charset: Update for FreeBSD 4.2.
128314 2001-01-27  Jim Meyering  <meyering@lucent.com>
128316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128317         a use of AS_IF.
128318         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128320 2001-01-26  Jim Meyering  <meyering@lucent.com>
128322         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128323         quotearg.c includes it.
128325 2001-01-26  Jim Meyering  <meyering@lucent.com>
128327         * lib/quotearg.c: Include stddef.h.
128328         * lib/quote.c: Include stddef.h.
128329         Reported by Axel Kittenberger.
128331         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128332         line in double quotes so that it evokes a better diagnostic.
128333         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128334         Reported by Axel Kittenberger.
128336 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128338         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128339         as if it was a `charset'.
128341 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128343         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128344         has const.
128346 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128348         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128349         to avoid a warning.  Add back 'const' to inptr.
128351 2001-01-20  Jim Meyering  <meyering@lucent.com>
128353         Be sure that headers are checked before used in code compiled
128354         for the type checks.
128355         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128356         In place of that, invoke jm_CHECK_ALL_TYPES.
128357         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128358         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128359         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128360         The check for ssize_t was mistakenly run before the test for unistd.h.
128362         The configure-time check for stdbool.h was missing.
128363         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128364         (jm_PREREQ_HASH): New function.
128366 2001-01-17  Jim Meyering  <meyering@lucent.com>
128368         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128369         for autoconf-2.49c.
128370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128372 2001-01-16  Jim Meyering  <meyering@lucent.com>
128374         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128375         From Bruno Haible.
128377 2001-01-14  Jim Meyering  <meyering@lucent.com>
128379         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128380         foo and bar.  Create conftestdir/ in the script, not in the C code.
128381         Remove directories in the script, not in the C code.
128382         Remove conftestdir{,2} before trying to create the directory.
128383         Make the entire configure script fail if the mkdir fails.
128385 2001-01-14  Jim Meyering  <meyering@lucent.com>
128387         * lib/rename.c: New file.  From Volker Borchert.
128388         Include stdlib.h, string.h or strings.h, and xalloc.h.
128389         Use strip_trailing_slashes rather than open-coding it.
128391 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128393         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128395 2001-01-03  Jim Meyering  <meyering@lucent.com>
128397         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128398         of local `inptr' to avoid warning with some system declarations of
128399         iconv.
128401 2001-01-02  Volker Borchert  <bt@teknon.de>
128403         * m4/rename.m4: New file.
128404         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128406 2001-01-01  Jim Meyering  <meyering@lucent.com>
128408         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128409         even on systems with utmpx.h.  It's necessary for the declaration of
128410         utmp's ut_user member.  Reported by Andreas Jaeger.
128412         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128413         available. They are required for the declarations of getgrgid and
128414         getpwuid resp.
128415         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128416         Reported by Andreas Jaeger.
128418 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128420         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128421         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128422         so `make install' also works in VPATH builds.
128424 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128426         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128427         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128428         can be used in subdirectories.
128430 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128432         * lib/modechange.c: Do not assume that mode_t uses the
128433         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128434         the other-execute bit of FOO even if S_IXOTH != 1.
128436         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128437         WOTH, XOTH, ALLM): New macros.
128438         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128439          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128440         Use them.
128441         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128442         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128443         (mode_compile):
128444         No need to use uintmax_t; unsigned long is long enough.
128445         Don't bother to get suffix since we don't use it.
128447 2000-12-26  Jim Meyering  <meyering@lucent.com>
128449         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128450         better with autoheader.
128452 2000-12-24  Jim Meyering  <meyering@lucent.com>
128454         * lib/hash.c (is_prime): Return explicit boolean values.
128455         (hash_get_first): Return NULL to appease Irix5.6's 89.
128456         Reported by Nelson Beebe.
128458 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128460         * lib/localcharset.c (locale_charset): Add support for Win32.
128462 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128464         * lib/physmem.h, lib/physmem.c: New files.
128466         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128467         (noinst_HEADERS): Add physmem.h.
128469         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128470         't' for compatibility with Solaris 8 sort.
128472 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128474         * lib/config.charset: Add support for BeOS.
128476 2000-12-17  Jim Meyering  <meyering@lucent.com>
128478         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128479         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128481 2000-12-16  Jim Meyering  <meyering@lucent.com>
128483         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128484         N and M) would have treated it like `chown N:N FILE'.
128486         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128488 2000-12-16  Jim Meyering  <meyering@lucent.com>
128490         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128491         SHELLS_FILE to a file name that's useful on djgpp systems.
128492         Include stdlib.h.
128493         (ADDITIONAL_DEFAULT_SHELLS): Define.
128494         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128495         Based mostly on a patch from Prashant TR.
128497 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128499         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128500         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128501         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128503 2000-12-08  Andreas Schwab  <schwab@suse.de>
128505         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128506         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128508 2000-12-07  Jim Meyering  <meyering@lucent.com>
128510         * lib/stripslash.c (ISSLASH): Define.
128511         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128512         `/'.
128513         From Prashant TR.
128515         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128516         (dir_name_r): Declare this function as static.
128517         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128518         manifest itself on a name containing a mix of slashes and
128519         backslashes.
128520         Make this function work with names starting with a DOS-style
128521         drive letter and colon prefix.
128522         (dir_name): Append `.' if necessary.
128523         Based mostly on patches from Prashant TR and Eli Zaretskii.
128525         * lib/dirname.h (dir_name_r): Remove prototype.
128527 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128529         * m4/off_t-format.m4: Remove this file.
128530         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128532 2000-12-06  Jim Meyering  <meyering@lucent.com>
128534         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128535         replacement strtoull, we may well need the replacement strtoul, too.
128536         Check for declarations of strtoul and strtoull.
128537         Check for strtol.  Mainly as a cue to cause automake to include
128538         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128539         Check for limits.h -- strtol.c needs it.
128541 2000-12-05  Jim Meyering  <meyering@lucent.com>
128543         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128545 2000-12-04  Jim Meyering  <meyering@lucent.com>
128547         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128548         Also include memory.h, stdlib.h, unistd.h if appropriate.
128549         Reported by Andreas Jaeger (conflicting declaration of malloc).
128551 2000-12-02  Jim Meyering  <meyering@lucent.com>
128553         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128554         * m4/jm-macros.m4 (jm_MACROS): require it.
128556 2000-12-02  Jim Meyering  <meyering@lucent.com>
128558         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128560 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128562         * lib/memrchr.c: Include <config.h> before any system include file.
128564 2000-11-30  Jim Meyering  <meyering@lucent.com>
128566         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128568 2000-11-30  Jim Meyering  <meyering@lucent.com>
128570         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128572 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128574         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128576 2000-11-26  Jim Meyering  <meyering@lucent.com>
128578         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128580 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128582         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128583         size of (size_t) -1; it's not portable.
128585 2000-11-17  Jim Meyering  <meyering@lucent.com>
128587         * lib/strstr.c: Update from GNU libc.
128589 2000-11-17  Akim Demaille  <akim@epita.fr>
128591         * lib/obstack.h: Formatting changes.
128592         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128593         prevent type checking.
128594         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128595         cast the value to (void *): assigning a `foo *' to a `void *'
128596         variable is valid.
128597         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128599 2000-11-16  Jim Meyering  <meyering@lucent.com>
128601         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128603 2000-11-11  Jim Meyering  <meyering@lucent.com>
128605         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128607 2000-11-10  Jim Meyering  <meyering@lucent.com>
128609         * lib/obstack.h: Update from GNU libc.
128610         * lib/obstack.c: Likewise.
128612 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128614         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128616 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128618         * lib/getusershell.c (setusershell): Use rewind rather than
128619         fseek/fseeko, to avoid configuration hassles with fseeko.
128620         Don't bother opening SHELLS_FILE if shellstream is NULL;
128621         it's not necessary.
128623 2000-11-05  Jim Meyering  <meyering@lucent.com>
128625         * lib/makepath.h (make_dir): Declare.
128626         * lib/makepath.c (make_dir): Remove `static' attribute.
128627         Tweak a comment.
128629 2000-11-04  Jim Meyering  <meyering@lucent.com>
128631         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128633 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128635         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128636         last one in a bucket, advance to the next bucket.
128638 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128640         * lib/fnmatch.c: Do not comment out all the code if we are using
128641         the GNU C library, because in some cases we are replacing buggy
128642         code in the GNU C library itself.
128644 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128646         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128647         (regex_compile): Catch bogus \(\1\).
128649 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128651         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128652         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128653         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128655 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128657         * lib/error.h, getline.h, modechange.h:
128658         Remove "2000" from Copyright line, as the file hasn't been
128659         changed this year other than in the copyright notice.
128661         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128662         was changed this year.
128664 2000-10-29  Jim Meyering  <meyering@lucent.com>
128666         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128667         renaming.
128668         * m4/ls-mntd-fs.m4: Likewise
128670 2000-10-29  Jim Meyering  <meyering@lucent.com>
128672         * lib/xstat.in: Fix grammar in comment.
128674 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128676         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128677         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128678         doesn't define __restrict_arr.
128680 2000-10-28  Jim Meyering  <meyering@lucent.com>
128682         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128683         (jm_PREREQ_MEMCHR): New function.
128685 2000-10-28  Jim Meyering  <meyering@lucent.com>
128687         * lib/memchr.c: Update from libc.
128688         Adjust for portability:
128689         [HAVE_STDLIB_H]: Include stdlib.h.
128690         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128691         Undef __memchr, too.
128692         [!weak_alias]: Define __memchr to memchr.
128694         * lib/regex.c: Update from libc.
128695         * lib/regex.h: Likewise.
128696         * lib/getopt1.c: Likewise.
128697         * lib/memcmp.c: Likewise.
128699         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128700         Avoid using fseek, when possible -- it's broken by design.
128701         Patch by Ulrich Drepper.
128703 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128705         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128706         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128707         Giving in to popular pressure to shut up the compiler with casts.
128709 2000-10-26  Jim Meyering  <meyering@lucent.com>
128711         * lib/strftime.c: Update from libc.
128713 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128715         * regex.c: More `unsigned char' -> `re_char' changes.
128716         Also change several `int' into `re_wchar_t'.
128717         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128718         (PUSH_FAILURE_POINTER): Don't cast any more.
128719         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128720         We want GCC to complain, since this piece of code makes
128721         re_match non-reentrant, which *should* be fixed.
128722         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128723         (EXTEND_BUFFER): Use RETALLOC.
128724         (SET_LIST_BIT): Don't cast.
128725         (re_wchar_t): New type.
128726         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128727         that those two functions will always properly return.
128728         (IMMEDIATE_QUIT_CHECK): Cast to void.
128729         (analyse_first): Use recursion rather than an explicit stack.
128730         (re_compile_fastmap): Can't fail anymore.
128731         (re_search_2): Don't check re_compile_fastmap for failure.
128732         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128733         Now also sets the new value (passed in a new argument).
128734         (re_match_2_internal): Use it.
128735         Also, use a new var `reg' of type size_t when looping through regs
128736         rather than reuse the inappropriate `mcnt'.
128738 2000-10-25  Jim Meyering  <meyering@lucent.com>
128740         * lib/obstack.c: Update from libc.
128742 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128744         * regex.c (regex_compile): Change the way of handling a range from
128745         a char less than 256 to a char not less than 256.
128747 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128749         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128750         NT-Emacs only.
128751         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128752         so that re_search functions only quit when callers expect them to.
128754 2000-10-23  Jim Meyering  <meyering@lucent.com>
128756         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128757         wrong.  That set_locale call must not have any side effects.
128758         From Paul Eggert.
128760 2000-10-22  Jim Meyering  <meyering@lucent.com>
128762         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128763         [CYCLIC]: Remove now-unused definition.
128765         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128766         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128767         Suggestion from Ulrich Drepper.
128769 2000-10-21  Jim Meyering  <meyering@lucent.com>
128771         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128772         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128775 2000-10-21  Jim Meyering  <meyering@lucent.com>
128777         * lib/dirname.c (memrchr): Declare if necessary.
128778         (dir_name): Remove the restriction that there be no
128779         trailing slashes.  Now, this code skips past them, effectively
128780         ignoring them.
128781         [TEST_DIRNAME] (main): New unit tests.
128783         * lib/memrchr.c: New file from GNU libc.
128784         Undef __memrchr, too.
128785         [!weak_alias]: Define __memrchr to memrchr.
128786         Guard weak_alias use with `#ifdef weak_alias'.
128788 2000-10-21  Jim Meyering  <meyering@lucent.com>
128790         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128791         (dir_name): Use dir_name_r.
128792         * lib/dirname.h (dir_name_r): Declare it.
128794 2000-10-17  Jim Meyering  <meyering@lucent.com>
128796         * lib/quote.h (PARAMS): Define and use.
128797         Reported by Akim Demaille.
128799         * lib/getopt.c: Update from libc.
128801 2000-10-16  Jim Meyering  <meyering@lucent.com>
128803         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128804         setlocale.
128805         From Jan Fedak.
128807 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128809         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128811 2000-09-25  Jim Meyering  <meyering@lucent.com>
128813         * lib/md5.h (rol): Define (from GnuPG).
128815         * lib/sha.c: Give credit (GnuPG) where due.
128816         (M): Use rol rather than open-coding it.
128817         Add a FIXME comment.
128819 2000-09-21  Jim Meyering  <meyering@lucent.com>
128821         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128822         Reported by Michael Stone.
128824 2000-09-20  Jim Meyering  <meyering@lucent.com>
128826         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128827         (noinst_HEADERS): Add sha.h.
128828         Based on code from Scott G. Miller and from GnuPG.
128830 2000-09-18  Jim Meyering  <meyering@lucent.com>
128832         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128833         LIBS. Otherwise, everyone ends up linking with -lelf for some
128834         configurations.
128835         Reported by Mike Stone.
128837 2000-09-15  Jim Meyering  <meyering@lucent.com>
128839         * lib/regex.c: Update from libc.
128841 2000-09-10  Jim Meyering  <meyering@lucent.com>
128843         * lib/getopt.c (_getopt_internal): Update from glibc.
128845 2000-09-09  Jim Meyering  <meyering@lucent.com>
128847         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128848         think it should be used as a general replacement for isascii.
128849         * lib/fnmatch.c: Likewise.
128850         * lib/mbswidth.c: Likewise
128851         * lib/regex.c: Likewise.
128853         Don't use atoi.
128854         * lib/userspec.c: Include sys/param.h and limits.h.
128855         Include xstrtol.h.
128856         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128857         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128858         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128859         UID, GID.  Check range.
128861 2000-09-06  Jim Meyering  <meyering@lucent.com>
128863         * lib/getopt.c (_getopt_internal): Update from glibc.
128865 2000-08-30  Jim Meyering  <meyering@lucent.com>
128867         * lib/strftime.c: Merge in changes from GNU libc.
128869 2000-08-26  Jim Meyering  <meyering@lucent.com>
128871         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128872         * m4/fpending.m4: New file.
128874 2000-08-26  Jim Meyering  <meyering@lucent.com>
128876         * lib/closeout.c: Include "__fpending.h".
128877         (close_stdout_status): Return right away if there's nothing to flush.
128879         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128880         * lib/__fpending.c: New file.
128881         * lib/__fpending.h: New file.
128883 2000-08-20  Jim Meyering  <meyering@lucent.com>
128885         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128886         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128887         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128889 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128891         Improve fileutils installation on systems where running
128892         programs (like install) can't be unlinked.
128893         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128894         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128896 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128898         Standardize on "memory exhausted" instead of "Memory exhausted"
128899         or "virtual memory exhausted".
128900         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128901         "virtual memory exhausted".
128902         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128903         our own message.
128904         * lib/userspec.c (parse_user_spec): Likewise.
128905         * lib/bumpalloc.h: comment fix
128906         * lib/same.c, userspec.c: Include xalloc.h.
128908         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128909         not char *const and pointing to a constant array.
128910         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128911         (xrealloc): Comment fix.
128913         * lib/userspec.c (parse_user_spec):
128914         Don't translate a message until just before returning,
128915         to avoid unnecessary translation.
128917 2000-08-07  Jim Meyering  <meyering@lucent.com>
128919         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128920         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128921         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128922         getgroups.c, gethostname.c, getopt.h, group-member.c,
128923         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128924         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128925         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128926         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128927         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128928         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128929         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128930         yesno.c: Back out Copyright date changes for each file with no change
128931         this year.  This eases coordination with other programs using the same
128932         source code modules.  From Paul Eggert.
128934 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128936         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128937         not char, for compatibility with glibc 2.1.3 strftime.c.
128939 2000-08-03  Greg McGary  <greg@mcgary.org>
128941         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128942         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128943         (EXTEND_BUFFER): Use them.
128945 2000-08-01  Jim Meyering  <meyering@lucent.com>
128947         * lib/dirname.c (ISSLASH): Define.
128948         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128949         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128950         both `\' and `/' may be use as path separators.
128951         Based on a patch from Prashant TR.
128953 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128955         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128956         slot vector a constant, since it might get modified.
128958 2000-07-31  Jim Meyering  <meyering@lucent.com>
128960         * lib/xmalloc.c: Use `virtual memory exhausted', not
128961         `Memory exhausted'.
128962         * lib/obstack.c (print_and_abort): Likewise.
128964 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128966         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128967         buffer, so that the caller can always quote one small
128968         component of a "memory exhausted" message in slot 0.
128969         From a suggestion by Jim Meyering.
128971 2000-07-30  Jim Meyering  <meyering@lucent.com>
128973         * lib/makepath.c (make_path): Quote the other instance, too.
128975         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
128976         (STATIC_BUF_SIZE): Define.
128977         (quotearg_n_options): Use only statically allocated storage when
128978         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
128979         than STATIC_BUF_SIZE.
128981 2000-07-29  Jim Meyering  <meyering@lucent.com>
128983         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
128984         * lib/dirname.c (dir_name): Likewise.
128986         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
128987         `/'.
128989         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
128990         (dir_name): Assert that there are no trailing slashes.
128992 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
128994         * lib/mbswidth.h (mbswidth): Add a flags argument.
128995         (mbswidth): New declaration.
128996         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
128997         * lib/mbswidth.c (mbswidth): Add a flags argument.
128998         (mbsnwidth): New function.
129000 2000-07-24  Jim Meyering  <meyering@lucent.com>
129002         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129004 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129006         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129010         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129011         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129012         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129013         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129014         invoke multibyte primitives.
129016 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129018         * lib/quotearg.c:
129019         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129020         so that mbstate_t is always defined.
129022         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129023         be 1 in at least one GCC installation, and this configuration
129024         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129025         performance on hosts that have mbrtowc but have only unibyte
129026         locales, but I assume these hosts are rare.
129028 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129030         * lib/mbswidth.c (_XOPEN_SOURCE):
129031         Don't define; this causes problems on Solaris 7.
129032         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129034 2000-07-23  Jim Meyering  <meyering@lucent.com>
129036         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129037         too: getgrgid, getpwuid, getuid.
129039 2000-07-23  Jim Meyering  <meyering@lucent.com>
129041         * lib/basename.c (base_name): Add an assertion.
129043 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129045         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129046         shadow its mbsinit function.
129048 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129050         * lib/mbswidth.h: New file.
129051         * lib/mbswidth.c: New file.
129052         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129053         (noinst_HEADERS): Add mbswidth.h.
129055 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129057         * lib/config.charset: Add support for FreeBSD. Improve support for
129058         HP-UX and IRIX 6.
129060 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129062         * m4/mbswidth.m4: New file.
129063         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129065 2000-07-15  Jim Meyering  <meyering@lucent.com>
129067         * lib/makepath.c: Include quote.h.
129068         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129069         corresponding argument in a `quote (...)' call.
129070         Give better diagnostics.
129072         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129073         (noinst_HEADERS): Add quote.h.
129075         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
129076         from tar's src/misc.c.
129077         * lib/quote.h: New file.  Prototypes for same.
129079 2000-07-14  Paul Eggert  <eggert@twinsun.com>
129081         From a suggestion by Bruno Haible.
129082         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
129083         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
129084         to decide whether to define the BeOS workaround macro;
129085         this adjusts to the change to AC_MBSTATE_T.
129087 2000-07-14  Jim Meyering  <meyering@lucent.com>
129089         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
129090         jm_AC_TYPE_UINTMAX_T.
129092 2000-07-13  Paul Eggert  <eggert@twinsun.com>
129094         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
129096         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
129097         quotearg_buffer_restyled): Add support for
129098         clocale_quoting_style.  Undo previous change to
129099         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
129100         and "{RIGHT QUOTATION MARK}" msgids.
129102 2000-07-10  Paul Eggert  <eggert@twinsun.com>
129104         From a suggestion by Bruno Haible.
129105         * m4/mbstate_t.m4 (AC_MBSTATE_T):
129106         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
129107         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
129108         and mbstate_t, to a single-part test that simply defines mbstate_t.
129109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129110         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129112 2000-07-10  Jim Meyering  <meyering@lucent.com>
129114         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129116         * m4/gnu-source.m4: Output to confdefs.h directly.
129117         Suggestion from Akim Demaille.
129119 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129121         The old behavior of quoting `like this' doesn't look good with
129122         newer, ISO-style fonts.  See:
129123         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129125         Instead, quote "like this" by default.  Let the translator
129126         tailor the locale-specific quoting behavior by providing
129127         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129129         * lib/quotearg.c (N_): New macro.
129130         (gettext_default): New function.
129131         (quotearg_buffer_restyled): Use
129132         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129133         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129135 2000-07-09  Jim Meyering  <meyering@lucent.com>
129137         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129138         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129140         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129143 2000-07-09  Jim Meyering  <meyering@lucent.com>
129145         * lib/Most files: Update copyright dates to include 2000.
129147 2000-07-08  Jim Meyering  <meyering@lucent.com>
129149         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129150         if not defined.
129151         (xgethostname): Remove now-unnecessary #ifdef.
129152         Move declaration of `err' into loop where it's used.
129154 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129155         and Bruno Haible  <haible@clisp.cons.org>
129157         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129158         only if the test for an object-type mbstate_t fails.  This
129159         prevents us from mistakenly reporting that mbstate_t is a
129160         system object type after we "#define mbstate_t int" to work
129161         around its lack.
129163 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129164         and Bruno Haible  <haible@clisp.cons.org>
129166         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129168 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129170         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129171         to strerror_r.
129172         Include <ctype.h> for use of isalpha.
129174 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129176         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129177         by allocating a larger buffer. Test the gethostname return value for
129178         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129179         returns an error and ENAMETOOLONG isn't defined.
129181 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129183         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129184         dimension.
129186 2000-07-04  Jim Meyering  <meyering@lucent.com>
129188         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129189         of the deprecated AC_CHECKING.
129191 2000-07-04  Jim Meyering  <meyering@lucent.com>
129193         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129194         Reported by Bruno Haible.
129196 2000-07-04  Jim Meyering  <meyering@lucent.com>
129198         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129199         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129200         lacks mbrtowc.
129202 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129204         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129205         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129207 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129208         and Bruno Haible  <haible@clisp.cons.org>
129210         * lib/quotearg.c (mbrtowc):
129211         Assign to *pwc, and return 1 only if result is nonzero.
129212         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129214 2000-07-03  Jim Meyering  <meyering@lucent.com>
129216         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129218 2000-07-03  Jim Meyering  <meyering@lucent.com>
129220         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129221         This is necessary to get a definition of e.g., UTMP_FILE on
129222         HP-UX 10.20.
129223         From Bob Proulx.
129225 2000-07-02  Jim Meyering  <meyering@lucent.com>
129227         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129229         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129230         AC_LIBOBJ(function_name).
129231         * m4/chown.m4: Likewise.
129232         * m4/fnmatch.m4: Likewise.
129233         * m4/ftruncate.m4: Likewise.
129234         * m4/getgroups.m4: Likewise.
129235         * m4/getline.m4: Likewise.
129236         * m4/group-member.m4: Likewise.
129237         * m4/jm-macros.m4: Likewise.
129238         * m4/lstat.m4: Likewise.
129239         * m4/malloc.m4: Likewise.
129240         * m4/memcmp.m4: Likewise.
129241         * m4/nanosleep.m4: Likewise.
129242         * m4/putenv.m4: Likewise.
129243         * m4/realloc.m4: Likewise.
129244         * m4/regex.m4: Likewise.
129245         * m4/stat.m4: Likewise.
129246         * m4/strftime.m4: Likewise.
129248 2000-07-02  Jim Meyering  <meyering@lucent.com>
129250         * lib/quotearg.c (mbstate_t): Don't define here.
129252 2000-07-02  Jim Meyering  <meyering@lucent.com>
129254         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129256 2000-07-01  Jim Meyering  <meyering@lucent.com>
129258         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129260 2000-07-01  Jim Meyering  <meyering@lucent.com>
129262         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129263         problem.
129265 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129267         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129268         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129270 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129272         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129273         per change in ../m4/ls-mntd-fs.m4.
129274         (read_filesystem_list): Ignore symbolic links.
129276 2000-06-29  Jim Meyering  <meyering@lucent.com>
129278         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129279         for declaration of strcmp.
129281         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129283         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129284         Avoid warning by casting result to `char *' to remove `const'.
129286 2000-06-28  Jim Meyering  <meyering@lucent.com>
129288         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129289         included by quotearg.c, for which we perform this test.  From
129290         Bruno Haible.
129292 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129294         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129295         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129296         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129298 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129300         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129302 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129304         savedir now sets errno on failure and invokes xmalloc to get memory.
129305         Fix a couple of other minor bugs while we're at it.
129307         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129308         (NAMLEN): Remove macro.
129309         (malloc, realloc): Remove decls.
129310         (stpcpy): Likewise.
129311         ("xalloc.h"): Include.
129312         (NAME_SIZE_DEFAULT): New macro.
129313         (savedir): Use xmalloc / xrealloc to allocate memory.
129314         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129315         Skip "" directory entries.
129316         Use strlen to calculate directory entry length, since the old method
129317         is rarely used these days and isn't worth supporting.
129318         Don't use a pointer after freeing it.
129319         Check for integer overflow when calculating allocation size.
129320         Use memcpy to copy entries, instead of stpcpy.
129321         Set errno properly when returning NULL.
129322         Check for readdir error.
129324 2000-06-26  Jim Meyering  <meyering@lucent.com>
129326         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129328 2000-06-25  Jim Meyering  <meyering@lucent.com>
129330         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129331         Linux header bug when _XOPEN_SOURCE is defined to 500.
129333 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129335         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129336         deficiency.
129338 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129340         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129341         Include xalloc.h.
129342         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129344 2000-06-24  Jim Meyering  <meyering@lucent.com>
129346         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129347         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129348         for which strerror does return char*, but which lacks a conveniently
129349         accessible declaration of the function.  If the compile-test says
129350         strerror_r doesn't work, then resort to a `run'-test that works on
129351         BeOS and segfaults on DEC Unix.
129353 2000-06-24  Jim Meyering  <meyering@lucent.com>
129355         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129357 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129359         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129360         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129362 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129364         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129365         (mbrtowc, mbstate_t): Define substitutes if
129366         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129367         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129368         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129370 2000-06-23  Jim Meyering  <meyering@lucent.com>
129372         * m4/afs.m4: Add missing AC_MSG_RESULT.
129373         Reported by Bruno Haible.
129375         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129376         Suggestion from Bruno Haible.
129378 2000-06-23  Jim Meyering  <meyering@lucent.com>
129380         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129382 2000-06-21  Jim Meyering  <meyering@lucent.com>
129384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129386 2000-06-21  Jim Meyering  <meyering@lucent.com>
129388         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129389         (noinst_HEADERS): Add getstr.h.
129391         * lib/getline.c (getstr): Move into a separate file.
129392         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129393         the following changes: new parameter, delim2; both delim[12]
129394         parameters have type `int', not `char'.  The latter would lose
129395         with 8-bit delimiters.
129396         * lib/getstr.h: New file.
129398 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129400         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129401         than 1024, return a memory chunk of least possible size, instead
129402         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129403         Use free/xmalloc instead of xrealloc to avoid copying for very long
129404         paths.
129406 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129408         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129409         the empty string.
129411 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129413         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129414         address, not strdup.  Include <stdlib.h> and don't declare free().
129416 2000-06-19  Jim Meyering  <meyering@lucent.com>
129418         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129420 2000-06-18  Jim Meyering  <meyering@lucent.com>
129422         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129424         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129425         `checking whether...' message to be consistent with that of the
129426         lstat test.
129428 2000-06-18  Jim Meyering  <meyering@lucent.com>
129430         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129431         Besides, these days every porting target provides a mkdir function.
129433         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129434         needed. (this snippet comes from src/system.h).
129436 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129438         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129440 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129442         * lib/human.c (adjust_value): New function.
129443         (human_readable_inexact): Apply rounding style even when
129444         printing approximate values.
129446 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129448         * lib/human.c (human_readable_inexact): Allow an input block
129449         size that is not a multiple of the output block size, and vice versa.
129450         Reported by Piergiorgio Sartor.
129452 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129454         * lib/getdate.y (get_date): Apply relative times after time
129455         zone indicator, not before.  Reported by Todd A. Jacobs.
129457 2000-06-13  Jim Meyering  <meyering@lucent.com>
129459         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129461         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129463 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129465         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129467 2000-06-12  Jim Meyering  <meyering@lucent.com>
129469         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129470         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129471         optional argument.
129472         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129473         the optional argument, `lib'.
129475 2000-06-08  Jim Meyering  <meyering@lucent.com>
129477         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129479 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129481         Rewrite largefile configuration so that we don't need to run
129482         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129483         AC_CANONICAL_HOST in configure.in -- jmm]
129485         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129486         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129487         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129488         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129489         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129490         All uses changed.
129491         Instead of inspecting the output of getconf, try to compile the
129492         test program without and with the macro definition.
129493         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129494         for getconf.  Instead, check for the needed flags by compiling
129495         test programs.
129497 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129499         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129501 2000-06-04  Jim Meyering  <meyering@lucent.com>
129503         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129504         SunOS 4.1.4 for which gid_t is an unsigned type.
129506 2000-06-03  Jim Meyering  <meyering@lucent.com>
129508         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129509         now that autoconf requires that.
129511         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129512         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129513         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129515 2000-06-03  Jim Meyering  <meyering@lucent.com>
129517         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129519 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129521         * m4/glibc21.m4: New file.
129522         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129524 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129526         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129527         newer, don't install charset.alias.
129528         * lib/config.charset: Change the Linux/glibc rules so they become empty
129529         on glibc-2.1 or newer.
129531 2000-06-02  Jim Meyering  <meyering@lucent.com>
129533         * lib/mountlist.c: Back out last change.  Instead, do this...
129534         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129535         me_dummy member using the same `ignore'-testing code.
129536         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129537         fs_type strings.
129538         From Mark D. Roth.
129540 2000-05-29  Jim Meyering  <meyering@lucent.com>
129542         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129543         mounts with the `ignore' attribute.  Based on a patch from
129544         Mark D. Roth.
129546 2000-05-28  Jim Meyering  <meyering@lucent.com>
129548         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129549         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129550         * m4/stat.m4: Likewise.
129551         * m4/lstat.m4: Likewise.
129552         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129554         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129555         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129557 2000-05-26  Jim Meyering  <meyering@lucent.com>
129559         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129561 2000-05-24  Jim Meyering  <meyering@lucent.com>
129563         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129564         autoconf requires that.
129565         * m4/lib-check.m4: Likewise.
129566         * m4/jm-macros.m4: Likewise.
129567         * m4/strftime.m4: Likewise.
129569         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129570         AC_CHECK_DECLS, now that autoconf requires that.
129572 2000-05-22  Jim Meyering  <meyering@lucent.com>
129574         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129575         * m4/lstat.m4: Likewise.
129577 2000-05-22  Jim Meyering  <meyering@lucent.com>
129579         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129581 2000-05-20  Jim Meyering  <meyering@lucent.com>
129583         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129584         (jm_PREREQ): Use it.
129586 2000-05-18  Jim Meyering  <meyering@lucent.com>
129588         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129589         back, too, since it may have been modified by allocate_entry.
129590         (hash_delete): Rewrite to use neither the assignment operator
129591         nor the comma operator in an if-expression.
129593 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129595         * lib/closeout.c:
129596         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129597         Remove; no longer needed.
129598         "quotearg.h": Add include.
129599         (file_name): Do not bother to explicitly initialize to NULL; it's less
129600         efficient on some hosts.
129601         (close_stdout_status): Remove test as to whether stdout was already
129602         closed; it breaks for the case "echo x | sort >&-".
129603         Quote file name colons.
129604         Do not assume that _("write error") lacks format strings.
129606 2000-05-15  Jim Meyering  <meyering@lucent.com>
129608         * lib/version-etc.c (version_etc_copyright): Update the copyright
129609         string used in all --version output.
129611 2000-05-14  Jim Meyering  <meyering@lucent.com>
129613         * lib/closeout.c (close_stdout_set_file_name): New function.
129614         (close_stdout_status): Use new file-scoped global.
129615         Return right away if fstat says the stdout file descriptor is invalid.
129616         * lib/closeout.h (close_stdout_set_file_name): Declare.
129618 2000-05-10  Jim Meyering  <meyering@lucent.com>
129620         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129621         (close_stdout_set_status): New function.
129622         * lib/closeout.h (close_stdout_set_status): Declare.
129624 2000-05-09  Jim Meyering  <meyering@lucent.com>
129626         * m4/gettext.m4: Rename this...
129627         * m4/libintl.m4: ...to this.
129629 2000-05-08  Jim Meyering  <meyering@lucent.com>
129631         * lib/long-options.c: Don't include closeout.h.
129632         (parse_long_options): Don't call close_stdout for --version.
129634 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129636         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129637         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129638         2.1.3 bug.  This avoids a clash when files like regex.c define
129639         _GNU_SOURCE.
129641 2000-05-06  Jim Meyering  <meyering@lucent.com>
129643         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129644         (AC_REPLACE_FUNCS): Add strnlen.
129646         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129647         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129650         AC_SEARCH_LIBS call for nanosleep.
129651         (LIB_NANOSLEEP): Set and AC_SUBST.
129653 2000-05-06  Jim Meyering  <meyering@lucent.com>
129655         * lib/strnlen.c: Undefine __strnlen and strnlen.
129656         [!weak_alias]: Define __strnlen to strnlen.
129658         * lib/atexit.c: New file, from libiberty.
129660 2000-05-06  Jim Meyering  <meyering@lucent.com>
129662         * lib/closeout.c (close_stdout_status): Also check for errors on the
129663         stderr stream.
129665 2000-05-05  Jim Meyering  <meyering@lucent.com>
129667         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129668         AC_SEARCH_LIBS call for clock_gettime.
129669         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129671         * m4/search-libs.m4: Update from autoconf.
129673         su doesn't work on Solaris 2.6.
129674         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129675         <shadow.h>.  Reported by Dragos Harabor.
129677 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129679         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129680         memcpy instead of xmalloc, xrealloc, path_concat.
129681         (locale_charset): Treat empty environment variables as absent.
129682         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129684 2000-05-04  Jim Meyering  <meyering@lucent.com>
129686         * lib/getopt.c: Update from glibc.
129687         * lib/obstack.c: Likewise.
129688         * lib/obstack.h: Likewise.
129689         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129690         file
129692         * lib/regex.h: Likewise.
129693         * lib/strndup.c: Likewise.
129694         * lib/strnlen.c: New file, from glibc.
129696 2000-05-03  Jim Meyering  <meyering@lucent.com>
129698         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129700 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129702         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129703         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129704         compile-time test, rather than inspecting host and OS, to
129705         decide whether to define _LARGEFILE_SOURCE.
129707 2000-05-01  Jim Meyering  <meyering@lucent.com>
129709         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129712         Based on a patch from Bruno Haible.
129714 2000-05-01  Jim Meyering  <meyering@lucent.com>
129716         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129718 2000-04-29  Jim Meyering  <meyering@lucent.com>
129720         * lib/path-concat.c: Declare strdup only if it's not defined.
129721         * lib/canon-host.c: Likewise.
129723 2000-04-28  Jim Meyering  <meyering@lucent.com>
129725         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129726         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129727         is included first, then limits.h is included by locale.h by libintl.h.
129728         From John David Anglin.
129730 2000-04-25  Jim Meyering  <meyering@lucent.com>
129732         * lib/makepath.c (S_IRWXUGO): Define.
129733         (make_path): Always perform explicit chmod if MODE specifies any
129734         of the `special' permission bits.  Prompted by a bug report against
129735         install from Mate Wierdl and Joost van Baal.
129737 2000-04-18  Jim Meyering  <meyering@lucent.com>
129739         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129740         (jm_PREREQ): Use it.
129742 2000-04-18  Jim Meyering  <meyering@lucent.com>
129744         * lib/README: New file.
129746         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129747         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129749 2000-04-17  Jim Meyering  <meyering@lucent.com>
129751         Get it right :-)
129752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129753         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129754         Suggestion from Akim Demaille.
129756 2000-04-17  Jim Meyering  <meyering@lucent.com>
129758         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129759         the definition of it to rpl_strftime also defined-away the system's
129760         declaration.
129762 2000-04-15  Jim Meyering  <meyering@lucent.com>
129764         Use `C' to denote so-called `contiguous' files, the same way
129765         that tar does.
129766         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129767         (ftypelet): Use S_ISCTG.
129768         From Michael Deutschmann.
129770 2000-04-14  Jim Meyering  <meyering@lucent.com>
129772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129773         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129774         clobbered.
129776 2000-04-14  Jim Meyering  <meyering@lucent.com>
129778         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129780 2000-04-13  Jim Meyering  <meyering@lucent.com>
129782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129783         AH_VERBATIM to insert required #ifndef into config.h.in.
129784         Suggestion from Akim Demaille.
129786 2000-04-12  Jim Meyering  <meyering@lucent.com>
129788         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129789         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129790         Christian Krackowizer.
129792         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129793         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129794         (AC_SYS_LARGEFILE): Require.
129795         (AM_C_PROTOTYPES): Require.
129797 2000-04-08  Jim Meyering  <meyering@lucent.com>
129799         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129800         names don't conflict.  Reported by Eli Zaretskii.
129802 2000-04-07  Jim Meyering  <meyering@lucent.com>
129804         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129805         sys/types.h, to work around system header problems on AIX 3.2.5.
129806         From Bruno Haible.
129808 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129810         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129811         bug.  Deal with the different error behavior of Irix iconv.
129813 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129815         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129816         IRIX if the installer said otherwise.
129818 2000-04-05  Jim Meyering  <meyering@lucent.com>
129820         Portability tweaks required for ultrix4.3.
129821         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129822         (jm_CHECK_DECLS): Add getutent to the list of functions.
129823         (_jm_DECL_HEADERS): Add utmpx.h.
129824         From John David Anglin.
129826         * m4/strftime.m4: Back out the 2000-04-02 change.
129827         Instead of that change, simply undefine putenv in the test program.
129829 2000-04-05  Jim Meyering  <meyering@lucent.com>
129831         Portability tweaks required for ultrix4.3.
129832         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129833         getutent.
129834         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129835         * lib/canon-host.c: Declare strdup.
129836         * lib/path-concat.c: Likewise.
129837         From John David Anglin.
129839 2000-04-04  Jim Meyering  <meyering@lucent.com>
129841         Be more DOS 8.3-friendly.
129842         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129843         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129844         * lib/Makefile.am: Reflect renaming.
129845         Reported by Eli Zaretskii.
129847         Use a temporary file name that won't clash with `charset.alias'
129848         in the DOS 8.3 name space.
129849         * lib/Makefile.am (charset_tmp): Define.
129850         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129851         (uninstall-local): Likewise.
129852         Reported by Eli Zaretskii.
129854 2000-04-03  Jim Meyering  <meyering@lucent.com>
129856         * m4/gettext.m4: Fix typo in comment.
129858         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129859         textutils/configure.in).  Suggestion from Paul Eggert.
129860         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129862 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129864         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129865         variable in the shell rather than using putenv, which isn't
129866         portable.  This avoids the configure-time inter-test dependency
129867         on the potentially-renamed putenv function.
129869 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129872         before checking struct stat.st_blksize, so that
129873         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129875 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129878         since strftime.c uses HAVE_STRFTIME to decide whether to use
129879         the underlying strftime.
129881 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129883         * lib/time/strftime.c (my_strftime): Make sure we call the system
129884         strftime, not ourselves, when invoking the underlying strftime.
129886 2000-03-24  Jim Meyering  <meyering@lucent.com>
129888         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129889         (charset_alias): Define.
129890         (install-exec-local): Factor out common code.
129891         (uninstall-local): Split lines longer than 80.
129892         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129893         (SUFFIXES): Define.
129894         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129895         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129897 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129899         * lib/config.charset: Output a line containing "Packages using this
129900         file".
129901         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129902         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129903         ref-del.sed): New rules.
129905 2000-03-17  Jim Meyering  <meyering@lucent.com>
129907         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129908         Otherwise, include <strings.h>
129910 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129912         * lib/unicodeio.c (utf8_wctomb): New function.
129913         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129914         format instead of in UCS-4 with platform dependent endianness.
129916 2000-03-10  Jim Meyering  <meyering@lucent.com>
129918         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129919         From Marco Franzen.
129921 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129923         * lib/savedir.c (savedir): Work even if directory size is
129924         negative; this can happen with some screwy NFS configurations.
129926 2000-03-06  Jim Meyering  <meyering@lucent.com>
129928         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129929         if it's NULL (because we ran out of memory).  From Bruno Haible.
129931 2000-03-05  Jim Meyering  <meyering@lucent.com>
129933         * lib/localcharset.c ("path-concat.h"): Include.
129934         (get_charset_aliases): Use path_concat instead of ANSI string
129935         concatenation.
129937         * lib/unicodeio.h (PARAMS): Define.
129938         Use it to guard prototype.
129940 2000-03-04  Jim Meyering  <meyering@lucent.com>
129942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129943         for lib/localcharset.c.
129945 2000-03-04  Jim Meyering  <meyering@lucent.com>
129947         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129948         installing into it.
129949         (uninstall-local): Uncomment this rule so `make distcheck' works
129950         once again.
129952         * lib/unicodeio.c (<errno.h>): Include it.
129953         (errno): Declare if not defined.
129955         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129957         * lib/config.charset: New version, incorporating remarks from a linux
129958         i18n mailing list.  From Bruno Haible.
129960 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129962         * m4/codeset.m4: New file.
129963         * m4/iconv.m4: New file.
129964         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129966 2000-03-03  Jim Meyering  <meyering@lucent.com>
129968         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
129970 2000-03-02  Jim Meyering  <meyering@lucent.com>
129972         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
129973         the messages come out on separate lines.
129975         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
129976         rather than jm_CHECK_DECLARATIONS.
129977         * m4/decl.m4: Remove now-unused file.
129979         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
129980         geteuid.
129982 2000-03-02  Jim Meyering  <meyering@lucent.com>
129984         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
129986 2000-03-01  Jim Meyering  <meyering@lucent.com>
129988         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
129989         * lib/unicodeio.c: Likewise.
129991 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
129993         * lib/config.charset: New file.
129994         * lib/localcharset.c: New file.
129995         * lib/unicodeio.h, lib/unicodeio.c: New files.
129996         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
129997         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
129998         (noinst_HEADERS): Add unicodeio.h.
129999         (all-local, install-exec-local, charset.alias): New targets.
130001 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130003         * lib/quotearg.c (ALERT_CHAR): New macro.
130004         (quotearg_buffer_restyled): Use it.
130006 2000-02-27  Jim Meyering  <meyering@lucent.com>
130008         * m4/check-decl.m4: Add getenv to the list.
130010 2000-02-27  Jim Meyering  <meyering@lucent.com>
130012         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130013         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130015         * lib/backupfile.c: Guard inclusion of stdlib.h with
130016         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130017         Declare malloc if needed.
130019         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130020         `#ifndef HAVE_DECL..'
130021         now that autoconf always defines the HAVE_DECL_ symbols.
130022         * lib/human.c: Likewise.
130023         * lib/same.c: Likewise.
130024         * lib/strtoumax.c: Likewise.
130026         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130027         declaration check was not run.
130028         * lib/hash.c: Likewise.
130029         * lib/human.c: Likewise.
130030         * lib/same.c: Likewise.
130031         * lib/strtoumax.c: Likewise.
130033         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130034         `.', then first look up the entire `.'-containing string as a login
130035         name.
130037 2000-02-23  Jim Meyering  <meyering@lucent.com>
130039         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130040         in place of my hack.
130042 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130044         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130045         (textint): New typedef.
130046         (parser_control): Member year changed from int to textint.
130047         All uses changed.
130048         (YYSTYPE): Removed; replaced by %union with int and textint members.
130049         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130050         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130051         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130052         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130053         (date, number, to_year): Use width of number in digits, not its value,
130054         to determine whether it's a 2-digit year, or a 2-digit time.
130055         (yylex): Store number of digits of numeric tokens.
130056         Reported by John Kendall.
130058         (parser_control): Changed from struct parser_control to typedef (for
130059         consistency).  All uses changed.
130061         (tID): Removed; not used.
130062         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130064 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130066         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130067         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130069 2000-02-12  Jim Meyering  <meyering@lucent.com>
130071         * lib/userspec.c (ISDIGIT): Define it.
130072         (isdigit): Remove definition.
130073         (is_number): Use ISDIGIT, not isdigit.
130074         <libintl.h>: Include.
130075         (_ and N_): Define.
130076         (parse_user_spec): Mark translatable strings.
130078 2000-02-10  Jim Meyering  <meyering@lucent.com>
130080         With these changes, nanosleep.[ch] are finally enough like the other
130081         lib/* replacement files to compile on a few more losing systems.
130083         * lib/nanosleep.h: Don't include config.h.
130084         Remove prototype from declaration of nanosleep.
130085         (PARAMS): Remove now-unneeded definition.
130086         * lib/nanosleep.c: #undef nanosleep.
130087         (rpl_nanosleep): Rename from nanosleep.
130089 2000-02-10  Jim Meyering  <meyering@lucent.com>
130091         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
130092         gnu_nanosleep to rpl_nanosleep.
130094 2000-02-09  Jim Meyering  <meyering@lucent.com>
130096         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
130097         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
130099 2000-02-08  Akim Demaille  <akim@epita.fr>
130101         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
130102         `[' and `]' and remove uses of `changequote'.
130103         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
130104         (AC_SYS_LARGEFILE): Likewise.
130105         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
130106         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
130107         of changequote.
130108         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130109         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130110         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130111         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130113 2000-02-05  Jim Meyering  <meyering@lucent.com>
130115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130116         Remove explicit use of AC_HEADER_TIME.  It is required by
130117         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130118         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130119         in autoconf whereby the expansion of the latter ended up preceding
130120         the expansion of its prerequisite, AC_HEADER_TIME.
130121         Reported by Volker Borchert.
130123 2000-02-03  Jim Meyering  <meyering@lucent.com>
130125         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130127 2000-02-03  Jim Meyering  <meyering@lucent.com>
130129         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130130         rather than with `#if HAVE_UTMPNAME'.
130132 2000-02-02  Jim Meyering  <meyering@lucent.com>
130134         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130135         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130136         Reported by Eli Zaretskii.
130138 2000-02-01  Jim Meyering  <meyering@lucent.com>
130140         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130142 2000-01-31  Jim Meyering  <meyering@lucent.com>
130144         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130145         functions.  Add the time.h and sys/time.h headers along with the
130146         AC_REQUIRE'ment of AC_HEADER_TIME.
130148 2000-01-31  Jim Meyering  <meyering@lucent.com>
130150         * lib/nanosleep.h (nanosleep): Guard declaration with
130151         `#if ! HAVE_DECL_NANOSLEEP'.
130152         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130153         the declaration in that vendor's sys/timers.h.
130154         Reported by Christian Krackowizer.
130156         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130157         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130158         (ISPRINT): Likewise.
130159         Reported by Tom Tromey.
130161 2000-01-30  Jim Meyering  <meyering@lucent.com>
130163         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130165         * m4/prereq.m4 (utmp_includes): Define.
130166         Check for ut_user and ut_name members in both struct utmpx
130167         and struct utmp.
130169 2000-01-30  Jim Meyering  <meyering@lucent.com>
130171         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130172         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130173         header files where only utmpx.ut_user is declared.
130175         * lib/readutmp.h (UT_USER): Define.
130177 2000-01-29  Jim Meyering  <meyering@lucent.com>
130179         * m4/lib-check.m4: New file containing library-related checks from
130180         fileutils and sh-utils (textutils had none).
130182 2000-01-28  Jim Meyering  <meyering@lucent.com>
130184         * m4/perl.m4: Change format of warning message to look more like that
130185         from the missing script.  Suggestion from François Pinard.
130187 2000-01-25  Jim Meyering  <meyering@lucent.com>
130189         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130190         well as time.h in the compile check.
130191         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130192         Fix typo in cross-compiling case: s/yes/no/.
130194 2000-01-23  Jim Meyering  <meyering@lucent.com>
130196         * m4/jm-macros.m4: Move df-related tests here from
130197         fileutils/configure.in
130199         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130200         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130202         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130203         s/space/ac_fsusage_space/.
130204         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130206         * m4/ftruncate.m4: New file (derived from part of
130207         fileutils/configure.in).
130208         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130209         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130211         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130212         AC_SUBST these here, rather than just in sh-util/configure.in, so
130213         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130214         all the same.
130215         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130216         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130217         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130218         (AC_SUBST(POW_LIBM)): Likewise.
130219         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130221 2000-01-23  Jim Meyering  <meyering@lucent.com>
130223         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130224         obstack.c.
130226 2000-01-22  Jim Meyering  <meyering@lucent.com>
130228         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130230         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130232         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130233         configure.in
130234         (AC_CHECK_HEADERS): Likewise for sh-utils.
130235         (AC_CHECK_HEADERS): Likewise for textutils.
130236         Merge the three lists of headers.
130238         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130239         from fileutils' configure.in.
130241         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130242         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130243         check-decl.m4.
130245         * m4/check-decl.m4: Use #if rather than #ifdef.
130246         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130247         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130248         (_jm_DECL_HEADERS): Define new function.
130249         (jm_CHECK_DECLARATIONS): Require it.
130251 2000-01-22  Jim Meyering  <meyering@lucent.com>
130253         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130254         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130255         Required for some AIX systems.  Reported by Christian Krackowizer.
130256         [TESTING] (main): New function.
130258         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130259         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130260         letters.
130262         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130263         iswprint.
130265         * lib/strverscmp.c (ISDIGIT): Define.
130266         (strverscmp): Use ISDIGIT, not isdigit.
130268 2000-01-19  Jim Meyering  <meyering@lucent.com>
130270         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130271         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130272         defines `struct timespec' in <sys/time.h>
130274         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130275         Thanks to Akim for explaining.
130277 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130279         * lib/nanosleep.c (nanosleep):
130280         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130281         POSIX.1 doesn't require SA_INTERRUPT and some systems
130282         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130283         it's been part of POSIX.1 since day 1 (in 1988).
130285 2000-01-17  Jim Meyering  <meyering@lucent.com>
130287         * lib/interlock: Remove unused file.  Reported by François Pinard.
130289 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130291         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130292         alert, backslash, formfeed, and vertical tab unnecessarily in
130293         shell quoting style.
130295 2000-01-16  Jim Meyering  <meyering@lucent.com>
130297         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130298         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130299         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130300         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130302 2000-01-16  Jim Meyering  <meyering@lucent.com>
130304         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130305         because the latter didn't work.
130307 2000-01-15  Jim Meyering  <meyering@lucent.com>
130309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130310         (AC_REPLACE_FUNCS): Add memcpy and memset.
130311         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130312         Add strpbrk.
130313         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130315 2000-01-12  Jim Meyering  <meyering@lucent.com>
130317         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130318         (jm_PREREQ): Use it.
130319         (jm_PREREQ_READUTMP): New macro.
130320         (jm_PREREQ): Use it.
130322 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130324         Quote multibyte characters correctly.
130325         * m4/c-bs-a.m4: New file.
130326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130327         (jm_PREREQ): Use it.
130329 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130331         * m4/uintmax_t.m4: Port to autoconf 2.13.
130333 2000-01-08  Jim Meyering  <meyering@ascend.com>
130335         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130336         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130338 2000-01-04  Jim Meyering  <meyering@ascend.com>
130340         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130341         jm_STRUCT_DIRENT_D_TYPE.
130342         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130343         jm_STRUCT_DIRENT_D_INO.
130344         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130345         jm_STRUCT_UTIMBUF.
130346         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130347         renamings.
130348         * m4/utime.m4: Likewise.
130350         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130351         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130353 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130355         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130356         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130358 2000-01-02  Jim Meyering  <meyering@ascend.com>
130360         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130361         remember if this is necessary.
130363 1999-12-26  Jim Meyering  <meyering@ascend.com>
130365         * m4/jm-macros.m4: Use it here.
130366         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130368 1999-12-23  Jim Meyering  <meyering@ascend.com>
130370         * m4/jm-macros.m4: Check for clock_gettime (moved from
130371         fileutils/configure.in)
130372         Check for gettimeofday.
130374 1999-12-20  Jim Meyering  <meyering@ascend.com>
130376         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130377         autoconf-2.14a-1999-12-20.
130379 1999-12-19  Jim Meyering  <meyering@ascend.com>
130381         * m4/lstat-slash.m4: New file.
130382         * m4/jm-macros.m4: Use the new macro:
130383         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130385 1999-12-07  Jim Meyering  <meyering@ascend.com>
130387         * m4/perl.m4: Require that File::Compare be available, too.
130388         Too many systems seem to lack it.
130390         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130391         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130393 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130395         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130396         problem with the QNX 4.25 shell, which doesn't propagate exit
130397         status of failed commands inside shell assignments.
130399 1999-11-17  Jim Meyering  <meyering@ascend.com>
130401         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130403 1999-11-07  Jim Meyering  <meyering@ascend.com>
130405         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130407 1999-11-06  Jim Meyering  <meyering@ascend.com>
130409         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130410         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130412 1999-11-05  Jim Meyering  <meyering@ascend.com>
130414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130415         configure.in of textutils, fileutils, and sh-utils into this one
130416         (shared between those packages) file.
130417         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130418         AC_STRUCT_ST_BLKSIZE.
130420 1999-11-03  Jim Meyering  <meyering@ascend.com>
130422         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130423         of AC_CHECK_TYPE checks includes unistd.h.
130424         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130425         Suggestion from Akim Demaille.
130427 1999-10-30  Jim Meyering  <meyering@ascend.com>
130429         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130430         m4-quoted string.
130431         * m4/ls-mntd-fs.m4: Likewise.
130432         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130433         * m4/jm-winsz1.m4: Likewise.
130435         * m4/const.m4: Remove file, since the fix made it into the experimental
130436         version of autoconf.
130437         * m4/mktime.m4: Likewise.
130439         * m4/check-type.m4: Remove file, now that the latest version of
130440         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130442         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130443         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130444         AC_CHECK_TYPE.
130446 1999-10-04  Jim Meyering  <meyering@ascend.com>
130448         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130450 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130452         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130453         2.95.1 bug with HP-UX 10.20.
130455 1999-09-17  Jim Meyering  <meyering@ascend.com>
130457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130458         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130459         due to missing strdup (against sh-utils-2.0).
130461 1999-08-29  Jim Meyering  <meyering@ascend.com>
130463         * m4/jm-macros.m4: Require jm_BISON.
130464         * m4/bison.m4: New file.
130466 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130468         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130469         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130471 1999-08-05  Jim Meyering  <meyering@ascend.com>
130473         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130474         to avoid conflicts with `conftest' on 8+3 filesystems.
130475         Suggestion from Eli Zaretskii.
130477 1999-08-04  Jim Meyering  <meyering@ascend.com>
130479         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130480         fileutils and sh-utils (textutils's getline test was inadequate).
130481         (AM_FUNC_GETLINE): Run this test.
130482         (AC_CHECK_FUNCS): Check for getdelim.
130483         Reported by Bob Proulx.
130485 1999-08-02  Jim Meyering  <meyering@ascend.com>
130487         * m4/jm-macros.m4: Add a comment.
130489 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130492         <inttypes.h> defines strtoumax as a macro (and not as a
130493         function).
130495 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130497         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130498         that we can shift, multiply and divide unsigned long long
130499         values; Ultrix cc can't do it.
130501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130503         * m4/mktime.m4: New file, which is a preview of what should appear
130504         in the next public autoconf release.
130506 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130508         * m4/lfs.m4: Remove this file.
130509         * m4/largefile.m4: New file.  It contains the old contents of
130510         lfs.m4, except that all names with prefix AC_LFS have been
130511         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130512         compatible with future autoconf versions.  Also, some minor m4
130513         quoting problems have been fixed.
130515 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130517         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130518         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130519         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130520         and simplify the shell code.
130522 1999-08-01  Jim Meyering  <meyering@ascend.com>
130524         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130525         m4.
130527 1999-07-20  Jim Meyering  <meyering@ascend.com>
130529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130531 1999-07-15  Jim Meyering  <meyering@ascend.com>
130533         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130535 1999-05-22  Jim Meyering  <meyering@ascend.com>
130537         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130539 1999-05-20  Jim Meyering  <meyering@ascend.com>
130541         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130542         Add a colon after each `then' in case $4 is empty.
130544 1999-05-16  Jim Meyering  <meyering@ascend.com>
130546         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130548 1999-05-10  Jim Meyering  <meyering@ascend.com>
130550         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130552         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130553         AC_FUNC_MKTIME.
130555 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130557         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130559 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130561         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130562         not CPPFLAGS, so that linking works correctly in IRIX.
130564 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130566         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130568 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130570         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130571         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130573         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130574         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130576         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130578 1999-04-20  Jim Meyering  <meyering@ascend.com>
130580         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130581         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130582         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130584 1999-04-18  Jim Meyering  <meyering@ascend.com>
130586         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130587         * m4/jm-macros.m4: Use it.
130589 1999-04-06  Jim Meyering  <meyering@ascend.com>
130591         * m4/strftime.m4: Remove test for %f.
130593 1999-03-29  Jim Meyering  <meyering@ascend.com>
130595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130596         superset of the AC_TYPE_* checks in the textutils, fileutils,
130597         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130598         AC_TYPE_PID_T.
130600 1999-03-28  Jim Meyering  <meyering@ascend.com>
130602         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130603         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130604         replaced e.g., in the *.sh files of the sh-utils.
130606 1999-03-20  Jim Meyering  <meyering@ascend.com>
130608         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130609         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130610         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130612 1999-03-19  Jim Meyering  <meyering@ascend.com>
130614         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130616 1999-03-12  Jim Meyering  <meyering@ascend.com>
130618         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130620 1999-03-07  Jim Meyering  <meyering@ascend.com>
130622         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130623         declared.
130625 1999-02-17  Jim Meyering  <meyering@ascend.com>
130627         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130628         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130630 1999-02-07  Jim Meyering  <meyering@ascend.com>
130632         * m4/group-member.m4: New file -- extracted from sh-utils'
130633         configure.in.
130635         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130636         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130638 1999-02-06  Jim Meyering  <meyering@ascend.com>
130640         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130641         * m4/fnmatch.m4: Likewise.
130642         * m4/getgroups.m4: Likewise.
130643         * m4/lstat.m4: Likewise.
130644         * m4/malloc.m4: Likewise.
130645         * m4/putenv.m4: Likewise.
130646         * m4/realloc.m4: Likewise.
130647         * m4/regex.m4: Likewise.
130648         * m4/stat.m4: Likewise.
130649         * m4/strftime.m4: Likewise.
130650         Suggestion from Alain Magloire.
130652         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130653         * m4/fnmatch.m4: Likewise.
130654         * m4/getgroups.m4: Likewise.
130655         * m4/getline.m4: Likewise.
130656         * m4/lstat.m4: Likewise.
130657         * m4/malloc.m4: Likewise.
130658         * m4/memcmp.m4: Likewise.
130659         * m4/putenv.m4: Likewise.
130660         * m4/realloc.m4: Likewise.
130661         * m4/regex.m4: Likewise.
130662         * m4/stat.m4: Likewise.
130663         * m4/strftime.m4: Likewise.
130664         Suggestion from Alain Magloire.
130666         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130667         an argument.
130669         * m4/regex.m4: Add a run-time Test for proper operation of
130670         re_compile_pattern.
130672 1999-01-31  Jim Meyering  <meyering@ascend.com>
130674         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130676 1999-01-30  Jim Meyering  <meyering@ascend.com>
130678         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130680         * m4/jm-mktime.m4: Make this a wrapper around the official
130681         AM_FUNC_MKTIME rather than my private copy, now that the official one
130682         is up to date.
130683         * m4/mktime.m4: Remove file.
130685         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130686         * m4/uptime.m4: Likewise.
130687         * m4/uintmax_t.m4: Likewise.
130689 1999-01-28  Jim Meyering  <meyering@ascend.com>
130691         * m4/jm-macros.m4: Use jm_AFS.
130692         * m4/afs.m4: New file (from fileutils' configure.in).
130694         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130695         * m4/chown.m4: Likewise.
130696         * m4/d-ino.m4: Likewise.
130697         * m4/d-type.m4: Likewise.
130698         * m4/fnmatch.m4: Likewise.
130699         * m4/getgroups.m4: Likewise.
130700         * m4/gettext.m4: Likewise.
130701         * m4/jm-mktime.m4: Likewise.
130702         * m4/jm-winsz2.m4: Likewise.
130703         * m4/lcmessage.m4: Likewise.
130704         * m4/ls-mntd-fs.m4: Likewise.
130705         * m4/malloc.m4: Likewise.
130706         * m4/memcmp.m4: Likewise.
130707         * m4/putenv.m4: Likewise.
130708         * m4/realloc.m4: Likewise.
130709         * m4/st_mtim.m4: Likewise.
130710         * m4/strftime.m4: Likewise.
130712 1999-01-16  Jim Meyering  <meyering@ascend.com>
130714         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130715         (ARGMATCH_DIE_DECL): Define.
130717 1999-01-12  Jim Meyering  <meyering@ascend.com>
130719         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130720         Reported by Lars Hecking.
130722 1999-01-10  Jim Meyering  <meyering@ascend.com>
130724         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130725         gross kludge.
130726         * m4/inttypes_h.m4: Likewise.
130727         * m4/lstat.m4: Likewise.
130728         * m4/malloc.m4: Likewise.
130729         * m4/readdir.m4: Likewise.
130730         * m4/realloc.m4: Likewise.
130731         * m4/st_dm_mode.m4: Likewise.
130732         * m4/stat.m4: Likewise.
130733         * m4/utimbuf.m4: Likewise.
130734         * m4/utimes.m4: Likewise.
130736         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130737         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130738         comments in config.h.in are meaningful.
130740         * m4/jm-macros.m4: Require autoconf-2.13 here.
130742         * m4/regex.m4: By default, don't use the included regex.c on systems
130743         with glibc 2.  Suggestion from Uli Drepper.
130745 1999-01-02  Jim Meyering  <meyering@ascend.com>
130747         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130749 1998-12-18  Jim Meyering  <meyering@ascend.com>
130751         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130752         Based on a suggestion from Lars Hecking.
130754 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130756         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130758 1998-11-16  Jim Meyering  <meyering@ascend.com>
130760         * m4/lfs.m4: Double-quote the `uname...` expression.
130762 1998-11-14  Jim Meyering  <meyering@ascend.com>
130764         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130765         * m4/stat.m4: Likewise.
130767 1998-11-03  Jim Meyering  <meyering@ascend.com>
130769         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130770         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130772 1998-10-18  Jim Meyering  <meyering@ascend.com>
130774         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130776 1998-10-17  Jim Meyering  <meyering@ascend.com>
130778         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130779         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130780         calls for those previously hard-coded headers.  Instead, take a new
130781         parameter.
130782         (jm_CHECK_DECLARATIONS): Reflect interface change.
130783         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130784         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130786         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130788 1998-10-14  Jim Meyering  <meyering@ascend.com>
130790         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130791         instead of "TZ=America/Vancouver".  From Paul Eggert.
130793 1998-10-11  Jim Meyering  <meyering@ascend.com>
130795         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130796         This adds a test for a recently added compatibility fix for mktime.c.
130797         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130799 1998-09-27  Jim Meyering  <meyering@ascend.com>
130801         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130803         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130804         ../configure.in, including a change from Gordon Matzigkeit to allow
130805         cross-compiling for the Hurd.
130807         * m4/glibc.m4: New file/macro to test for the GNU C Library
130808         versions 1 and 2.  From Gordon Matzigkeit.
130809         Indent.
130811 1998-09-21  Jim Meyering  <meyering@ascend.com>
130813         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130815 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130817         Port nanosecond-resolution times to UnixWare 2.1.2 and
130818         pedantic Solaris 2.6.
130820         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130821         AC_STRUCT_ST_MTIM.
130822         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130823         Generate name of ns member, instead of just 1 or undef.
130824         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130826 1998-08-15  Jim Meyering  <meyering@ascend.com>
130828         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130829         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130830         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130831         instead of jm_TYPE_SSIZE_T.
130833 1998-08-12  Jim Meyering  <meyering@ascend.com>
130835         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130837 1998-08-02  Jim Meyering  <meyering@ascend.com>
130839         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130840         in acconfig.h manually.
130842 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130844         * m4/st_mtim.m4: New file.
130846 1998-07-28  Jim Meyering  <meyering@ascend.com>
130848         * m4/utimes.m4: Undef stat.
130850 1998-07-25  Jim Meyering  <meyering@ascend.com>
130852         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130853         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130855 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130857         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130858         uid and gid actually remain unchanged.
130860 1998-07-07  Jim Meyering  <meyering@ascend.com>
130862         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130864 1998-07-04  Jim Meyering  <meyering@ascend.com>
130866         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130867         to prove that this macro can be used in packages without regex.c.
130869 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130871         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130872         is to be used.
130874 1998-07-03  Jim Meyering  <meyering@ascend.com>
130876         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130878         * m4/gettext.m4: New file -- from gettext-0.10.35.
130879         * m4/lcmessage.m4: Likewise.
130880         * m4/progtest.m4: Likewise.
130882         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130883         * m4/jm-macros.m4: Require the new macro.
130885 1998-06-29  Jim Meyering  <meyering@ascend.com>
130887         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130888         for the definition of NGROUPS (used in a system header included
130889         by sys/mount.h).
130891 1998-06-28  Jim Meyering  <meyering@ascend.com>
130893         * m4/ls-mntd-fs.m4: New file.
130894         * m4/fstypename.m4: New file.
130896         * m4/jm-macros.m4: Require the new macro.
130897         * m4/jm-glibc-io.m4: New file.
130899 1998-05-19  Jim Meyering  <meyering@ascend.com>
130901         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130902         * m4/lchown.m4: New file.
130904         * m4/Makefile.am.in: New file.
130905         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130907 1998-05-14  Jim Meyering  <meyering@ascend.com>
130909         * m4/Makefile.am (EXTRA_DIST): Add them.
130910         * m4/jm-macros.m4: New file.
130911         * m4/utimbuf.m4: New file.
130913 1998-05-12  Jim Meyering  <meyering@ascend.com>
130915         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130917 1998-05-11  Jim Meyering  <meyering@ascend.com>
130919         * m4/isc-posix.m4: New file.
130921 1998-05-10  Jim Meyering  <meyering@ascend.com>
130923         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130925 1998-05-09  Jim Meyering  <meyering@ascend.com>
130927         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130928         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130929         with automake.
130931         * m4/ssize_t.m4: New file.
130932         * m4/mktime.m4: Remove file -- the new automake has this now.
130934 1998-04-26  Jim Meyering  <meyering@ascend.com>
130936         * m4/assert.m4: New file.
130937         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130939 1998-04-05  Jim Meyering  <meyering@ascend.com>
130941         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130942         (jm_PREREQ): Use it here.
130944 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130946         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130947         in acconfig.h.
130949 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130951         * m4/prereq.m4: New file.
130952         * m4/error.m4: New file.
130953         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130955 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130957         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130958         cache-check for the same variable -- that defeated the purpose of
130959         the test; the test program was never run.  This was a problem only
130960         on systems with losing getline functions -- HP-UX 10.20 is one.
130961         Reported by Bjorn Helgaas.
130963 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130965         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130967 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
130969         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
130971         * m4/const.m4: New file.  Use an initializer in this declaration
130972         typedef int charset[2]; const charset x;
130973         Reported by Bob Glickstein.
130975 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
130977         * m4/chown.m4: Fix reversed types on -1 args to chown.
130978         From Kaveh Ghazi.
130980 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
130982         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
130983         Add lseek and memchr.
130985         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
130986         T.E.Dickey <dickey@clark.net> said that some older preprocessors
130987         have a 20-character limit on names.
130989 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
130991         * m4/inttypes_h.m4: New file.
130992         * m4/uintmax_t.m4: New file.
130993         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
130996         -----
130998         Local Variables:
130999         coding: utf-8
131000         End:
131002         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131004         Copying and distribution of this file, with or without
131005         modification, are permitted provided the copyright notice
131006         and this notice are preserved.